Update index.html
Browse files- index.html +46 -46
index.html
CHANGED
@@ -1,71 +1,71 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
<head>
|
4 |
-
<
|
5 |
-
<link rel="icon"
|
6 |
-
type="image/png"
|
7 |
-
href="favicon.png">
|
8 |
-
<link rel="shortcut icon" type="image/png" href="favicon.png">
|
9 |
-
<meta name="description" content="Easy to use illustrated graphical Common Vulnerability Scoring System (CVSS) Base Score Calculator with hints"/>
|
10 |
-
<meta name="keywords" content="CVSS v3.1 Base Score Calculator,ATTACK VECTOR,Network,Adjacent,Local,Physical,ATTACK COMPLEXITY,Low,High,PRIVILEGES REQUIRE,None,Low,High,USER INTERACTION,None,Required,SCOPE,Changed,Unchanged,CONFIDENTIALITY,High,Low,None,INTEGRITY,High,Low,None,AVAILABILITY,High,Low,None,SEVERITY,SCORE,VECTOR"/>
|
11 |
-
<meta property="og:type" content="website" />
|
12 |
-
<meta property="og:image" content="cvss-calculator-screenshot.png" />
|
13 |
-
<meta name="og:title" property="og:title" content="CVSS v3.1 Base Score Calculator"/>
|
14 |
-
<meta name="twitter:title" content="CVSS v3.1 Base Score Calculator"/>
|
15 |
-
<meta name="og:description" property="og:description" content="Easy to use illustrated graphical Common Vulnerability Scoring System (CVSS) Base Score Calculator with hints">
|
16 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
17 |
-
<
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<style>
|
|
|
20 |
body {
|
21 |
background-color: #e0e4e4;
|
22 |
-
font-family:
|
23 |
padding: 1em;
|
24 |
text-align: center;
|
25 |
-
align-content: center;
|
26 |
}
|
27 |
#footer {
|
28 |
font-size: x-small;
|
29 |
-
}
|
30 |
-
#cvssboard {
|
31 |
-
text-align: center;
|
32 |
-
align-content: center;
|
33 |
-
}
|
34 |
-
#footer, H3 {
|
35 |
color: gray;
|
36 |
}
|
37 |
-
@media screen and (min-width: 720px) {
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
}
|
43 |
-
}
|
44 |
</style>
|
45 |
</head>
|
46 |
|
47 |
<body>
|
48 |
-
<
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
<footer id="footer">
|
54 |
-
|
55 |
-
<
|
56 |
-
<
|
|
|
|
|
57 |
<script>
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
});
|
64 |
-
if (window.location.hash.substring(1).length > 0) {
|
65 |
-
c.set(decodeURIComponent(window.location.hash.substring(1)));
|
66 |
-
}
|
67 |
</script>
|
68 |
-
|
69 |
</body>
|
70 |
|
71 |
-
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
|
4 |
<head>
|
5 |
+
<meta charset="UTF-8">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>CVSS Calculator v3.1 - Base Score</title>
|
8 |
+
|
9 |
+
<link rel="icon" type="image/png" href="favicon.png">
|
10 |
+
<link rel="stylesheet" href="cvss.css">
|
11 |
+
|
12 |
+
<meta name="description" content="Graphical Common Vulnerability Scoring System (CVSS) v3.1 Base Score Calculator with helpful hints.">
|
13 |
+
<meta property="og:type" content="website">
|
14 |
+
<meta property="og:image" content="cvss-calculator-screenshot.png">
|
15 |
+
<meta property="og:title" content="CVSS v3.1 Base Score Calculator">
|
16 |
+
<meta property="og:description" content="An illustrated, easy-to-use CVSS v3.1 Base Score Calculator with helpful hints.">
|
17 |
+
<meta name="twitter:title" content="CVSS v3.1 Base Score Calculator">
|
18 |
+
|
19 |
+
<script src="cvss.js" defer></script>
|
20 |
+
|
21 |
<style>
|
22 |
+
/* Minor adjustments if external CSS isn’t required for these small styles */
|
23 |
body {
|
24 |
background-color: #e0e4e4;
|
25 |
+
font-family: Arial, sans-serif;
|
26 |
padding: 1em;
|
27 |
text-align: center;
|
|
|
28 |
}
|
29 |
#footer {
|
30 |
font-size: x-small;
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
color: gray;
|
32 |
}
|
33 |
+
@media screen and (min-width: 720px) {
|
34 |
+
#cvssboard {
|
35 |
+
width: 640px;
|
36 |
+
display: inline-block;
|
37 |
+
}
|
38 |
}
|
|
|
39 |
</style>
|
40 |
</head>
|
41 |
|
42 |
<body>
|
43 |
+
<header>
|
44 |
+
<h1>CVSS v3.1 Base Score Calculator</h1>
|
45 |
+
</header>
|
46 |
+
<main>
|
47 |
+
<div id="cvssboard" role="main" aria-label="CVSS Score Calculator Board">
|
48 |
+
</div>
|
49 |
+
</main>
|
50 |
<footer id="footer">
|
51 |
+
<p>© 2019 Chandan</p>
|
52 |
+
<p><a href="https://github.com/cvssjs">CVSSjs</a> is free to use and modify under a BSD-like license.</p>
|
53 |
+
<p>Common Vulnerability Scoring System (CVSS) is a free and open standard by <a href="http://www.first.org/cvss">FIRST.Org</a>.</p>
|
54 |
+
</footer>
|
55 |
+
|
56 |
<script>
|
57 |
+
document.addEventListener("DOMContentLoaded", function () {
|
58 |
+
const c = new CVSS("cvssboard", {
|
59 |
+
onchange: function () {
|
60 |
+
window.location.hash = c.get().vector;
|
61 |
+
c.vector.setAttribute('href', '#' + c.get().vector);
|
62 |
+
}
|
63 |
+
});
|
64 |
+
if (window.location.hash.length > 1) {
|
65 |
+
c.set(decodeURIComponent(window.location.hash.substring(1)));
|
66 |
}
|
67 |
});
|
|
|
|
|
|
|
68 |
</script>
|
|
|
69 |
</body>
|
70 |
|
71 |
+
</html>
|