magicworld
Este commit está contenido en:
31
testing/magicworld/web/js/index.js
Archivo normal
31
testing/magicworld/web/js/index.js
Archivo normal
@@ -0,0 +1,31 @@
|
||||
|
||||
var audio = new Audio('/sounds/wonderworld.mp3');
|
||||
audio.loop = true
|
||||
audio.play();
|
||||
audio.volume = 0.5
|
||||
|
||||
function play(){
|
||||
audio.play();
|
||||
$("#musicStop").removeClass("d-none");
|
||||
$("#musicPlay").addClass("d-none");
|
||||
}
|
||||
|
||||
function stop(){
|
||||
audio.pause();
|
||||
$("#musicPlay").removeClass("d-none");
|
||||
$("#musicStop").addClass("d-none");
|
||||
}
|
||||
$(document).ready(function () {
|
||||
// stop();
|
||||
$("#username").val(getUserRamdom());
|
||||
|
||||
$("#username").on({
|
||||
keydown: function(e) {
|
||||
if (e.which === 32)
|
||||
return false;
|
||||
},
|
||||
change: function() {
|
||||
this.value = this.value.replace(/\s/g, "");
|
||||
}
|
||||
});
|
||||
});
|
||||
Referencia en una nueva incidencia
Block a user