-
Notifications
You must be signed in to change notification settings - Fork 0
/
saflag.html
56 lines (49 loc) · 1.48 KB
/
saflag.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
<!DOCTYPE html>
<html lang="en-ZA">
<head>
<title>SA Flag drawn with Canvas</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="keywords" content="South African Flag, animated, HTML canvas, CSS, JavaScript | Richard Naidoo">
<meta name="description" content="See how the South African flag is drawn using HTML Canvas, CSS and JavaScript.">
<link rel="icon" type="image/x-icon" href="icons/flag.ico">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="css/saflag.css">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DC3FD8LPLM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DC3FD8LPLM');
</script>
<body>
<header>
<h1>Drawing the South African Flag using Canvas</h1>
</header>
<div id="trn">
<p>The Rainbow Nation</p>
</div>
<div id="canvasdiv" style="text-align: center">
<canvas id="flagCanvas" width="500" height="300"></canvas>
</div>
<br>
<div id="specs">
<br>
<img src="icons/html.ico" alt="HTML icon">
<br>
<img src="icons/css.ico" alt="CSS icon">
<br>
<img src="icons/js.ico" alt="JavaScript icon">
<br>
<br>
<p>
115 Lines of JS
</p>
<br>
<a href="index.html#projects" class="w3-button w3-hover-deep-orange"> ◄ Back to Portfolio</a>
</div>
<script src="js/saflag.js"></script>
</body>
</html>