We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f5b4d commit 106ddbdCopy full SHA for 106ddbd
hotel/audio/audio.mp3
-2.26 MB
hotel/js/common.js
@@ -64,13 +64,13 @@ $(document).ready(function(){
64
})
65
}
66
$(window).load(function () {
67
- // if ($('audio').is('#bg_audio')) {
68
- // $('#bg_audio').onloadeddata = function(){
69
- // }
70
+ if ($('audio').is('#bg_audio')) {
+ $('#bg_audio').on('canplay', function(){
+ $('#preloader').fadeOut(500);
+ });
71
+ }
72
setTimeout(function(){
73
$('#preloader').fadeOut(500);
- $('#bg_audio').play();
74
window.sr = ScrollReveal({
75
reset: true,
76
duration: 1000,
@@ -120,6 +120,6 @@ $(document).ready(function(){
120
},400);
121
122
123
- }, 3000)
+ }, 3000)
124
});
125
0 commit comments