-
Notifications
You must be signed in to change notification settings - Fork 3
/
notes.html
898 lines (672 loc) · 29.2 KB
/
notes.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Notes</title>
<meta name="description" content="Notes. notes for quick access.">
<meta name="keywords" content="note, notes, page, main,">
<link rel="alternate" type="application/rss+xml" title="Website RSS" href="/rss.xml">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<link rel="icon" sizes="512x512" href="/img/logo.png" type="image/png">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<!-- main -->
<link rel="preload" href="./js/main.js" as="script">
<link rel="preload" href="./css/main.css" as="style">
<link rel="stylesheet" href="./css/main.css" type="text/css">
<link rel="preload" href="./css/auto.css" as="style">
<link rel="stylesheet" type="text/css" href="./css/auto.css" id="theme">
<link rel="preload" href="./css/style.css" as="style">
<link rel="stylesheet" href="./css/style.css" type="text/css">
<noscript>
<link rel="stylesheet" type="text/css" href="./css/noscript.css">
</noscript>
<!-- // main -->
<link rel="preload" href="./data/blogJsonVar.js" as="script">
<link rel="preload" href="./projects/blog-1/script.js" as="script">
</head>
<body>
<!-- Nav v.1.2.2 -->
<!-- page, style.css, main.js, noscript.css -->
<!-- nav HTML part -->
<header>
<div class="wrapper3 navTop">
<div class="margin"></div>
<nav>
<a class="countMenuItem inlineBlock padding" style="padding-left: 0;" href="./index.html" title="nav1"><img class="logo2 reduceLight" src="./img/logo.png" alt="logo" style="max-width: 26px;"></a>
<div class="menuTop">
<!-- menu items -->
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./main-list.html">Main</a>
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./projects-page.html">Projects</a>
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./games-list.html">Games</a>
<!-- // menu items -->
</div>
<!-- // menuTop -->
<!-- dropdown menu -->
<!-- https://www.w3schools.com/howto/howto_js_dropdown.asp -->
<div id="dropdownMenuCSS"><!-- CSS menu if js off -->
<button onclick="dropdownMenuFunction();" class="brand inlineBlock padding" id="dropdownMenuButton">☰ Menu</button>
<div id="dropdownMenu" class="dropdownMenuContent shadow bg2 padding2 borderRadius2">
<div class="dropdownMenuWrapper">
<!--<div class="padding2">menu name</div>-->
<div class="dropdownMenuContentColumn">
<!-- menu items dublicate -->
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./main-list.html">Main</a>
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./projects-page.html">Projects</a>
<a class="countMenuItem brand borderBottomTransparent inlineBlock padding" href="./games-list.html">Games</a>
<!-- // menu items dublicate -->
</div>
</div>
</div>
</div>
<!--<hr />-->
<!-- // dropdown menu -->
<span class="countMenuItem"></span>
<span class="countMenuItem"></span>
<span class="countMenuItem"></span>
<a class="countMenuItem inlineBlock padding mClassNavUp brand" style="margin-right: var(--padding);" href="../" title="../Up">List (↑)</a>
<form class="noscriptHide inlineBlock padding" style="padding-right: 0;" method="GET" action="./site-search.html" role="search">
<!--<label for="siteSearch" class="xSmall op">search:</label>-->
<input id="siteSearch" type="search" placeholder="site search" name="q" autocomplete="off">
</form>
</nav>
</div>
</header>
<!-- // nav -->
<!--<hr>-->
<!-- content -->
<main class="content">
<h1 class="op tCenter insertIconTitle">Notes</h1>
<!--<span class="xSmall block tCenter op">Notes. notes for quick access.</span>-->
<script src="./data/notesJsonVar.js"></script>
<script>
// fresh data example in script.js
if(jsonVar == undefined||jsonVar == ''){
var jsonVar =
[
{
"id": 251,
"text": "test2 text2",
"text2": "test2 text2",
"text3": "test3 text3",
"url": "https:\/\/test2.com",
"tag": "#test2 #tag",
"time": 1671480576
},
{
"id": 250,
"text": "test text",
"text2": "test2 text2",
"text3": "test3 text3",
"url": "https:\/\/test.com",
"tag": "#test #tag",
"time": 1668444918
}
];
}
</script>
<div id="printBlog"></div>
<noscript>
<!--<div class="tCenter">
<a class="inlineBlock padding orange" href="/rss.xml" title="RSS News">RSS</a>
</div>-->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Window: blur event - Web APIs | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/API/Window/blur_event">https://developer.mozilla.org/en-US/docs/Web/API/Window/blur_event</a><br>addEventListener("blur", (event) => {});
onblur = (event) => {};</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Array.prototype.filter() - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter</a><br>const words = ['spray', 'elite', 'exuberant', 'destruction', 'present'];
const result = words.filter((word) => word.length > 6);
console.log(result);
// Expected output: Array ["exuberant", "destruction", "present"]</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Array.prototype.reduce() - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce</a><br>const array1 = [1, 2, 3, 4];
// 0 + 1 + 2 + 3 + 4
const initialValue = 0;
const sumWithInitial = array1.reduce(
(accumulator, currentValue) => accumulator + currentValue,
initialValue,
);
console.log(sumWithInitial);
// Expected output: 10
===
const getMax = (a, b) => Math.max(a, b);
// callback is invoked for each element in the array starting at index 0
[1, 100].reduce(getMax, 50); // 100
[50].reduce(getMax, 10); // 50
// callback is invoked once for element at index 1
[1, 100].reduce(getMax); // 100
// callback is not invoked
[50].reduce(getMax); // 50
[].reduce(getMax, 1); // 1
[].reduce(getMax); // TypeError</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Using the Web Storage API - Web APIs | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API">https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API</a><br>if (storageAvailable("localStorage")) {
// Yippee! We can use localStorage awesomeness
} else {
// Too bad, no localStorage for us
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Window: localStorage property - Web APIs | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage">https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage</a><br>localStorage.setItem("myCat", "Tom");
const cat = localStorage.getItem("myCat");
localStorage.removeItem("myCat");
localStorage.clear();</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Array.prototype.indexOf() - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf</a><br>const beasts = ['ant', 'bison', 'camel', 'duck', 'bison'];
console.log(beasts.indexOf('bison'));
// Expected output: 1
// Start from index 2
console.log(beasts.indexOf('bison', 2));
// Expected output: 4
console.log(beasts.indexOf('giraffe'));
// Expected output: -1</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">if...else - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else</a><br>function testNum(a) {
let result;
if (a > 0) {
result = 'positive';
} else {
result = 'NOT positive';
}
return result;
}
console.log(testNum(-5));
// Expected output: "NOT positive"
===
x = y;
if (x) {
// …
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Function - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function</a><br>// Create a global property with `var`
var x = 10;
function createFunction1() {
const x = 20;
return new Function("return x;"); // this `x` refers to global `x`
}
function createFunction2() {
const x = 20;
function f() {
return x; // this `x` refers to the local `x` above
}
return f;
}
const f1 = createFunction1();
console.log(f1()); // 10
const f2 = createFunction2();
console.log(f2()); // 20</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Python Functions <a class="brand insertIcon" href="https://www.w3schools.com/python/python_functions.asp">https://www.w3schools.com/python/python_functions.asp</a><br>def my_function(fname):
print(fname + " Refsnes")
my_function("Emil")
my_function("Tobias")
my_function("Linus")</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Python For Loops <a class="brand insertIcon" href="https://www.w3schools.com/python/python_for_loops.asp">https://www.w3schools.com/python/python_for_loops.asp</a><br>fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
===
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break
===
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">:root - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/:root">https://developer.mozilla.org/en-US/docs/Web/CSS/:root</a><br>/* Selects the root element of the document:
<html> in the case of HTML */
:root {
background: yellow;
}
===
:root {
--main-color: hotpink;
--pane-padding: 5px 42px;
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">do...while - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while</a><br>let result = '';
let i = 0;
do {
i = i + 1;
result = result + i;
} while (i < 5);
console.log(result);
// Expected output: "12345"
===</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">How To Add a Class Name <a class="brand insertIcon" href="https://www.w3schools.com/howto/howto_js_add_class.asp">https://www.w3schools.com/howto/howto_js_add_class.asp</a><br>function myFunction() {
var element = document.getElementById("myDIV");
element.classList.add("mystyle");
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Document: DOMContentLoaded event - Web APIs | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event">https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event</a><br>addEventListener("DOMContentLoaded", (event) => {});
===
document.addEventListener("DOMContentLoaded", (event) => {
console.log("DOM fully loaded and parsed");
});</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">PHP: while - Manual <a class="brand insertIcon" href="https://www.php.net/manual/en/control-structures.while.php">https://www.php.net/manual/en/control-structures.while.php</a><br><?php
/* example 1 */
$i = 1;
while ($i <= 10) {
echo $i++; /* the printed value would be
$i before the increment
(post-increment) */
}
/* example 2 */
$i = 1;
while ($i <= 10):
echo $i;
$i++;
endwhile;
?></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">PHP: foreach - Manual <a class="brand insertIcon" href="https://www.php.net/manual/en/control-structures.foreach.php">https://www.php.net/manual/en/control-structures.foreach.php</a><br><?php
$arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
$value = $value * 2;
}
// $arr is now array(2, 4, 6, 8)
unset($value); // break the reference with the last element
?></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">String.prototype.replaceAll() - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll</a><br>const paragraph = "I think Ruth's dog is cuter than your dog!";
console.log(paragraph.replaceAll('dog', 'monkey'));
// Expected output: "I think Ruth's monkey is cuter than your monkey!"
// Global flag required when calling replaceAll with regex
const regex = /Dog/gi;
console.log(paragraph.replaceAll(regex, 'ferret'));
// Expected output: "I think Ruth's ferret is cuter than your ferret!"</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Window: load event - Web APIs | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event">https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event</a><br>addEventListener("load", (event) => {});
onload = (event) => {};</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">font-size - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size">https://developer.mozilla.org/en-US/docs/Web/CSS/font-size</a><br>/* <absolute-size> values */
font-size: xx-small;
font-size: x-small;
font-size: small;
font-size: medium;
font-size: large;
font-size: x-large;
font-size: xx-large;
font-size: xxx-large;
/* <relative-size> values */
font-size: smaller;
font-size: larger;
/* <length> values */
font-size: 12px;
font-size: 0.8em;
/* <percentage> values */
font-size: 80%;
/* math value */
font-size: math;
/* Global values */
font-size: inherit;
font-size: initial;
font-size: revert;
font-size: revert-layer;
font-size: unset;</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">How do you block images? | Firefox Support Forum | Mozilla Support <a class="brand insertIcon" href="https://support.mozilla.org/en-US/questions/1226175">https://support.mozilla.org/en-US/questions/1226175</a></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">How to Disable JavaScript in Firefox <a class="brand insertIcon" href="https://www.lifewire.com/disable-javascript-in-firefox-446039">https://www.lifewire.com/disable-javascript-in-firefox-446039</a></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Linux update <br>sudo apt update && sudo apt upgrade && sudo snap refresh</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">:first-child - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child">https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child</a><br>p {
font-weight: bold;
}
li:first-child {
border: 2px solid orange;
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">:last-child - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child">https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child</a><br>p {
font-weight: bold;
}
li:last-child {
border: 2px solid orange;
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">Licensing – CodePen <a class="brand insertIcon" href="https://blog.codepen.io/documentation/licensing/">https://blog.codepen.io/documentation/licensing/</a></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List"><form>: The Form element - HTML: HyperText Markup Language | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form</a><br><form action="" method="get" class="form-example">
<div class="form-example">
<label for="name">Enter your name: </label>
<input type="text" name="name" id="name" required />
</div>
<div class="form-example">
<label for="email">Enter your email: </label>
<input type="email" name="email" id="email" required />
</div>
<div class="form-example">
<input type="submit" value="Subscribe!" />
</div>
</form></div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">String.prototype.replace() - JavaScript | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace</a><br>const paragraph = "I think Ruth's dog is cuter than your dog!";
console.log(paragraph.replace("Ruth's", 'my'));
// Expected output: "I think my dog is cuter than your dog!"
const regex = /Dog/i;
console.log(paragraph.replace(regex, 'ferret'));
// Expected output: "I think Ruth's ferret is cuter than your dog!"</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">grid - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid">https://developer.mozilla.org/en-US/docs/Web/CSS/grid</a><br>/* <'grid-template'> values */
grid: none;
grid: "a" 100px "b" 1fr;
grid: [linename1] "a" 100px [linename2];
grid: "a" 200px "b" min-content;
grid: "a" minmax(100px, max-content) "b" 20%;
grid: 100px / 200px;
grid: minmax(400px, min-content) / repeat(auto-fill, 50px);
/* <'grid-template-rows'> /
[ auto-flow && dense? ] <'grid-auto-columns'>? values */
grid: 200px / auto-flow;
grid: 30% / auto-flow dense;
grid: repeat(3, [line1 line2 line3] 200px) / auto-flow 300px;
grid: [line1] minmax(20em, max-content) / auto-flow dense 40%;
/* [ auto-flow && dense? ] <'grid-auto-rows'>? /
<'grid-template-columns'> values */
grid: auto-flow / 200px;
grid: auto-flow dense / 30%;
grid: auto-flow 300px / repeat(3, [line1 line2 line3] 200px);
grid: auto-flow dense 40% / [line1] minmax(20em, max-content);
/* Global values */
grid: inherit;
grid: initial;
grid: revert;
grid: revert-layer;
grid: unset;</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">CSS grid layout - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout">https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout</a><br>.wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
grid-auto-rows: minmax(100px, auto);
}
.one {
grid-column: 1 / 3;
grid-row: 1;
}
.two {
grid-column: 2 / 4;
grid-row: 1 / 3;
}
.three {
grid-column: 1;
grid-row: 2 / 5;
}
.four {
grid-column: 3;
grid-row: 3;
}
.five {
grid-column: 2;
grid-row: 4;
}
.six {
grid-column: 3;
grid-row: 4;
}</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<!-- post -->
<div class="wrapper post bgList border3List borderRadius2 padding3" id="">
<div class="postContent pre padding2List">backdrop-filter - CSS: Cascading Style Sheets | MDN <a class="brand insertIcon" href="https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#syntax">https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#syntax</a><br>/* Keyword value */
backdrop-filter: none;
/* URL to SVG filter */
backdrop-filter: url(commonfilters.svg#filter);
/* <filter-function> values */
backdrop-filter: blur(2px);
backdrop-filter: brightness(60%);
backdrop-filter: contrast(40%);
backdrop-filter: drop-shadow(4px 4px 10px blue);
backdrop-filter: grayscale(30%);
backdrop-filter: hue-rotate(120deg);
backdrop-filter: invert(70%);
backdrop-filter: opacity(20%);
backdrop-filter: sepia(90%);
backdrop-filter: saturate(80%);
/* Multiple filters */
backdrop-filter: url(filters.svg#filter) blur(4px) saturate(150%);
/* Global values */
backdrop-filter: inherit;
backdrop-filter: initial;
backdrop-filter: revert;
backdrop-filter: revert-layer;
backdrop-filter: unset;</div>
<div class="postFooter break2 small">
<div class="tagList tLeft left"></div>
<div class="tagList tRight right"></div>
</div>
</div>
<!-- // post -->
<div class="margin2 padding2"></div>
</noscript>
</main>
<!-- // content -->
<footer id="footer"></footer>
<script src="./js/main.js"></script>
<script src="./js/script.js"></script>
<script>
// fresh config in script.js
let blogConfig = {
"postLimit":"", // number
"embedStatus":"", // off, not list,
"multiEmbedStatus":"", // on
"tagListStatus":"", // off
"tagListLimit":"", // number
"targetOption":"", // blank
"bottomMsg":"", // text
"display":"all", // gallery - grid, article - <div class="h1">text</div>, all - shows everything: text, text2, text3
"timeStatus":"", // off, disable post time (post id)
};
</script>
<script src="./projects/blog-1/script.js" onload="blog('printBlog', notesJsonVar, 'wrapper', './notes.html', blogConfig)"></script>
</body>
</html>