Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var agreed = false;
- $("#button").click( function()
- {
- if( !agreed )
- {
- alert( "You must agree before proceeding." );
- return false;
- }
- _gaq.push(['_trackEvent', 'Form Submit', 'Button clicked']);
- $('#button').hide();
- window.setTimeout(proceed, 700);
- return false;
- });
- function proceed() {
- $( '#proceed' ).submit();
- }
- $("#toggler").click(function() {
- agreed = !agreed;
- });
- function showButton() {
- $('#button').toggle();
- return false;
- }
- jQuery('input#inputName').validateText(function(result) {
- if (result.type.name == 'confirmed'){
- $(".terms").fadeOut('slow', function() {
- agreed = true;
- $('#toggler')[0].checked = true;
- });
- $( "input#inputName" ).css('background-position', '15px 13px, calc(100% - 11px) -29px');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement