-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvg_testing.html
292 lines (249 loc) · 9.1 KB
/
svg_testing.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
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--
The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags
-->
<title>Template</title>
<meta name="author" content="David Caphane " />
<meta name="description" content="Template for Subsequent Pages" />
<!-- Place "favicon.ico" in the root directory -->
<!-- link rel="icon" href="../../favicon.ico" -->
<!--
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css" integrity="sha256-HxaKz5E/eBbvhGMNwhWRPrAR9i/lG1JeT4mD6hCQ7s4="crossorigin="anonymous" />
-->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap-reboot.min.css"
integrity="sha256-pTFzHsh1e+rz97pjNUpygMbwPzZM3iI3jPd9k4PBTko="
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css?family=Roboto:400,900"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/0e64dfdf0b.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link
rel="stylesheet"
type="text/css"
href="css/components/navbar_main.css"
/>
<link
rel="stylesheet"
type="text/css"
href="css/components/navbar_side.css"
/>
<link rel="stylesheet" type="text/css" href="css/components/toTop.css" />
<!-- Page Structure (Layout) -->
<script>
const pageName = "Home"; // This is the 'key' name in the function createSiteStructure (see navmain.js)
const elemActive = `nav ${pageName}`.split(" ").join("-");
</script>
<!-- requires font awesome -->
<script defer src="scripts\components\navmain.js"></script>
<script defer src="scripts\components\navside.js"></script>
<script defer src="scripts\components\toTop.js"></script>
<!--
https://css-tricks.com/svg-loader-a-different-way-to-work-with-external-svg/
https://github.com/shubhamjain/svg-loader
Can be used with local svg files (img/svg/)
For local files, need to remove fill="" from the svg file if want to change color property
For testing, apply data-cache="disabled" to the svg attributes otherwise won't see changes
-->
<script
type="text/javascript"
src="https://unpkg.com/external-svg-loader@latest/svg-loader.min.js"
async
></script>
<style></style>
</head>
<body>
<div class="wrapper">
<section id="hero">
<a href="/" class="logo"> <h1>SVG Testing</h1> </a>
</section>
<div class="wrapper-nav">
<nav id="nav-main">
<!-- nav bar main imported from components.js -->
</nav>
</div>
<nav id="article-left"></nav>
<article id="article-right">
<div class="column">
<section id="sec-00" class="section anchor">
<h2>Introduction</h2>
<p>
Demo for importing svg with ability to restyle. Based on this
<a href="https://github.com/shubhamjain/svg-loader">link</a>
</p>
</section>
<section id="sec-01" class="section anchor">
<h2>Section 01</h2>
<div id="id01" class="tiles">
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty000">
<svg
data-src="https://unpkg.com/@mdi/[email protected]/svg/access-point-network.svg"
width="50"
height="50"
fill="blue"
></svg>
</div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty001">
<svg
data-src="https://unpkg.com/@mdi/[email protected]/svg/account-heart.svg"
width="50"
height="50"
fill="red"
></svg>
</div>
<footer class="cta">...</footer>
</div>
<div class="tile widest content">
<h3>Widest Tile</h3>
<div id="empty002">
<svg
data-src="/img/svg/hospital.svg"
width="50"
height="50"
fill="green"
data-cache="disabled"
></svg>
<svg
data-src="/img/svg/hospital.svg"
width="50"
height="50"
fill="orange"
data-cache="disabled"
></svg>
</div>
<footer class="cta">...</footer>
</div>
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty003"></div>
<footer class="cta">...</footer>
</div>
</div>
</section>
<section id="sec-02" class="section anchor">
<h2>Section 02</h2>
<div id="id02" class="tiles">
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty004"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty005"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty006"></div>
<footer class="cta">...</footer>
</div>
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty007"></div>
<footer class="cta">...</footer>
</div>
</div>
</section>
<section id="sec-03" class="section anchor">
<h2>Section 03</h2>
<div id="id03" class="tiles">
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty008"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty009"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty010"></div>
<footer class="cta">...</footer>
</div>
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty011"></div>
<footer class="cta">...</footer>
</div>
</div>
</section>
<section id="sec-04" class="section anchor">
<h2>Section 04</h2>
<div id="id04" class="tiles">
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty012"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty013"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty014"></div>
<footer class="cta">...</footer>
</div>
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty015"></div>
<footer class="cta">...</footer>
</div>
</div>
</section>
<section id="sec-05" class="section anchor">
<h2>Section 05</h2>
<div id="id05" class="tiles">
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty016"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty017"></div>
<footer class="cta">...</footer>
</div>
<div class="tile wide content">
<h3>Wide Tile</h3>
<div id="empty018"></div>
<footer class="cta">...</footer>
</div>
<div class="tile content">
<h3>Standard Tile</h3>
<div id="empty019"></div>
<footer class="cta">...</footer>
</div>
</div>
</section>
</div>
<div class="footer"></div>
<!-- Test internal footer -->
</article>
<footer id="footer">Default Footer Text</footer>
</div>
</body>
</html>