-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
367 lines (317 loc) · 12.1 KB
/
index.html
File metadata and controls
367 lines (317 loc) · 12.1 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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Tulisno">
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap"
rel="stylesheet">
<title>Tulisno | Web Auto Nulis Tugas</title>
<!--
-->
<!-- Additional CSS Files -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.css">
<link rel="stylesheet" href="assets/css/templatemo-lava.css">
<link rel="stylesheet" href="assets/css/owl-carousel.css">
<style>
@font-face {
font-family: HandwritingCR-2;
src: url(/fonts/HandwritingCR-2.ttf);
}
@media only screen and (max-width: 1140px) {
.welcome-area {
margin-bottom: 50px;
}
}
</style>
</head>
<body>
<!-- ***** Header Area Start ***** -->
<header class="header-area header-sticky background-header">
<div class="container">
<div class="row">
<div class="col-12">
<nav class="main-nav">
<!-- ***** Logo Start ***** -->
<a href="index.html" class="logo">
Tulisno
</a>
<!-- ***** Logo End ***** -->
<!-- ***** Menu Start ***** -->
<ul class="nav">
<li class="scroll-to-section"><a href="#welcome" class="menu-item">Home</a></li>
<li class="scroll-to-section"><a href="#Tulisno" class="menu-item active">Tulisno</a>
</li>
<li class="scroll-to-section"><a href="#contact-us" class="menu-item">Contact Us</a></li>
</ul>
<a class="menu-trigger">
<span>Menu</span>
</a>
<!-- ***** Menu End ***** -->
</nav>
</div>
</div>
</div>
</header>
<!-- ***** Header Area End ***** -->
<!-- ***** Welcome Area Start ***** -->
<div class="welcome-area" id="welcome">
<!-- ***** Header Text Start ***** -->
<div class="header-text">
<div class="container">
<div class="row">
<div class="left-text col-lg-6 col-md-12 col-sm-12 col-xs-12"
data-scroll-reveal="enter left move 30px over 0.6s after 0.4s" data-scroll-reveal-id="1"
data-scroll-reveal-initialized="true" data-scroll-reveal-complete="true">
<h1>Tulisno <em>.</em></h1>
<p>Mager mau nulis offline? .
Mending pakai tulisno.
Tulisno merupakan website nulis otomatis bagi kalian yg mager nulis dikertas</p>
<a href="#Tulisno" class="main-button-slider">Start</a>
</div>
</div>
</div>
</div>
<!-- ***** Header Text End ***** -->
</div>
<!-- ***** Welcome Area End ***** -->
<div class="left-image-decor"></div>
<script src="https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.js"></script>
<script>
let bg, font, margin, gap, fontsize = 16;
let txtDate = '',
txtName = '',
txtContent = '';
let fonts = [{
'index': 0,
'name': 'HandwritingCR 2',
'file': 'HandwritingCR-2.ttf'
},
{
'index': 1,
'name': 'Gloria Hallelujah',
'file': 'GloriaHallelujah-Regular.ttf'
},
{
'index': 2,
'name': 'Heart Warming by Situjuh',
'file': 'Heart Warming Font by Situjuh.otf'
},
{
'index': 3,
'name': 'Shadows Into Light',
'file': 'ShadowsIntoLight-Regular.ttf'
}
];
let getFontIndex = () => {
let fontIndex = localStorage.getItem('fontIndex');
if (fontIndex) {
return fonts[fontIndex];
}
return fonts[0];
}
// canvas
function preload() {
}
function setup() {
// ukuran asli gambar 300x441
createCanvas(300 * 2, 447 * 2);
bg = loadImage('/img/folio.jpg');
font = loadFont('/fonts/' + getFontIndex().file);
textFont(font);
textSize(fontsize);
}
function draw() {
// fix_dpi();
background(bg);
margin = 20;
fill(0, 0, 0, 200);
translate(margin - 8, margin * 4);
text(txtName, 0, 0);
text(txtDate, 450, 0);
translate(0, margin + 7);
text(txtContent, 0, 0, 580 /*, 800 */ );
}
document.addEventListener('DOMContentLoaded', (e) => {
let fontSelectEl = document.getElementById('font');
let fontSelectOptionTemplate = (index, name) => {
let _selected = (index == getFontIndex().index) ? 'selected' : '';
return `<option value="${index}" ${_selected}>${name}</option>`;
}
let _temp = '';
fonts.forEach((font, index) => {
_temp += fontSelectOptionTemplate(index, font.name);
});
fontSelectEl.innerHTML = _temp;
});
</script>
<script>
function downloadCanvas(c, filename) {
/// create an "off-screen" anchor tag
var lnk = document.createElement('a'),
e;
/// the key here is to set the download attribute of the a tag
lnk.download = filename;
/// convert canvas content to data-uri for link. When download
/// attribute is set the content pointed to by link will be
/// pushed as "download" in HTML5 capable browsers
lnk.href = c.toDataURL();
/// create a "fake" click-event to trigger the download
if (document.createEvent) {
e = document.createEvent("MouseEvents");
e.initMouseEvent("click", true, true, window,
0, 0, 0, 0, 0, false, false, false,
false, 0, null);
lnk.dispatchEvent(e);
} else if (lnk.fireEvent) {
lnk.fireEvent("onclick");
}
}
function fix_dpi() {
let canvas = document.getElementById('defaultCanvas0');
let dpi = window.devicePixelRatio;
let style = {
height() {
return +getComputedStyle(canvas).getPropertyValue('height').slice(0, -2);
},
width() {
return +getComputedStyle(canvas).getPropertyValue('width').slice(0, -2);
}
}
canvas.setAttribute('width', style.width() * dpi);
canvas.setAttribute('height', style.height() * dpi);
}
</script>
<!-- ***** Features Big Item Start ***** -->
<section class="section" id="Tulisno">
<div class="container">
<div class="row">
<!-- ***** Contact Form Start ***** -->
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="contact-form">
<div class="card-body">
<div class="form-group">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="font">Select Font:</label>
<select class="form-control" id="font"
onchange="localStorage.setItem('fontIndex', this.value);setup()"></select>
</div>
<div class="form-group col-md-6">
<label for="font">Select Book:</label>
<select class="form-control" id="book"
onchange="localStorage.setItem('bookIndex', this.value);setup()"></select>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="date">Hari/Tanggal</label>
<input type="text" class="form-control" id="date" oninput="txtDate = this.value">
</div>
<div class="form-group col-md-6">
<label for="name">Nama</label>
<input type="text" class="form-control" id="name" oninput="txtName = this.value">
</div>
</div>
<div class="form-group">
<label for="comment">Comment:</label>
<textarea class="form-control" id="content" rows="10" oninput="txtContent = this.value"></textarea>
</div>
</div>
<div class="form-group">
<button class="main-button"
onclick="downloadCanvas(document.getElementById('defaultCanvas0'), 'hasil.png')">Download</button>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<main class="paper-container"></main>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ***** Features Big Item End ***** -->
<div class="right-image-decor"></div>
<!-- ***** Footer Start ***** -->
<footer id="contact-us">
<div class="container">
<div class="footer-content">
<div class="row">
<!-- ***** Contact Form Start ***** -->
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="contact-form">
<form id="contact" action="" method="post">
<div class="row">
<div class="col-md-6 col-sm-12">
<fieldset>
<input name="name" type="text" id="name" placeholder="Full Name" required=""
style="background-color: rgba(250,250,250,0.3);">
</fieldset>
</div>
<div class="col-md-6 col-sm-12">
<fieldset>
<input name="email" type="text" id="email" placeholder="E-Mail Address" required=""
style="background-color: rgba(250,250,250,0.3);">
</fieldset>
</div>
<div class="col-lg-12">
<fieldset>
<textarea name="message" rows="6" id="message" placeholder="Your Message" required=""
style="background-color: rgba(250,250,250,0.3);"></textarea>
</fieldset>
</div>
<div class="col-lg-12">
<fieldset>
<button type="submit" id="form-submit" class="main-button">Send Message
Now</button>
</fieldset>
</div>
</div>
</form>
</div>
</div>
<!-- ***** Contact Form End ***** -->
<div class="right-content col-lg-6 col-md-12 col-sm-12">
<h2>More About Tulisno</h2>
<p>Mager mau nulis offline? . Mending pakai tulisno. Tulisno merupakan website nulis otomatis bagi kalian yg mager nulis dikertas
<br><br>If you need this contact form to send email to your inbox, you may follow our <a rel="nofollow"
href="https://www.facebook.com/wilsen.orochi.9" target="_parent">contact</a> page
for more detail.</p>
<ul class="social">
<li><a href="https://www.facebook.com/wilsen.orochi.9" class="d-flex justify-content-center align-items-center"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" class="d-flex justify-content-center align-items-center"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" class="d-flex justify-content-center align-items-center"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#" class="d-flex justify-content-center align-items-center"><i class="fa fa-rss"></i></a></li>
<li><a href="#" class="d-flex justify-content-center align-items-center"><i class="fa fa-dribbble"></i></a></li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="sub-footer">
<p class="love">Made with ❤ hisyam.ardiansyah_</p>
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="assets/js/jquery-2.1.0.min.js"></script>
<!-- Bootstrap -->
<script src="assets/js/popper.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- Plugins -->
<script src="assets/js/owl-carousel.js"></script>
<script src="assets/js/scrollreveal.min.js"></script>
<script src="assets/js/waypoints.min.js"></script>
<script src="assets/js/jquery.counterup.min.js"></script>
<script src="assets/js/imgfix.min.js"></script>
<!-- Global Init -->
<script src="assets/js/custom.js"></script>
</body>
</html>