-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1646 lines (1409 loc) · 66.8 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
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<head>
<meta charset="utf-8">
<title> 繪師進化錄產生器 by RONI</title>
<meta name="google-site-verification" content="4KpHu0apNT0vDVjwgVuUmzz7tzxHGznTatrkphFa56g" />
<meta name="description"
content="繪師進化錄產生器。 繪師進化錄2023,上半年繪師進化錄,下半年繪師進化錄,五年繪師進化錄,歡迎使用。 作為畫師的自己想到每次都要折騰一番,倒不如自己造一個產生器順便練習寫代碼。 本網頁不抓取任何資料,不定時更新。">
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="繪師進化錄產生器 by RONI">
<meta itemprop="image"
content="https://20220816.s3.ap-northeast-3.amazonaws.com/Artist%20motivation%202022/thumb.jpg">
<meta itemprop="description"
content="繪師進化錄產生器。 繪師進化錄2023,上半年繪師進化錄,下半年繪師進化錄,五年繪師進化錄,歡迎使用。 作為畫師的自己想到每次都要折騰一番,倒不如自己造一個產生器順便練習寫代碼。 本網頁不抓取任何資料,不定時更新。">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://ronniechoyy.github.io/artist_evolution_generator/">
<meta property="og:type" content="website">
<meta property="og:title" content="繪師進化錄產生器 by RONI">
<meta property="og:image" itemprop="image"
content="https://20220816.s3.ap-northeast-3.amazonaws.com/Artist%20motivation%202022/thumb.jpg">
<meta property="og:description"
content="繪師進化錄產生器。 繪師進化錄2023,上半年繪師進化錄,下半年繪師進化錄,五年繪師進化錄,歡迎使用。 作為畫師的自己想到每次都要折騰一番,倒不如自己造一個產生器順便練習寫代碼。 本網頁不抓取任何資料,不定時更新。">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url"
content="https://20220816.s3.ap-northeast-3.amazonaws.com/Artist%20motivation%202022/thumb.jpg">
<meta name="twitter:title" content="繪師進化錄產生器 by RONI">
<meta name="twitter:description"
content="繪師進化錄產生器。 繪師進化錄2023,上半年繪師進化錄,下半年繪師進化錄,五年繪師進化錄,歡迎使用。 作為畫師的自己想到每次都要折騰一番,倒不如自己造一個產生器順便練習寫代碼。 本網頁不抓取任何資料,不定時更新。">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TMTDDPGL88"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-TMTDDPGL88');
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100&display=swap" rel="stylesheet"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700&family=Yuji+Mai&display=swap"
rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"
crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.js"
crossorigin="anonymous"></script>
<style>
body {
color: #ffefd0;
font-family: 'Yuji Mai', sans-serif;
background-color: #292623;
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: center;
transition-duration: 0.4s;
}
.nf {
font-family: "Noto Sans JP", sans-serif;
}
.imgbox {
width: 100%;
/*height: calc(100% - 24px);*/
height: 100%;
position: relative;
object-fit: cover;
border-radius: 10px;
border-width: 0px;
/*1.5*/
border-style: solid;
box-sizing: border-box;
/*backface-visibility: hidden;*/
transition-duration: 0.2s;
}
.imgbox:hover {
/*transform: scale(1.2);
transition-duration: 0.5s;*/
}
.textbox
/*input[type="text"]*/
{
text-align: center;
font-size: 50px;
margin: 20px 0px 20px 0px;
width: 100%;
display: inline-block;
font-family: 'Yuji Mai', sans-serif;
background-color: #29262300;
color: #ffefd0;
border: 0;
}
.ipb {
background-color: #29262300;
border-style: solid;
border-radius: 5px;
border-width: 1px;
color: #ffefd0;
text-align: center;
}
.tpb {
color: #a09784;
border-width: 2px;
}
.laybut:hover {
background-color: #534e48;
}
.laybut:focus {
border-width: 3px;
box-sizing: border-box;
}
.addbox {
background-color: #000000;
width: 100%;
/*height: calc(100% - 30px);*/
height: 100%;
position: absolute;
/*margin-top: -270;*/
border-radius: 10px;
opacity: 0;
transition-duration: 0.2s;
}
.addbox:hover {
opacity: 0.8;
}
.addboxin {
text-align: center;
height: 100%;
font-size: 50;
font-family: "Noto Sans JP", sans-serif;
padding-top: 45px;
}
.setting_panels {
/*display: none;*/
/*opacity: 0.2;*/
/*transition-duration: 0.2s;*/
width: 100px;
height: 100px;
background-color: #292623;
border-radius: 50px;
border-width: 1.5px;
border-style: solid;
box-sizing: border-box;
position: fixed;
z-index: 998;
right: 15px;
top: 15px;
padding: 30px;
transition-duration: 0.2s;
overflow: hidden;
transition-delay: 0.5s;
/*opacity: 1;
width: 270px;
height: calc(100% - 350px);
top: 125px;*/
}
.setting_panels2 {
top: 125px;
}
.setting_panels:hover {
opacity: 1;
width: 270px;
height: calc(100% - 350px);
right: 125px;
z-index: 1000;
transition-delay: 0s;
}
.setting_panels2:hover {
opacity: 1;
width: 270px;
height: calc(100% - 461px);
top: 125px;
right: 125px;
}
.settingss {
width: 100px;
height: 100px;
text-align: center;
padding-top: 12px;
background-color: #292623;
border-radius: 100px;
border-width: 1.5px;
border-style: solid;
box-sizing: border-box;
position: fixed;
z-index: 999;
right: 15px;
bottom: 15px;
font-size: 12px;
}
.settingss:hover {
background-color: #534e48;
}
.settingss:hover+.setting_panels {
opacity: 1;
width: 270px;
height: calc(100% - 350px);
right: 125px;
transition-delay: 0s;
}
.settingss2 {
top: 125px;
right: 125px;
height: calc(100% - 461px);
}
.settingss2:hover+.setting_panels2 {
opacity: 1;
width: 270px;
height: calc(100% - 461px);
top: 125px;
right: 125px;
transition-delay: 0s;
}
.settingss3 {
width: 100px;
height: 100px;
text-align: center;
padding-top: 12px;
background-color: #292623;
border-radius: 100px;
border-width: 1.5px;
border-style: solid;
box-sizing: border-box;
position: fixed;
z-index: 999;
right: 15px;
top: 235px;
font-size: 12px;
/*lter: brightness(0.5);*/
transition-duration: 0.2s;
/*width: 500px;*/
}
.settingss3:hover {
width: 500px;
background-color: #a09784;
}
.settingss3:hover .copybut {
opacity: 1;
}
.settingss3:hover .LinkURL {
width: 100%;
opacity: 1;
}
.LinkURL {
border-radius: 80px;
padding-left: 20px;
padding-right: 70px;
height: 100%;
width: 0%;
transition-duration: 0.2s;
opacity: 0;
}
.copybut {
width: 60px;
height: 60px;
top: 5px;
right: 25px;
position: absolute;
background-color: #292623;
border-radius: 100px;
opacity: 0;
transition-duration: 0.2s;
display: flex;
justify-content: center;
flex-direction: column;
}
.copybut:hover {
background-color: #5e564f;
}
.copybut:after {
opacity: 1;
}
/*.copybut:hover::after {
content:
attr(data-descr)
"Copied";
position: absolute;
left: 0;
top: 24px;
min-width: 20px;
border: 1px #aaaaaa solid;
border-radius: 10px;
background-color: #c0c0ad;
padding: 12px;
color: #000000;
font-size: 14px;
z-index: 1;
}*/
.radiobox {
font-size: 15px;
height: 30px;
padding: 2;
text-align: center;
border-width: 1px;
border-style: solid;
border-radius: 25px;
border-color: #534e48;
box-sizing: border-box;
}
.radiobox_radio:checked+label {
border-width: 2px;
border-color: #ffefd0;
}
.colorblock {
height: 20px;
background-color: #a09784;
border-radius: 5px;
border-width: 5px;
border-color: #ffefd0;
border-style: solid;
box-sizing: border-box;
}
.colorblock_radio:checked+label {
outline-style: solid;
outline-color: mistyrose;
outline-offset: 2px;
outline-width: 1px;
}
.slider {
-webkit-appearance: none;
width: 100%;
height: 5px;
margin: 12.5px 0px 12.5px 0px;
background: #b3b3b3;
outline: none;
/*opacity: 0.7;*/
-webkit-transition: .2s;
transition: opacity .2s;
border-radius: 2px;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #ffefd0;
cursor: pointer;
border-radius: 20px;
}
.material-symbols-rounded {
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' 48
}
/*Created by RONI Twitter @_R0NNI*/
</style>
<body style="">
<a id="melink" href="https://twitter.com/_R0NNI"
style="width: 100%;text-decoration: auto;text-align: center;color: antiquewhite; white-space: pre-wrap;margin-bottom: 20px;">Created by RONI Twitter @_R0NNI v2.5</a>
<!--<div
style="width: 100%;height: 100%;position: fixed;/* background-color: #7fffd4; */top: 0;z-index: -1;background-image: url("https://pbs.twimg.com/media/FKR_SQqaQAAixXG?format=jpg&name=900x900");filter: blur(4px) brightness(0.2);">
</div>-->
<div id="capture"
style="width: 650px; height: 1000px; background-color: #292623; border-width: 1.5px; border-style: solid; min-width: 650px; max-width: 650px; min-height: 1000px; max-height: 1000px;display: grid;grid-template-rows: 110px auto;transition-duration: 0.4s;">
<div id="textfield" style="display: flex;flex-direction: column;padding-bottom: 50px;padding: 20px;">
<input class="textbox" id="titn" type="text"
style="text-align: left;font-size: 30px;margin: 20px 0px 20px 0px;width: 100%;display: inline-block;position: relative;white-space:nowrap;"
value="#2022年を振り返る"> </input><!--#2022年を振り返る繪師進化錄 2022-->
<div id="textfield_inner" style="display: flex;position: relative;top: -45px;">
<input class="textbox" type="text" id="summary_eng"
style="text-align: left;font-size: 10px;display: inline-block;" value="20xx Summary">
</input><!--》》請在這裡輸入畫師自己的名字 eg.RONI《《-->
<div id="artistnamepre" style="flex-grow: 1;"></div>
<input class="textbox" type="text" id="artistname"
style="text-align: right;font-size: 15px;display: inline-block;" value="》請輸入畫師自己的名字 Artist Name《">
</input><!--》》請在這裡輸入畫師自己的名字 eg.RONI《《-->
</div>
</div>
<div style="display: grid;grid-template-columns: auto auto auto auto;grid-auto-rows: 1fr; ;column-gap: 10px;row-gap: 10px;/*height: calc(100% - 175px)*/;margin: 20px;min-height: 0px;"
id="boxx">
</div>
</div>
<div id="loading"
style="position: fixed;top: 0;left: 0;height: 100%;width: 100%; background-color: #000000;opacity: 0;display: none;z-index: 1000;">
<div
style="top: 50%; text-align: center; position: relative;font-size: 30px;font-family: 'Noto Sans JP', sans-serif;transition-duration: 0.5s;">
請稍等,圖片生成中。。。</div>
</div>
<div id="savebut" class="settingss nf" style="">
<span class="material-symbols-rounded" style="font-size: 35px;">
save
</span><br />
儲存圖片 <br /> Save image
</div>
<div id="settings" class="settingss nf"
style="width: 100px;height: 100px;text-align: center;padding-top: 12px;background-color: #292623;border-radius: 100px;border-width: 1.5px;border-style: solid;box-sizing: border-box;position: fixed;z-index: 999;right: 15px;top: 15px;font-size: 12px;">
<span class="material-symbols-rounded" style="font-size: 35px;">
table_chart
</span>
<br />版面設定 <br /> Settings
</div>
<div id="setting_panel" class="setting_panels" style="">
<div class="nf" style="text-align: center;margin: 0 0 5 0;">版面配置 Layout</div>
<div style="display: grid;grid-template-columns: 49% 49%;column-gap: 5px;">
<div class="ipb laybut" style="height: 90px;" tabindex="-1" id="laybut_h">
<div style="display: flex; flex-wrap: wrap;height: 100%;">
<div class="ipb tpb" style="background-color: #a09784;;width: 75px;height: 10px;margin: 5 20 2 20;">
</div>
<div
style="display: grid; grid-template-columns: auto auto auto auto;grid-auto-rows: 1fr; column-gap: 2px; row-gap: 2px;width: 100%;height: 65%;padding: 5;">
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
</div>
</div>
</div>
<div class="ipb laybut" style="height: 90px;" tabindex="-1" id="laybut_v">
<div style="display: flex; flex-wrap: nowrap;height: 100%;width: 100%;">
<div class="ipb tpb" style="background-color: #a09784;;width: 50px;height: 10px;margin: 5 0 2 5;">
</div>
<div
style="display: grid; grid-template-columns: auto auto auto;grid-auto-rows: 1fr; column-gap: 2px; row-gap: 2px;width: 100%;padding: 5;">
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
<div class="ipb tpb" style=""></div>
</div>
</div>
</div>
</div>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">輸出大小 Image Size</div>
<div style="display: grid;grid-template-columns: 38% auto 38% auto;">
<input type="text" class="ipb" id="cw" value="650" style=""></input>
<div class="NF" style="margin: 0 5 0 5;">X</div>
<input type="text" class="ipb" id="ch" value="1000" style=""></input>
<span class="material-symbols-rounded" id="reverse_size"
style="margin-left: 5px;">screen_rotation_alt</span>
</div>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">行數設定 Row Setting</div>
<div style="display: flex;">
<input class="slider" id="setting-row" type="range" value="4" min="1" max="6" step="1" style=""></input>
<span class="nf" id="setting-row-num" style="margin-left: 8px;">2</span>
</div>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">外框樣式 Frame Style</div>
<div style="display: grid;">
<select id="style_select"
style="width: 100%;height: 30px;border-radius: 15px;text-align: center;background: #292623;color: #ffefd0;">
<option value="Style1">Style1</option>
<option value="Style2">Style2</option>
<option value="Style3">Style3</option>
<option value="Style4">Style4</option>
</select>
<div style="display: flex;">
<input class="slider" id="setting-border-radius" type="range" value="25" min="10" max="125" step="25"
style=""></input>
<span class="nf" id="setting-border-radius-num" style="margin-left: 8px;">2</span>
</div>
<div style="display:grid;grid-template-columns: 50% 50%;gap: 5px;">
<input class="radiobox_radio" type="radio" id="Outlined" name="outline" value="Outlined"
style="display: none;">
<label class="radiobox nf" for="Outlined">Outlined</label>
<input class="radiobox_radio" type="radio" id="Nooutline" name="outline" value="Nooutline"
style="display: none;" checked>
<label class="radiobox nf" for="Nooutline">No Outline</label>
</div>
</div>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">主題 Theme</div>
<div
style="display:grid;grid-template-columns: auto auto auto auto;gap: 5px;grid-auto-rows: 1fr; height: 30px;">
<input class="colorblock_radio" type="radio" id="cb1" name="cb" value="30" style="display: none;" checked>
<label class="colorblock nf" for="cb1"
style="background-color: #292623;border-color: #ffefd0;height: 100%;"></label>
<input class="colorblock_radio" type="radio" id="cb2" name="cb" value="60" style="display: none;">
<label class="colorblock nf" for="cb2"
style="background-color: #d1c7be; border-color: #292623;height: 100%;"></label>
<input class="colorblock_radio" type="radio" id="cb3" name="cb" value="60" style="display: none;">
<label class="colorblock nf" for="cb3"
style="background-color: #1f1f1f; border-color: #ffffff;height: 100%;"></label>
<input class="colorblock_radio" type="radio" id="cb4" name="cb" value="60" style="display: none;">
<label class="colorblock nf" for="cb4"
style="background-color: #ffffff; border-color: #1f1f1f;height: 100%;"></label>
</div>
<!--<div style="display:grid;grid-template-columns: 25% auto auto;gap: 5px;margin-top: 5px;height: 30px;">
<input class="colorblock_radio" type="radio" id="cb5" name="cb" value="60" style="display: none;">
<label class="colorblock nf" for="cb5"
style="background-color: #a19785; border-color: #a19785;font-size: 10px;text-align: center;height: 100%;">Custom</label>
<input type="color" id="color_line" style="display: none;">
<input type="color" id="color_theme" style="display: none;">
<label class="colorblock nf" id="color_line_picker"
style="background-color: #a19785; border-color: #a19785;font-size: 10px;text-align: center;height: 100%;">Outline
Color</label>
<label class="colorblock nf" id="color_theme_picker"
style="background-color: #a19785; border-color: #a19785;font-size: 10px;text-align: center;height: 100%;">Theme
Color</label>
</div>-->
</div>
<div id="settings2" class="settingss2 nf"
style="width: 100px;height: 100px;text-align: center;padding-top: 12px;background-color: #292623;border-radius: 100px;border-width: 1.5px;border-style: solid;box-sizing: border-box;position: fixed;z-index: 999;right: 15px;top: 125px;font-size: 12px;">
<span class="material-symbols-rounded" style="font-size: 35px;">
abc
</span>
<br />文字設定 <br /> Type
</div>
<div id="setting_panel2" class="setting_panels setting_panels2" style="">
<div class="nf" style="text-align: center;margin: 15 0 5 0;">範本版本 Templete</div>
<select id="temp_select"
style="width: 100%;height: 30px;border-radius: 15px;text-align: center;background: #292623;color: #ffefd0;">
<option value="tem_F">全年 Full Year</option>
<option value="tem_HF">前半年 1年の前半 First Half Year</option>
<option value="tem_HB">後半年 1年の後半 Second Half Year</option>
<option value="tem_5Y">繪師五年進化錄 Five Year</option>
</select>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">語言 Language</div>
<select id="lan_select"
style="width: 100%;height: 30px;border-radius: 15px;text-align: center;background: #292623;color: #ffefd0;">
<option value="lan_C">中國語</option>
<option value="lan_J">日本語</option>
<option value="lan_E">English</option>
</select>
<div class="nf" style="text-align: center;margin: 15 0 5 0;">月份樣式 Month Appearance</div>
<select id="monthsty_select"
style="width: 100%;height: 30px;border-radius: 15px;text-align: center;background: #292623;color: #ffefd0;">
<option value="MP_C">中國語</option>
<option value="MP_J">日本語</option>
<option value="MP_E">English</option>
<option value="MP_N">Number</option>
<option value="MP_NY" hidden >Number (Year)</option>
</select>
</div>
<div id="settings3" class="settingss settingss3 nf">
<div
style="display: grid;grid-template-columns: 100px auto;padding: 0px 20px 0px 0px;position: relative;overflow: hidden;">
<div>
<span class="material-symbols-rounded" style="font-size: 35px;">
ios_share
</span>
<br />分享模板 <br /> Share Preset
</div>
<div style="">
<input id="LinkURL" class="LinkURL" style="">
<div id="copybut" class="copybut" style="">
<span class="material-symbols-rounded" style="font-size: 25px;color: #ffefd0;">content_copy</span>
</div>
</div>
</div>
</div>
<div id="settings4" class="settingss nf"
style="width: 100px;height: 100px;text-align: center;padding-top: 12px;background-color: #292623;border-radius: 100px;border-width: 1.5px;border-style: solid;box-sizing: border-box;position: fixed;z-index: 999;right: 15px;top: 345px;font-size: 12px;/*filter: brightness(0.5);*/">
<span class="material-symbols-rounded" style="font-size: 35px;">
flag
</span>
<br />建議改進 <br /> Suggest
</div>
<div id="settings5" class="settingss nf" style="top: 455px;">
<span class="material-symbols-rounded" style="font-size: 35px;">
info
</span>
<br />關於 <br /> About
</div>
<div id="aboutme"
style="position: fixed;width: 100%;height: 100%;top: 0;z-index: 1000;background-color:#1f1f1f8e;display: flex;justify-content: center;align-items: center;display: none;opacity: 0;transition-duration: 0.2s;"
class="nf">
<div id="aboutme_in"
style="position: absolute;width: 550px;height: 800;top: 0;z-index: 1000;margin: 100px;border-radius:10px;padding: 20px;display: grid;grid-template-columns: auto ;grid-template-rows: 1fr ; gap: 5px;">
<div class="ipb" style="background-color: #292623; padding: 30px;">
<div style="width: 100%;text-align: center;font-size: 25px;margin-bottom: 0px;"
class="material-symbols-rounded">info</div>
<div style="width: 100%;text-align: center;font-size: 25px;margin-bottom: 20px;">Update Log</div>
<div
style="width: 100%;text-align: center;display: grid;grid-template-columns: 15% auto;gap: 20px;font-size: 12px;">
<!--Add preset parameter (w/ test base64 encypt w/ share but)
Add twitter/Fb api
圖片獨立位置控制, drag image inside
//20220103
Done: Add half year version Add year compare version
//20220102
Done: 文字部分比例,月份顯示方式,位置, frame color,Add outline change
//20221231
Done:layout setting (added layout, image size, row set, style)
Fixed layout problem (add img), minor bugs
//20221230
Done: Release 1.0, improve layout-->
<div style="text-align: right;">TODO</div>
<div style="text-align: left;">。 圖片獨立位置控制<br /> 。 Resize and Drag image inside
<br />。Fix the pixelized bad quality image
</div>
<div style="text-align: right;">2022.01.08</div>
<div style="text-align: left;">。 Bug fixed fb ugly fbclid redirecting
<br /> 。 Added "Suggest" window, feel free to chat me about new function or bugs found
</div>
<div style="text-align: right;">2022.01.07</div>
<div style="text-align: left;">。 Added preset parameter
<br /> 。 Added Share Preset function
</div>
<div style="text-align: right;">2022.01.05</div>
<div style="text-align: left;">。 Bug fixed - font size adjusted when change template
<br /> 。 Bug fixed - layout bug
</div>
<div style="text-align: right;">2022.01.04</div>
<div style="text-align: left;">。 Release 2.0</div>
<div style="text-align: right;">2022.01.03</div>
<div style="text-align: left;">。 Add half year version <br /> 。 Add year compare version</div>
<div style="text-align: right;">2022.01.02</div>
<div style="text-align: left;">。 文字部分比例<br />。 月份顯示方式,位置<br /> 。 Add Frame color <br /> 。 Add
outline change</div>
<div style="text-align: right;">2022.12.31</div>
<div style="text-align: left;">。 Add Layout setting (added layout, image size, row set, style)
<br />。 Fixed layout problem (add img)<br /> 。 Fixed minor bugs
</div>
<div style="text-align: right;">2022.12.30</div>
<div style="text-align: left;">。 Release 1.0<br />。 Improve layout</div>
</div>
</div>
</div>
</div>
<div id="discuss"
style="position: fixed;width: 100%;height: 100%;top: 0;z-index: 1000;background-color:#1f1f1f8e;display: flex;justify-content: center;align-items: center;display: none;opacity: 0;transition-duration: 0.2s;"
class="nf">
<div id="discuss_in"
style="position: absolute;width: 550px;height: 800;top: 0;z-index: 1000;margin: 100px;border-radius:10px;padding: 20px;display: grid;grid-template-columns: auto ;grid-template-rows: 1fr ; gap: 5px;">
<div class="ipb" style="background-color: rgb(241, 241, 241);padding: 30px;color: rgb(31, 31, 31);height: 700px;overflow-y: scroll;">
<div id="disqus_thread"></div>
</div>
</div>
</div>
</body>
<script>
var d = new Date().getFullYear();
const titletemp =
[['繪師進化錄 ' + d, '上半年繪師進化錄 ' + d, '下半年繪師進化錄 ' + d, '繪師五年進化錄'],
[d + '年を振り返る', d + '上半期の振り返り', d + '下半期の振り返り', '絵師五年進化録'], ['Summery of ' + d, 'Summery of first half ' + d, 'Summery of second half ' + d, 'Five Year Review']];
//console.log(titletemp[1][0]);
document.getElementById('titn').value = titletemp[0][0];
document.getElementById('summary_eng').value = /*d + ' Summery - */'template powered by @_R0NNI';
var imgsrc = [
'https://pbs.twimg.com/media/FKR_SQqaQAAixXG?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FLfdVh-aIAEGXws?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FP_oUALagAEV1QH?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FRGfrt2aIAAC_s9?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FTWyaRLagAECzkB?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FY7J19_UsAA1Osv?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FZkgIlMUIAAp_11?format=jpg&name=900x900',
'https://pbs.twimg.com/media/Fano_HNUsAA4agz?format=jpg&name=900x900',
'https://pbs.twimg.com/media/Fb0SMceVEAAnj4J?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FeoyEEWVUAASUen?format=jpg&name=900x900',
'https://pbs.twimg.com/media/FgUuwf8VEAAlO50?format=jpg&name=900x900',
'https://pbs.twimg.com/media/Fk7CGaXaMAERIN2?format=jpg&name=900x900'];
var month_e = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
var month_n = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
var month_c = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
var month_j = ['睦月', '如月', '彌生', '卯月', '皐月', '水無月', '文月', '葉月', '長月', '神無月', '霜月', '師走'];
var year_n = [d-11,d-10,d-9,d-8,d-7,d-6,d-5,d-4,d-3,d-2,d-1,d];
for (i = 0; i < month_e.length; i++) {
//console.log(imgsrc[i]);
var artbox = document.createElement('div');
artbox.className = 'boxx';
artbox.id = 'artbox' + i;
artbox.setAttribute('style', '')
artbox.innerHTML =
'<div style="display: flex;flex-direction: column;width: 100%;height: calc(100% - 24px);position: relative;"> ' +
'<img class="imgbox" style="" src="' + imgsrc[i] + '">' +
'<div class="addbox" style=""><div class="addboxin" style="">點我轉圖</div> </div>' +
'</div>' +
'<span class="month" style="text-align: center;width: 100%;"> ' + month_c[i] + ' </span>';
document.getElementById('boxx').appendChild(artbox);
var inputbox = document.createElement('input');
inputbox.type = 'file';
inputbox.id = 'hoho' + i;
inputbox.style.display = 'none'
artbox.appendChild(inputbox);
artbox.children[0].children[1].children[0].addEventListener('click', function (evt) {
console.log('evt.currentTarget' + evt.currentTarget.id.split('haha')[1]);
var idxx = evt.currentTarget.id.split('haha')[1];
document.getElementById('artbox' + idxx).children[2].click();
});
inputbox.addEventListener('change', function (evt) {
var tgt = evt.target || window.event.srcElement,
files = tgt.files;
console.log('evt.currentTarget' + evt.currentTarget.id.split('hoho')[1]);
var idx = evt.currentTarget.id.split('hoho')[1];
// FileReader support
if (FileReader && files && files.length) {
var fr = new FileReader();
fr.onload = function () {
console.log(idx);
document.getElementById('artbox' + idx);
document.getElementById('artbox' + idx).children[0].children[0].src = fr.result;
}
fr.readAsDataURL(files[0]);
}
// Not supported
else {
// fallback -- perhaps submit the input to an iframe and temporarily store
// them on the server until the user's session ends.
}
})
}
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.boxx { display: flex;flex-direction: row;flex-wrap: wrap;overflow: hidden;overflow: hidden; }';
document.body.appendChild(style);
//console.log(document.getElementById('artistname').value);
document.getElementById('savebut').addEventListener('click', captureing);
document.getElementById('savebut').addEventListener('click', function () {
document.getElementById('loading').style.display = 'block';
document.getElementById('loading').style.opacity = 0.8;
});
function captureing() {
var node = document.getElementById('capture');
domtoimage.toPng(node)
.then(function (dataUrl) {
var link = document.createElement('a');
link.download = '繪師退化錄-' + document.getElementById('artistname').value + '-2022.png';
link.href = dataUrl;
link.click();
setTimeout(() => {
document.getElementById('loading').style.display = 'none';
document.getElementById('loading').style.opacity = 0;
}, 800);
})
.catch(function (error) {
console.error('oops, something went wrong!', error);
});
}
for (i = 0; i < document.getElementsByClassName('addboxin').length; i++) {
document.getElementsByClassName('addboxin')[i].id = 'haha' + i;
}
function Changeimage(i) {
console.log(document.getElementsByClassName('addboxin')[i]);
}
var slirow = document.getElementById('setting-row-num');
var slirowv = document.getElementById('setting-row');
slirow.innerHTML = slirowv.value;
var nums = [
1, 2, 3, 4, 6, 12
]
var rows = [
"auto",
"auto auto",
"auto auto auto",
"auto auto auto auto",
"auto auto auto auto auto auto",
"auto auto auto auto auto auto auto auto auto auto auto auto",]
var rowsforhalf = [0, 1, 2, 4]
var rowsfor5Y = [0,4]
slirowv.addEventListener('input', function () { ChangeRow(slirowv.value - 1) })
function ChangeRow(row) {
slirow.innerHTML = nums[row];
//1,2,3,4,6,12
const ts = document.getElementById('temp_select').value
if (ts == 'tem_F') {
slirowv.setAttribute('max', '6');
document.getElementById('boxx').style.gridTemplateColumns = rows[row];
}
if (ts == 'tem_HF' || ts == 'tem_HB') {
slirowv.setAttribute('max', '4');
document.getElementById('boxx').style.gridTemplateColumns = rows[rowsforhalf[row]];
}
if (ts == 'tem_5Y') {
slirowv.setAttribute('max', '2');
document.getElementById('boxx').style.gridTemplateColumns = rows[rowsfor5Y[row]];
}
}
function Randomlayout() {
console.log(Math.floor(Math.random() * 2));
document.getElementById('boxx').style.gridTemplateColumns = rows[Math.floor(Math.random() * 7)];
}
/*setInterval(() => {
console.log(Math.floor(Math.random() * 2));
document.getElementById('boxx').style.gridTemplateColumns = rows[Math.floor(Math.random() * 7)];
}, 1500);*/
var renimg = document.getElementById('capture');
var cw = document.getElementById('cw');
var ch = document.getElementById('ch');
var cwhswap = document.getElementById('reverse_size');
function ChangeImageSize(cwidth, cheight) {
//console.log('width'+cwidth);
if (cwidth == null) {
renimg.style.width = cw.value;
renimg.style.minWidth = cw.value;
renimg.style.maxWidth = cw.value;
renimg.style.height = ch.value;
renimg.style.minHeight = ch.value;
renimg.style.maxHeight = ch.value;
} else {
renimg.style.width = cwidth;
renimg.style.minWidth = cwidth;
renimg.style.maxWidth = cwidth;
renimg.style.height = cheight;
renimg.style.minHeight = cheight;
renimg.style.maxHeight = cheight;
}
}
cw.oninput = function () {
ChangeImageSize();
}
ch.oninput = function () {
ChangeImageSize();
}
cwhswap.onclick = function () {
const orcw = cw.value;
const orch = ch.value;
cw.value = orch;
ch.value = orcw;
ChangeImageSize();
}
var stysel = document.getElementById('style_select');
var stysel_rad = document.getElementById('setting-border-radius');
var stysel_rad_num = document.getElementById('setting-border-radius-num');
stysel_rad_num.innerHTML = stysel_rad.value;
stysel.addEventListener('input', ChangeStyle);
stysel_rad.addEventListener('input', ChangeStyle);
function ChangeStyle(ispre, stylechoose, borderrad) {
//ispre='preset';
//stylechoose='Style3';
//borderrad='500px';
stysel_rad_num.innerHTML = stysel_rad.value;
var val = stysel_rad.value + 'px';
var stll = '';
console.log('stysel_rad.value' + stysel_rad.value);
//console.log('stylename' + xxa);
if (ispre == 'preset') {
console.log(stylechoose);
if (stylechoose == 'Style1') {
stll = borderrad + ' ' + borderrad + ' ' + borderrad + ' ' + borderrad;
}
if (stylechoose == 'Style2') {
stll = '0px ' + borderrad + ' 0px ' + borderrad;
}
if (stylechoose == 'Style3') {
stll = borderrad + ' 0px ' + borderrad + ' 0px';
}
if (stylechoose == 'Style4') {
stll = '0px 0px 0px 0px';
}
} else {
if (stysel.value == 'Style1') {
stll = val + ' ' + val + ' ' + val + ' ' + val;
}
if (stysel.value == 'Style2') {
stll = '0px ' + val + ' 0px ' + val;
}
if (stysel.value == 'Style3') {
stll = val + ' 0px ' + val + ' 0px';
}
if (stysel.value == 'Style4') {
stll = '0px 0px 0px 0px';
}
}