Update templates/base.html
Browse files- templates/base.html +16 -31
templates/base.html
CHANGED
@@ -3,38 +3,23 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Little Krishna Chatbot</title>
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
<link rel="stylesheet" href="/static/css/styles.css">
|
11 |
-
<!-- Load Lottie Player for animations -->
|
12 |
-
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
|
13 |
</head>
|
14 |
<body>
|
15 |
-
<
|
16 |
-
<
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
document.addEventListener('DOMContentLoaded', () => {
|
28 |
-
const audio = document.getElementById('flute-audio');
|
29 |
-
// Attempt to play audio, with a fallback for user interaction
|
30 |
-
audio.play().catch(error => {
|
31 |
-
console.error('Error playing audio:', error);
|
32 |
-
// Add a click event to play audio on user interaction (due to browser restrictions)
|
33 |
-
document.body.addEventListener('click', () => {
|
34 |
-
audio.play().catch(err => console.error('Error playing audio on click:', err));
|
35 |
-
}, { once: true });
|
36 |
-
});
|
37 |
-
});
|
38 |
-
</script>
|
39 |
</body>
|
40 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>{% block title %}{% endblock %} - Little Krishna Chatbot</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
|
8 |
+
{% block styles %}
|
9 |
+
{% endblock %}
|
|
|
|
|
|
|
10 |
</head>
|
11 |
<body>
|
12 |
+
<nav>
|
13 |
+
<a href="/">Home</a>
|
14 |
+
<a href="/chat">Chat with Krishna</a>
|
15 |
+
<a href="/adventure">Vrindavan Adventure</a>
|
16 |
+
<a href="/message">Birthday Message</a>
|
17 |
+
</nav>
|
18 |
+
|
19 |
+
{% block content %}
|
20 |
+
{% endblock %}
|
21 |
+
|
22 |
+
{% block scripts %}
|
23 |
+
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
</body>
|
25 |
</html>
|