Initial commit, converting laundry app to site
This commit is contained in:
65
templates/laundry/main.html
Normal file
65
templates/laundry/main.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% block head %}
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{% block title %}<title>GMU Laundry</title>{% endblock %}
|
||||
{% block description %}
|
||||
<meta name="Description" content="Current laundry machine usage charts for George Mason University's dorms. An experiment by Tyler Hallada.">
|
||||
{% endblock %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="{{ STATIC_URL }}css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{{ STATIC_URL }}css/font-awesome.css" rel="stylesheet">
|
||||
<link href="{{ STATIC_URL }}css/bootstrap-responsive.min.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
|
||||
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
|
||||
<script src="{{ STATIC_URL }}js/laundry.js"></script>
|
||||
<script src="{{ STATIC_URL }}js/jquery.cookie.js"></script>
|
||||
<link href="{{ STATIC_URL }}img/glyphicons-halflings.png" rel="icons">
|
||||
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet">
|
||||
<!-- Creative Commons - Attribution - The Noun Project -->
|
||||
<link href="/favicon.ico" rel="shortcut icon">
|
||||
{% block head-extra %}{% endblock %}
|
||||
</head>
|
||||
{% endblock %}
|
||||
<script>
|
||||
var halls = {
|
||||
{% for h in halls %}
|
||||
"{{ h.0 }}" : {{ h.1 }},
|
||||
{% endfor %}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
background:#000000;
|
||||
}
|
||||
</style>
|
||||
<body class="laundry">
|
||||
<div class="container">
|
||||
<div class="row hall-select-container">
|
||||
<select id="hall-select">
|
||||
{% for h in halls %}
|
||||
{% if h.1 == 1 %}
|
||||
<option selected="selected">{{ h.0 }}</option>
|
||||
{% else %}
|
||||
<option>{{ h.0 }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="row chart-container">
|
||||
<div class="current-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<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-39880341-1', 'hallada.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user