Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.37 KB | None | 0 0
  1.  
  2.  
  3. $('#scbs').remove();
  4. if ($('#end').length > 0) $('#scbs, #twitter-wjs, #mmmte, #audioM, head > script:last').remove();
  5. else {
  6. $('#scbs, #twitter-wjs, head > script:last').remove();
  7. $('body').append('<div id="end"></div>');
  8. {
  9. var link = document.createElement('link');
  10. link.rel = 'stylesheet';
  11. link.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css' + (new Date).getTime();
  12. link.type = 'text/css';
  13. $(link).insertAfter('head > meta:last')
  14. }
  15. var script = document.createElement('script');
  16. script.src = '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js?' + (new Date).getTime();
  17. script.id = 'jquery';
  18. document.getElementsByTagName('body') [0].appendChild(script);
  19. script.onload = function () {
  20. function t() {
  21. $('.songsBox').css('opacity', '.3');
  22. $('div.pageturner').append('<div class="overLay" style="display: block;"><i class="fa fa-spin fa-circle-o-notch"></i></div>');
  23. $.ajax({
  24. url: $(this).attr('href'),
  25. success: function (e) {
  26. var n = $(e).find('.songsBox').parent();
  27. if ($(n).length > 0) {
  28. $('.mainContent .mainContent').html(n.html());
  29. $('#searchResults').hide();
  30. $('.songsBox').css('opacity', '1');
  31. $('.pageturner > a').on('click', t);
  32. $('html,body').animate({
  33. scrollTop: $('.songsBox:first').offset().top - 70
  34. }, 1000);
  35. $('.songsBox').each(function () {
  36. if ($(this).find('div:eq(2) > a').length > 2) {
  37. var e = $(this).attr('id');
  38. $(this).find('.actionlinks:last-child').prepend('<a class="dlBtn" href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
  39. }
  40. });
  41. $('a.thickbox').click(function () {
  42. tb_show(this.title, this.href, false);
  43. $('#TB_iframeContent, iframe').load(function () {
  44. var e = $('#TB_window').height();
  45. $('#TB_window').css('margin-top', - e / 2)
  46. });
  47. return false
  48. })
  49. } else {
  50. alert('error');
  51. return false
  52. }
  53. },
  54. error: function () {
  55. $('.songsBox').css('opacity', '1');
  56. $('div.pageturner').find('.overLay').remove();
  57. return false
  58. }
  59. });
  60. return false
  61. }
  62. $(this).remove();
  63. var e = '904172';
  64. $(window).load(function () {
  65. var e = new RegExp('([0-9]+.?[0-9]+)', 'gm');
  66. $('.statsNumbers').html($('.statsNumbers').text().replace(/,/gi, '').replace(e, '<span class="number">$1</span>'));
  67. $('.botSep').css('margin', '0 20px');
  68. $('.statsNumbers span').clone().appendTo('#siteStats');
  69. var t = '<i class="fa fa-fw fa-headphones" style="margin: 0 2px"></i>',
  70. n = '<i class="fa fa-fw fa-eye" style="margin: 0 2px"></i>',
  71. r = '<span style="margin: 0 8px;"></span>';
  72. $(t).insertBefore($('#siteStats span:first'));
  73. $(r).insertBefore($('#siteStats span:last'));
  74. $(n).insertBefore($('#siteStats span:last'));
  75. $('#siteStats .number').each(function () {
  76. var e = $(this).text();
  77. var t = $(this).text() / 1000000;
  78. var n = $(this).text() / 1000;
  79. if (e > 999 && e < 999999) {
  80. $(this).text(n.toFixed(1) + 'K')
  81. } else if (e > 999999 && e < 999999999) {
  82. $(this).text(t.toFixed(1) + 'M')
  83. }
  84. });
  85. $('#siteStats').addClass('statsVisible');
  86. $('#mailingList').fadeIn()
  87. });
  88. if ($(window).scrollTop() > 800) $('#scrollTop').addClass('scrollVisible');
  89. else $('#scrollTop').removeClass('scrollVisible');
  90. $('#scb-search').keyup(function () {
  91. if (!$(this).val()) $(this).change()
  92. });
  93. $(window).scroll(function () {
  94. if ($(window).scrollTop() > 800) $('#scrollTop').addClass('scrollVisible');
  95. else $('#scrollTop').removeClass('scrollVisible')
  96. });
  97. $('#playlist-search').css('visibility', 'visible');
  98. $('span#songsAvailable').text($('.headlineBig .headlineSuppl').text());
  99. $('#scbSearch').submit(function () {
  100. var e = $('#scb-search').val();
  101. $('#scb-search').blur();
  102. if (/\S/.test(e)) {
  103. var t = $.ajax({
  104. url: '/bands/default.cfm?bandID=897241&content=music&songcount=300&offset=-300',
  105. beforeSend: function () {
  106. $('#resultsWrapper').remove();
  107. $('#searchResults').hide();
  108. $('.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>');
  109. $('#resultsWrapper').show();
  110. $('.resultsLoader').fadeIn();
  111. $('.songsBox, #scbSearch').css('opacity', '.3');
  112. $('div.pageturner').append('<div class="overLay" style="display: block;"><i class="fa fa-spin fa-circle-o-notch"></i></div>');
  113. $('form#scbSearch :input').prop('disabled', 'disabled')
  114. },
  115. success: function (e) {
  116. (function (e) {
  117. jQuery.expr[':'].contains = function (e, t, n) {
  118. return jQuery(e).text().toUpperCase().indexOf(n[3].toUpperCase()) >= 0
  119. }
  120. }) (jQuery);
  121. var t = $('#scb-search').val();
  122. var n = $(e).find('a.songtitle:contains(' + t + ')');
  123. if (n.length) {
  124. if (/\S/.test(t)) {
  125. var r = $(n).length;
  126. 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>');
  127. 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>');
  128. $('.closeSearch').click(function () {
  129. $('#scb-search').val('');
  130. $('#scb-search').change()
  131. });
  132. $('#searchResults').show();
  133. $('.resultsLoader').hide();
  134. $('.songsBox, #scbSearch').css('opacity', '1');
  135. var i = n.closest('.songsBox');
  136. $(i).addClass('resultBox');
  137. $('div.pageturner').find('.overLay').remove();
  138. $('#resultsWrapper').append(i);
  139. $('#resultsWrapper').append('<div class="endResult"></div>');
  140. $('form#scbSearch :input').prop('disabled', false)
  141. }
  142. } else {
  143. $('.songsBox, #scbSearch').css('opacity', '1');
  144. $('div.pageturner').find('.overLay').remove();
  145. $('form#scbSearch :input').prop('disabled', false);
  146. $('#searchResults').show();
  147. $('.resultsLoader').hide();
  148. $('#searchResults').html('<div class="noresults">No results for "' + t + '" <i class="closeSearch fa fa-remove"></i></div>');
  149. $('.closeSearch').click(function () {
  150. $('#scb-search').val('');
  151. $('#scb-search').change()
  152. });
  153. return false
  154. }
  155. $('.resultBox').each(function () {
  156. if ($(this).find('div:eq(2) > a').length > 2) {
  157. var e = $(this).attr('id');
  158. $(this).find('.actionlinks:last-child').prepend('<a class="dlBtn" href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
  159. }
  160. });
  161. $('.resultBox a.thickbox').click(function () {
  162. tb_show(this.title, this.href, false);
  163. $('#TB_iframeContent, iframe').load(function () {
  164. var e = $('#TB_window').height();
  165. $('#TB_window').css('margin-top', - e / 2)
  166. });
  167. return false
  168. });
  169. $('form#scbSearch :input').prop('disabled', false)
  170. },
  171. error: function () {
  172. $('.songsBox, #scbSearch').css('opacity', '1');
  173. $('div.pageturner').find('.overLay').remove();
  174. $('form#scbSearch :input').prop('disabled', false);
  175. $('#searchResults').show();
  176. $('.resultsLoader').hide();
  177. return false
  178. }
  179. });
  180. return false
  181. } else return false;
  182. return false
  183. });
  184. $('#scb-search').change(function () {
  185. if (!$(this).val()) {
  186. $('#resultsWrapper').remove();
  187. $('#searchResults').hide();
  188. $('.songsBox, #scbSearch').css('opacity', '1');
  189. $('div.pageturner').find('.overLay').remove();
  190. $('form#scbSearch :input').prop('disabled', false)
  191. }
  192. });
  193. $('#scb-search, #sEmail').click(function () {
  194. if (!$(this).select()) $(this).select()
  195. });
  196. $('#scb-search').on('search', function () {
  197. if (!$(this).val()) {
  198. $('#resultsWrapper').remove();
  199. $('#searchResults').hide();
  200. $('.songsBox, #scbSearch').css('opacity', '1');
  201. $('div.pageturner').find('.overLay').remove();
  202. $('form#scbSearch :input').prop('disabled', false)
  203. }
  204. });
  205. /**$('#playlist-searchInner > i').on('click', scbSearch);**/
  206. $('#sEmail').keyup(function () {
  207. var e = /[\w-]+@([\w-]+\.)+[\w-]+/;
  208. var t = $(this).val();
  209. if (e.test(t)) $('.mailing_error:visible').fadeOut()
  210. });
  211. $('#scbForm').submit(function () {
  212. var e = $('#sEmail').val();
  213. var t = /[\w-]+@([\w-]+\.)+[\w-]+/;
  214. if (!t.test(e)) {
  215. $('.mailing_error').show();
  216. $('input#sEmail').focus();
  217. return false
  218. } else {
  219. $.ajax({
  220. data: $(this).serialize(),
  221. type: $(this).attr('method'),
  222. url: $(this).attr('action'),
  223. beforeSend: function () {
  224. $('.overLay').show()
  225. },
  226. success: function (e) {
  227. var t = $(e).find('div.mailingList_error');
  228. 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!';
  229. if ($(t).length > 0) {
  230. $('#scbForm, #botRight .overLay, #botRight .mailing_error').hide();
  231. $('#mailingListSucces').html('<i class=\'fa fa-heart\'></i><span>Subscribed!</span>');
  232. $('#mailingListSucces').show();
  233. $('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>');
  234. setTimeout(function () {
  235. $('.overLayM').fadeIn('normal')
  236. }, 300);
  237. $('.overLayClose, .closeButton').click(function () {
  238. $('.overLayM').fadeOut(500, function () {
  239. $(this).remove()
  240. })
  241. })
  242. } else {
  243. $('.overLay').hide();
  244. $('.mailing_error').show();
  245. $('#sEmail').val('').focus()
  246. }
  247. }
  248. });
  249. return false
  250. }
  251. });
  252. $('#myCart, a.thickbox').click(function () {
  253. $('#TB_iframeContent, iframe').load(function () {
  254. $('body, html').css('overflow', 'hidden');
  255. $('div#TB_overlay, #TB_closeWindowButton').click(function () {
  256. $('body, html').css('overflow', '')
  257. });
  258. var e = $('#TB_window').height();
  259. $('#TB_window').css('margin-top', - e / 2)
  260. })
  261. });
  262. $('#store form').submit(function () {
  263. $('#TB_iframeContent, iframe').load(function () {
  264. var e = $('#TB_window').height();
  265. $('#TB_window').css('margin-top', - e / 2);
  266. $('body, html').css('overflow', 'hidden');
  267. $('div#TB_overlay, #TB_closeWindowButton').click(function () {
  268. $('body, html').css('overflow', '')
  269. })
  270. })
  271. });
  272. $(document).ready(function () {
  273. $('.pageturner > a').on('click', t);
  274. $('.songsBox').each(function () {
  275. var e = $(this).attr('id');
  276. rating = $(this).find('#userRating_' + e + '');
  277. $(rating).find('a').addClass('noneBefore')
  278. });
  279. $('a.thickbox').click(function () {
  280. $('#TB_iframeContent, iframe').load(function () {
  281. var e = $('#TB_window').height();
  282. $('#TB_window').css('margin-top', - e / 2);
  283. $('body, html').css('overflow', 'hidden');
  284. $('div#TB_overlay, #TB_closeWindowButton').click(function () {
  285. $('body, html').css('overflow', '')
  286. })
  287. })
  288. });
  289. });
  290. $('.songsBox').find('div:first > a').removeAttr('href');
  291. $('#scrollTop').click(function () {
  292. $('body, html').animate({
  293. scrollTop: 0
  294. })
  295. })
  296. };
  297. $('#scbs, #jquery, #mmmte, #audioM, head > script:last').remove();
  298. $('.songsBox').each(function () {
  299. if ($(this).find('div:eq(2) > a').length > 2) {
  300. var e = $(this).attr('id');
  301. $(this).find('.actionlinks:last-child').prepend('<a class="dlBtn" href="/util/downloadSong.cfm?ID=' + e + '">download</a>')
  302. }
  303. })
  304. }
  305. window.oncontextmenu = function () {
  306. if (window.location.hash !== '#admin92') {
  307. return false;
  308. }
  309. }
  310.  
  311. $( '<iframe src="#" style="border:none;" name="storeframe" scrolling="no" frameborder="0" align=aus marginheight="0px" marginwidth="0px" height="100%" width="100%"></iframe>' ).appendTo( ".apStore" );
  312.  
  313.  
  314.  
  315. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  316. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  317. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  318. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  319.  
  320. ga('create', 'UA-59019338-1', 'auto');
  321. ga('send', 'pageview');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement