css + mobile
This commit is contained in:
parent
549d31d4d1
commit
fc7defd1ee
@ -18,6 +18,7 @@ body {
|
||||
h1 {
|
||||
font-family: Lato;
|
||||
font-size: 300%;
|
||||
margin-left: 4.2%;
|
||||
}
|
||||
|
||||
#date {
|
||||
@ -62,10 +63,12 @@ h1 {
|
||||
.login-display-name {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.login-button {
|
||||
margin-left: 20% !important;
|
||||
width: 100% !important;
|
||||
height: 28px !important;
|
||||
float: right;
|
||||
}
|
||||
.eachDay {
|
||||
position: relative;
|
||||
@ -97,8 +100,12 @@ h1 {
|
||||
|
||||
.recent {
|
||||
color: #353535;
|
||||
font-size: 160%;
|
||||
background-color: #5BEF78;
|
||||
max-width:30%;
|
||||
min-width:40%;
|
||||
max-width:40%;
|
||||
padding-top:3%;
|
||||
padding-bottom:3%;
|
||||
}
|
||||
|
||||
.scheduleList {
|
||||
|
||||
@ -59,13 +59,15 @@
|
||||
<button id="button">Update!</button>
|
||||
{{/if}}
|
||||
<div class='about'>
|
||||
<p>Developed by Yaman Qalieh and Kenny Jao</p>
|
||||
<p>Developed by Yaman Qalieh</p>
|
||||
<p>Visuals by Kenny Jao</p>
|
||||
<a class="github" target="_blank" href="https://github.com/yamanq/scheduleac">Github</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template name="phone">
|
||||
<p class="type">{{aftertext}} </p><p class="date">{{pretext}} </p>
|
||||
<button class="nextb">Next</button>
|
||||
{{#each phone}}
|
||||
{{> recent}}
|
||||
{{/each}}
|
||||
</template>
|
||||
@ -16,7 +16,7 @@ Template.client.helpers({
|
||||
|
||||
mostrecent: function() {
|
||||
return schedule.find({}, {sort: {timestamp: 1}, limit: 1}).fetch();
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@ -161,28 +161,7 @@ function getScale(index, start) {
|
||||
|
||||
|
||||
Template.phone.helpers({
|
||||
pretext: function() {
|
||||
cole = schedule.find({}, {sort: {timestamp: 1}}).fetch();
|
||||
date = moment(cole[currentcard].pretext);
|
||||
date = date.calendar(null, {
|
||||
sameDay: '[Today]',
|
||||
nextDay: '[Tomorrow]',
|
||||
nextWeek: 'dddd',
|
||||
lastDay: '[Yesterday]',
|
||||
lastWeek: '[Last] dddd',
|
||||
sameElse: 'DD/MM/YYYY'
|
||||
});
|
||||
return date
|
||||
},
|
||||
|
||||
aftertext: function() {
|
||||
cole = schedule.find({}, {sort: {timestamp: 1}}).fetch();
|
||||
return cole[currentcard].aftertext;
|
||||
}
|
||||
});
|
||||
|
||||
Template.phone.events({
|
||||
'click nextb': function() {
|
||||
currentcard += 1;
|
||||
phone: function() {
|
||||
return schedule.find({}, {sort: {timestamp: 1}, limit: 1}).fetch();
|
||||
}
|
||||
});
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
var allowed = {};
|
||||
allowed["ybq987@gmail.com"] = true;
|
||||
allowed["dweinger@bloomfield.org"] = true;
|
||||
allowed["ksjdragon@gmail.com"] = true;
|
||||
//allowed["ksjdragon@gmail.com"] = true;
|
||||
|
||||
schedule.permit(['insert', 'update', 'remove']).never().apply();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user