Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.     if(typeof jQuery === 'function') {
  3.         jQuery(function($) {
  4.             function refreshCP() {
  5.                 var r = Math.floor((Math.random() * 6 + 1));
  6.                 $("#t1").text(r);
  7.                 rndId = r;
  8.                 r = Math.floor((Math.random() * 6 + 1));
  9.                 $("#t2").text(r);
  10.                 rndId += r;
  11.                 return false;
  12.             }
  13.             if(typeof jQuery === 'function') {
  14.                 $(function() {
  15.                     $("#pbtnRegisterCS").before('<div style="clear: both; font: normal 12px/1.2em Arial;">' + '<table cellpadding="0" cellspacing="0" style="border-spacing: 2px; border-collapse: initial; margin-top: 10px;"><tr><td colspan="2"><div id="CaptchaPanel">' + '<label for="CaptchaImage" id="CaptchaImageLabel" style="font-weight: bold;">What\'s the sum of</label> ' + '<span id="t1" style="font-weight: bold;"></span><b>+</b><span id="t2" style="font-weight: bold;"></span>? ' + '<input name="CaptchaInput" type="text" id="CaptchaInput" tabindex="4" style="width: 25px; margin-right: 3px;"><span id="CaptchaRequired" style="color: Red; display: none;">*</span><span id="ctl04" style="color: Red;">*</span> (spam protection)</td></tr></table></div>');
  16.                     $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl03_RegisterButton").attr('onclick', '').click(function() {
  17.                         var value = $("#CaptchaInput").val() == rndId;
  18.                         if(!value) { $("#CaptchaInput").addClass('ui-state-error'); } else {
  19.                             $("#CaptchaInput").removeClass('ui-state-error'); if(!ShowError()) { WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$wpm$gwpPageContent$PageContent$Login$ctl03$RegisterButton", "", true, "Register", "", false, false)); } } return value; });
  20.                     $("#ChangeImageLink").click(function(e) { e.preventDefault(); return refreshCP(); });
  21.                     $("#returnCustomers, #newCustomers").height(340);
  22.                     $("#pbtnRegisterCS").attr('align', 'left');
  23.                     $("#srhBarData").css({"display": "none","visibility": ""});
  24.                     $(".brkVrtLn").css({"display": "none","visibility": ""});
  25.                     $("#searchspringHomeSearch").css({"width": "805px"});
  26.                     $("#srhTxtTop").css({"width": "805px"});
  27.                     $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_trRememberMe").insertAfter($('[id*="LoginButton"]')).css('margin-top', '20px');
  28.                     $(".newCustomer > div:eq(3)").insertAfter($('[id*="RegisterButton"]')).css('margin-top', '20px');
  29.                     $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_LoginPanel > p").css({"margin-top": "0px"});
  30.                     refreshCP();
  31.                 });
  32.             }
  33.         });
  34.     }
  35. } catch(ex) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement