khulnasoft commited on
Commit
f525b80
·
verified ·
1 Parent(s): 1fc88ed

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +46 -46
index.html CHANGED
@@ -1,71 +1,71 @@
1
- <html>
 
2
 
3
  <head>
4
- <title>CVSS Calculator v3.1 - Base Score</title>
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
- <link rel="stylesheet" type="text/css" media="all" href="cvss.css">
18
- <script src="cvss.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
19
  <style>
 
20
  body {
21
  background-color: #e0e4e4;
22
- font-family: arial;
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
- #cvssboard {
39
- width: 640px;
40
- align-content: center;
41
- display: inline-block;
42
  }
43
- }
44
  </style>
45
  </head>
46
 
47
  <body>
48
- <hgroup>
49
- <h3>CVSS v3.1 Base Score Calculator</h3></hgroup>
50
- <div id="cvssboard">
51
- </div>
52
- <br>
 
 
53
  <footer id="footer">
54
- Copyright 2019 © Chandan
55
- <br/><a href="https://github.com/cvssjs">CVSSjs</a> is free to use, copy, modification under a BSD like licence.
56
- <br/>Common Vulnerability Scoring System (CVSS) is a free and open standard. It is owned and managed by <a href="http://www.first.org/cvss">FIRST.Org</a>.</footer>
 
 
57
  <script>
58
- var 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.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>&copy; 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>