Skip to content

Commit

Permalink
1.4.3 Update
Browse files Browse the repository at this point in the history
Added Spotify
  • Loading branch information
jgavrilo committed Nov 21, 2023
1 parent 51aa276 commit 79ea17f
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
tag_name: ${{ steps.manifest.outputs.version }}
release_name: Release ${{ steps.manifest.outputs.version }}
body: Fixed bullet point wrapping glitch
body: Fixed more todo list glitches, added spotify player
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "GetItTogether",
"version": "1.4.2.1",
"version": "1.4.3",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAni8XFkkQ4I+t3clNWVnatNTUPEHK59rsOv461uN3TdXtz4NDw0/2aymf+/LEHyp2Yky2JlyCnxAkndmPbcuDrXHvl7+O8XYeTavVn5Xm96A544dUeSzrzUjgWHGcR9ZJ+g9ahmukamW12TdggrtGJixY6n4rGIx0WW0XPOLUed93kZyN6B1axWj20MJ9Cax71LdVScNISfZ6qIrJZTJSnpnMCKZoo9ZlDIuwaFJn7zhSIajYF0quSazI/Cug9pUfw42f1O+abv46m0Mtzltr5exC4et5jRVEanQRhjwiCMLYP9aKceWkqo+9131arAb44lYrIlZtusT7XQ12By0Z/wIDAQAB",
"description": "A tool set for chrome",
"permissions": [
Expand Down
17 changes: 17 additions & 0 deletions src/css/spotify.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}

.spotify-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

iframe {
border: none;
}
1 change: 1 addition & 0 deletions src/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<body>
<button id="openTimer">Timer</button>
<button id="openTodo">To-Do List</button>
<button id="openSpotify">Spotify</button>
<button id="openSettings">Settings</button>
</body>
</html>
1 change: 1 addition & 0 deletions src/html/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</div>
</div>

<!-- Alarms Section -->
<div id="Alarms" class="tabcontent">
<form id="alarmForm">
<input type="radio" id="classic-alarm" name="alarm" value="classic-alarm.mp3">
Expand Down
17 changes: 17 additions & 0 deletions src/html/spotify.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/theme.css">
<link rel="stylesheet" type="text/css" href="../css/spotify.css">
<script src="../js/theme.js" defer></script>
<title>Spotify Player</title>
</head>
<body>
<div class="spotify-container">
<iframe src="https://open.spotify.com/embed/playlist/37i9dQZF1DX8NTLI2TtZa6" width="300" height="400" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
</div>
</body>
</html>

8 changes: 7 additions & 1 deletion src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,15 @@ const settingsButtonId = 'openSettings';
const settingsFile = 'src/html/settings.html';
const settingsWindowDimensions = { width: 400, height: 300 };

const spotifyWindowName = 'SpotifyPlayer';
const spotifyButtonId = 'openSpotify';
const spotifyFile = 'src/html/spotify.html';
const spotifyWindowDimensions = { width: 320, height: 450 };

// SECTION - Event Listener Attachments

// Attach event listeners to handle window opening for each type
handleWindowOpen(timerWindowName, timerButtonId, timerFile, timerWindowDimensions);
handleWindowOpen(todoWindowName, todoButtonId, todoFile, todoWindowDimensions);
handleWindowOpen(settingsWindowName, settingsButtonId, settingsFile, settingsWindowDimensions);
handleWindowOpen(settingsWindowName, settingsButtonId, settingsFile, settingsWindowDimensions);
handleWindowOpen(spotifyWindowName, spotifyButtonId, spotifyFile, spotifyWindowDimensions);

0 comments on commit 79ea17f

Please sign in to comment.