-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.js
39 lines (35 loc) · 1.28 KB
/
startup.js
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
// ignore below
const cdn = 'https://cdn.softwarecraft.co.za/ice-cream-shop/';
(function(mainLogic) {
// document.body.classList.add('container');
// Array.from(document.body.children).forEach(child => {});
const footer = document.createElement('footer');
[
'fixed-bottom',
'bg-dark',
'shadow',
'p-3',
'text-light',
'd-flex',
'justify-content-between',
'align-items-center'
].forEach(className => footer.classList.add(className));
footer.innerHTML = `
<div>
<a style="font-size:1.3em;" target="_blank" href="https://www.freecodecamp.org/news/javascript-switch-case-js-switch-statement-example/"><i class="bi bi-code-slash"></i> Inpspired by this Article</a>
</div>
<div class="text-center">
<a target="_blank"
href="https://github.com/CliffCrerar/ice-cream-shop-switch-demo"><i class="bi bi-github"></i> View on
github </a><br>
<a target="_blank"
href="https://github.com/CliffCrerar/ice-cream-shop-switch-demo"><i class="bi bi-lightning"></i> View on
Stackblitz</a><br>
<a target="_blank" href="https://cliffcrerar.tech"><small>About the Author</a>
</small>
</div>
`;
document.body.appendChild(footer);
return mainLogic();
})(executeMainLogic);
// ignore above