Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- window.audioPlaying = 0;
- $(".header_audio_enable").click(function() {
- $(this).hide();
- $(".header_audio_disable").show();
- window.audioPlaying = 1;
- console.log(window.audioPlaying);
- });
- $(".header_audio_disable").click(function() {
- $(this).hide();
- $(".header_audio_enable").show();
- window.audioPlaying = 0;
- console.log(window.audioPlaying);
- });
- var ljudA114 = $("#ljud_A114")[0];
- $(".svg_eko_f1_sal_A114").mouseenter(function() {
- console.log(window.audioPlaying);
- if (window.audioPlaying == 1) {
- ljudA114.play();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement