Egg?
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -8,6 +8,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
const okSsuka = new Audio('OkSsuka.wav');
|
const okSsuka = new Audio('OkSsuka.wav');
|
||||||
|
const egg = new Audio('Egg.wav');
|
||||||
$("#userName").change(function() {
|
$("#userName").change(function() {
|
||||||
okSsuka.play();
|
okSsuka.play();
|
||||||
$("#playerLink").attr("href", "/play?user="+this.value+"&team=Players");
|
$("#playerLink").attr("href", "/play?user="+this.value+"&team=Players");
|
||||||
@@ -16,10 +17,25 @@
|
|||||||
$("#chaserLink").attr("href", "/play?user="+this.value+"&team=Chasers");
|
$("#chaserLink").attr("href", "/play?user="+this.value+"&team=Chasers");
|
||||||
$("#chaserLink").html("Chasers");
|
$("#chaserLink").html("Chasers");
|
||||||
});
|
});
|
||||||
|
$("#egg").click(function() {
|
||||||
|
if ($(this).attr("src") == "Egg1.png") {
|
||||||
|
$(this).attr("src", "Egg2.gif");
|
||||||
|
$(this).css("width", "40");
|
||||||
|
|
||||||
|
egg.play();
|
||||||
|
egg.loop = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(this).attr("src", "Egg1.png");
|
||||||
|
$(this).css("width", "14");
|
||||||
|
egg.pause()
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<img id="egg" src="Egg1.png">
|
||||||
<div id="interface">
|
<div id="interface">
|
||||||
<img src="MainLogo.png">
|
<img src="MainLogo.png">
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -59,8 +59,14 @@ ul {
|
|||||||
left: 20px;
|
left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 576px) {
|
#egg {
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
right: 20px;
|
||||||
|
width: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
#userListPanel {
|
#userListPanel {
|
||||||
top: 80px;
|
top: 80px;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
@@ -68,7 +74,7 @@ ul {
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
#PlayersList {
|
#PlayersList {
|
||||||
left: 0px;
|
left: 10px;
|
||||||
}
|
}
|
||||||
#ChasersList {
|
#ChasersList {
|
||||||
left: 350px;
|
left: 350px;
|
||||||
|
|||||||
Reference in New Issue
Block a user