forked from yozlet/launchdarkly-html-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (62 loc) · 1.83 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
<html>
<head>
<style>.rainbow {
height: 100%;
width: 100%;
left:0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
background-size: 1800% 1800%;
-webkit-animation: rainbow 18s ease infinite;
-z-animation: rainbow 18s ease infinite;
-o-animation: rainbow 18s ease infinite;
animation: rainbow 18s ease infinite;}
@-webkit-keyframes rainbow {
0%{background-position:0% 82%}
50%{background-position:100% 19%}
100%{background-position:0% 82%}
}
@-moz-keyframes rainbow {
0%{background-position:0% 82%}
50%{background-position:100% 19%}
100%{background-position:0% 82%}
}
@-o-keyframes rainbow {
0%{background-position:0% 82%}
50%{background-position:100% 19%}
100%{background-position:0% 82%}
}
@keyframes rainbow {
0%{background-position:0% 82%}
50%{background-position:100% 19%}
100%{background-position:0% 82%}
}</style>
<script src="launchdarkly-html-sdk.js"></script>
<meta property="ld:clientid" content="604009d2b8b2810eddcc36db">
<meta property="ld:user:key" content="test" >
<meta property="ld:user:name" content="hi" data-private>
<meta property="ld:user:groups" content="group1" >
<meta property="ld:user:groups" content="group2">
<!-- Adds the "blue-bg" class to this element
when the "blue-panel" flag evaluates to true
-->
<style>
.blue-bg {
background: blue;
}
</style>
</head>
<body>
<div data-ld data-ld-class="blue-bg">
<h1 data-ld-text="greeting" data-ld-style-color="color">Fallback value<h1>
</div>
<!-- after successful connection to LaunchDarkly or a proxy, this
will evaluate the "h1-content" flag and replace the
current inner text with the result; otherwise, the existing
inner text will remain
-->
</body>
</html>