Skip to content

Commit

Permalink
updated embed.js, index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kakachiex2 committed May 8, 2024
1 parent c25830c commit 5c71f27
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions embed.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
// embed.js
const css =

body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f7f7f7;
font-family: Arial, sans-serif;
}

.music-player {
background-color: #fff;
padding: 20px;
border-radius: 20px;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
text-align: center;
}

.controls {
margin-top: 20px;
}

button {
margin: 0 10px;
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007BFF;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: #0056b3;
}
;

const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);

document.addEventListener('DOMContentLoaded', function() {
// Get the script tag that loaded this script
var scriptTag = document.currentScript;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<title>Mini Music Player</title>
<link rel="stylesheet" type="text/css" href="./src/css/main.css">
<!-- <link rel="stylesheet" type="text/css" href="./src/css/main.css">-->
</head>

<body>
Expand Down

0 comments on commit 5c71f27

Please sign in to comment.