forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarbon.html
More file actions
62 lines (56 loc) · 1.65 KB
/
Copy pathcarbon.html
File metadata and controls
62 lines (56 loc) · 1.65 KB
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
<script type="text/javascript">
window.carbonLoaded = false;
window.helloCarbon = function () {
window.carbonLoaded = true;
};
document.addEventListener("DOMContentLoaded", function () {
// Hello
var $hello = document.getElementById("hello");
var $huggingFace = document.getElementById("huggingFace");
var $carbon = document.getElementById("carbon");
var $placeholder = document.getElementById("placeholder");
setTimeout(function () {
if (window.carbonLoaded) {
$hello.style.minHeight = "218px";
$huggingFace.style.display = "none";
$carbon.style.display = "block";
} else {
$hello.style.minHeight = "0";
$huggingFace.style.display = "block";
$carbon.style.display = "none";
}
$placeholder.style.display = "none";
}, 2000);
});
</script>
<div id="hello">
<div id="huggingFace">
<p>CSS Reference is <strong>free</strong> and always will be!</p>
<p>Please whitelist us in your ad blocker.</p>
<p>
Thank you!
<img
src="{{site.url}}/images/hugging-face.png"
alt="Hugging face emoji"
/>
</p>
</div>
<div id="placeholder" class="placeholder">
<div class="placeholder-image"><div></div></div>
<div class="placeholder-content">
<div></div>
<div></div>
<div></div>
</div>
<div class="placeholder-footer"><div></div></div>
</div>
<div id="carbon">
<script
async
type="text/javascript"
src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=cssreferenceio"
id="_carbonads_js"
onload="window.helloCarbon()"
></script>
</div>
</div>