student2222333051 commited on
Commit
042899c
·
verified ·
1 Parent(s): a0746e3

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +21 -17
index.html CHANGED
@@ -1,29 +1,33 @@
1
  <!DOCTYPE html>
2
- <html>
3
  <head>
4
- <meta charset="UTF-8">
5
  <title>Scientific Article Summarizer</title>
6
- <link rel="stylesheet" href="/static/styles.css">
7
  </head>
8
  <body>
 
9
 
10
- <h1>Scientific Article Summarizer</h1>
 
 
 
 
 
 
11
 
12
- <div class="container">
 
 
 
 
13
 
14
- <h2>Summarize Text</h2>
15
- <textarea id="inputText" placeholder="Insert scientific text..."></textarea>
16
- <button onclick="summarizeText()">Summarize Text</button>
17
 
18
- <h2>Summarize PDF</h2>
19
- <input type="file" id="pdfFile" accept="application/pdf">
20
- <button onclick="summarizePDF()">Summarize PDF</button>
21
 
22
- <h2>Summary Result</h2>
23
- <div id="summaryBox"></div>
24
-
25
- </div>
26
-
27
- <script src="/static/script.js"></script>
28
  </body>
29
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
  <head>
4
+ <meta charset="UTF-8" />
5
  <title>Scientific Article Summarizer</title>
6
+ <link rel="stylesheet" href="/static/styles.css" />
7
  </head>
8
  <body>
9
+ <h1>Scientific Article Summarizer</h1>
10
 
11
+ <div class="container">
12
+ <h2>Summarize Text</h2>
13
+ <textarea id="inputText" placeholder="Insert scientific text..."></textarea>
14
+ <div class="row">
15
+ <button id="summTextBtn" onclick="summarizeText()">Summarize Text</button>
16
+ <button onclick="copySummary()">Copy Summary</button>
17
+ </div>
18
 
19
+ <h2>Summarize PDF</h2>
20
+ <input type="file" id="pdfFile" accept="application/pdf" />
21
+ <div class="row">
22
+ <button id="summPdfBtn" onclick="summarizePDF()">Summarize PDF</button>
23
+ </div>
24
 
25
+ <h2>Summary Result</h2>
26
+ <div id="summaryBox" style="white-space: pre-line;"></div>
 
27
 
28
+ <div id="errorBox" class="error" hidden></div>
29
+ </div>
 
30
 
31
+ <script src="/static/script.js"></script>
 
 
 
 
 
32
  </body>
33
  </html>