Update index.html
Browse files- index.html +22 -8
index.html
CHANGED
@@ -7,13 +7,27 @@
|
|
7 |
<link rel="stylesheet" href="style.css" />
|
8 |
</head>
|
9 |
<body>
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
7 |
<link rel="stylesheet" href="style.css" />
|
8 |
</head>
|
9 |
<body>
|
10 |
+
<div class="iframe-container">
|
11 |
+
<iframe
|
12 |
+
src="https://codellama-codellama-13b-chat.hf.space"
|
13 |
+
frameborder="0"
|
14 |
+
scrolling="no"
|
15 |
+
></iframe>
|
16 |
+
</div>
|
17 |
+
<button class="click"><span>🤖</span></button>
|
18 |
</body>
|
19 |
+
<script>
|
20 |
+
const click = document.querySelector('.click')
|
21 |
+
const frame = document.querySelector('.iframe-container')
|
22 |
+
let i = 1;
|
23 |
+
click.addEventListener('click', ()=>{
|
24 |
+
if(i == 0) {
|
25 |
+
frame.style.display = 'none'
|
26 |
+
i = 1
|
27 |
+
}else if(i == 1){
|
28 |
+
frame.style.display = 'block'
|
29 |
+
i = 0
|
30 |
+
}
|
31 |
+
})
|
32 |
+
</script>
|
33 |
</html>
|