1var app = {}; 2$(document).ready(function () { 3 $('#fullpage').fullpage({ 4 anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'fifthPage', 'sixthPage'], 5 navigation: true, 6 navigationPosition: 'right', 7 navigationTooltips: ['First', 'Second', 'Third', 'Fourth', 'Fifth', 'Sixth'] 8 }); 9 10 $('.clr').click(function (e) { 11 e.preventDefault(); 12 $('#register-form').trigger('reset') 13 }); 14 15 $('#register-form').on('beforeSubmit', function () { 16 $('.rjs').attr('disabled', 'disabled'); 17 var address = new Array(); 18 address.push($('#registerform-address1').val()); 19 address.push($('#registerform-city').val()); 20 address.push($('#registerform-state').val()); 21 address.push($('#registerform-zip').val()); 22 address.push($('#registerform-country').val()); 23 address.filter(function(n){ return n != undefined }); 24 25 $(window).off('geocode_end').on('geocode_end', function () { 26 $('#register-form').off('beforeSubmit').yiiActiveForm('submitForm'); 27 $('.rjs').removeAttr('disabled'); 28 }); 29 30 app.map.reset(); 31 app.map.latitudeId = '#registerform-latitude'; 32 app.map.longitudeId = '#registerform-longitude'; 33 app.map.address = address.join(', '); 34 if (app.map.address.length > 0) { 35 app.map.geocode(); 36 } 37 38 return false; 39 }); 40 41 app.widget = { 42 initFlashMessage : function () { 43 // empty function for landing page 44 }, 45 46 initEmailRegex : function (id) { 47 $('#'+id).off('change').change(function () { 48 var val = $(this).prop('value'); 49 var re = /hotmail.com|aol.com/; 50 if (val.match(re)) { 51 alert("We do not recommend using your current email provider because it is difficult for all of our emails to get through. It is recommended, but not required, that you change your email to one that does not have the aol.com or hotmail.com domain."); 52 }; 53 }); 54 } 55 } 56});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.