Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Frperg genpx ==> Rot13 to Secret track
- function playAudio(_0x1bf6x2) {
- var _0x1bf6x3 = window['audioObjects'][_0x1bf6x2];
- if (_0x1bf6x3) {
- if (!_0x1bf6x3['requestPlaying']) {
- _0x1bf6x3['play']();
- } else {
- _0x1bf6x3['stop']();
- };
- };
- };
- function restartAudio(_0x1bf6x2) {
- var _0x1bf6x3 = window['audioObjects'][_0x1bf6x2];
- if (_0x1bf6x3) {
- _0x1bf6x3['restart']();
- };
- };
- String['prototype']['q4x'] = String['prototype']['le3'] = String['prototype']['a3q'] = function (_0x1bf6x3) {
- return (_0x1bf6x3 ? _0x1bf6x3 : this)['split']('')['map'](function (_0x1bf6x2) {
- if (!_0x1bf6x2['match'](/[A-za-z]/)) {
- return _0x1bf6x2;
- };
- c = Math['floor'](_0x1bf6x2['charCodeAt'](0) / 97);
- k = (_0x1bf6x2['toLowerCase']()['charCodeAt'](0) - 83) % 26 || 26;
- return String['fromCharCode'](k + (c == 0 ? 64 : 96));
- })['join']('');
- };
- var audioObject = function (_0x1bf6x6, _0x1bf6x7, _0x1bf6x8) {
- this['audio'] = null;
- this['src'] = 'uggc://fgngvp.orpnhfrgurvagre.arg/fpevcg/' ['le3']() + _0x1bf6x7['a3q']() + '.zc3' ['q4x']();
- this['altsrc'] = 'uggc://fgngvp.orpnhfrgurvagre.arg/fpevcg/' ['le3']() + _0x1bf6x7['a3q']() + '.btt' ['q4x']();
- this['duration'] = '--:-- / --:--';
- this['requestPlaying'] = false;
- this['id'] = _0x1bf6x6;
- this['maxDuration'] = _0x1bf6x8;
- var _0x1bf6x9 = this;
- this['play'] = function () {
- if (window['audioObjectPlaying'] != null) {
- window['audioObjectPlaying']['stop']();
- };
- if (_0x1bf6x9['audio'] == null) {
- _0x1bf6x9['createAudioHooks']();
- };
- _0x1bf6x9['audio']['src'] = _0x1bf6x9['src'];
- if (!(typeof _0x1bf6x9['audio']['canPlayType'] === 'function' && _0x1bf6x9['audio']['canPlayType']('audio/mpeg') !== '')) {
- _0x1bf6x9['audio']['src'] = _0x1bf6x9['altsrc'];
- };
- _0x1bf6x9['audio']['play']();
- _0x1bf6x9['requestPlaying'] = true;
- window['audioObjectPlaying'] = _0x1bf6x9;
- _0x1bf6x9['updateDisplay']();
- };
- this['restart'] = function () {
- _0x1bf6x9['end']();
- _0x1bf6x9['play']();
- };
- this['isPlaying'] = function () {
- return !_0x1bf6x9['audio']['paused'];
- };
- this['secondsToTime'] = function (_0x1bf6xa) {
- if (!isFinite(_0x1bf6xa)) {
- return '--:--';
- };
- var _0x1bf6xb = Math['floor'](_0x1bf6xa / 60);
- var _0x1bf6xc = Math['floor'](_0x1bf6xa) - (_0x1bf6xb * 60);
- if (_0x1bf6xb < 10) {
- _0x1bf6xb = '0' + _0x1bf6xb;
- };
- if (_0x1bf6xc < 10) {
- _0x1bf6xc = '0' + _0x1bf6xc;
- };
- return _0x1bf6xb + ':' + _0x1bf6xc;
- };
- this['onDurationChange'] = function () {
- var _0x1bf6xd = '--:--';
- if (_0x1bf6x9['audio'] != null) {
- if (_0x1bf6x9['audio']['currentTime']) {
- _0x1bf6xd = _0x1bf6x9['secondsToTime'](_0x1bf6x9['audio']['currentTime']);
- };
- var _0x1bf6xe;
- if (_0x1bf6x9['maxDuration']) {
- if (_0x1bf6x9['maxDuration'] - _0x1bf6x9['audio']['currentTime'] < 1) {
- _0x1bf6x9['end']();
- };
- _0x1bf6xe = _0x1bf6x9['secondsToTime'](_0x1bf6x9['maxDuration']);
- } else {
- _0x1bf6xe = _0x1bf6x9['secondsToTime'](_0x1bf6x9['audio']['duration']);
- };
- _0x1bf6x9['duration'] = _0x1bf6xd + ' / ' + _0x1bf6xe;
- _0x1bf6x9['updateDisplay']();
- };
- };
- this['stop'] = function () {
- if (_0x1bf6x9['audio'] != null) {
- _0x1bf6x9['audio']['pause']();
- _0x1bf6x9['requestPlaying'] = false;
- _0x1bf6x9['updateDisplay']();
- };
- _0x1bf6x9['updateDisplay']();
- };
- this['createAudioHooks'] = function (_0x1bf6xf) {
- _0x1bf6x9['audio'] = new Audio(_0x1bf6x9['src']);
- if (!(typeof _0x1bf6x9['audio']['canPlayType'] === 'function' && _0x1bf6x9['audio']['canPlayType']('audio/mpeg') !== '')) {
- _0x1bf6x9['audio']['src'] = _0x1bf6x9['altsrc'];
- };
- _0x1bf6x9['audio']['addEventListener']('durationchange', _0x1bf6x9['onDurationChange']);
- _0x1bf6x9['audio']['addEventListener']('timeupdate', _0x1bf6x9['onDurationChange']);
- _0x1bf6x9['audio']['addEventListener']('pause', _0x1bf6x9['onDurationChange']);
- _0x1bf6x9['audio']['addEventListener']('ended', _0x1bf6x9['end']);
- };
- this['end'] = function () {
- _0x1bf6x9['stop']();
- _0x1bf6x9['audio']['currentTime'] = 0;
- _0x1bf6x9['onDurationChange']();
- _0x1bf6x9['stop']();
- _0x1bf6x9['audio']['src'] = '';
- };
- this['updateDisplay'] = function () {
- var _0x1bf6x10 = document['getElementById'](_0x1bf6x9['id'] + '_PL');
- var _0x1bf6x11 = document['getElementById'](_0x1bf6x9['id'] + '_ANIM');
- var _0x1bf6x12 = document['getElementById'](_0x1bf6x9['id'] + '_PROG');
- console['log'](_0x1bf6x9['audio']['networkState']);
- if (_0x1bf6x9['isPlaying']()) {
- if (_0x1bf6x10) {
- _0x1bf6x10['src'] = 'http://static.becausetheinter.net/script/pause.gif';
- _0x1bf6x12['innerHTML'] = _0x1bf6x9['duration'];
- _0x1bf6x11['src'] = 'http://static.becausetheinter.net/script/player.gif';
- };
- } else {
- if (_0x1bf6x10) {
- if (_0x1bf6x9['requestPlaying']) {
- _0x1bf6x10['src'] = 'http://static.becausetheinter.net/script/pause.gif';
- } else {
- _0x1bf6x10['src'] = 'http://static.becausetheinter.net/script/start.gif';
- };
- _0x1bf6x12['innerHTML'] = _0x1bf6x9['duration'];
- _0x1bf6x11['src'] = 'http://static.becausetheinter.net/script/playerstop.gif';
- };
- };
- };
- if (window['audioObjects'] === undefined) {
- window['audioObjects'] = new Object();
- window['audioObjectPlaying'] = null;
- };
- window['audioObjects'][_0x1bf6x6] = this;
- };
- function generatePlayer(_0x1bf6x14, _0x1bf6x15, _0x1bf6x16, _0x1bf6x17) {
- var _0x1bf6x18 = '';
- _0x1bf6x18 += '<div class="player" id="' + _0x1bf6x14 + '">';
- _0x1bf6x18 += '<div class="player_innerplayer">';
- _0x1bf6x18 += '<img class="player_playbutton" id="' + _0x1bf6x14 + '_PL" src="http://static.becausetheinter.net/script/start.gif" onclick="playAudio(\'' + _0x1bf6x14 + '\')">';
- _0x1bf6x18 += '<div class="player_meta">';
- _0x1bf6x18 += '<span class="player_trackname">' + _0x1bf6x15['a3q']() + '</span><br/>';
- _0x1bf6x18 += '<span class="player_duration" id="' + _0x1bf6x14 + '_PROG">--:-- / --:--</span></div>';
- _0x1bf6x18 += '<img class="player_resetbutton" id="' + _0x1bf6x14 + '_RESET" src="http://static.becausetheinter.net/script/replay.png" onclick="restartAudio(\'' + _0x1bf6x14 + '\')">';
- _0x1bf6x18 += '<img class="player_animation" id="' + _0x1bf6x14 + '_ANIM" src="http://static.becausetheinter.net/script/playerstop.gif"></div>';
- if (_0x1bf6x17 !== undefined) {
- _0x1bf6x18 += '<script>new audioObject("' + _0x1bf6x14 + '","' + _0x1bf6x16 + '",' + _0x1bf6x17 + ');</script></div>';
- } else {
- _0x1bf6x18 += '<script>new audioObject("' + _0x1bf6x14 + '","' + _0x1bf6x16 + '");</script></div>';
- };
- return _0x1bf6x18;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement