Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- if(typeof jQuery === 'function') {
- jQuery(function($) {
- function refreshCP() {
- var r = Math.floor((Math.random() * 6 + 1));
- $("#t1").text(r);
- rndId = r;
- r = Math.floor((Math.random() * 6 + 1));
- $("#t2").text(r);
- rndId += r;
- return false;
- }
- if(typeof jQuery === 'function') {
- $(function() {
- $("#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>');
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl03_RegisterButton").attr('onclick', '').click(function() {
- var value = $("#CaptchaInput").val() == rndId;
- if(!value) { $("#CaptchaInput").addClass('ui-state-error'); } else {
- $("#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; });
- $("#ChangeImageLink").click(function(e) { e.preventDefault(); return refreshCP(); });
- $("#returnCustomers, #newCustomers").height(340);
- $("#pbtnRegisterCS").attr('align', 'left');
- $("#srhBarData").css({"display": "none","visibility": ""});
- $(".brkVrtLn").css({"display": "none","visibility": ""});
- $("#searchspringHomeSearch").css({"width": "805px"});
- $("#srhTxtTop").css({"width": "805px"});
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_trRememberMe").insertAfter($('[id*="LoginButton"]')).css('margin-top', '20px');
- $(".newCustomer > div:eq(3)").insertAfter($('[id*="RegisterButton"]')).css('margin-top', '20px');
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_LoginPanel > p").css({"margin-top": "0px"});
- refreshCP();
- });
- }
- });
- }
- } catch(ex) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement