-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (26 loc) · 966 Bytes
/
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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" type="image/ico" href="https://cdn.jsdelivr.net/npm/[email protected]">
<link rel="icon" type="image/png" sizes="32x32" href="https://cdn.jsdelivr.net/npm/[email protected]/favicon/favicon-32x32.png">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Rainbow Browser - Sukka Lab</title>
<meta content=#fff id=theme-color name=theme-color>
</head>
<body style="padding: 20px!">
<p>Mama look, rainbow!</p>
<script>
const colors = '#66CCFF #FFFF00 #9999FF #006666 #0080FF #53C5B9 #00FFCC #99FFFF #EE0000 #363636 #EE82EE'.split(' ');
const themeColorMetaEl = document.getElementById('theme-color');
let i = 0;
const changeColor = () => {
const color = colors[i];
themeColorMetaEl.setAttribute('content', color);
i = (i + 1) % colors.length;
setTimeout(changeColor, 1500)
};
changeColor();
</script>
</body>
</html>