-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
76 lines (63 loc) · 2.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>Summary.JS by Lian Duan</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/default.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/media-queries.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- Script
================================================== -->
<script src="js/modernizr.js"></script>
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="favicon.png">
</head>
<!-- Header ================================================== -->
<script src="js/summary_minified.js"></script>
<!-- Header ================================================== -->
<nav id="nav-wrap">
<a class="mobile-btn" href="#nav-wrap" title="Show navigation">Show navigation</a>
<a class="mobile-btn" href="#" title="Hide navigation">Hide navigation</a>
`
<ul id="nav" class="nav">
<li><a class="smoothscroll" href="https://lian-d.github.io/">Back to Home</a></li>
<li class="current"><a class="smoothscroll" href="#about">Summary.js Demo</a></li>
<li><a class="smoothscroll" href="https://github.com/Lian-D/Summary.js">Open Repo</a></li>
</ul> <!-- end #nav -->
</nav> <!-- end #nav-wrap -->
<!-- Header ================================================== -->
<section id="about">
<div align="center" style="padding-top: 10px">
<!--<img src="./resources/summaryJS.png">-->
<H1 style="color: chocolate">Summary.js</H1>
<!--Text box for input-->
<div align="centre">
<p style="font-family: Roboto;color:dimgrey;font-size: x-large"> This is the <input id="sentence"
style="font-family: Roboto;color:dimgrey;font-size: x-large; width: 50px; height: 25px" ; value=7
type="number" name="number"> sentence long summary</p>
</div>
<textarea id="paragraph" style="height:510px; width:800px;font-family: Roboto;"></textarea>
</div>
<div align="center">
<!--Button to analyze the input textbox-->
<button onclick="document.getElementById('paragraph').value = summarize(document.getElementById('paragraph').value, document.getElementById('sentence').value, 6).text">
Summarize It!
</button>
</div>
</section>
<footer>
</footer>
</body>
</html>