$(function() { var canvasMask = new Dragdealer('map-container', { x: 0.5, // Start in the bottom-left corner y: 0.5, vertical: true, speed: 0.05, loose: false }); }) $('.book').on('click', function() { console.log(saver); if (!saver){ playMe(bookAudio); } }); $("a:not('.book-link , .toggle')").on('click', function() { console.log('server'); if (!saver){ playMe(linksAudio); } }); $('.c-map-circle').on('click', function() { console.log('savee'); if (!saver){ playMe(mapOpenAudio); } }); $('.close-cross-wrap img').on('click', function() { console.log('saveee'); if (!saver){ playMe(mapCloseAudio); } });