File size: 2,475 Bytes
f525b80
 
1fc88ed
 
f525b80
1fc88ed
f525b80
 
 
d03d3fd
f525b80
 
 
 
 
 
 
 
483c370
f525b80
1fc88ed
f525b80
1fc88ed
 
f525b80
1fc88ed
 
 
 
 
 
 
f525b80
 
 
 
 
1fc88ed
 
 
 
 
f525b80
 
 
 
 
 
 
1fc88ed
f525b80
 
 
 
 
1fc88ed
f525b80
 
 
 
 
 
 
 
 
1fc88ed
 
 
 
 
f525b80
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
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CVSS Calculator v3.1 - Base Score</title>

    <link rel="icon" type="image/png" href="favicon.png">
    <link rel="stylesheet" href="cvss-new.css">

    <meta name="description" content="Graphical Common Vulnerability Scoring System (CVSS) v3.1 Base Score Calculator with helpful hints.">
    <meta property="og:type" content="website">
    <meta property="og:image" content="cvss-calculator-screenshot.png">
    <meta property="og:title" content="CVSS v3.1 Base Score Calculator">
    <meta property="og:description" content="An illustrated, easy-to-use CVSS v3.1 Base Score Calculator with helpful hints.">
    <meta name="twitter:title" content="CVSS v3.1 Base Score Calculator">

    <script src="cvss-new.js" defer></script>

    <style>
        /* Minor adjustments if external CSS isn’t required for these small styles */
        body {
            background-color: #e0e4e4;
            font-family: Arial, sans-serif;
            padding: 1em;
            text-align: center;
        }
        #footer {
            font-size: x-small;
            color: gray;
        }
        @media screen and (min-width: 720px) {
            #cvssboard {
                width: 640px;
                display: inline-block;
            }
        }
    </style>
</head>

<body>
    <header>
        <h1>CVSS v3.1 Base Score Calculator</h1>
    </header>
    <main>
        <div id="cvssboard" role="main" aria-label="CVSS Score Calculator Board">
        </div>
    </main>
    <footer id="footer">
        <p>&copy; 2019 Chandan</p>
        <p><a href="https://github.com/cvssjs">CVSSjs</a> is free to use and modify under a BSD-like license.</p>
        <p>Common Vulnerability Scoring System (CVSS) is a free and open standard by <a href="http://www.first.org/cvss">FIRST.Org</a>.</p>
    </footer>

    <script>
        document.addEventListener("DOMContentLoaded", function () {
            const c = new CVSS("cvssboard", {
                onchange: function () {
                    window.location.hash = c.get().vector;
                    c.vector.setAttribute('href', '#' + c.get().vector);
                }
            });
            if (window.location.hash.length > 1) {
                c.set(decodeURIComponent(window.location.hash.substring(1)));
            }
        });
    </script>
</body>

</html>