forked from smaranjitghose/doc2pen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.html
More file actions
125 lines (118 loc) · 5.3 KB
/
editor.html
File metadata and controls
125 lines (118 loc) · 5.3 KB
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
<!doctype html>
<html lang="en" class="theme-dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Smaranjit Ghose,Anush Bhatia">
<meta name="description" content="Convert your assignments into handwritten ones">
<title>Doc2Pen</title>
<link rel="icon" href="assets/images/logo.png">
<meta property="og:image" content="https://raw.githubusercontent.com/smaranjitghose/guess_the_gibberish/master/assets/images/logo.png?token=ALD3CX6RTK2IBDCFD3PPTRK6XAAEQ" />
<link type="text/css" rel="stylesheet" href="assets/css/materialize.min.css" media="screen,projection"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css">
<link rel="stylesheet" href="assets/css/style.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-142979168-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
</head>
<body>
<nav class="white">
<div class="nav-wrapper">
<a href="index.html" class="brand-logo black-text">Doc2Pen</a>
<a href="#" data-target="mobile-demo" class="sidenav-trigger"><i class="black-text material-icons">menu</i></a>
<ul class="right hide-on-med-and-down">
<li><a class="black-text" href="index.html">Home</a></li>
<li class="active"><a class="black-text" href="editor.html">Editor</a></li>
<li><a class="black-text" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<ul class="sidenav" id="mobile-demo">
<li><a href="index.html">Home</a></li>
<li class="active" ><a href="editor.html">Editor</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<div class="container-fluid dark-light">
<button id="switch" onclick="toggleTheme()">Light</button>
<div class="animation1"></div>
</div>
<center>
<section class="container" id="examples">
<h3 class="title">Write Text</h3>
<form onsubmit="return false">
<div class = "row">
<div class = "input-field col s12">
<i class = "material-icons prefix">mode_edit</i>
<textarea placeholder="Enter the text you want to be written on paper..." id="dataField" onkeyup="myData = this.value" class = "materialize-textarea"></textarea>
<label for = "text">Text</label>
</div>
</div>
<input class="button-primary button-large download-image hidden" type="file" id="pageUploader" onclick="">
<input class="button-primary button-large download-image hidden" type="file" id="fontUploader" onclick="">
<div class="row">
<div class="col m2 offset-m1"><a class="labels blue waves-effect waves-light btn" id="btnPageUpload">Upload Page</a></div>
<div class="col m2"><a class="labels blue waves-effect waves-light btn" onclick="loadPage()">Default Page</a></div>
<div class="col m2"><a class="labels blue waves-effect waves-light btn" onclick="changeFont()">Switch Font</a></div>
<div class="col m2 offset-s1"><a class="labels blue waves-effect waves-light btn" id="btnFontUpload" onclick="uploadFont()">Upload Your Font</a></div>
<div class="col m2"><a class="labels blue waves-effect waves-light btn" onclick="save(str(pageNum++))">Download Page</a></div>
</div>
<div class="row center ">
<div class="col s2 offset-s1">
<label>Adjust X axis</label>
<p class="range-field">
<input type="range" min="1" max="200" value="20" oninput="xaxis=float(this.value)" >
</p>
</div>
<div class="col s2">
<label>Adjust Y axis</label>
<p class="range-field">
<input type="range" min="1" max="200" value="20" oninput="yaxis=float(this.value)" >
</p>
</div>
<div class="col s2">
<label>Font Size</label>
<p class="range-field">
<input type="range" min="1" max="100" value="30" oninput="fontsize=float(this.value)">
</p>
</div>
<div class="col s2">
<label>Width</label>
<p class="range-field">
<input type="range" min="100" max="800" value="700" oninput="w=float(this.value)" >
</p>
</div>
<div class="col s2">
<label>Line Spacing</label>
<p class="range-field">
<input type="range" min="10" max="50" value="30" oninput="linespacing=float(this.value)" >
</p>
</div>
</div>
</form>
<div id="contributing"></div>
</section>
</center>
<footer class="footer">
<section class="container">
<p>Crafted with <a class="btn-floating pulse red"><i class="material-icons">favorite</i></a> by Smaranjit Ghose & Anush Bhatia.</p>
</section>
</footer>
<script src="assets/js/jquery.js" ></script>
<script type="text/javascript" src="assets/js/materialize.min.js"></script>
<script>
$(document).ready(function(){
$('.sidenav').sidenav();
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/js/sketch.js"></script>
</body>
</html>