Skip to content

Commit 73272b8

Browse files
committed
Add burgir sound, update footer
1 parent cc7446d commit 73272b8

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<groupId>hu.gerviba</groupId>
1212
<artifactId>schpincer</artifactId>
1313
<packaging>jar</packaging>
14-
<version>1.3.28</version>
14+
<version>1.3.29</version>
1515
<name>SCH-Pincer</name>
1616

1717
<properties>

src/main/resources/static/burgir.mp3

22.6 KB
Binary file not shown.

src/main/resources/static/js/items.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let searchResult = [];
66
let manualOrder = false;
77

88
var beepSound = new Audio('/beep-boop.mp3');
9+
var burgirSound = new Audio('/burgir.mp3');
910

1011
function appendNext(profile = 0) {
1112
if (document.getElementById('no-results') == null)
@@ -636,7 +637,11 @@ function doneOrder() {
636637
document.querySelector('.done-tick').style.clipPath = 'polygon(0 0, 100% 0, 100% 100%, 0 100%)';
637638
}, 100);
638639
setTimeout(() => {
639-
beepSound.play();
640+
if (document.getElementById('popup-title').innerText.toLowerCase().includes("burger")) {
641+
burgirSound.play();
642+
} else {
643+
beepSound.play();
644+
}
640645
}, 300);
641646
setTimeout(() => {
642647
let doneElement = document.querySelector('.done');

src/main/resources/templates/MainLayout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h3 th:text="#{lang.footer.about-us}">Rólunk</h3>
8383
</div>
8484
<div>
8585
<h3 th:text="#{lang.footer.rights}">Jogok</h3>
86-
<p>Copyright &copy; 2021 GNU/GPL 3.0</p>
86+
<p>Copyright &copy; 2022 GNU/GPL 3.0</p>
8787
<p th:text="#{lang.footer.rights-long}">
8888
Az oldalon megjelenő képek szerzői joga minden esetben a forgalmazó kört illeti.
8989
A képek esetenként csak illusztrációk. A termékek leírásának helyességéért az adott körök felelősek.

0 commit comments

Comments
 (0)