1// ======= Placeholder Plugin ========================================= 2/*! http://mths.be/placeholder v2.0.7 by @mathias */ 3;(function(f,h,$){var a='placeholder' in h.createElement('input'),d='placeholder' in h.createElement('textarea'),i=$.fn,c=$.valHooks,k,j;if(a&&d){j=i.placeholder=function(){return this};j.input=j.textarea=true}else{j=i.placeholder=function(){var l=this;l.filter((a?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':b,'blur.placeholder':e}).data('placeholder-enabled',true).trigger('blur.placeholder');return l};j.input=a;j.textarea=d;k={get:function(m){var l=$(m);return l.data('placeholder-enabled')&&l.hasClass('placeholder')?'':m.value},set:function(m,n){var l=$(m);if(!l.data('placeholder-enabled')){return m.value=n}if(n==''){m.value=n;if(m!=h.activeElement){e.call(m)}}else{if(l.hasClass('placeholder')){b.call(m,true,n)||(m.value=n)}else{m.value=n}}return l}};a||(c.input=k);d||(c.textarea=k);$(function(){$(h).delegate('form','submit.placeholder',function(){var l=$('.placeholder',this).each(b);setTimeout(function(){l.each(e)},10)})});$(f).bind('beforeunload.placeholder',function(){$('.placeholder').each(function(){this.value=''})})}function g(m){var l={},n=/^jQuery\d+$/;$.each(m.attributes,function(p,o){if(o.specified&&!n.test(o.name)){l[o.name]=o.value}});return l}function b(m,n){var l=this,o=$(l);if(l.value==o.attr('placeholder')&&o.hasClass('placeholder')){if(o.data('placeholder-password')){o=o.hide().next().show().attr('id',o.removeAttr('id').data('placeholder-id'));if(m===true){return o[0].value=n}o.focus()}else{l.value='';o.removeClass('placeholder');l==h.activeElement&&l.select()}}}function e(){var q,l=this,p=$(l),m=p,o=this.id;if(l.value==''){if(l.type=='password'){if(!p.data('placeholder-textinput')){try{q=p.clone().attr({type:'text'})}catch(n){q=$('<input>').attr($.extend(g(this),{type:'text'}))}q.removeAttr('name').data({'placeholder-password':true,'placeholder-id':o}).bind('focus.placeholder',b);p.data({'placeholder-textinput':q,'placeholder-id':o}).before(q)}p=p.removeAttr('id').hide().prev().attr('id',o).show()}p.addClass('placeholder');p[0].value=p.attr('placeholder')}else{p.removeClass('placeholder')}}}(this,document,jQuery)); 4 5// ======= Active Nav ================================================= 6var path = location.pathname.substring(1); 7if (path) { // if there is a value for the varible path 8 9 /*-- for the primary nav - if path equals the href give the parent a class of selected 10 example: nav ul li.selected a --*/ 11 $('nav a[href$="' + path + '"]').parent().addClass('selected'); 12 13 /*-- for dropdown nav - if path equals the href of the drop down links give the top level link a class of selected 14 example: nav ul li.selected a --*/ 15 $('nav ul ul a[href$="' + path + '"]').parents(':eq(2)').addClass('selected'); 16 17 /*-- for the aside nav - if path equals the href give the parent a class of selected 18 example: aside ul li.selected a --*/ 19 $('aside li a[href$="' + path + '"]').parent().addClass('selected'); 20}; 21 22 23//=======search============// 24$('.search-icon span').click(function(){ 25 $('.search-container').toggle(); 26}); 27 28 // When user clicks on forgot password link: 29 // Sign In form hides, Forgot password form shows 30 $("#btn-password").on('click', function (e) { 31 e.preventDefault(); 32 $("#form-login").fadeOut(function(){ 33 $("#form-password").fadeIn(); 34 }); 35 }); 36 // When user clicks on Nevermind link: 37 // Sign In form shows, Forgot password form hides 38 $("#btn-login").on('click', function (e) { 39 e.preventDefault(); 40 $("#form-password").fadeOut(function(){ 41 $("#form-login").fadeIn(); 42 }); 43 }); 44 // Will show the Create Account form once clicked 45 $("#needCreate").on('click', function (e) { 46 e.preventDefault(); 47 $(".create-form").fadeIn(); 48 }); 49 50 51 52
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.