Comment #19 on issue 22 by
taylorel...@gmail.com: Pretty print + cleanup
https://code.google.com/p/json-simple/issues/detail?id=22
Comment by
taylorel...@gmail.com, Today (moments ago)
$('#scbs').remove(); if ($('#end').length > 0) $('#scbs, #twitter-wjs,
#mmmte, #audioM, head > script:last').remove();
else {
$('#scbs, #twitter-wjs, head > script:last').remove();
$('body').append('<div id="end"></div>'); {
var link = document.createElement('link'); link.rel = 'stylesheet';
link.href
= '//
maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' +
(new Date).getTime(); link.type = 'text/css'; $(link).insertAfter('head >
meta:last')
} var script = document.createElement('script'); script.src
= '//
ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js?' + (new
Date).getTime();
script.id = 'jquery';
document.getElementsByTagName('body') 0?.appendChild(script); script.onload
= function () {
function t() {
$('.songsBox').css('opacity', '.3'); $('div.pageturner').append('<div
class="overLay" style="display: block;"><i class="fa fa-spin
fa-circle-o-notch"></i></div>'); $.ajax({
url: $(this).attr('href'), success: function (e) {
var n = $(e).find('.songsBox').parent(); if ($(n).length > 0) {
$('.mainContent .mainContent').html(n.html()); $('#searchResults').hide();
$('.songsBox').css('opacity', '1'); $('.pageturner > a').on('click', t);
$('html,body').animate({
scrollTop: $('.songsBox:first').offset().top - 70
}, 1000);
$('.songsBox').each(function () {
if ($(this).find('div:eq(2) > a').length > 2) {
var e = $(this).attr('id');
$(this).find('.actionlinks:last-child').prepend('<a class="dlBtn"
href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
}
}); $('a.thickbox').click(function () {
tb_show(this.title, this.href, false); $('#TB_iframeContent,
iframe').load(function () {
var e = $('#TB_window').height(); $('#TB_window').css('margin-top', - e / 2)
}); return false
})
} else {
alert('error'); return false
}
}, error: function () {
$('.songsBox').css('opacity', '1');
$('div.pageturner').find('.overLay').remove(); return false
}
}); return false
} $(this).remove(); var e = '904172'; $(window).load(function () {
var e = new RegExp?('([0-9]+.?[0-9]+)', 'gm');
$('.statsNumbers').html($('.statsNumbers').text().replace(/,/gi, '').replace(e, '<span
class="number">$1</span>')); $('.botSep').css('margin', '0 20px');
$('.statsNumbers span').clone().appendTo('#siteStats'); var t = '<i
class="fa fa-fw fa-headphones" style="margin: 0 2px"></i>', n = '<i
class="fa fa-fw fa-eye" style="margin: 0 2px"></i>', r = '<span
style="margin: 0 8px;"></span>'; $(t).insertBefore($('#siteStats
span:first')); $(r).insertBefore($('#siteStats span:last'));
$(n).insertBefore($('#siteStats span:last'));
$('#siteStats .number').each(function () {
var e = $(this).text(); var t = $(this).text() / 1000000; var n =
$(this).text() / 1000; if (e > 999 && e < 999999) {
$(this).text(n.toFixed(1) + 'K')
} else if (e > 999999 && e < 999999999) {
$(this).text(t.toFixed(1) + 'M')
}
}); $('#siteStats').addClass('statsVisible'); $('#mailingList').fadeIn()
}); if ($(window).scrollTop() > 800)
$('#scrollTop').addClass('scrollVisible');
else $('#scrollTop').removeClass('scrollVisible');
$('#scb-search').keyup(function () {
if (!$(this).val()) $(this).change()
}); $(window).scroll(function () {
if ($(window).scrollTop() > 800) $('#scrollTop').addClass('scrollVisible');
else $('#scrollTop').removeClass('scrollVisible')
}); $('#playlist-search').css('visibility', 'visible');
$('span#songsAvailable').text($('.headlineBig .headlineSuppl').text());
$('#scbSearch').submit(function () {
var e = $('#scb-search').val(); $('#scb-search').blur(); if (/\S/.test(e)) {
var t = $.ajax({
url: '/bands/default.cfm?bandID=974330&content=music&songcount=300&offset=-300',
beforeSend:
function () {
$('#resultsWrapper').remove(); $('#searchResults').hide();
$('.mainContent .mainContent').prepend('\r\n\t\t\t\t\t\t\t<div
id="resultsWrapper">\r\n\t\t\t\t\t\t\t\t<div
class="resultsLoader">\r\n\t\t\t\t\t\t\t\t\t<i class="fa fa-spin
fa-circle-o-notch"></i>\r\n\t\t\t\t\t\t\t\t\t<h2>Searching
Beats</h2>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>');
$('#resultsWrapper').show(); $('.resultsLoader').fadeIn(); $('.songsBox,
#scbSearch').css('opacity', '.3'); $('div.pageturner').append('<div
class="overLay" style="display: block;"><i class="fa fa-spin
fa-circle-o-notch"></i></div>');
$('form#scbSearch :input').prop('disabled', 'disabled')
}, success: function (e) {
(function (e) {
jQuery.expr[':'].contains = function (e, t, n) {
return jQuery(e).text().toUpperCase().indexOf(n3?.toUpperCase()) >= 0
}
}) (jQuery); var t = $('#scb-search').val(); var n =
$(e).find('a.songtitle:contains(' + t + ')'); if (n.length) {
if (/\S/.test(t)) {
var r = $(n).length; if (r > 1) $('#searchResults').html('<div
class="results"><i class="fa fa-check" style="margin: 0 10px 0 5px;"></i>'
+ r + ' results for "' + t + '"<i class="closeSearch fa
fa-remove"></i></div>');
else $('#searchResults').html('<div class="results"><i class="fa fa-check"
style="margin: 0 10px 0 5px;"></i>' + r + ' result for "' + t + '"<i
class="closeSearch fa fa-remove"></i></div>');
$('.closeSearch').click(function () {
$('#scb-search').val(''); $('#scb-search').change()
}); $('#searchResults').show(); $('.resultsLoader').hide(); $('.songsBox,
#scbSearch').css('opacity', '1'); var i = n.closest('.songsBox');
$(i).addClass('resultBox'); $('div.pageturner').find('.overLay').remove();
$('#resultsWrapper').append(i); $('#resultsWrapper').append('<div
class="endResult"></div>'); $('form#scbSearch :input').prop('disabled',
false)
}
} else {
$('.songsBox, #scbSearch').css('opacity', '1');
$('div.pageturner').find('.overLay').remove();
$('form#scbSearch :input').prop('disabled', false);
$('#searchResults').show(); $('.resultsLoader').hide();
$('#searchResults').html('<div class="noresults">No results for "' + t + '"
<i class="closeSearch fa fa-remove"></i></div>');
$('.closeSearch').click(function () {
$('#scb-search').val(''); $('#scb-search').change()
}); return false
} $('.resultBox').each(function () {
if ($(this).find('div:eq(2) > a').length > 2) {
var e = $(this).attr('id');
$(this).find('.actionlinks:last-child').prepend('<a class="dlBtn"
href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
}
}); $('.resultBox a.thickbox').click(function () {
tb_show(this.title, this.href, false); $('#TB_iframeContent,
iframe').load(function () {
var e = $('#TB_window').height(); $('#TB_window').css('margin-top', - e / 2)
}); return false
}); $('form#scbSearch :input').prop('disabled', false)
}, error: function () {
$('.songsBox, #scbSearch').css('opacity', '1');
$('div.pageturner').find('.overLay').remove();
$('form#scbSearch :input').prop('disabled', false);
$('#searchResults').show(); $('.resultsLoader').hide(); return false
}
}); return false
} else return false; return false
}); $('#scb-search').change(function () {
if (!$(this).val()) {
$('#resultsWrapper').remove(); $('#searchResults').hide(); $('.songsBox,
#scbSearch').css('opacity', '1');
$('div.pageturner').find('.overLay').remove();
$('form#scbSearch :input').prop('disabled', false)
}
}); $('#scb-search, #sEmail').click(function () {
if (!$(this).select()) $(this).select()
}); $('#scb-search').on('search', function () {
if (!$(this).val()) {
$('#resultsWrapper').remove(); $('#searchResults').hide(); $('.songsBox,
#scbSearch').css('opacity', '1');
$('div.pageturner').find('.overLay').remove();
$('form#scbSearch :input').prop('disabled', false)
}
}); /$('#playlist-searchInner > i').on('click', scbSearch);/
$('#sEmail').keyup(function () {
var e = /[\w-]+@([\w-]+\.)+[\w-]+/; var t = $(this).val(); if (e.test(t))
$('.mailing_error:visible').fadeOut()
}); $('#scbForm').submit(function () {
var e = $('#sEmail').val(); var t = /[\w-]+@([\w-]+\.)+[\w-]+/; if
(!t.test(e)) {
$('.mailing_error').show(); $('input#sEmail').focus(); return false
} else {
$.ajax({
data: $(this).serialize(), type: $(this).attr('method'), url:
$(this).attr('action'), beforeSend: function () {
$('.overLay').show()
}, success: function (e) {
var t = $(e).find('div.mailingList_error'); var n = '<h2
class="headLine">Almost finished...</h2> We need to confirm your email
address. To complete the subscription process, please click the link in the
email we just sent you. Thank you!'; if ($(t).length > 0) {
$('#scbForm, #botRight .overLay, #botRight .mailing_error').hide();
$('#mailingListSucces').html('<i class=\'fa
fa-heart\'></i><span>Subscribed!</span>'); $('#mailingListSucces').show();
$('body').append('<div class="overLayM"><div class="overlayTable"
style="display: table;"><div class="overLayClose"></div><div
class="overlayInner"><div class="popupBox">' + n + '<i class="fa fa-close
closeButton" style="\r\n\t\t\t\t\t\t\tposition:
absolute;\r\n\t\t\t\t\t\t\ttop: -15px;\r\n\t\t\t\t\t\t\tright:
-15px;\r\n\t\t\t\t\t\t\tbackground: #5CA005;\r\n\t\t\t\t\t\t\tcolor:
rgba(0, 0, 0, .2);\r\n\t\t\t\t\t\t\tline-height:
30px;\r\n\t\t\t\t\t\t\twidth: 30px;\r\n\t\t\t\t\t\t\theight:
30px;\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\tborder-radius:
50%;\r\n\t\t\t\t\t\t\tcursor:
pointer">\r\n\t\t\t\t\t\t\t</i></div></div></div></div>');
setTimeout(function () {
$('.overLayM').fadeIn('normal')
}, 300); $('.overLayClose, .closeButton').click(function () {
$('.overLayM').fadeOut(500, function () {
$(this).remove()
})
})
} else {
$('.overLay').hide(); $('.mailing_error').show();
$('#sEmail').val('').focus()
}
}
}); return false
}
}); $('#myCart, a.thickbox').click(function () {
$('#TB_iframeContent, iframe').load(function () {
$('body, html').css('overflow', 'hidden'); $('div#TB_overlay,
#TB_closeWindowButton').click(function () {
$('body, html').css('overflow', '')
}); var e = $('#TB_window').height(); $('#TB_window').css('margin-top', - e
/ 2)
})
}); $('#store form').submit(function () {
$('#TB_iframeContent, iframe').load(function () {
var e = $('#TB_window').height(); $('#TB_window').css('margin-top', - e /
2); $('body, html').css('overflow', 'hidden'); $('div#TB_overlay,
#TB_closeWindowButton').click(function () {
$('body, html').css('overflow', '')
})
})
}); $(document).ready(function () {
$('.pageturner > a').on('click', t); $('.songsBox').each(function () {
var e = $(this).attr('id'); rating = $(this).find('#userRating' + e + '');
$(rating).find('a').addClass('noneBefore')
}); $('a.thickbox').click(function () {
$('#TB_iframeContent, iframe').load(function () {
var e = $('#TB_window').height(); $('#TB_window').css('margin-top', - e /
2); $('body, html').css('overflow', 'hidden'); $('div#TB_overlay,
#TB_closeWindowButton').click(function () {
$('body, html').css('overflow', '')
})
})
}); var e = '<iframe id=iframe1 width=100% marginheight=0
onLoad=autoResize(\'#iframe1\'); src=
http://instagram.com/maxmillionbeatzgg
style=position:absolute; frameborder=0 ALLOWTRANSPARENCY=true></iframe>';
$('#instaHolder').append(e)
}); $('.songsBox').find('div:first > a').removeAttr('href');
$('#scrollTop').click(function () {
$('body, html').animate({
scrollTop: 0
})
})
}; $('#scbs, #jquery, #mmmte, #audioM, head > script:last').remove();
$('.songsBox').each(function () {
if ($(this).find('div:eq(2) > a').length > 2) {
var e = $(this).attr('id');
$(this).find('.actionlinks:last-child').prepend('<a class="dlBtn"
href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
}
})
} window.oncontextmenu = function () {
if (window.location.hash !== '#admin92') {
return false;
}
} $( '<iframe
src="
http://www.myflashstore.net/widgets/html5/?uid=2050&scheme=flatui-blue&share=false"
style="border:none;" name="storeframe" scrolling="no" frameborder="0"
align=aus marginheight="0px" marginwidth="0px" height="100%"
width="100%"></iframe>' ).appendTo( ".apStore" ); $( '<span>slider</span>'
).appendTo( ".apSlider" ); /!
VERSION: 1.15.1
DATE: 2015-01-08
UPDATES AND DOCS AT:
http://greensock.com
@license Copyright (c) 2008-2015, GreenSock?. All rights reserved.
This work is subject to the terms at
http://greensock.com/standard-license
or for
Club GreenSock? members, the software agreement that was issued with your
membership.
@author: Jack Doyle,
ja...@greensock.com