-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (73 loc) · 3.17 KB
/
index.html
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
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A simple date conversion tool for converting between Bikram Sambat (BS) and Anno Domini (AD) dates.">
<meta name="keywords" content="date converter, BS to AD, AD to BS, Nepali calendar, Bikram Sambat, Anno Domini">
<meta name="author" content="Sudhan Parajuli">
<meta name="robots" content="index, follow">
<link rel="stylesheet" href="style.css">
<title>Date Converter</title>
</head>
<body>
<select id="conversionType" onchange="toggleConversionSection()">
<option value="">Select Conversion Type</option>
<option value="BStoAD">Convert BS to AD</option>
<option value="ADtoBS">Convert AD to BS</option>
</select>
<!-- BS to AD Section -->
<div class="conversion-section" id="bsToADSection" style="display: none;">
<h2>Convert BS to AD</h2>
<label for="bsYear"></label>
<select id="bsYear"></select>
<label for="bsMonth"></label>
<select id="bsMonth">
<option value="">Select Month</option>
<option value="1">Baishak</option>
<option value="2">Jestha</option>
<option value="3">Ashadh</option>
<option value="4">Shrawan</option>
<option value="5">Bhadra</option>
<option value="6">Ashwin</option>
<option value="7">Kartik</option>
<option value="8">Mangsir</option>
<option value="9">Poush</option>
<option value="10">Magh</option>
<option value="11">Falgun</option>
<option value="12">Chaitra</option>
</select>
<input type="number" id="bsDay" placeholder="BS Day" />
<button onclick="convertBSToAD()">Convert BS to AD</button>
<div class="result1" id="result1"></div>
<div class="error1" id="error1"></div>
</div>
<!-- AD to BS Section -->
<div class="conversion-section" id="adToBSSection" style="display: none;">
<h2>Convert AD to BS</h2>
<label for="adYear"></label>
<select id="adYear"></select>
<label for="adMonth"></label>
<select id="adMonth">
<option value="">Select Month</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
<input type="number" id="adDay" placeholder="AD Day" />
<button onclick="convertADToBS()">Convert AD to BS</button>
<div class="result2" id="result2"></div>
<div class="error2" id="error2"></div>
</div>
<script src="script.js"></script>
</body>
</html>