-
Notifications
You must be signed in to change notification settings - Fork 1
/
sandbox.html
75 lines (65 loc) · 2.73 KB
/
sandbox.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
<!doctype html>
<html>
<head>
<title>DocSight</title>
<script src="api/jquery-1.7.2.min.js"></script>
<script src="api/knockout-2.1.0.js"></script>
<script src="api/moment.2.0.0.min.js"></script>
<script src="api/FileSaver.js"></script>
<script src="js/convert2RegExp.js"></script>
<script src="js/filterpresets.js"></script>
<script src="js/models.js"></script>
<script src="js/startup.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap.css" />
<link rel="stylesheet" type="text/css" href="docsight.css" />
<link rel="stylesheet" type="text/css" href="font-awesome.min.css" />
</head>
<body>
<!-- http://aboutcode.net/2013/01/06/knockout-chrome-extension.html -->
<!-- <iframe src="sandbox.html" id="app" seamless></iframe> -->
<div class="navbar">
<div class="navbar-inner">
<a class="brand" target="#" href="https://github.com/chrisparnin/docsight">Doc Sight</a>
<div id="buttonToolbar">
<a id="fiveDayBtn" class="btn btn-success btn-large" href="#">5 days</a>
<a id="oneMonthBtn" class="btn btn-success btn-large" href="#">1 month</a>
<a id="threeMonthBtn" class="btn btn-success btn-large" href="#">3 month</a>
<a id="iconCloudBtn" class="btn btn-warning btn-large" href="#">Icon Cloud</a>
<a id="titleViewBtn" style="display:none" class="btn btn-warning btn-large" href="#">Title View</a>
<a id="exportBtn" class="btn btn-warning btn-large " href="#">Export</a>
<a id="menuBtn" class="btn btn-info btn-large" href="options.html" target="#"><i class="icon-reorder"></i></a>
</div>
</div>
</div>
<div>
</div>
<div id="preamble">
<em>Developer resources used in the past - <span data-bind="text:dayRange"></span> days.</em>
</div>
<!-- http://stackoverflow.com/questions/11553999/knockout-js-if-else-bindings?rq=1 -->
<div id="cloudContainer" data-bind="if: iconCloudView">
<div data-bind="foreach: stores">
<span data-bind="if: needsDateHeader">
<div class="dateHeader" data-bind="text: friendlyDate()"></div>
</span>
<span class="iconContainer"><a class="iconHref" target="#" data-bind="attr: {href:url, class: classKind}"></a></span>
</div>
</div>
<div data-bind="ifnot: iconCloudView">
<ul data-bind="foreach: stores">
<li class="visitItem">
<div data-bind="if: needsDateHeader">
<div class="dateHeader" data-bind="text: friendlyDate()"></div>
</div>
<div data-bind="if: spacer">
<div class="divider"></div>
</div>
<div class="visitSection">
<span class="visitTime" data-bind="text: friendlyTime()"></span>
<span class="title"><a target="#" data-bind="text: title, attr: {href:url, class: classKind}"></a></span>
</div>
</li>
</ul>
</div>
</body>
</html>