2025-06-02 22:38:25 +02:00
|
|
|
document.domain = "funch.at";
|
2025-06-02 10:01:12 +02:00
|
|
|
|
|
|
|
function notice() {
|
|
|
|
if(not!=false){
|
|
|
|
document.getElementById('notice').play();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function changenotice(file) {
|
|
|
|
var zeit = new Date();
|
|
|
|
var ms = zeit.getMilliseconds();
|
|
|
|
var audio = $('#notice').empty();
|
2025-06-02 22:38:25 +02:00
|
|
|
var newSrc = $("<source>").attr("src", "//funch.at/modules/chat/sound/"+file+"_notice.ogg?id="+ms).appendTo(audio);
|
|
|
|
var newSrc2 = $("<source>").attr("src", "//funch.at/modules/chat/sound/"+file+"_notice.mp3?id="+ms).appendTo(audio);
|
2025-06-02 10:01:12 +02:00
|
|
|
/****************/
|
|
|
|
audio[0].pause();
|
|
|
|
audio[0].load();
|
|
|
|
}
|
|
|
|
|
|
|
|
function play(source) {
|
|
|
|
if(window.parent.bgmusic!=false){
|
|
|
|
updateSource(source);
|
|
|
|
document.getElementById('audioPlayer').play();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function reload_locations() {
|
|
|
|
window.parent.refresh();
|
|
|
|
}
|
|
|
|
function pause() {
|
|
|
|
document.getElementById('audioPlayer').pause();
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateSource(file) {
|
|
|
|
if(file!=undefined){
|
2025-06-02 22:38:25 +02:00
|
|
|
$('#oggSource').attr('src',"//funch.at/modules/chat/sound/"+file+".ogg").detach().appendTo($('#audioPlayer'));
|
|
|
|
$('#mp3Source').attr('src',"//funch.at/modules/chat/sound/"+file+".mp3").detach().appendTo($('#audioPlayer'));
|
2025-06-02 10:01:12 +02:00
|
|
|
}
|
|
|
|
}
|