This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
189 lines (173 loc) · 9.75 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta content="text/html" charset="utf-8">
<title>SlidePanel Creator</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="assets/slidepanel.css" />
<link rel="stylesheet" type="text/css" href="assets/app.css" />
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/">SlidePanels</a>
<ul class="nav">
<li class="active">
<a href="#">Build a Slideshow</a>
</li>
<li><a href="example.html">Example</a></li>
<li><a href="https://github.com/zenovations/slidepanels#readme">Install</a></li>
<li><a href="https://github.com/zenovations/slidepanels">GitHub</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span12">
<div class="well hideable" id="instructionsWell">
<a href="#" class="hider pull-right"><i class="icon-fullscreen pull-right"></i></a>
<h5 class="hider">Instructions</h5>
<p>For detailed instructions on installation and usage, <a href="https://github.com/zenovations/slidepanels/#readme">view the README on GitHub</a>.</p>
<p>This tool creates sliding content panels with associated tabs.</p>
<p>The panel content can be any HTML code you like. The tabs are sprite images (see README for more).</p>
</div>
</div>
</div>
<div class="row">
<div class="span12">
<form class="well form-horizontal hideable" id="configForm">
<a href="#" class="hider pull-right"><i class="icon-fullscreen pull-right"></i></a>
<h5 class="hider">Config Options</h5>
<fieldset><legend>Panel</legend>
<label><span>width:</span><input type="text" class="input-small" data-bind='value: panelWidth' /></label>
<label><span>height:</span><input type="text" class="input-small" data-bind='value: panelHeight' /></label>
</fieldset>
<fieldset><legend>Tab</legend>
<label><span>width:</span><input type="text" class="input-small" data-bind='value: tabWidth' /></label>
<label><span>height:</span><input type="text" class="input-small" data-bind='value: tabHeight' /></label>
</fieldset>
<fieldset><legend>Tab Border</legend>
<label ><span>between:</span> <input type="text" class="input-mini" data-bind='value: tabBorderY' /></label>
<label><span>left:</span><input type="text" class="input-mini" data-bind='value: tabBorderX' /></label>
<label><span>color:</span><input type="text" class="input-small" data-bind='value: tabBorderColor' /></label>
<!--<label><span>inner:</span><input type="checkbox" data-bind='checked: tabBorderInner' /></label>-->
</fieldset>
<fieldset><legend>Layout</legend>
<div><b>tabs on:</b></div>
<ul>
<li><label><input type="radio" name="positionGroup" value="left" data-bind='checked: position' /><span>left</span></label></li>
<li><label><input type="radio" name="positionGroup" value="right" data-bind='checked: position' /><span>right</span></label></li>
<li><label><input type="radio" name="positionGroup" value="top" data-bind='checked: position' /><span>top</span></label></li>
<li><label><input type="radio" name="positionGroup" value="bottom" data-bind='checked: position' /><span>bottom</span></label></li>
</ul>
<div><b>activate on:</b></div>
<ul>
<li><label><input type="radio" name="activeGroup" value="hover" data-bind='checked: activateMethod' /><span>hover</span></label></li>
<li><label><input type="radio" name="activeGroup" value="click" data-bind='checked: activateMethod' /><span>click</span></label></li>
</ul>
</fieldset>
<br style="clear:both" />
</form>
</div>
</div>
<div class="row">
<div class="span6">
<h4>Panels</h4>
<form data-bind="submit: addRow" class="form-vertical">
<fieldset>
<div class="control-group">
<label class="control-label" for="imageUrl">New Tab Image</label>
<div class="controls">
<input type="text" name="imageUrl" id="imageUrl" class="span6" value="" placeholder="images/kitten1.jpg" />
<p class="help-block">Local images are relative to this html file; you may use remote images too (http://site.com/images/kitten1.jpg)</p>
</div>
<label class="control-label" for="imageUrl">New Panel Content</label>
<div class="controls">
<textarea name="tabContent" id="tabContent" cols=10 rows=5 class="span6"></textarea>
</div>
</div>
</fieldset>
<div class="container">
<div class="row">
<div class="span2">
<button class="btn btn-primary" id="addPanelButton"><i class="icon-plus icon-white"></i> Add New Panel</button>
</div>
<div class="span4">
<button class="btn btn-danger btn-small pull-right" data-bind="click: removeAll">Start Over</button>
<button class="btn btn-success btn-small pull-right shim-right" href="#" id="exampleTrigger">Load Example</button>
</div>
</div>
</div>
</form>
<table class="table table-condensed table-bordered table-striped" data-bind="visible: tabs().length > 0">
<thead>
<tr><th>#</th><th>image</th><th> </th></tr>
</thead>
<tbody data-bind="foreach: tabs">
<tr>
<td data-bind="text: $index()+1"></td>
<td data-bind="text: url"></td>
<td>
<a class="btn" href="#" data-bind="click: $parent.deleteRow"><i class="icon-remove"></i></a>
<a class="btn" href="#" data-bind="click: $parent.moveUp"><i class="icon-circle-arrow-up"></i></a>
<a class="btn" href="#" data-bind="click: $parent.moveDown"><i class="icon-circle-arrow-down"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span6">
<h4>Preview</h4>
<div id="previewPane" data-bind="slidePanel: panelRedraw()"></div>
</div>
</div>
<div class="row">
<div class="span12">
<h4 id="codeTitleThing">Code <a id="clippy" class="btn btn-mini"></a></h4>
<pre data-bind="text: code"></pre>
</div>
</div>
</div>
<script type="text/html" id="slide-panel-template">
<div data-bind='attr: {class: panelClass()}'>
<div class="links innerBorder" data-bind='foreach: tabs, attr: {style: $root.tabGroupStyle()}'><!--
--><a href="#" data-bind='attr: {style: $root.tabStyle($index())}'><img data-bind="attr: {src: url, width: $root.tabWidth(), height: $root.tabHeight()*2}" /></a></div>
<!-- This style="..." attribute determines the size of the panels -->
<div class="panelWrapper" data-bind="attr: {style: panelWrapperStyle()}">
<div class="panelContainer" data-bind="foreach: tabs">
<div class="panel" data-bind="html: content"></div>
</div>
</div>
</div>
</script>
<script type="text/html" id="slide-panel-template-bottom">
<div data-bind='attr: {class: panelClass()}'>
<!-- This style="..." attribute determines the size of the panels -->
<div class="panelWrapper" data-bind="attr: {style: panelWrapperStyle()}">
<div class="panelContainer" data-bind="foreach: tabs">
<div class="panel" data-bind="html: content"></div>
</div>
</div>
<div class="links innerBorder" data-bind='foreach: tabs, attr: {style: $root.tabGroupStyle()}'><!--
--><a href="#" data-bind='attr: {style: $root.tabStyle($index())}'><img data-bind="attr: {src: url, width: $root.tabWidth(), height: $root.tabHeight()*2}" /></a></div>
</div>
</script>
<script type="text/html" id="modal">
</script>
<script type="text/javascript" src="lib/js/normalizeconsole.js"></script>
<script type="text/javascript" src="lib/js/json2.js"></script>
<script type="text/javascript" src="assets/zeroclip/ZeroClipboard.js"></script>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<script type='text/javascript' src='lib/bootstrap/js/bootstrap.js'></script>
<script type='text/javascript' src='lib/knockout/knockout.js'></script>
<!--<script type='text/javascript' src='lib/bootstrap/js/bootstrap.js'></script>-->
<script type='text/javascript' src='assets/slidepanel.js'></script>
<script type='text/javascript' src='assets/app.js'></script>
</body>
</html>