-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.html
163 lines (136 loc) · 6.63 KB
/
user.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>UserPage</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="/public/css/user_style.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<!--Navigation Bar on Top-->
<nav id="navigationbar">
<span class="open-slide">
<!--Slide bar button-->
<a href="#" onclick="openslidemenu()">
<svg width="30" height="30">
<path d="M0,5 30,5" stroke="#fff"
stroke-width="5"/>
<path d="M0,14 30,14" stroke="#fff"
stroke-width="5"/>
<path d="M0,23 30,23" stroke="#fff"
stroke-width="5"/>
</svg>
</a>
</span>
<!--Links-->
<ul class="navbar-nav">
<li><a href="#"><span id="foss">Foss</span><span id="mec">Mec</span></a></li>
<!--<li id='credits' style='padding-left:10px;'></li>-->
<li><a href="#">How To Use</a></li>
<li><a href="#">Credits</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="/logout" id="logout">Logout</a></li>
</ul>
</nav>
<!--SlideMenu On the Side-->
<div id="slidemenu" class="side-bar">
<a href="#" class="close-btn" onclick="closeslidemenu()">×</a>
<a href="#" id="fossmec"><span id="foss">Foss</span><span id="mec">Mec</span></a>
<a href="#">How To Use</a>
<a href="#">Credits</a>
<a href="#">Contact Us</a>
<a href="/logout">Logout</a>
</div>
<!--Credit Box-->
<div id="creditDiv" class="card-panel teal">
Credits: <span id="credit-value">12</span>
</div>
<!--History Container-->
<div class="container">
<ul class="history-tags" id="history-tags">
</ul>
</div>
<input type="file" action = "http://127.0.0.1:3000/file_upload" method = "POST" id="file-to-upload" accept="application/pdf" />
<div class='row' id="holder">
<div class='col s4'>
<div id="pdf-main-container">
<!--<div id="pdf-loader">Loading document ...</div>-->
<div id="pdf-contents">
<!--dev Tools held here-->
<div class="card-panel" id="holderDiv">
<div id="pdf-meta">
<div id="pdf-buttons">
<a id='pdf-prev' class="waves-effect waves-light btn teal"><i class="material-icons">arrow_back</i>Previous</a>
<a id='pdf-next' class="waves-effect waves-light btn teal"><i class="material-icons">arrow_forward</i>Next</a>
</div>
</div>
<font color='white' class='btn disabled' id="disabled-btn">
<div id="page-count-container">Page<div id="pdf-current-page"></div> of <div id="pdf-total-pages"></div></div>
</font>
<button type="button" class='btn waves-effect' id='update'>UPDATE</button>
<div class='col s2' id="options-box">
<form class='form' id='pdf-settings'>
<p>
<input name="group1" type="radio" id="color"/>
<label for="color">Color</label>
</p>
<p>
<input name="group1" type="radio" id="bw" checked/>
<label for="bw">Black & White</label>
</p>
Numer of copies
<div class="input-field">
<input id="copies" type="text" name='copies' value='1' />
<label for="copies"></label>
</div>
From
<div class="input-field">
<input id="from" type="text" name='from' value='1' />
<label for="from"></label>
</div>
To
<div class="input-field">
<input id="to" type="text" name='to' value='1' />
<label for="to"></label>
</div>
</form>
</div>
</div>
<!--PDF Canvas-->
<div id="outerCanvas">
<canvas id="pdf-canvas"></canvas>
<button class="btn-floating green btn-large" id="upload"><i class="material-icons">publish</i></button>
</div>
<div id="page-loader">Loading page ...</div>
<!-- <button class="btn-floating green btn-large" id="upload"><i class="material-icons">publish</i></button>-->
<input type="submit" class='btn waves-effect' value="UPLOAD" id='submit' name="PDF"> </div>
</div>
</div>
</div>
<!--Pdf upload floating Button-->
<a id='upload-button' class="btn-floating btn-large waves-effect waves-light teal "><i class="material-icons">add</i></a>
<!--Javascript-->
<script>
var a = 0;
function openslidemenu(){
document.getElementById("slidemenu").style.width="250px";
}
function closeslidemenu(){
document.getElementById("slidemenu").style.width="0px";
}
$('#update').click(function(){
$('#options-box').fadeToggle(800);
});
$("#upload").click(function(){
$('#submit').click();
});
</script>
</body>
<script src="/public/js/userjs.js"></script>
<script src="/public/js/pdf.js"></script>
<script src="/public/js/pdf.worker.js"></script>
<script src="/public/js/pdf_edit.js"></script>
</html>