-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
138 lines (138 loc) · 4.42 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>G.CSS</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/siimple@3.0.0/dist/siimple.min.css">
<link rel="stylesheet" type="text/css" href="g.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style>
* {
transition: 0.2s all ease-in-out;
}
</style>
</head>
<body>
<div id="bg" align="center" class="siimple-jumbotron siimple-jumbotron--navy siimple-jumbotron--fluid" style="top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;width:100vw;height:100vh;box-sizing:border-box;">
<div class="siimple-jumbotron-title">G.CSS</div>
<div class="siimple-jumbotron-subtitle">A simple CSS library with 100+ gradients.</div>
<div class="siimple-jumbotron-detail"><a class="siimple-navbar-link" style="color:#eee;" href="docs/index.html">Documentation</a></div>
</div>
<script>
var gradients = [
"gcss-warm-flame",
"gcss-night-fade",
"gcss-spring-warmth",
"gcss-juicy-peach",
"gcss-young-passion",
"gcss-lady-lips",
"gcss-sunny-morning",
"gcss-rainy-ashville",
"gcss-frozen-dreams",
"gcss-winter-neva",
"gcss-dusty-grass",
"gcss-tempting-azure",
"gcss-heavy-rain",
"gcss-army-crisp",
"gcss-mean-fruit",
"gcss-deep-blue",
"gcss-ripe-malinka",
"gcss-cloudy-knoxville",
"gcss-malibu-beach",
"gcss-new-life",
"gcss-true-sunset",
"gcss-morpheus-den",
"gcss-rare-wind",
"gcss-near-moon",
"gcss-wild-apple",
"gcss-saint-petersburg",
"gcss-arielles-smile",
"gcss-plum-plate",
"gcss-everlasting-sky",
"gcss-happy-fisher",
"gcss-blessing",
"gcss-sharpeye-eagle",
"gcss-ladoga-bottom",
"gcss-lemon-gate",
"gcss-itmeo-branding",
"gcss-zeus-miracle",
"gcss-old-hat",
"gcss-star-wine",
"gcss-deep-blue-2",
"gcss-coup-de-grace",
"gcss-happy-acid",
"gcss-awesome-pine",
"gcss-new-york",
"gcss-shy-rainbow",
"gcss-loon-crest",
"gcss-mixed-hopes",
"gcss-fly-high",
"gcss-strong-bliss",
"gcss-fresh-milk",
"gcss-snow-again",
"gcss-february-ink",
"gcss-kind-steel",
"gcss-soft-grass",
"gcss-grown-early",
"gcss-sharp-blues",
"gcss-shady-water",
"gcss-dirty-beauty",
"gcss-great-whale",
"gcss-teen-notebook",
"gcss-polite-rumors",
"gcss-sweet-period",
"gcss-wide-matrix",
"gcss-soft-cherish",
"gcss-red-salvation",
"gcss-burning-spring",
"gcss-night-party",
"gcss-sky-glider",
"gcss-heaven-peach",
"gcss-purple-division",
"gcss-aqua-splash",
"gcss-above-clouds",
"gcss-spiky-naga",
"gcss-love-kiss",
"gcss-sharp-glass",
"gcss-clean-mirror",
"gcss-premium-dark",
"gcss-cold-evening",
"gcss-cochiti-lake",
"gcss-summer-games",
"gcss-passionate-bed",
"gcss-mountain-rock",
"gcss-desert-hump",
"gcss-jungle-day",
"gcss-phoenix-start",
"gcss-october-silence",
"gcss-over-sun",
"gcss-premium-white",
"gcss-mars-party",
"gcss-eternal-constance",
"gcss-japan-blush",
"gcss-smiling-rain",
"gcss-cloudy-apple",
"gcss-big-mango",
"gcss-healthy-water",
"gcss-amour-amour",
"gcss-risky-concrete",
"gcss-strong-stick",
"gcss-vicious-stance",
"gcss-palo-alto",
"gcss-happy-memories",
"gcss-midnight-bloom",
"gcss-crystalline",
"gcss-raccoon-back",
"gcss-party-bliss",
"gcss-confident-cloud"
]
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min
}
var bg = document.getElementById("bg")
setInterval(()=> {
bg.className = "siimple-jumbotron siimple-jumbotron--navy siimple-jumbotron--fluid " + gradients[getRandomInt(0, gradients.length)]
},3500)
</script>
</body>
</html>