-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (54 loc) · 1.91 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
<!DOCTYPE html>
<html ng-app="todoApp">
<head>
<title></title>
<link rel="stylesheet" href="www/stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="www/stylesheets/style.css">
<script src="www/javascripts/jquery.min.js"></script>
<script src="www/javascripts/angular.min.js"></script>
<script src="www/javascripts/Controllers/mainCtrl.js"></script>
<script>
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
var months = ['January','February','March','April','May','June','July','August','September','October','November','December'];
$(document).ready(function(){
$('#error').hide();
var date = new Date();
var day = days[date.getDay()];
var month = months[date.getMonth()];
var date = date.getDate();
var th = (date == 1) ? 'st' : 'th';
th = (date == 2) ? 'nd' : th;
th = (date == 3) ? 'rd' : th;
var title = day + '<br/><small>' + month + ' ' + date + th + '</small>';
$('#header').html(title);
});
</script>
</head>
<body>
<div class="container">
<div class="page-header">
<h1 id="header"></h1>
</div>
<p class="bg-danger" id="error"></p>
<div ng-controller="mainCtrl" class="div">
<div ng-repeat="todo in todos" class="div unstyled">
<div class="bs-callout">
<h4>{{todo.name}}</h4>
<p>{{todo.desc}}</p>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<p class="text-muted">
<center>
Built with <a href="http://getbootstrap.com/" target="_blank">Bootstrap</a> and
<a href="https://angularjs.org/" target="_blank">Angular</a>.
</p>
</center>
</div>
</div>
<script src="www/javascripts/clickfunc.js"></script>
</body>
</html>