(function ( w, d, PKAE ) {
'use strict';
setTimeout(function () {
PKAudioEditor._deps.Wlc = function () {
var body_str = '';
var body_str2 = '';
if (PKAE.isMobile) {
change -= 15;
body_str = 'Tips:
Please make sure your device is not in silent mode. You might need to physically flip the silent switch. '+
'
'+
'
';
}
else {
body_str = 'Tips:
Please keep in mind that most key shortcuts rely on the Shift + key combo. (eg Shift+Z for undo, Shift+C copy, Shift+X cut... etc )
';
body_str2 = 'Check out the codebase on Github
'; // checkout the code on github
}
// Welcome to AudioMass,
var md = new PKSimpleModal({
title: 'Welcome to AudioMass',
ondestroy: function( q ) {
PKAE.ui.InteractionHandler.on = false;
PKAE.ui.KeyHandler.removeCallback ('modalTemp');
},
body:'
'+
'AudioMass is a free, open source, web-based Audio and Waveform Editor.
It runs entirely in the browser with no backend and no plugins required!'+
'
'+
body_str+
'You can load any type of audio your browser supports and perform operations such as fade in, cut, trim, change the volume, '+
'and apply a plethora of audio effects.
'+
body_str2+
'
',
setup:function( q ) {
PKAE.ui.InteractionHandler.checkAndSet ('modal');
PKAE.ui.KeyHandler.addCallback ('modalTemp', function ( e ) {
q.Destroy ();
}, [27]);
// ------
var scroll = q.el_body.getElementsByTagName('div')[0];
scroll.addEventListener ('touchstart', function(e){
e.stopPropagation ();
}, false);
scroll.addEventListener ('touchmove', function(e){
e.stopPropagation ();
}, false);
// ------
}
});
md.Show ();
document.getElementsByClassName('pk_modal_cancel')[0].innerHTML = ' OK ';
};
var change = 96;
var exists = w.localStorage && w.localStorage.getItem ('k');
if (!exists) {
change = 0;
w.localStorage && w.localStorage.setItem ('k', 1);
}
if ( ((Math.random () * 100) >> 0) < change) return ;
PKAudioEditor._deps.Wlc ();
}, 320);
})( window, document, PKAudioEditor );