-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
executable file
·65 lines (62 loc) · 3.19 KB
/
example.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
<head>
<style>
@import url('https://rsms.me/inter/inter.css');
@import url('https://iso-radio-production.s3.amazonaws.com/fonts/lab-mono/lab-mono.css');
html { font-family:'Inter',sans-serif;font-weight: 300; }
body { background:#fffdc3;color:#666666;font-size:2em;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-direction:column;flex-direction:column;width:100%;height:100%;position:fixed;top:0;left:0; }
.rectangle { background:#666666;display:inline-block;width:4em;height:0.06em;margin:0em 0.25em 0.25em }
@keyframes animatedBackground {
0%{background-position:0% 0%}
50%{background-position:100% 0%}
100%{background-position:200% 0%}
}
#animated { background-size: 200% 100%; -webkit-animation: animatedBackground 3s linear infinite; }
.nav { font-size:0.6em; }
.gh { position:fixed;bottom:1.8em;right:1.8em;cursor:alias }
.npm { position:fixed;bottom:2em;left:2em; }
.code { font-family:'Lab Mono Web';font-size:0.6em;padding:0.2em 0.6em;background:rgba(102, 102, 102, 0.33);border-radius:0.3em;color:inherit;text-decoration:none; }
button { cursor:pointer; }
#result { font-size:0.6em }
</style>
</head>
<body>
<div class="pride-2019">
<span class="acab-honestly">cops are</span>
<span class="rectangle"></span>
<span class="here-i-am">not welcome</span>
<span class="rectangle"></span>
at <span id="animated">pride</span>
</div>
<div class="nav">
<a class="gh" href="https://github.com/iso-radio/what-or-whom-we-love" target="_blank">docs</a><br/>
<div class="npm">
<span class="code">$ npm install what-or-whom-we-love</span> <button class="copy" data-clipboard-text="npm install what-or-whom-we-love">copy</button> <span id="result"></span>
</div>
</div>
<script src="dist/what-or-whom-we-love.min.js" type="text/javascript"></script>
<script>
whomWeLove({
howWeLove: "gradient",
whereToShowVisibility: ".here-i-am"
})
whomWeLove({
howWeLove: "forever",
whereToShowVisibility: "#animated"
})
</script>
<!-- Below is code for the copy and paste utility on the example page. You don't need this for `what-or-whom-we-love` to work. -->
<script src="https://unpkg.com/clipboard@2/dist/clipboard.min.js"></script>
<script>
var clipboard = new ClipboardJS(".copy");
var result = document.getElementById("result");
clipboard.on("success", function(e) {
result.innerHTML += "copied to clipboard! 💙";
setTimeout(function() {
result.innerHTML = "";
}, 1000);
});
clipboard.on("error", function(e) {
result.innerHTML += "Something went wrong! Maybe just copy and paste lol!";
});
</script>
</body>