Файл: touchSpace/js/no-jquery.js
Строк: 212
<?php
function each(e,n){for(var t in e)isOwnProp.call(e,t)&&n.call(e[t],e[t],t)}function base_domain(e){return e=e||""+location.host,e.match(/[a-zA-Z-_d]+.[a-zA-Z-_d]+.?$/)[0]}function text(e){return document.createTextNode(e)}function ce(e,n,t,r){var a,o=document.createElement(e);if(n)for(a in n)o[a]=n[a];if(t)for(a in t)o.style[a]=t[a];if(r)for(a in r)o.setAttribute(a,r[a]);return o}function is_empty_object(e){for(var n in e)if(isOwnProp.call(e,n))return!1;return!0}function ge(e,n){var t,r,a,o;if("#"==e.charAt(0))return document.getElementById(e.substr(1));if("."==e.charAt(0)){for(t=(n||document).getElementsByTagName("*"),r=[],a=e.substr(1),o=0;o<t.length;++o)t[o].className.indexOf(a)>=0&&r.push(t[o]);return r}return null}function extend(){var e,n,t=arguments[0];for(e=1;e<arguments.length;++e)if(arguments[e])for(n in arguments[e])isOwnProp.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}function insert_before(e,n){return e.parentElement.insertBefore(n,e),n}function prepend(e,n){return e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n}function class_func(e,n){return function(){return n.apply(e,arguments)}}function mk_callback(e,n,t){return t=t||[],function(){return n.apply(e||this,t.concat(arguments))}}function can_eom(e,n){var t,r,a=["","webkit","moz","o","ms"];for(t=0;t<a.length;++t)if(r=a[t].length?a[t]+n.substr(0,1).toUpperCase()+n.substr(1):n,void 0!==e[r])return e;return!1}function can_css(e){return can_eom(document.body.style,e)}function addClass(e,n){var t=RegExp("(^|\s)"+n+"(\s|$)","g");t.test(e.className)||(e.className=(e.className+" "+n).replace(/s+/g," ").replace(/(^ | $)/g,""))}function removeClass(e,n){var t=RegExp("(^|\s)"+n+"(\s|$)","g");e.className=e.className.replace(t,"$1").replace(/s+/g," ").replace(/(^ | $)/g,"")}function hasClass(e,n){return e.className.match(RegExp("(\s|^)"+n+"(\s|$)"))}function tick(e){setTimeout(e,0)}function parent_form(e){for(var e=e.parentNode;e;){if("form"==e.nodeName.toLowerCase())return e;e=e.parentNode}return null}function html_unwrap(e){var n={quot:'"',lt:"<",gt:">",nbsp:" ",amp:"&"};return e.replace(/&(#x[a-fd]+|#d+|[wd]+);/gim,function(e,t){if("#"==t.charAt(0)){var r;return r="x"==t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1)),String.fromCharCode(r)}return n[t]||t})}function pad(e,n,t){var r,a;for(t=t||"0",r="",a=0;n-1>a;++a)r+=t;return(r+e).slice(-n)}function html_wrap(e){var n={"<":"lt",">":"gt",'"':"quot"};return e.replace(/["'<>]/gim,function(e){return"&"+(n[e]||"#"+e.charCodeAt(0))+";"})}function L(e){return e}var isOwnProp=Object.prototype.hasOwnProperty;document.getElementsByClassName||(document.getElementsByClassName=function(e){return ge("."+e,document.body)}),function(){var e,n=function(){},t=["assert","clear","count","debug","dir","dirxml","error","group","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","timeline","timelineEnd","trace","warn"],r=window.console=window.console||{};for(e in t)r[t[e]]=r[t[e]]||n}();
?>