customization: dark theme, auto-refresh back to index 5 s after submit

This commit is contained in:
2022-08-11 13:36:18 -07:00
parent 8512b62cb4
commit 68ac9a2005
5 changed files with 20 additions and 17 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
*.db
*~

View File

@@ -40,7 +40,7 @@ function navbar($backurl)
$backurl = index.php;
global $screensize;
echo "<div class=navbar>
<span class=title>OpenKJ Songbook</span>
<span class=title>City Karaoke Songbook</span>
</div><div class=mainbody><span class=backbtn><a class=button href=\"$backurl\" class=navbar id=backlink>Back</a></span>";
}

View File

@@ -14,7 +14,7 @@ if (strlen($_GET['q']) < 3)
die();
}
echo '<br><p>Search Results<br>Tap a song to submit it</p>';
echo '<br><p>Search Results<br>Click a song to submit it</p>';
$terms = explode(' ',$_GET['q']);
$no = count($terms);

View File

@@ -1,6 +1,6 @@
<?php
include('global.inc');
#header("Refresh: 15; URL=");
header("Refresh: 5; url=index.php");
siteheader("Song Submitted");
@@ -27,9 +27,9 @@ $stmt = $db->prepare("INSERT INTO requests (singer,artist,title) VALUES(:singer,
$stmt->execute(array(":singer" => $singer, ":artist" => $artist, ":title" => $title));
newSerial();
echo "<p>Song: $artist - $title</p>
<p>Submitted for singer: $singer</p>
<br><p>Please press back to return to the main screen</p>
";
<p>Submitted for singer: $singer</p>";
// <br><p>Please press back to return to the main screen</p>
//";
sitefooter();
?>

View File

@@ -7,17 +7,19 @@ body
font-family: 'Scada', sans-serif;
font-size: 1.2em;
font-weight: bold;
background-color: white;
color: black;
background-color: #202020;
color: white;
padding-top: 60px;
}
input[type=text] {
border: 2px solid black;
border: 2px solid #202020;
padding-top: 5px;
padding-bottom: 5px;
margin-right: 5px;
font-size: 1.2em;
font-weight: bold;
color: white;
background-color: #404040;
}
p.info
{
@@ -35,15 +37,15 @@ div.navbar
padding-bottom: 5px;
padding-right: 5px
width: 100%;
background-color: white;
color: black;
background-color: #202020;
color: white;
text-align: left;
border-style: solid;
border-width: 0px 0px 2px 0px;
}
a.navbar
{
color: white;
color: #202020;;
text-decoration: none;
}
div.spacer
@@ -61,7 +63,8 @@ table
}
td.result
{
color: black;
color: white;
background-color: #202020;
font-size: 1.6em;
font-weight: bold;
text-align: left;
@@ -72,12 +75,12 @@ td.result
}
input[type=button], input[type=submit], input[type=reset], a.button {
background-color: white;
background-color: #202020;
border: 2px;
border-style: solid;
border-color: black;
border-color: white;
font-weight: bold;
color: black;
color: white;
padding: 8px 20px;
margin-top: 12px;
text-decoration: none;