-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (81 loc) · 2.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
Practice Task of Web Technologies Bootcamp for IndiaSkills Nationals 2021
</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<header>
<h1>
Practice Tasks Given in the first week (Client side module) of <br />
Web Technologies Bootcamp for IndiaSkills Nationals 2021
</h1>
</header>
<main>
<section id="list">
<div data-markup="task">
<h3>Task Heading</h3>
<a href="./link-to-task">View</a>
</div>
</section>
<hr />
<div class="nationals-video">
<h2>Glimpse of those Days 💖</h2>
<p>
Watch out this beautiful slideshow video of everlasting experience at
IndiaSkills Nationals 2021. <br />
Held at Pragati Maidan in Delhi from 7-9 January 2022 🤘
</p>
<iframe
src="https://www.youtube.com/embed/9j_wT7ADdV0?vq=hd1080"
width="560"
height="315"
title="Web Technologies | IndiaSkills Nationals 2021 [Slideshow Video]"
frameborder="0"
allowfullscreen
></iframe>
</div>
</main>
<script>
// tasks[ [taskName, folderName] ]
const wrapper = document.querySelector("#list");
const markup = document.querySelector(`[data-markup="task"]`);
const tasks = [
["Tetris", "tetris"],
["Snake Game", "snake-game"],
["Match the Tile", "match-the-tile"],
["Rotating Cube with CSS", "rotating-cube-css"],
["Canvas Signature App", "canvas-signature-app"],
["Loading Animation", "loading-animation"],
["Draw Text with Lines on Canvas", "india-skills-text-as-lines"],
["Moving Packman", "moving-packman"],
["Quick PSD Designs", "photoshop"]
];
// DOM Parser
let dp = new DOMParser();
const getListItemMarkup = (taskName, folderName) => {
let node = markup.cloneNode(true);
node.className = "task";
node.removeAttribute("data-markup");
node.querySelector("h3").innerHTML = taskName;
node.querySelector("a").href = `./${folderName}/`;
return node;
};
for (let task of tasks) {
let htmlNode = getListItemMarkup(task[0], task[1]);
wrapper.appendChild(htmlNode);
}
</script>
</body>
</html>