aiscroll commited on
Commit
d64386d
·
verified ·
1 Parent(s): 85af964

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +38 -19
index.html CHANGED
@@ -1,19 +1,38 @@
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 lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>How GradeCalculator.college Works</title>
6
+ <style>
7
+ body { font-family: Arial, sans-serif; padding: 2rem; background: #f9f9f9; color: #333; }
8
+ pre { background: #eee; padding: 1rem; overflow-x: auto; border-radius: 5px; }
9
+ a { color: #0077cc; text-decoration: none; }
10
+ a:hover { text-decoration: underline; }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <h1>How GradeCalculator.college Works</h1>
15
+ <p>This site helps students calculate their final grades based on scores and weights.</p>
16
+ <h2>Simple Grade Calculator Demo</h2>
17
+ <pre>
18
+ &lt;input id="score" type="number" placeholder="Score" /&gt;
19
+ &lt;input id="weight" type="number" placeholder="Weight (%)" /&gt;
20
+ &lt;button onclick="calculateGrade()"&gt;Calculate&lt;/button&gt;
21
+ &lt;div id="result"&gt;&lt;/div&gt;
22
+
23
+ &lt;script&gt;
24
+ function calculateGrade() {
25
+ const score = parseFloat(document.getElementById('score').value);
26
+ const weight = parseFloat(document.getElementById('weight').value);
27
+ if(isNaN(score) || isNaN(weight)) {
28
+ alert('Please enter valid numbers');
29
+ return;
30
+ }
31
+ const weighted = (score * weight) / 100;
32
+ document.getElementById('result').textContent = 'Weighted Score: ' + weighted.toFixed(2);
33
+ }
34
+ &lt;/script&gt;
35
+ </pre>
36
+ <p>Try the full calculator at <a href="https://gradecalculator.college" target="_blank" rel="noopener noreferrer">gradecalculator.college</a></p>
37
+ </body>
38
+ </html>