ShayanRl commited on
Commit
a63e263
·
verified ·
1 Parent(s): b06d6b7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +50 -18
index.html CHANGED
@@ -1,19 +1,51 @@
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
+ <title>FormulaJS Playground</title>
5
+ <meta charset="UTF-8" />
6
+ <!-- Import FormulaJS from CDN -->
7
+ <script src="https://cdn.jsdelivr.net/npm/@formulajs/formulajs@4.3.0/lib/browser/formula.min.js"></script>
8
+ <!-- Fixed CSS path -->
9
+ <link rel="stylesheet" href="styles.css" />
10
+ </head>
11
+
12
+ <body>
13
+ <div id="app">
14
+ <h1>FormulaJS Playground</h1>
15
+
16
+ <div class="playground">
17
+ <div class="input-section">
18
+ <h2>Excel Formula</h2>
19
+ <select id="formula-select">
20
+ <option value="SUM">SUM</option>
21
+ <option value="AVERAGE">AVERAGE</option>
22
+ <option value="MAX">MAX</option>
23
+ <option value="MIN">MIN</option>
24
+ <option value="PMT">PMT</option>
25
+ <option value="FV">FV</option>
26
+ <option value="NPV">NPV</option>
27
+ <option value="IRR">IRR</option>
28
+ <option value="VLOOKUP">VLOOKUP</option>
29
+ <option value="REGEXEXTRACT">REGEXEXTRACT</option>
30
+ <option value="REGEXMATCH">REGEXMATCH</option>
31
+ </select>
32
+
33
+ <div id="params-container">
34
+ <!-- Parameters will be added dynamically -->
35
+ </div>
36
+
37
+ <button id="calculate-btn">Calculate</button>
38
+ </div>
39
+
40
+ <div class="result-section">
41
+ <h2>Result</h2>
42
+ <div id="result"></div>
43
+ <div id="formula-code"></div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+
48
+ <!-- Fixed JavaScript path and using type="module" for .mjs -->
49
+ <script type="module" src="index.mjs"></script>
50
+ </body>
51
+ </html>