-
Notifications
You must be signed in to change notification settings - Fork 0
/
months.html
106 lines (97 loc) · 3.75 KB
/
months.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Select a Month</title>
<style>
body {
font-family: Arial, sans-serif;
background: #ffffff; /* White background */
color: #0056b3; /* Blue text color for contrast */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-style: italic;
}
.container {
text-align: center;
width: 80%;
margin: auto;
}
.header {
font-size: 24px;
margin-bottom: 20px;
color: #007BFF; /* Header text color */
background-color: #E3F2FD; /* Light blue background for header */
padding: 10px;
border-radius: 8px; /* Optional: adds rounded corners */
}
.months {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
padding: 10px;
}
.month {
background-color: #E3F2FD; /* Light blue background for buttons */
color: #0056b3; /* Dark blue text */
padding: 20px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
border: 2px solid #000080; /* Navy blue border */
}
.month:hover {
background-color: #007BFF; /* Brighter blue on hover */
color: #ffffff; /* White text on hover */
transform: scale(1.05); /* Scale effect on hover */
box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Increased shadow on hover */
}
.month:focus {
outline: none;
border: 2px solid #0056b3; /* Blue border on focus */
}
</style>
</head>
<body>
<div class="container">
<div id="yearHeader" class="header">Select a Month for Year: <span id="year">2023</span></div>
<div class="months" id="monthsContainer">
<div class="month" onclick="openImage('01')">January</div>
<div class="month" onclick="openImage('02')">February</div>
<div class="month" onclick="openImage('03')">March</div>
<div class="month" onclick="openImage('04')">April</div>
<div class="month" onclick="openImage('05')">May</div>
<div class="month" onclick="openImage('06')">June</div>
<div class="month" onclick="openImage('07')">July</div>
<div class="month" onclick="openImage('08')">August</div>
<div class="month" onclick="openImage('09')">September</div>
<div class="month" onclick="openImage('10')">October</div>
<div class="month" onclick="openImage('11')">November</div>
<div class="month" onclick="openImage('12')">December</div>
</div>
<div class="image-container"></div>
</div>
<script>
let year;
function getYearFromURL() {
const params = new URLSearchParams(window.location.search);
year = params.get('year');
if(year) {
document.getElementById('year').textContent = year;
}
}
function openImage(month) {
const imageContainer = document.querySelector(".image-container");
let imagePath = `./PreprocessingImages/${year}/${month}_${year}.png`;
imageContainer.innerHTML = `<img src="${imagePath}" alt="Image not available due to excessive cloud coverage !">`;
}
window.onload = getYearFromURL;
</script>
</body>
</html>