-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·163 lines (144 loc) · 7.32 KB
/
index.html
File metadata and controls
executable file
·163 lines (144 loc) · 7.32 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ChartBlocks Dashboard</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdn.embed.ly/jquery.embedly-3.1.1.min.js" type="text/javascript"></script>
<script src="js/markdown.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/renderer.js"></script>
<link rel="stylesheet" href="css/render.css" />
<script type="text/javascript" src="js/editor.js"></script><!-- EDITOR:LINE -->
<link rel="stylesheet" href="css/edit.css" /><!-- EDITOR:LINE -->
<script type="text/javascript">
$(document).ready(function () {
$('#dashboard').cbDashboard();
$('#dashboard').cbDashboardEdit(); // EDITOR:LINE
$('#addRow').on('click', function () { // EDITOR:LINE
$('#dashboard').trigger('add'); // EDITOR:LINE
}); // EDITOR:LINE
});
</script>
</head>
<body class="application">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<a class="logo" href="#"><img src="img/logo.png"></a>
</div>
<a href="#" class="btn btn-primary download editor" download="index.html"><span class="glyphicon glyphicon-download-alt"></span> Download</a>
</div>
<div id="dashboard">
<div class="row">
<div class="col" data-shape="large-rectangle">
<div class="box"></div>
</div>
<div class="col" data-shape="medium-square">
<div class="box"></div>
</div>
</div>
</div>
<div id="addRow" class="rowAction editor">
<span><span class="glyphicon glyphicon-plus"></span> Add another row</span>
</div>
<div id="rowModal" class="modal fade editor">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Add row</h4>
</div>
<div class="modal-body">
<p>Choose a layout</p>
<div class="layouts">
<div class="option">
<div class="layout" data-layout="rec-sq">
<svg width="77px" height="40px">
<rect width="77px" height="40px"/>
</svg>
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
</div>
</div>
<div class="option">
<div class="layout" data-layout="sq-sq-sq">
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
</div>
</div>
<div class="option">
<div class="layout" data-layout="lsq-sq-sq">
<svg width="75px" height="85px">
<rect width="75px" height="85px"/>
</svg>
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
<svg width="35px" height="40px">
<rect width="35px" height="40px"/>
</svg>
</div>
</div>
<div class="option">
<div class="layout" data-layout="lrec">
<svg width="115px" height="40px">
<rect width="115px" height="40px"/>
</svg>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="columnModal" class="modal fade editor">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Edit content</h4>
</div>
<div class="modal-body">
<p>Enter the content of this grid below. Use any supported Embed.ly URL to include rich content, or use markdown
syntax for static text.</p>
<textarea class="content"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary save">Save changes</button>
</div>
</div>
</div>
</div>
<div id="deleteRowTemplate" class="template">
<div class="row rowAction deleteRow editor">
<span><span class="glyphicon glyphicon-remove"></span> Delete row above</span>
</div>
</div>
<footer>
<div class="row">
<div class="col col-md-12">
<hr>
<p>© ChartBlocks 2014</p>
</div>
</div>
</footer>
</body>
</html>