-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·169 lines (161 loc) · 10.7 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
<!doctype HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Public Books</title>
<script src="js/mootools-core.js" type="text/javascript"></script>
<script src="js/mootools-more.js" type="text/javascript"></script>
<script src="js/cookie.js"></script>
<script src="js/main.js"></script>
<link href="css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
window.addEvent('domready', function() {
bookDetailHide();
uploadFileHide();
uploadUrlHide();
saveFileShow();
errorShow();
libraryShow();
});
</script>
</head>
<body>
<div>
<div id="outerContainer">
<div class="toolbar">
<div id="toolbarLeft">
<button onclick="gotoPublic()">Public</button>
</div>
<div id="toolbarRight">
<div>
<button id="upload" title="Upload" onclick="uploadUrlShow()">
Upload
</button>
</div>
<div id="login" title="Login">
<button id="loginButton" onclick="loginShow()"> Login</button>
</div>
<div id="logout" title="logout">
<img id="thumbnail" width="30px" onclick="actionShow()">
<div id="action">
<p id="account" onclick="gotoAccount()">Account</p>
<p onclick="userLogout()">Logout</p>
</div>
</div>
</div>
<div id="toolbarCenter">
My Library
</div>
</div>
<div id="viewerContainer">
<div id="loginWrapper">
<button class="closeButton" onclick="loginHide()"></button>
<br>
<fieldset>
<legend>Login</legend>
<div style="float:right;">
<input type="text" name="email" placeholder="Email" id="email">
<input type="password" name="password" placeholder="Password" id="password">
<button id="confirmLogin" onclick="standardLogin()">Login</button>
<button id="facebook" onclick="fbLogin()"></button>
</div>
<br>
<div style="float:right;font-size:40%">
<input type="checkbox" name="remember" id="remember">Remember me
<a href="forgot.html">Forgot Password</a> or
<a href="register.html">Register</a>
</div>
</fieldset>
</div>
<div id="errorWrapper">
<button class="closeButton" onclick="errorHide()"></button>
<br>
<fieldset>
<legend>Error</legend>
<div id="errormsg"> </div>
</fieldset>
</div>
<div id="uploadurlWrapper">
<button class="closeButton" onclick="uploadUrlHide()"></button>
<br>
<form method="post" action="api/uploadurl.php" enctype="multipart/form-data">
<fieldset>
<legend>Upload Via URL</legend>
<div>
<input name="urlfile" size="30" type="text" placeholder="Upload Via URL"/>
</div>
<div>
<input type="submit" name="submit" value="Upload">
</div>
<a style="float:right;" id="uploadviafile" onclick="uploadFileShow();uploadUrlHide();">or Upload from computer</a>
</fieldset>
</form>
</div>
<div id="uploadfileWrapper">
<button class="closeButton" onclick="uploadFileHide()"></button>
<br>
<form method="post" action="api/uploadfile.php" enctype="multipart/form-data">
<fieldset>
<legend>Upload Files</legend>
<div>
<label for="file">File: </label>
<input type="file" name="file" id="file"><br>
</div>
<div>
<input type="submit" name="submit" value="Upload">
</div>
<a style="float:right;" id="uploadviaurl" onclick="uploadUrlShow();uploadFileHide();">upload via URL</a>
</fieldset>
</form>
</div>
<div id="savefileWrapper">
<button class="closeButton" onclick="saveFileHide()"></button>
<br>
Successfully Uploaded, Please Fill in More Information
<form method="post" action="api/savefile.php">
<fieldset>
<legend>Save File</legend>
<div>
<input type="hidden" name="filename" id="filename">
<input type="hidden" name="cover" id="cover">
<input type="hidden" id="uid" name="uid"/>
<label for="title">Title*: </label>
<input type="text" name="title"><br>
<label for="author">Author: </label>
<input type="text" name="author"><br>
<label for="langauge">Language: </label>
<select name="language"><option value="">Choose a language</option><option value="af">Afrikaans</option><option value="ms">Bahasa Melayu</option><option value="ca">Català</option><option value="cs">Čeština</option><option value="da">Dansk</option><option value="de">Deutsch</option><option value="et">Eesti</option><option value="en_GB">English (United Kingdom)</option><option value="en" selected="">English (United States)</option><option value="es">Español (España)</option><option value="es_419">Español (Latinoamérica)</option><option value="tl">Filipino</option><option value="fr">Français</option><option value="hr">Hrvatski</option><option value="zu">IsiZulu</option><option value="it">Italiano</option><option value="sw">Kiswahili</option><option value="lv">Latviešu</option><option value="lt">Lietuvių</option><option value="hu">Magyar</option><option value="nl">Nederlands</option><option value="no">Norsk</option><option value="pl">Polski</option><option value="pt_BR">Português (Brasil)</option><option value="pt_PT">Português (Portugal)</option><option value="ro">Română</option><option value="sk">Slovenčina</option><option value="sl">Slovenščina</option><option value="fi">Suomi</option><option value="sv">Svenska</option><option value="vi">Tiếng Việt</option><option value="tr">Türkçe</option><option value="el">Ελληνικά</option><option value="be">Беларуская</option><option value="bg">Български</option><option value="ru">Русский</option><option value="sr">Српски</option><option value="uk">Українська</option><option value="am">አማርኛ</option><option value="hi">हिन्दी</option><option value="th">ไทย</option><option value="ko">한국어</option><option value="zh_CN">中文(简体)</option><option value="ja">日本語</option><option value="zh_TW">繁體中文</option></select><br>
<label for="accessibility">Accessibility: </label>
<select name="accessibility">
<option value="public">Public</option>
<option value="friends">Friends</option>
<option value="me">Only Me</option>
</select><br>
<label for="description">Descriptions: </label>
<textarea name="description"></textarea><br>
</div>
<div>
<input type="checkbox" name="tac" value="agree"> I Agree with the <a href="tac.html">Terms and conditions</a>
<input type="submit" name="submit" value="Save">
</div>
</fieldset>
</form>
</div>
<div>
<ul id="books">
</ul>
</div>
<div>
<ul id="bookdetail">
<li id="booktitle"></li>
<li id="bookauthor"></li>
</ul>
</div>
</div>
<div>
</div>
</div>
</div>
</body>
</html>