/* Systm / v1.2.4 */ /*(function($) {$.DebugMode = function() {alert("dfg");};})(jQuery);*/ jQuery(document).ready(function($) { // System version $v = "1.2.4"; // Debug toolbar if($('body').hasClass('debug')){ /* Logo random color */ var r = Math.floor(Math.random() * 255);var g = Math.floor(Math.random() * 255);var b = Math.floor(Math.random() * 255); $color = 'rgb(' + r + ', ' + g + ' , ' + b + ')'; /* Create debug toolbar */ $('body').append('
  v'+$v+'  
'); /* Debug on */ $('#systm-toolbar a[href=#systm-debug]').click(function(){$('body').toggleClass('debugon');return false;}); /* Form auto-fill */ $('#systm-toolbar a[href=#systm-formfill]').click(function(){ /*$('html, body').animate({scrollTop: ($('form').offset().top)}, 'fast');*//* Trop gossant... */ $('form input[type=text]:not([name*=url])').val('Test');/* All normal text fields EXECPT the antispam field! */ $('form input[type=text][name*=email]').val('test@test.com'); $('form input[type=text][name*=phone]').val('555-5555'); $('form textarea').val('Message test'); return false; }); } });