-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
836 lines (825 loc) · 24 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
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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
<!DOCTYPE html>
<html lang="en">
<head>
<title>SIGIT</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
body{
overflow: hidden;
background: black;
width: 100%;
height: 100vh;
}
.bg{
width: 100%;
height: 100vh;
position: absolute;
z-index: -1;
}
.ubuntu{
background: linear-gradient(to left,#8942A8,#BA382F);
opacity: 0;
}
.dawn{
background: linear-gradient(0deg, rgba(133,26,0,1) 3%, rgba(255,51,0,1) 19%, rgba(181,103,47,1) 45%, rgba(52,142,200,1) 100%);
opacity: 0;
}
.morning{
background: linear-gradient(0deg, rgba(255,230,113,1) 0%, rgba(82,167,255,1) 100%);
opacity: 0;
}
.noon{
background: linear-gradient(0deg, rgba(22,183,255,1) 0%, rgba(14,116,223,1) 58%, rgba(1,7,170,1) 100%);
opacity: 0;
}
.afternoon{
background: linear-gradient(0deg, rgba(161,133,255,1) 0%, rgba(0,118,226,1) 61%, rgba(1,81,170,1) 100%);
opacity: 0;
}
.sunset{
background: linear-gradient(0deg, rgba(195,75,42,1) 0%, rgba(129,29,121,1) 8%, rgba(89,1,170,1) 29%, rgba(1,5,79,1) 90%);
opacity: 0;
}
.evening{
background: linear-gradient(0deg, rgba(0,7,128,1) 0%, rgba(0,3,54,1) 100%);
opacity: 0;
}
.midnight{
background: linear-gradient(0deg, rgba(0,3,60,1) 0%, rgba(0,0,0,1) 100%);
opacity: 0;
}
.red{
background: linear-gradient(90deg, rgba(255,0,255,1) 0%, rgba(255,0,0,1) 50%, rgba(255,255,0,1) 100%);
opacity: 0;
}
.green{
background: linear-gradient(90deg, rgba(255,255,0,1) 0%, rgba(0,255,0,1) 50%, rgba(0,255,255,1) 100%);
opacity: 0;
}
.blue{
background: linear-gradient(90deg, rgba(0,255,255,1) 0%, rgba(0,0,255,1) 50%, rgba(255,0,255,1) 100%);
opacity: 0;
}
.jam,.ucapan,.quotes{
margin: 0px;
padding: 0px;
position: absolute;
color: #fff;
transition: all 5s ease, color 1s ease;
}
.jam{
opacity: 0;
font-size: 100pt;
left: 50%;
bottom: 50%;
transform: translate(-50%,calc(50% - 0px));
}
.ucapan{
font-size: 25pt;
left: 50%;
bottom: 50%;
text-align: center;
transform: translate(-50%,calc(50% + 100px));
}
.quotes{
left: 50%;
bottom: 0;
transform: translate(-50%,0%);
text-align: center;
font-size: 15pt;
text-shadow: 0px 0px 10px #000;
}
.kontrol{
margin: 20px;
background: #fff;
padding: 20px;
position: absolute;
width: 200px;
border-radius: 10px;
left: -220px;
transition: all 1 ease;
z-index: 99;
}
.panah{
content: '';
width: 20px;
height: 20px;
position: absolute;
top: calc(50% - 10px);
right: -30px;
border: 5px solid white;
border-bottom: none;
border-left: none;
border-radius: 5px;
border-top-left-radius: 3px;
border-bottom-right-radius: 3px;
transform: rotate(45deg);
z-index: 50;
}
.kotak{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
}
.kotak li{
position: absolute;
display: block;
list-style: none;
width: 25px;
height: 25px;
background: rgba(255,255,255,0.2);
animation: animate 20s linear infinite;
bottom: -150px;
transition: all 1s ease;
}
.kotak li:nth-child(1){
left: 86%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.kotak li:nth-child(2){
left: 12%;
width: 30px;
height: 30px;
animation-delay: 1.5s;
animation-duration: 10s;
}
.kotak li:nth-child(3){
left: 70%;
width: 100px;
height: 100px;
animation-delay: 5.5s;
}
.kotak li:nth-child(4){
left: 42%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 15s;
}
.kotak li:nth-child(5){
left: 15%;
width: 110px;
height: 110px;
animation-delay: 3.5s;
}
.bulat{
position: absolute;
width: 600px;
height: 600px;
display: flex;
left:50%;
bottom: 50%;
transform: translate(-50%,50%) scale(0);
transition: 3s all ease;
}
.bulat span:nth-child(1){
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate2 6s linear infinite;
}
.bulat span:nth-child(2){
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate3 4s linear infinite;
}
.bulat span:nth-child(3){
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 5px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate2 10s linear infinite;
}
@keyframes animate{
0%{
transform: translateY(0) rotate(0deg);
opacity: 1;
}
100%{
transform: translateY(-100vh) rotate(360deg);
opacity: 0;
}
}
@keyframes animate2{
0%{
transform:rotate(0deg);
}
100%{
transform:rotate(360deg);
}
}
@keyframes animate3{
0%{
transform:rotate(360deg);
}
100%{
transform:rotate(0deg);
}
}
@media only screen and (max-width: 900px), screen and (max-height: 700px) {
.jam,.ucapan{
transition: all 1s ease;
}
.jam{
font-size: 50pt;
transform: translate(-50%,calc(50% - 0px));
}
.ucapan{
font-size: 15pt;
transform: translate(-50%,calc(50% + 50px));
}
.quotes{
font-size: 10pt;
}
.bulat{
width: 300px;
height: 300px;
}
}
@media only screen and (max-width: 500px){
.ucapan{
font-size: 10pt;
}
.quotes{
font-size: 5pt;
}
}
</style>
</head>
<body onload="init_auto()">
<div class="kontrol">
<div class="panah"></div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio0" name="example1" checked>
<label class="custom-control-label" for="customRadio0">Time Based</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio1" name="example1">
<label class="custom-control-label" for="customRadio1">Ubuntu Style</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio2" name="example1">
<label class="custom-control-label" for="customRadio2">Dawn</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio3" name="example1">
<label class="custom-control-label" for="customRadio3">Morning</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio4" name="example1">
<label class="custom-control-label" for="customRadio4">Noon</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio5" name="example1">
<label class="custom-control-label" for="customRadio5">Afternoon</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio6" name="example1">
<label class="custom-control-label" for="customRadio6">Sunset</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio7" name="example1">
<label class="custom-control-label" for="customRadio7">Evening</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio8" name="example1">
<label class="custom-control-label" for="customRadio8">Midnight</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customRadio9" name="example1">
<label class="custom-control-label" for="customRadio9">RGB Gaming :v</label>
</div>
</div>
<div class="bg ubuntu"></div>
<div class="bg dawn"></div>
<div class="bg morning"></div>
<div class="bg noon"></div>
<div class="bg afternoon"></div>
<div class="bg sunset"></div>
<div class="bg evening"></div>
<div class="bg midnight"></div>
<div class="bg red"></div>
<div class="bg green"></div>
<div class="bg blue"></div>
<div class="container">
<div class="quotes">
<p id="quotation"></p>
<p id="source"></p>
</div>
<ul class="kotak">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="bulat">
<span></span>
<span></span>
<span></span>
</div>
<div class="jam" id="time">
00:00:00
</div>
<div class="ucapan" id="quote">
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script type="text/javascript">
gaming=false;
tombol=false;
$(".panah").click(function(){
if (tombol==false){
$(".panah").css("transform","rotate(225deg)");
$(".kontrol").animate({left: "0px"});
tombol=true;
}else if (tombol==true){
$(".panah").css("transform","rotate(45deg)");
$(".kontrol").animate({left: "-220px"});
tombol=false;
}
});
auto=true;
cek=false;
$(".kontrol").click(function(){
gaming=false;
if($("#customRadio0").prop('checked')){
if(!cek){
init_auto();
}
auto=true;
cek=true;
}
else{
auto=false;
cek=false;
}
if($("#customRadio1").prop('checked')){
ubuntu();
}
else if($("#customRadio2").prop('checked')){
dawn();
}
else if($("#customRadio3").prop('checked')){
morning();
}
else if($("#customRadio4").prop('checked')){
noon();
}
else if($("#customRadio5").prop('checked')){
afternoon();
}
else if($("#customRadio6").prop('checked')){
sunset();
}
else if($("#customRadio7").prop('checked')){
evening();
}
else if($("#customRadio8").prop('checked')){
midnight();
}
else if($("#customRadio9").prop('checked')){
gaming1();
gaming=true;
}
if (gaming==false){
nofill();
}
});
function ubuntu(){
$(".ubuntu").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
white();
}
function dawn(){
$(".dawn").animate({opacity:"1"},1000);
$(".ubuntu").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
black();
}
function morning(){
$(".morning").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".ubuntu").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
black();
}
function noon(){
$(".noon").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".ubuntu").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
black();
}
function afternoon(){
$(".afternoon").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".ubuntu").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
black();
}
function sunset(){
$(".sunset").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".ubuntu").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".evening").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
white();
}
function evening(){
$(".evening").animate({opacity:"1"},1000);
$(".dawn").animate({opacity:"0"},500);
$(".ubuntu").animate({opacity:"0"},500);
$(".morning").animate({opacity:"0"},500);
$(".noon").animate({opacity:"0"},500);
$(".afternoon").animate({opacity:"0"},500);
$(".sunset").animate({opacity:"0"},500);
$(".midnight").animate({opacity:"0"},500);
$(".red").animate({opacity:"0"},500);
$(".green").animate({opacity:"0"},500);
$(".blue").animate({opacity:"0"},500);
white();
}
function midnight(){
$(".midnight").animate({opacity:"1"},2000);
$(".dawn").animate({opacity:"0"},2000);
$(".ubuntu").animate({opacity:"0"},2000);
$(".morning").animate({opacity:"0"},2000);
$(".noon").animate({opacity:"0"},2000);
$(".afternoon").animate({opacity:"0"},2000);
$(".sunset").animate({opacity:"0"},2000);
$(".evening").animate({opacity:"0"},2000);
$(".red").animate({opacity:"0"},2000);
$(".green").animate({opacity:"0"},2000);
$(".blue").animate({opacity:"0"},2000);
white();
}
function red(){
white();
$(".jam").css("color","#F00");
$(".ucapan").css("color","#F00");
$(".bulat span").css("border-color","#F00");
$(".kotak li").css("background","#000");
$(".red").animate({opacity:"1"},2000);
$(".midnight").animate({opacity:"0"},2000);
$(".dawn").animate({opacity:"0"},2000);
$(".ubuntu").animate({opacity:"0"},2000);
$(".morning").animate({opacity:"0"},2000);
$(".noon").animate({opacity:"0"},2000);
$(".afternoon").animate({opacity:"0"},2000);
$(".sunset").animate({opacity:"0"},2000);
$(".evening").animate({opacity:"0"},2000);
$(".green").animate({opacity:"0"},2000);
$(".blue").animate({opacity:"0"},2000);
}
function green(){
white();
$(".jam").css("color","#0F0");
$(".ucapan").css("color","#0F0");
$(".bulat span").css("border-color","#0F0");
$(".kotak li").css("background","#000");
$(".green").animate({opacity:"1"},2000);
$(".midnight").animate({opacity:"0"},2000);
$(".dawn").animate({opacity:"0"},2000);
$(".ubuntu").animate({opacity:"0"},2000);
$(".morning").animate({opacity:"0"},2000);
$(".noon").animate({opacity:"0"},2000);
$(".afternoon").animate({opacity:"0"},2000);
$(".sunset").animate({opacity:"0"},2000);
$(".evening").animate({opacity:"0"},2000);
$(".red").animate({opacity:"0"},2000);
$(".blue").animate({opacity:"0"},2000);
}
function blue(){
white();
$(".jam").css("color","#00F");
$(".ucapan").css("color","#00F");
$(".bulat span").css("border-color","#00F");
$(".kotak li").css("background","#000");
$(".blue").animate({opacity:"1"},2000);
$(".midnight").animate({opacity:"0"},2000);
$(".dawn").animate({opacity:"0"},2000);
$(".ubuntu").animate({opacity:"0"},2000);
$(".morning").animate({opacity:"0"},2000);
$(".noon").animate({opacity:"0"},2000);
$(".afternoon").animate({opacity:"0"},2000);
$(".sunset").animate({opacity:"0"},2000);
$(".evening").animate({opacity:"0"},2000);
$(".red").animate({opacity:"0"},2000);
$(".green").animate({opacity:"0"},2000);
}
warna=1;
function gaming1(){
if (gaming){
fillblack();
if (warna==1){
red();
}
else if (warna==2) {
green();
}
else if (warna==3) {
blue();
}
warna+=1;
if (warna==4){
warna=1;
}
}
}
setInterval(gaming1, 4000);
function black(){
$(".jam").css("color","#000");
$(".ucapan").css("color","#000");
$(".quotes").css("color","#000");
$(".quotes").css("text-shadow","0px 0px 10px #FFF");
$(".bulat span").css("border-color","#000");
$(".kotak li").css("background","#000");
}
function fillblack(){
$(".bulat span").css("background","#000");
}
function nofill(){
$(".bulat span").css("background","unset");
}
function white(){
$(".jam").css("color","#FFF");
$(".ucapan").css("color","#FFF");
$(".quotes").css("color","#FFF");
$(".quotes").css("text-shadow","0px 0px 10px #000");
$(".bulat span").css("border-color","#FFF");
$(".kotak li").css("background","#FFF");
}
function debug(){
console.log(auto);
}
var txt = 'Hello World!';
var txt2 = 'txt';
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
var H;
var M;
var S;
var starting=true;
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
H=h;
M=m;
S=s;
if (H<5){
txt='Have a Good Night:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<9){
txt='Good Morning You:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<12){
txt='Be Happy Today:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<16){
txt='Good Afternoon Dear:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<19){
txt='Good Afternoon, Take a Rest:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<23){
txt='Good Evening Sweetie:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
else if(H<=24){
txt='Time to Sleep, Good Night:)';
if(txt != txt2 && !starting)
document.getElementById("quote").innerHTML = txt;
txt2=txt;
}
starting=false;
if (auto && m==0 && s==0){
if ((h>23) || (h<4)){
midnight();
}
else if(h<6){
dawn();
}
else if(h<9){
morning();
}
else if(h<17){
noon();
}
else if(h<18){
afternoon();
}
else if(h<19){
sunset();
}
else if(h<23){
evening();
}
}
// add a zero in front of numbers<10
m = checkTime(m);
s = checkTime(s);
document.getElementById('time').innerHTML = h + ":" + m + ":" + s;
t = setTimeout(function() {
startTime()
}, 500);
}
startTime();
function init_auto(){
randomQuote();
if ((H>23) || (H<4)){
midnight();
}
else if(H<6){
dawn();
}
else if(H<9){
morning();
}
else if(H<17){
noon();
}
else if(H<18){
afternoon();
}
else if(H<19){
sunset();
}
else if(H<23){
evening();
}
else{
midnight();
}
}
const quotes = [
{
"quote": "Bila kau tak tahan lelahnya belajar, maka kau harus tahan menanggung perihnya kebodohan",
"source": "Imam Syafi'i"
},
{
"quote": "Just because I carry it all so well doesn't mean it's not heavy",
"source": "Sigit Ardianto"
},
{
"quote": "Semesta memiliki alurnya masing-masing",
"source": "Sigit Ardianto"
},
{
"quote": "You don't lose, You learn",
"source": "Sigit Ardianto"
},
{
"quote": "I own my own life and my own decission",
"source": "Sigit Ardianto"
},
{
"quote": "Every failure, rejection, betrayal should be the reason for you to come back stronger in life by working on goals and achiving them",
"source": "Sigit Ardianto"
},
{
"quote": "Masa lalu dan frustasi merupakan fondasi dasar untuk menciptakan kembali kehidupan baru yang lebih baik",
"source": "Anthony Robbins"
},
{
"quote": "Ada kalimat yang ingin aku dapatkan dari dia tapi aku dapat dari orang lain",
"source": "Sigit Ardianto"
},
{
"quote": "People doesn't want to end their life, they just wanted to end the pain",
"source": "Sigit Ardianto"
},
{
"quote": "Need someone to talk about life, but sitting alone is much better",
"source": "Sigit Ardianto"
},
{
"quote": "Seorang bahagia bukan karena semua benar dalam hidupnya, tapi sikap terhadap hidupnya yang benar",
"source": "Sundar Pichai"
},
{
"quote": "Jika hari ini harus lebih baik darpada hari kemarin dan hari esok lebih baik daripada hari ini maka kelahiranmu adalah hari terburuk yang pernah ada",
"source": "Om Hell"
},
]
setInterval(randomQuote, 60000);
function randomQuote(){
let random = quotes[Math.floor(Math.random() * quotes.length)];
quotation.innerText = `"${random.quote}"`;
source.innerText = random.source;
}
var i = 0;
var speed = 50;
function typeWriter() {
if (i < txt.length) {
var o = (i/txt.length*2);
var o = o.toFixed(0);
var o2 = o-1;
if (o2<0)
o2=0;
var o3 = String(o);
var p = "translate(-50%,50%) scale("+o2+")";
document.getElementById("quote").innerHTML += txt.charAt(i);
i++;
$(".jam").css("opacity",o3);
$(".bulat").css("transform",p).css("opacity",o2);
setTimeout(typeWriter, speed);
}
}
typeWriter();
</script>
</body>
</html>