-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
198 lines (167 loc) · 5.99 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
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Vidy</title>
<meta name="theme-color" content="#5792CC">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="blue">
<meta name="apple-mobile-web-app-title" content="Vidy">
<link rel="apple-touch-icon" href="favicon.png">
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="materialize.min.css">
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper dark-primary-colour">
<a class="brand-logo center accent-text-colour">Vidy</a>
<ul id="nav-mobile" class="right">
<li><a class="dropdown" data-activates="more"><i class="material-icons accent-text-colour">more_vert</i></a></li>
</ul>
</div>
</nav>
</div>
<main>
<div class="container">
<ul id="more" class="dropdown-content accent-colour">
<li><a id="authorise" class="primary-text-colour">Authorise</a></li>
<li><a id="refresh" class="primary-text-colour">Refresh</a></li>
<li><a id="feedback" class="primary-text-colour">Feedback</a></li>
<li><a id="about" class="primary-text-colour">About</a></li>
<li><a id="settings" class="primary-text-colour">Settings</a></li>
</ul>
<!-- feedback modal -->
<div id="feedbackmodal" class="modal primary-colour">
<div class="modal-content">
<form>
<center>
<h5>Feedback</h5>
</center>
<p>Please send criticism, bugs or improvements!</p>
<textarea id="feedbackarea" class="materialize-textarea"></textarea>
<p>How would you rate this out of 10?</p>
<p class="range-field">
<input type="range" id="vidyscore" min="0" class="accent-text-colour" max="10" />
</p>
</form>
</div>
<div class="modal-footer dark-primary-colour">
<a id="submit-feedback" class="modal-action waves-effect waves-light btn-flat accent-text-colour">Submit</a>
</div>
</div>
<!-- about modal -->
<div id="aboutmodal" class="modal primary-colour">
<div class="modal-content">
<h4 class="center">About</h4>
<p>
A public video directory for websites built on the SAFE Network with the ability for users to submit videos. The code is designed to readable and showcase some of the features of the SAFE API.
<br>
<br> vidy uses MaterializeCSS and jQuery under the MIT license.
<br>
<br> Part of Joseph's SAFE Project. Check out the topic for this project on the SAFE Network forums <a href="https://safenetforum.org/t/vidy-release-josephs-safe-websites-project/15690">here</a>.
<br>
<br> Check out some of my other projects: Demoy, Chaty, Listy and SAFE API Overview.
<br>
<br>
<center>
By Joseph Meagher
</center>
</p>
</div>
</div>
<!-- settings modal -->
<div id="settingsmodal" class="modal primary-colour">
<div class="modal-content">
<center>
<h5>Settings</h5>
<div id="settings-values">
<div class="row">
<div class="input-field col s12">
<p>
Please select your primary colour:
</p>
<input type="color" id="user-primary-colour" value="#448aff">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<p>
Please select your dark primary colour:
</p>
<input type="color" id="user-dark-primary-colour" value="#1565c0">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<p>
Please select your secondary colour:
</p>
<input type="color" id="user-accent-colour" value="#ffea00">
</div>
</div>
</div>
</center>
</div>
<div class="modal-footer dark-primary-colour">
<a id="edit-config" class="modal-action waves-effect waves-light btn-flat accent-text-colour">Submit</a>
</div>
</div>
<!-- the upload video modal -->
<div id="fileuploadmodal" class="modal modal-fixed-footer">
<div class="modal-content fileuploadmodal">
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<input id="title" type="text" data-length="50" placeholder="Title">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<textarea id="description" class="materialize-textarea" data-length="300" placeholder="Description"></textarea>
</div>
</div>
<div class="file-field input-field">
<div class="btn accent-colour">
<span class="primary-text-colour">Video</span>
<input id="upload-video" accept="video/mp4" type="file">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
</div>
<div id="uploadMessage">
</div>
<div id="modalLoading">
</div>
</form>
</div>
</div>
<div class="modal-footer uploadfooter">
<a id="upload" class="modal-action waves-effect waves-light btn-flat accent-text-colour">Upload Video</a>
</div>
</div>
<!-- list of videos -->
<center>
<div id="mainLoading">
</div>
<div id="videoCards">
<p>It takes a little while to load, good things come to those who wait.</p>
</div>
</center>
</div>
<!-- floating action button -->
<a class="btn-floating btn-large waves-effect waves-light accent-colour fab" data-target="fileuploadmodal">
<i class="material-icons primary-text-colour">file_upload</i>
</a>
<p class="credit">By Joseph Meagher</p>
</main>
<script src="jquery.min.js"></script>
<script src="materialize.min.js"></script>
<script src="main.js"></script>
</body>
</html>