cvss / index.html
khulnasoft's picture
Update index.html
d03d3fd verified
<!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>