archive/scheduleac/client/client.html
2017-10-23 22:28:15 -04:00

87 lines
2.2 KiB
HTML

<head>
<title>AC/Health Schedule</title>
<link rel="icon" sizes="32x32" href="/favicon.ico">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40611162-4', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
{{#if isDesktop}}
{{> client}}
{{else}}
{{> phone}}
{{/if}}
</body>
<template name="day">
<p class="type">{{aftertext}} </p><p class="date">{{pretext}}</p> <p class="other">{{other}}</p>
{{#if allowed}}
<i class="fa fa-times fa-3x"></i>
{{/if}}
</template>
<template name="recent">
<div class="recent eachDay {{aftertext}}">
<p class="type">{{aftertext}} </p><p class="date">{{pretext}}</p> <p class="other">{{other}}</p>
{{#if allowed}}
<i class="fa fa-times fa-3x"></i>
{{/if}}
</div>
</template>
<template name="client">
<div class="pulltab"></div>
<div class="scale">
{{> sidebar}}
</div>
<div class="scheduleList">
{{#each mostrecent}}
{{> recent}}
{{/each}}
{{#each sched}}
<div class="eachDay {{aftertext}}">
{{> day}}
</div>
{{/each}}
</div>
</template>
<template name="sidebar">
<div class="sidebar">
<h1>AC/Health Schedule</h1>
{{> loginButtons}}
{{#if allowed}}
<input type="text" class="form-control" id="date" placeholder="date">
<select class='selection' id="post">
<option value="AC">AC</option>
<option value="Health">Health</option>
</select>
<select class='selection' id="day">
<option value="A">A</option>
<option value="B">B</option>
</select>
<input type="text" id="other" placeholder="comments">
<button id="button">Update!</button>
{{/if}}
<div class='about'>
<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">
{{#each phone}}
{{> recent}}
{{/each}}
</template>