updated app
This commit is contained in:
@@ -6,9 +6,9 @@ set -e
|
|||||||
# Activate the virtual environment
|
# Activate the virtual environment
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
# Run the Gunicorn server
|
# Run the Gunicorn server in the foreground
|
||||||
echo "Starting Gunicorn server..."
|
echo "Starting Gunicorn server..."
|
||||||
python3 run_gunicorn.py &
|
exec python3 run_gunicorn.py &
|
||||||
|
|
||||||
# Wait for 5 seconds to ensure the server is up
|
# Wait for 5 seconds to ensure the server is up
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
}
|
}
|
||||||
.playlist-container img,
|
.playlist-container img,
|
||||||
.playlist-container video {
|
.playlist-container video {
|
||||||
max-width: 100%;
|
width: 100%; /* Make the video fill the width */
|
||||||
max-height: 100%;
|
height: 100%; /* Make the video fill the height */
|
||||||
object-fit: contain; /* Ensure content fits within the container */
|
object-fit: cover; /* Ensure the video scales to cover the container */
|
||||||
}
|
}
|
||||||
.controls-wrapper {
|
.controls-wrapper {
|
||||||
position: fixed; /* Fix the controls at the bottom of the page */
|
position: fixed; /* Fix the controls at the bottom of the page */
|
||||||
@@ -149,6 +149,11 @@
|
|||||||
video.controls = false;
|
video.controls = false;
|
||||||
playlistContainer.appendChild(video);
|
playlistContainer.appendChild(video);
|
||||||
|
|
||||||
|
// Ensure the video starts playing
|
||||||
|
video.play().catch(error => {
|
||||||
|
console.error("Error starting video playback:", error);
|
||||||
|
});
|
||||||
|
|
||||||
// Play the video and move to the next item after it ends
|
// Play the video and move to the next item after it ends
|
||||||
video.onended = () => {
|
video.onended = () => {
|
||||||
if (!isPaused) {
|
if (!isPaused) {
|
||||||
|
|||||||
@@ -5,11 +5,50 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Settings</title>
|
<title>Settings</title>
|
||||||
<style>
|
<style>
|
||||||
body { font-family: Arial, sans-serif; margin: 20px; }
|
body {
|
||||||
label { display: block; margin: 10px 0 5px; }
|
font-family: Arial, sans-serif;
|
||||||
input, select { width: 100%; padding: 8px; margin-bottom: 10px; }
|
margin: 20px;
|
||||||
button { padding: 10px 15px; }
|
background-color: black; /* Set background to black */
|
||||||
.home-button { position: fixed; bottom: 20px; right: 20px; }
|
color: white; /* Set text color to white */
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin: 10px 0 5px;
|
||||||
|
}
|
||||||
|
input, select {
|
||||||
|
width: 100%;
|
||||||
|
padding: 8px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background-color: #333; /* Dark background for inputs */
|
||||||
|
color: white; /* White text for inputs */
|
||||||
|
border: 1px solid #555; /* Subtle border for inputs */
|
||||||
|
border-radius: 4px; /* Rounded corners */
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
padding: 10px 15px;
|
||||||
|
background-color: #444; /* Dark button background */
|
||||||
|
color: white; /* White text for buttons */
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
button:hover {
|
||||||
|
background-color: #666; /* Lighter background on hover */
|
||||||
|
}
|
||||||
|
.home-button {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
background-color: #444; /* Dark background for home button */
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px 15px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.home-button:hover {
|
||||||
|
background-color: #666; /* Lighter background on hover */
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user