-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactivity.html
102 lines (98 loc) · 2.32 KB
/
activity.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<html>
<head>
<title>cafe-predicting project</title>
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<!--<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />-->
<script src="jquery/jquery-1.11.2.min.js"></script>
<script src="jquery/jquery-ui.min.js"></script>
<script>
$(function(){
$("#header").load("header.html");
});
$(function(){
$("#menu").load("menu.html");
});
$(function(){
$("#footer").load("footer.html");
});
</script>
</head>
<body>
<div id="header"></div>
<div id="menu"></div>
<div id="main">
<div class="content">
<h2 style="position: absolute; left: 0; right: 0;">Project Activity</h2>
<div id="months">
<h3>January 2016</h3>
<div>
<a id="01292016" href="#" class="entry"></a><!--
-->
</div>
<h3>February 2016</h3>
<div>
<a id="02052016" href="#" class="entry"></a><!--
-->
<a id="02082016" href="#" class="entry"></a><!--
-->
<a id="02092016" href="#" class="entry"></a><!--
-->
<a id="02252016" href="#" class="entry"></a><!--
-->
</div>
<h3>March 2016</h3>
<div>
<a id="03022016" href="#" class="entry"></a><!--
-->
<a id="03032016" href="#" class="entry"></a><!--
-->
<a id="03072016" href="#" class="entry"></a><!--
-->
</div>
<h3>April 2016</h3>
<div>
<p>No entries</p>
</div>
<h3>May 2016</h3>
<div>
<p>No entries</p>
</div>
</div>
<div id="activity-entry">
</div>
</div>
</div>
<div id="footer"></div>
<script>
var currentEntry;
$(document).ready(function() {
$("a").each(function() {
if ($(this).attr('class') == "entry") {
$(this).click(function() {
loadEntry(this);
});
var id = $(this).attr('id');
$(this).text(id.substr(0,2) + "/" + id.substr(2,2) + "/" + id.substr(4,4));
}
});
});
$(function() {
$("#months").accordion({
collapsible:true,
heightStyle:"content",
animate:200
});
});
function loadEntry(el) {
var id = $(el).attr('id');
if (currentEntry != 'undefined') {
$(currentEntry).removeClass("current");
}
$(el).addClass("current");
currentEntry = el;
$("#activity-entry").load("activity-entries/" + id + ".html");
//$("#activity-entry").text(id + ".html");
}
</script>
</body>
</html>