-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (123 loc) · 5.68 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>Snippetor</title>
<meta charset="utf-8">
<!-- CSS. CDN stylesheets -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css">
<!-- CSS. Vendors stylesheets -->
<!-- <link rel="stylesheet" type="text/css" href="./vendor/google/google-code-prettify/prettify.css"> -->
<link rel="stylesheet" href="http://highlightjs.org/static/styles/monokai_sublime.css">
<!-- App. stylesheets -->
<link rel="stylesheet" href="./public/css/style.css">
<!-- JS. CDN Libraries -->
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script>
<!-- JS. Vendors sources -->
<!-- <script type="text/javascript" src="./vendor/google/google-code-prettify/prettify.js"></script> -->
<!-- App sources -->
<script type="text/javascript" src="./public/js/application.js"></script>
<script type="text/javascript" src="./public/js/template.js"></script>
<script type="text/javascript" src="./public/js/controllers/snippets.js"></script>
<script type="text/javascript" src="./public/js/controllers/credits.js"></script>
<script type="text/javascript" src="./public/js/run.js"></script>
</head>
<body>
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header navbar-inverse">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Snippetor</a>
</div>
<div class="collapse navbar-collapse navbar-inverse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="javascript:void(0);" data-trigger="snippet.view">List</a></li>
<li><a href="javascript:void(0);" data-trigger="snippet.add">Add new snippet</a></li>
<li><a href="javascript:void(0);" data-trigger="credits.view">Credits</a></li>
</ul>
</div>
<!-- List snippet page -->
<div class="panel panel-default" data-module="snippet" data-view="view" data-visibility="hidden">
<div class="panel-body"></div>
</div>
<!-- Add snippet page -->
<div class="panel panel-default" data-module="snippet" data-view="add" data-visibility="hidden">
<div class="panel-body"></div>
</div>
<!-- Add snippet page -->
<div class="panel panel-default" data-module="credits" data-view="view" data-visibility="hidden">
<div class="panel-body"></div>
</div>
<!-- Modal tempate -->
<div class="modal fade bs-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-name='snippet.modal'>
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" data-value="description"></h4>
</div>
<div class="modal-body">
<pre><code data-value="code"></code></pre>
</div>
</div>
</div>
</div>
</div>
<!-- Templates will be loaded from here-->
<!-- Snippet row template -->
<div data-template="snippet.norecords" class="template">
<div class="row">
<div class="col-md-12" data-value="author">No records found!</div>
</div>
</div>
<!-- END Snippet row template -->
<!-- No records -->
<div data-template="snippet.view" class="template">
<div class="row">
<div class="col-md-1 glyphicon glyphicon-folder-open" data-trigger="snippet.details" data-id></div>
<div class="col-md-8" title="View snippet" data-value="description" short></div>
<div class="col-md-2" data-value="author"></div>
</div>
</div>
<!-- Snippet Add details -->
<div data-template="snippet.add" class="template">
<form data-form="snippet.save">
<div class="form-group">
<label>Snippet description</label>
<input type="text" class="form-control" placeholder="Snippet description" data-value="description" required>
</div>
<div class="form-group">
<label>Snippet code</label>
<textarea class="form-control" rows="3" placeholder="Snippet code" data-value="code" required></textarea>
</div>
<div class="form-group">
<label>Snippet author</label>
<input type="text" class="form-control" placeholder="Snippet author" data-value="author" required>
</div>
<button type="submit" class="btn btn-default" data-trigger="snippet.save">Submit</button>
</form>
</div>
<!-- END Snippet Add details -->
<!-- Credits view -->
<div data-template="credits.view" class="template">
<div class="row">
<h4>Credits</h4>
<ul class="list-group">
<li class="list-group-item">App name: Snippetor<div data-value="version"></div></li>
<li class="list-group-item">Build time: 16h</li>
<li class="list-group-item">3rd party: Boostrap, Firebase</li>
<li class="list-group-item">Author: Tibi</li>
</ul>
</div>
</div>
<!-- END Snippet details -->
</body>
</html>