Professional Documents
Culture Documents
JS Laboratory 1
JS Laboratory 1
doctype html>
<html>
<head>
<title>Laboratory 1</title>
<style>
body {
margin:20px;
.all {
font-size:15px;
border-style: none;
border:1px;
text-align: center;
font-family: georgia;
button {
border-style:none;
background:#ff4d4d;
font-size: 15px;
font-family: georgia;
width: 10%;
border-radius: 2px;
color:white;
</style>
</head>
<body>
<div class="all">
<div>
<button onclick="convert()">Confirm</button>
<button onclick="closed()">Cancel</button>
</div>
</div>
<script>
function convert() {
if (yes) {
else {
var grade;
grade = 1.00;
grade = 1.25;
grade = 1.50;
grade = 1.75;
grade = 2.00;
grade = 2.25;
grade = 2.50;
}
else if (grd >= 76 && grd <= 78) {
grade = 2.75;
grade = 3.00;
else {
grade = 5.00;
else {
window.close();
function closed() {
window.close();
</script>
</body>
</html>