Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (73 loc) · 4.49 KB
/
Copy pathindex.html
File metadata and controls
92 lines (73 loc) · 4.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript concepts in the context of a game</title>
<link rel="stylesheet" href="css/simple.min.css">
<link rel="stylesheet" href="css/highlight_default.min.css">
<link rel="stylesheet" href="css/dracula.css">
<link rel="icon" href="/favicon.ico">
</head>
<body>
<header>
<h1>JavaScript concepts</h1>
<h4>In the context of a game</h4>
<p>This app explains some JavaScript concepts in the context of a game. The examples are related with my <a
href="https://github.com/darellanodev/gif-tower-defense">Gif Tower
Defense</a> game, but the code examples may be different of the original game. Click on the desired
button and enjoy!
<div style="display: flex; justify-content: center;">
<div style="display: flex;">
<div style="width: 60px; margin-right: 30px">
<a href="https://darellanodev.github.io">
<svg class="icon" viewBox="0 0 24 24">
<path fill="none" d="M0 0h24v24H0z" />
<path d="M12 2L2 12h3v8h6v-6h4v6h6v-8h3L12 2zm2 16h-4v-6H8l4-4 4 4h-2z" />
</svg>
Home
</a>
</div>
<div style="width: 60px;">
<a href="https://github.com/darellanodev/javascript-concepts"><svg class="icon" viewBox="0 0 32 32">
<path
d="M16 0.395c-8.836 0-16 7.163-16 16 0 7.069 4.585 13.067 10.942 15.182 0.8 0.148 1.094-0.347 1.094-0.77 0-0.381-0.015-1.642-0.022-2.979-4.452 0.968-5.391-1.888-5.391-1.888-0.728-1.849-1.776-2.341-1.776-2.341-1.452-0.993 0.11-0.973 0.11-0.973 1.606 0.113 2.452 1.649 2.452 1.649 1.427 2.446 3.743 1.739 4.656 1.33 0.143-1.034 0.558-1.74 1.016-2.14-3.554-0.404-7.29-1.777-7.29-7.907 0-1.747 0.625-3.174 1.649-4.295-0.166-0.403-0.714-2.030 0.155-4.234 0 0 1.344-0.43 4.401 1.64 1.276-0.355 2.645-0.532 4.005-0.539 1.359 0.006 2.729 0.184 4.008 0.539 3.054-2.070 4.395-1.64 4.395-1.64 0.871 2.204 0.323 3.831 0.157 4.234 1.026 1.12 1.647 2.548 1.647 4.295 0 6.145-3.743 7.498-7.306 7.895 0.574 0.497 1.085 1.47 1.085 2.963 0 2.141-0.019 3.864-0.019 4.391 0 0.426 0.288 0.925 1.099 0.768 6.354-2.118 10.933-8.113 10.933-15.18 0-8.837-7.164-16-16-16z">
</path>
</svg>Github
</a>
</div>
</div>
</div>
<nav>
<a href="#" id="pojo" class="nav-link">POJO</a>
<a href="#" id="class" class="nav-link">Class</a>
<a href="#" id="class_inheritance" class="nav-link">Class Inheritance</a>
<a href="#" id="class_super" class="nav-link">Class Super</a>
<a href="#" id="static_methods" class="nav-link">Static methods</a>
<a href="#" id="static_method_factory" class="nav-link">Static method factory</a>
<a href="#" id="static_properties_1" class="nav-link">Static properties (1)</a>
<a href="#" id="static_properties_2" class="nav-link">Static properties (2)</a>
<a href="#" id="getters" class="nav-link">Getters</a>
<a href="#" id="setters" class="nav-link">Setters</a>
<a href="#" id="private_properties" class="nav-link">Private properties</a>
<a href="#" id="private_methods" class="nav-link">Private methods</a>
<a href="#" id="promises" class="nav-link">Promises</a>
<a href="#" id="async_await" class="nav-link">Async await</a>
<a href="#" id="optional_chaining" class="nav-link">Optional chaining</a>
<a href="#" id="nullish_coalescing" class="nav-link">Nullish coalescing</a>
<a href="#" id="array_from" class="nav-link">Array from</a>
</nav>
</header>
<main>
<pre><code class="language-javascript">Hello, click on the desired button to view its example.</code></pre>
<!-- Entry point -->
<script src="js/main.js"></script>
<!-- Test a JS file -->
<script src="js/examples/array_from.js"></script>
<!-- libraries -->
<script src="js/highlight/highlight.min.js"></script>
<script src="js/highlight/highlight_language_javascript.min.js"></script>
<script>hljs.highlightAll();</script>
</main>
</body>
</html>