Current Path :
/
home
/
develito
/
public_html
/
bin
/
assets
/
js
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/bin/assets/js/yui.formalize.min.js
YUI.add("formalize",function(e){function t(e){var t=document.createElement("b");return t.innerHTML="<!--[if IE "+e+"]><br><![endif]-->",!!t.getElementsByTagName("br").length}var n="placeholder"in document.createElement("input"),r="autofocus"in document.createElement("input"),i=t(6),s=t(7);e.formalize={go:function(){var e,t=this.init;for(e in t)t.hasOwnProperty(e)&&t[e]()},init:{disable_link_button:function(){e.one(document.documentElement).delegate("click",function(e){e.preventDefault()},"a.button_disabled")},full_input_size:function(){if(!s||!e.all("textarea, input.input_full"))return;e.all("textarea, input.input_full").each(function(t){var n=e.Node.create('<span class="input_full_wrap"></span>');n.append(t.replace(n))})},ie6_skin_inputs:function(){if(!i||!e.all("input, select, textarea"))return;var t=/button|submit|reset/,n=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;e.all("input").each(function(e){e.getAttribute("type").match(t)?(e.addClass("ie6_button"),e.disabled&&e.addClass("ie6_button_disabled")):e.getAttribute("type").match(n)&&(e.addClass("ie6_input"),e.disabled&&e.addClass("ie6_input_disabled"))}),e.all("textarea, select").each(function(e){e.disabled&&e.addClass("ie6_input_disabled")})},autofocus:function(){if(r||!e.one("[autofocus]"))return;var t=e.Node.getDOMNode(e.one("[autofocus]"));t.disabled||t.focus()},placeholder:function(){if(n||!e.one("[placeholder]"))return;e.formalize.misc.add_placeholder(),e.all("[placeholder]").each(function(t){function i(){(!t.get("value")||t.get("value")===n)&&t.set("value",n).addClass("placeholder_text")}if(t.getAttribute("type")==="password")return;var n=t.getAttribute("placeholder"),r=t.ancestor("form");t.on("focus",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),t.on("blur",function(){e.formalize.misc.add_placeholder()}),r&&r.on("submit",function(){t.get("value")===n&&t.set("value","").removeClass("placeholder_text")}),r&&r.on("reset",function(){setTimeout(e.formalize.misc.add_placeholder,50)})})}},misc:{add_placeholder:function(){if(n||!e.one("[placeholder]"))return;e.all("[placeholder]").each(function(e){if(e.getAttribute("type")==="password")return;var t=e.getAttribute("placeholder");(!e.get("value")||e.get("value")===t)&&e.set("value",t).addClass("placeholder_text")})}}}},"1.1",{requires:["node","event"]})