Codingrocks3 commited on
Commit
280401e
·
1 Parent(s): 1484ca4

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +25 -16
index.html CHANGED
@@ -1,19 +1,28 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ </head>
7
+ <body>
8
+
9
+ <h1>Square Roots</h1>
10
+ <p>Drag the slider to display the square root.</p>
11
+
12
+ <div class="slidecontainer">
13
+ <input type="range" min="1" max="100" value="50" class="slider" id="myRange">
14
+ <p>Value: <span id="demo"></span></p>
15
+ </div>
16
+
17
+ <script>
18
+ var slider = document.getElementById("myRange");
19
+ var output = document.getElementById("demo");
20
+ output.innerHTML = slider.value;
21
+
22
+ slider.oninput = function() {
23
+ output.innerHTML = Math.sqrt(this.value) ;
24
+ }
25
+ </script>
26
+
27
+ </body>
28
  </html>