/home/vianto5/cititower.mx/wp-content/themes/montreal/js
NameSizeModeActions
libs/-0755rm
jquery-ui-1.8.23.custom.min.js112520644editdlrm
jquery.mobile-1.2.0.min.js1131810644editdlrm
main.js47490644editdlrm
plugins.js986620644editdlrm
supersized.js260490644editdlrm
Edit: /home/vianto5/cititower.mx/wp-content/themes/montreal/js/main.js (4749B)
// Initialize the plugin with no custom options jQuery(document).ready(function($){ // I just set some of the options jQuery("#scroll").smoothDivScroll({ mousewheelScrolling: false, touchScrolling: true, manualContinuousScrolling: true, hotSpotScrolling: false, }); }); /// email check function checkemail(myemail) { var str=myemail; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(str)) { testresults=true } else { testresults=false } return (testresults) } /// to check that perticular value is EMPTY OR NOT function ISBLANK(xx) { var cc=0,tt; for(tt=0; tt
'); // add info panel before the form to provide feedback or errors var statusdiv=$('#comment-status'); // define the infopanel commentform.submit(function(){ //serialize and store form data in a variable var formdata=commentform.serialize(); //Add a status message statusdiv.html('

Processing...

'); //Extract action URL from commentform var formurl=commentform.attr('action'); //Post Form with data $.ajax({ type: 'post', url: formurl, data: formdata, error: function(XMLHttpRequest, textStatus, errorThrown){ statusdiv.html('

You might have left one of the fields blank, or be posting too quickly

'); }, success: function(data, textStatus){ if(data=="success") statusdiv.html('

Thanks for your comment. We appreciate your response.

'); else statusdiv.html('

Thanks for your comment. We appreciate your response.

'); commentform.find('textarea[name=comment]').val(''); } }); return false; }); $('#newsletter').submit(function(){ var action = $(this).attr('action'); $("footer #message").slideUp(750,function() { $('footer #message').hide(); $.post(action, { email: $('#email').val() }, function(data){ $('footer #message').html(data); $('footer #message').slideDown('slow'); if(data.match('success') != null) $('#newsletter').slideUp('slow'); } ); }); return false; }); //MEDIA PLAYER $('audio,video').mediaelementplayer({ videoWidth: '100%', videoHeight: '100%', audioWidth: '100%', features: ['playpause','progress','tracks','volume'], videoVolume: 'horizontal' }); //TEST FOR TOUCH DEVICES if (Modernizr.touch){ jQuery('#navigationmain ul').css( { 'display' : 'none' } ); jQuery('select.selectnav').css( { 'display' : 'block', 'padding' : '10px', 'font-family' : 'inherit', 'width' : '60%', 'border-radius' : '4px', 'font-size' : '14px', 'margin-bottom' : '10px', 'margin-top' : '15px', 'float' : 'right' } ); } }); // navivation