-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (48 loc) · 2.26 KB
/
Copy pathindex.html
File metadata and controls
56 lines (48 loc) · 2.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pomodoro Timer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="settings-icon" id="settingsIcon">⚙️</div>
<div class="pomodoro">
<div id="timer" class="timer">
<span id="minutes">25</span>:<span id="seconds">00</span>
</div>
<div class="controls">
<button id="reset">Reset</button>
</div>
</div>
<!-- Spotify FAB Icon -->
<div class="spotify-fab" id="spotifyFab" title="Show Spotify Player">
<img src="https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/spotify.svg" alt="Spotify" />
</div>
<!-- Spotify Widget (initially hidden) -->
<div class="spotify-widget" id="spotifyWidget" style="display:none;">
<iframe id="spotifyFrame" style="border-radius:12px" src="https://open.spotify.com/embed/playlist/1xVQZjNBLeHGCLfT3Ngfrk?utm_source=generator" width="100%" height="152" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
</div>
<div class="modal" id="settingsModal">
<div class="modal-content">
<span class="close" id="closeModal">×</span>
<h2>Settings</h2>
<label for="pomodoroDuration">Pomodoro Duration (minutes):</label>
<input type="range" id="pomodoroDuration" min="1" max="60" value="25" step="1">
<span id="pomodoroValue">25 minutes</span>
<label for="breakDuration">Break Duration (minutes):</label>
<input type="range" id="breakDuration" min="1" max="30" value="5" step="1">
<span id="breakValue">5 minutes</span>
<hr style="margin: 1.5em 0;">
<div class="playlist-settings-modal">
<h3>Spotify Playlist</h3>
<label for="playlistUrl">Playlist URL:</label>
<input type="text" id="playlistUrl" placeholder="Spotify Playlist URL">
<button id="updatePlaylist">Update Playlist</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>