We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77822b commit fc82743Copy full SHA for fc82743
3 files changed
_includes/menu.html
@@ -1,10 +1,24 @@
1
<script type="text/javascript">
2
+window.carbonLoaded = false;
3
+
4
window.helloCarbon = function() {
5
+ window.carbonLoaded = true;
6
+}
7
8
+document.addEventListener('DOMContentLoaded', function() {
9
var $huggingFace = document.getElementById('huggingFace');
10
var $carbon = document.getElementById('carbon');
- $huggingFace.style.display = 'none';
- $carbon.style.display = 'block';
-}
11
12
+ setTimeout(function() {
13
+ if (window.carbonLoaded) {
14
+ $huggingFace.style.display = 'none';
15
+ $carbon.style.display = 'block';
16
+ } else {
17
+ $huggingFace.style.display = 'block';
18
+ $carbon.style.display = 'none';
19
+ }
20
+ }, 5000);
21
+});
22
</script>
23
24
<aside class="menu">
0 commit comments