forked from vishal02527/My-Strength-Shree-Krishna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DIgital.html
278 lines (238 loc) · 8.61 KB
/
DIgital.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Krishna Audio & Video Resources</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
}
/* Navigation bar styles */
.navbar {
display: flex;
justify-content: flex-end; /* Align items to the right */
margin-bottom: 20px;
}
.navbar a {
text-decoration: none;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border-radius: 5px;
transition: background-color 0.3s;
margin-left: 10px; /* Space between buttons */
}
.navbar a:hover {
background-color: #45a049; /* Darker green on hover */
}
h1, h2 {
color: #4CAF50;
text-align: center;
margin-bottom: 20px;
}
#audio-section, #video-section {
margin: 20px auto;
max-width: 800px;
transition: all 0.3s ease;
}
.media-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.media-item {
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.media-item:hover {
transform: translateY(-5px);
}
h3 {
margin-bottom: 10px;
color: #333;
}
a {
display: block;
margin-top: 10px;
color: #4CAF50;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
audio, video {
width: 100%;
}
/* Social sharing buttons */
.social-share {
margin-top: 15px;
display: flex;
gap: 10px;
}
.social-share a {
text-decoration: none;
padding: 10px;
border-radius: 5px;
color: white;
font-size: 14px;
transition: background-color 0.3s;
}
.facebook-share {
background-color: #3b5998;
}
.twitter-share {
background-color: #1DA1F2;
}
.whatsapp-share {
background-color: #25D366;
}
.facebook-share:hover, .twitter-share:hover, .whatsapp-share:hover {
opacity: 0.8;
}
/* Language Selector */
.language-selector {
text-align: center;
margin-bottom: 20px;
}
.language-selector label {
font-size: 1.2em;
}
select {
padding: 10px;
font-size: 1em;
margin-left: 10px;
}
/* Accessibility Features */
.high-contrast {
background-color: black;
color: yellow;
}
/* Accessibility button styles */
.accessibility-btn {
padding: 10px 20px;
margin: 10px;
background-color: #333;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.accessibility-btn:hover {
background-color: #4CAF50;
}
/* Loader Styles */
.loader {
display: none;
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #4CAF50; /* Green */
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<script>
// Language change functionality
function changeLanguage() {
const selectedLanguage = document.getElementById("language").value;
alert("Language changed to " + selectedLanguage); // Simulated language change
}
// High contrast mode toggle
function toggleHighContrast() {
const body = document.body;
body.classList.toggle('high-contrast');
}
// Load Media Functionality
function loadMedia() {
const loader = document.getElementById('loader');
loader.style.display = 'block'; // Show loader
setTimeout(() => {
loader.style.display = 'none'; // Hide loader
document.querySelectorAll('.media-item').forEach(item => {
item.style.display = 'block'; // Show media items after loading
});
}, 2000); // Simulate loading time
}
window.onload = loadMedia; // Call loadMedia on window load
</script>
</head>
<body>
<!-- Navigation Bar -->
<div class="navbar">
<a href="index.html">Home</a> <!-- Update the href to your home page URL -->
</div>
<h1>Krishna Audio & Video Resources</h1>
<!-- Language Selector -->
<div class="language-selector">
<label for="language">Select Language:</label>
<select id="language" onchange="changeLanguage()">
<option value="English">English</option>
<option value="Hindi">Hindi</option>
<option value="Telugu">Telugu</option>
<option value="Spanish">Spanish</option>
<option value="French">French</option>
</select>
</div>
<!-- Accessibility Features -->
<div style="text-align: center;">
<button class="accessibility-btn" onclick="toggleHighContrast()">Toggle High Contrast Mode</button>
</div>
<!-- Loader -->
<div class="loader" id="loader"></div>
<!-- Audio Section -->
<section id="audio-section">
<h2>Audio Lectures and Bhajans</h2>
<div class="media-container">
<!-- Example audio item 1 -->
<div class="media-item" style="display: none;">
<h3>Bhagavad Gita Discourse</h3>
<audio controls>
<source src="audio/discourse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<a href="audio/discourse.mp3" download>Download Audio</a>
<!-- Social Media Share Buttons -->
<div class="social-share">
<a class="facebook-share" href="https://www.facebook.com/sharer/sharer.php?u=yourwebsite.com/audio/discourse.mp3" target="_blank">Share on Facebook</a>
<a class="twitter-share" href="https://twitter.com/intent/tweet?url=yourwebsite.com/audio/discourse.mp3&text=Check out this Bhagavad Gita Discourse!" target="_blank">Share on Twitter</a>
<a class="whatsapp-share" href="https://api.whatsapp.com/send?text=Check out this Bhagavad Gita Discourse: yourwebsite.com/audio/discourse.mp3" target="_blank">Share on WhatsApp</a>
</div>
</div>
</div>
</section>
<!-- Video Section -->
<section id="video-section">
<h2>Video Discourses and Performances</h2>
<div class="media-container">
<!-- Example video item 1 -->
<div class="media-item" style="display: none;">
<h3>Lecture on Krishna's Teachings</h3>
<video width="320" height="240" controls>
<source src="video/lecture.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<a href="video/lecture.mp4" download>Download Video</a>
<!-- Social Media Share Buttons -->
<div class="social-share">
<a class="facebook-share" href="https://www.facebook.com/sharer/sharer.php?u=yourwebsite.com/video/lecture.mp4" target="_blank">Share on Facebook</a>
<a class="twitter-share" href="https://twitter.com/intent/tweet?url=yourwebsite.com/video/lecture.mp4&text=Watch this lecture on Krishna's teachings!" target="_blank">Share on Twitter</a>
<a class="whatsapp-share" href="https://api.whatsapp.com/send?text=Watch this lecture on Krishna's teachings: yourwebsite.com/video/lecture.mp4" target="_blank">Share on WhatsApp</a>
</div>
</div>
</div>
</section>
</body>
</html>