-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 2.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title> Tuck Frump</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular.min.js"></script>
<script src="assets/js/moment.js"></script>
<script src="assets/js/app.js"></script>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body ng-app="eventsApp">
<!-- Shows -->
<section id="shows-section" class="darkgray-bg" style="padding-top: 60px; padding-bottom: 60px;" ng-controller="eventsController">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="heading-text">
<span class="gold-gradient-color">UPCOMING SHOWS</span>
</div>
</div>
</div>
<ul class="events-list list-unstyled row">
<li ng-repeat="event in events" class="list-item col-sm-6 bar-left">
<img src="assets/images/{{ classname_for_date(event.beg) }}.png" ng-class="classname_for_date(event.beg)" />
<span class="what" ng-click="more_info_or_go_there(event.where)" ng-bind="event.what"></span>
<span class="why" ng-bind="event.why"></span>
<div class="when">
<span class="date">{{ event.beg | date: "EEEE, MMMM d, yyyy" }}</span>
<span class="beg">{{ event.beg | date: "h:mma" }}</span>
-
<span class="fin">{{ event.fin | date: "h:mma" }}</span>
</div>
<span class="where" ng-click="go_there(event.where)" ng-bind="event.where.split(',')[0]"></span>
<span class="map-link" ng-click="go_there(event.where)">(directions)</span>
</li>
</ul>
</div>
</section>
<iframe src="https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffffff&ctz=America%2FLos_Angeles&src=Y19oM3ZncDBoajM1OGVqM2V0bm84bmE0OHY2b0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&src=b3B1c2xvZ2ljYS5jb21fYXI5bHMxc2podWo3NWhnNW9paG8wcW9zdGdAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ&src=Y2hpbGxwb2ludGJhbmQuY29tX3Fqbm50ZTJhamN2ZGs1ZjZiNWZqcXQ3Y29nQGdyb3VwLmNhbGVuZGFyLmdvb2dsZS5jb20&color=%237CB342&color=%23A79B8E&color=%23E67C73" style="border:solid 1px #777" width="800" height="600" frameborder="0" scrolling="no"></iframe>
<section>
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<p> Number of days I've lived without a problem involving an illegal immigrant: <span id="days"></span>. And counting...</p>
</div>
</div>
</div>
</section>
<script>
var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
var firstDate = new Date(1959,12,11);
var secondDate = new Date();
var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay)));
var elt = document.getElementById("days");
elt.innerHTML = "" + new Intl.NumberFormat().format(diffDays);
</script>
</body>
</html>