PageRenderTime 403ms queryTime 35ms sortTime 1ms getByIdsTime 60ms findMatchingLines 166ms

100+ results results for 'encodeURIComponent' (403 ms)

Not the results you expected?
rangy-serializer.js http://rangy.googlecode.com/svn/trunk/ | JavaScript | 302 lines
                    
19
                    
20    // encodeURIComponent and decodeURIComponent are required for cookie handling
                    
21    if (typeof encodeURIComponent == UNDEF || typeof decodeURIComponent == UNDEF) {
                    
21    if (typeof encodeURIComponent == UNDEF || typeof decodeURIComponent == UNDEF) {
                    
22        module.fail("Global object is missing encodeURIComponent and/or decodeURIComponent method");
                    
23    }
                    
281        var serialized = serializeSelection(api.getSelection(win));
                    
282        win.document.cookie = encodeURIComponent(cookieName) + "=" + encodeURIComponent(serialized) + expires + path + domain + secure;
                    
283    }
                    
                
what3words.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 322 lines
                    
8
                    
9        var location =  encodeURIComponent( api_result.geometry.lng + "," + api_result.geometry.lat );
                    
10
                    
                
shell_in_a_box.js git://github.com/jayschwa/shellinabox.git | JavaScript | 373 lines
                    
172                               (this.session ? '&session=' +
                    
173                                encodeURIComponent(this.session) : '&rooturl='+
                    
174                                encodeURIComponent(this.rooturl));
                    
230                                 '&height=' + this.terminalHeight +
                    
231                                 '&session=' +encodeURIComponent(this.session)+
                    
232                                 '&keys=' + encodeURIComponent(keys);
                    
                
plugin.min.js git://github.com/wordpress/wordpress.git | JavaScript | 1 lines
                    
1!function(a){a.ui.FloatPanel.zIndex=100100,a.PluginManager.add("wordpress",function(b){function c(c){var d,f,i,j=0;f="hide"===c,b.theme.panel&&(i=b.theme.panel.find(".toolbar:not(.menubar)")),!i||i.length<2||"hide"===c&&!i[1].visible()||(!c&&i[1].visible()&&(c="hide"),h(i,function(a,b){b>0&&("hide"===c?(a.hide(),j+=30):(a.show(),j-=30))}),j&&!f&&(a.Env.iOS||(d=b.getContentAreaContainer().firstChild,g.setStyle(d,"height",d.clientHeight+j)),"hide"===c?(setUserSetting("hidetb","0"),e&&e.active(!1)):(setUserSetting("hidetb","1"),e&&e.active(!0))),b.fire("wp-toolbar-toggle"))}function d(){}var e,f,g=a.DOM,h=a.each,i=b.editorManager.i18n.translate,j=window.jQuery,k=window.wp,l=k&&k.editor&&k.editor.autop&&b.getParam("wpautop",!0);return j&&j(document).triggerHandler("tinymce-editor-setup",[b]),b.addButton("wp_adv",{tooltip:"Toolbar Toggle",cmd:"WP_Adv",onPostRender:function(){e=this,e.active("1"===getUserSetting("hidetb"))}}),b.on("PostRender",function(){b.getParam("wordpress_adv_hidden",!0)&&"0"===getUserSetting("hidetb","0")&&c("hide")}),b.addCommand("WP_Adv",function(){c()}),b.on("focus",function(){window.wpActiveEditor=b.id}),b.on("BeforeSetContent",function(b){var c;b.content&&(-1!==b.content.indexOf("<!--more")&&(c=i("Read more..."),b.content=b.content.replace(/<!--more(.*?)-->/g,function(b,d){return'<img src="'+a.Env.transparentSrc+'" data-wp-more="more" data-wp-more-text="'+d+'" class="wp-more-tag mce-wp-more" alt="" title="'+c+'" data-mce-resize="false" data-mce-placeholder="1" />'})),-1!==b.content.indexOf("<!--nextpage-->")&&(c=i("Page break"),b.content=b.content.replace(/<!--nextpage-->/g,'<img src="'+a.Env.transparentSrc+'" data-wp-more="nextpage" class="wp-more-tag mce-wp-nextpage" alt="" title="'+c+'" data-mce-resize="false" data-mce-placeholder="1" />')),b.load&&"raw"!==b.format&&l&&(b.content=k.editor.autop(b.content)),-1===b.content.indexOf("<script")&&-1===b.content.indexOf("<style")||(b.content=b.content.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,function(b,c){return'<img src="'+a.Env.transparentSrc+'" data-wp-preserve="'+encodeURIComponent(b)+'" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="&lt;'+c+'&gt;" title="&lt;'+c+'&gt;" />'})),b.content=b.content.replace(/<p>([^<>]+)<\/p>/gi,function(a,b){return/^(&nbsp;|\s|\u00a0|\ufeff)+$/i.test(b)?"<p><br /></p>":a}))}),b.on("PostProcess",function(a){a.get&&(a.content=a.content.replace(/<img[^>]+>/g,function(a){var b,c,d="";return-1!==a.indexOf('data-wp-more="more"')?((b=a.match(/data-wp-more-text="([^"]+)"/))&&(d=b[1]),c="<!--more"+d+"-->"):-1!==a.indexOf('data-wp-more="nextpage"')?c="<!--nextpage-->":-1!==a.indexOf("data-wp-preserve")&&(b=a.match(/ data-wp-preserve="([^"]+)"/))&&(c=decodeURIComponent(b[1])),c||a}))}),b.on("ResolveName",function(a){var c;"IMG"===a.target.nodeName&&(c=b.dom.getAttrib(a.target,"data-wp-more"))&&(a.name=c)}),b.addCommand("WP_More",function(c){var d,e,f,g="wp-more-tag",h=b.dom,j=b.selection.getNode();return c=c||"more",g+=" mce-wp-"+c,f="more"===c?"Read more...":"Next page",f=i(f),e='<img src="'+a.Env.transparentSrc+'" alt="" title="'+f+'" class="'+g+'" data-wp-more="'+c+'" data-mce-resize="false" data-mce-placeholder="1" />',"BODY"===j.nodeName||"P"===j.nodeName&&"BODY"===j.parentNode.nodeName?void b.insertContent(e):(d=h.getParent(j,function(a){return!(!a.parentNode||"BODY"!==a.parentNode.nodeName)},b.getBody()),void(d&&("P"===d.nodeName?d.appendChild(h.create("p",null,e).firstChild):h.insertAfter(h.create("p",null,e),d),b.nodeChanged())))}),b.addCommand("WP_Code",function(){b.formatter.toggle("code")}),b.addCommand("WP_Page",function(){b.execCommand("WP_More","nextpage")}),b.addCommand("WP_Help",function(){function c(a){var b="<tr>";return h(a,function(a,c){b+=a?"<td><kbd>"+c+"</kbd></td><td>"+i(a)+"</td>":"<td></td><td></td>"}),b+"</tr>"}var d,e,f,g,j=i(a.Env.mac?"Ctrl + Alt + letter:":"Shift + Alt + letter:"),k=i(a.Env.mac?"Cmd + letter:":"Ctrl + letter:"),l=[],m=[];h([{c:"Copy",x:"Cut"},{v:"Paste",a:"Select all"},{z:"Undo",y:"Redo"},{b:"Bold",i:"Italic"},{u:"Underline",k:"Insert/edit link"}],function(a){l.push(c(a))}),h([{1:"Heading 1",2:"Heading 2"},{3:"Heading 3",4:"Heading 4"},{5:"Heading 5",6:"Heading 6"},{l:"Align left",c:"Align center"},{r:"Align right",j:"Justify"},{d:"Strikethrough",q:"Blockquote"},{u:"Bullet list",o:"Numbered list"},{a:"Insert/edit link",s:"Remove link"},{m:"Insert/edit image",t:"Insert Read More tag"},{h:"Keyboard Shortcuts",x:"Code"},{p:"Insert Page Break tag",w:"Distraction-free writing mode"}],function(a){m.push(c(a))}),d=[i("Letter"),i("Action"),i("Letter"),i("Action")],d="<tr><th>"+d.join("</th><th>")+"</th></tr>",e='<div class="wp-editor-help">',e=e+"<h2>"+i("Default shortcuts,")+" "+k+'</h2><table class="wp-help-th-center fixed">'+d+l.join("")+"</table><h2>"+i("Additional shortcuts,")+" "+j+'</h2><table class="wp-help-th-center fixed">'+d+m.join("")+"</table>",b.plugins.wptextpattern&&(!a.Env.ie||a.Env.ie>8)&&(e=e+"<h2>"+i("When starting a new paragraph with one of these formatting shortcuts followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.")+'</h2><table class="wp-help-th-center fixed">'+c({"*":"Bullet list","1.":"Numbered list"})+c({"-":"Bullet list","1)":"Numbered list"})+"</table>",e=e+"<h2>"+i("The following formatting shortcuts are replaced when pressing Enter. Press Escape or the Undo button to undo.")+'</h2><table class="wp-help-single">'+c({">":"Blockquote"})+c({"##":"Heading 2"})+c({"###":"Heading 3"})+c({"####":"Heading 4"})+c({"#####":"Heading 5"})+c({"######":"Heading 6"})+c({"---":"Horizontal line"})+"</table>"),e=e+"<h2>"+i("Focus shortcuts:")+'</h2><table class="wp-help-single">'+c({"Alt + F8":"Inline toolbar (when an image, link or preview is selected)"})+c({"Alt + F9":"Editor menu (when enabled)"})+c({"Alt + F10":"Editor toolbar"})+c({"Alt + F11":"Elements path"})+"</table><p>"+i("To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.")+"</p>",e+="</div>",f=b.windowManager.open({title:"Keyboard Shortcuts",items:{type:"container",classes:"wp-help",html:e},buttons:{text:"Close",onclick:"close"}}),f.$el&&(f.$el.find('div[role="application"]').attr("role","document"),g=f.$el.find(".mce-wp-help"),g[0]&&(g.attr("tabindex","0"),g[0].focus(),g.on("keydown",function(a){a.keyCode>=33&&a.keyCode<=40&&a.stopPropagation()})))}),b.addCommand("WP_Medialib",function(){k&&k.media&&k.media.editor&&k.media.editor.open(b.id)}),b.addButton("wp_more",{tooltip:"Insert Read More tag",onclick:function(){b.execCommand("WP_More","more")}}),b.addButton("wp_page",{tooltip:"Page break",onclick:function(){b.execCommand("WP_More","nextpage")}}),b.addButton("wp_help",{tooltip:"Keyboard Shortcuts",cmd:"WP_Help"}),b.addButton("wp_code",{tooltip:"Code",cmd:"WP_Code",stateSelector:"code"}),k&&k.media&&k.media.editor&&b.addMenuItem("add_media",{text:"Add Media",icon:"wp-media-library",context:"insert",cmd:"WP_Medialib"}),b.addMenuItem("wp_more",{text:"Insert Read More tag",icon:"wp_more",context:"insert",onclick:function(){b.execCommand("WP_More","more")}}),b.addMenuItem("wp_page",{text:"Page break",icon:"wp_page",context:"insert",onclick:function(){b.execCommand("WP_More","nextpage")}}),b.on("BeforeExecCommand",function(c){!a.Env.webkit||"InsertUnorderedList"!==c.command&&"InsertOrderedList"!==c.command||(f||(f=b.dom.create("style",{type:"text/css"},"#tinymce,#tinymce span,#tinymce li,#tinymce li>span,#tinymce p,#tinymce p>span{font:medium sans-serif;color:#000;line-height:normal;}")),b.getDoc().head.appendChild(f))}),b.on("ExecCommand",function(c){a.Env.webkit&&f&&("InsertUnorderedList"===c.command||"InsertOrderedList"===c.command)&&b.dom.remove(f)}),b.on("init",function(){var c=a.Env,d=["mceContentBody"],e=b.getDoc(),f=b.dom;c.iOS&&f.addClass(e.documentElement,"ios"),"rtl"===b.getParam("directionality")&&(d.push("rtl"),f.setAttrib(e.documentElement,"dir","rtl")),f.setAttrib(e.documentElement,"lang",b.getParam("wp_lang_attr")),c.ie?9===parseInt(c.ie,10)?d.push("ie9"):8===parseInt(c.ie,10)?d.push("ie8"):c.ie<8&&d.push("ie7"):c.webkit&&d.push("webkit"),d.push("wp-editor"),h(d,function(a){a&&f.addClass(e.body,a)}),b.on("BeforeSetContent",function(a){a.content&&(a.content=a.content.replace(/<p>\s*<(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre)( [^>]*)?>/gi,"<$1$2>").replace(/<\/(p|div|ul|ol|dl|table|blockquote|h[1-6]|fieldset|pre)>\s*<\/p>/gi,"</$1>"))}),j&&j(document).triggerHandler("tinymce-editor-init",[b]),window.tinyMCEPreInit&&window.tinyMCEPreInit.dragDropUpload&&f.bind(e,"dragstart dragend dragover drop",function(a){j&&j(document).trigger(new j.Event(a))}),b.getParam("wp_paste_filters",!0)&&(b.on("PastePreProcess",function(b){b.content=b.content.replace(/<br class="?Apple-interchange-newline"?>/gi,""),a.Env.webkit||(b.content=b.content.replace(/(<[^>]+) style="[^"]*"([^>]*>)/gi,"$1$2"),b.content=b.content.replace(/(<[^>]+) data-mce-style=([^>]+>)/gi,"$1 style=$2"))}),b.on("PastePostProcess",function(a){h(f.select("p",a.node),function(a){f.isEmpty(a)&&f.remove(a)})}))}),b.on("SaveContent",function(a){return!b.inline&&b.isHidden()?void(a.content=a.element.value):(a.content=a.content.replace(/<p>(?:<br ?\/?>|\u00a0|\uFEFF| )*<\/p>/g,"<p>&nbsp;</p>"),void(l&&(a.content=k.editor.removep(a.content))))}),b.on("preInit",function(){var c="@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b,script[src|async|defer|type|charset|crossorigin|integrity]";b.schema.addValidElements(c),a.Env.iOS&&(b.settings.height=300),h({c:"JustifyCenter",r:"JustifyRight",l:"JustifyLeft",j:"JustifyFull",q:"mceBlockQuote",u:"InsertUnorderedList",o:"InsertOrderedList",m:"WP_Medialib",z:"WP_Adv",t:"WP_More",d:"Strikethrough",h:"WP_Help",p:"WP_Page",x:"WP_Code"},function(a,c){b.shortcuts.add("access+"+c,"",a)}),b.addShortcut("meta+s","",function(){k&&k.autosave&&k.autosave.server.triggerSave()}),window.getUserSetting("editor_plain_text_paste_warning")>1&&(b.settings.paste_plaintext_inform=!1),a.Env.mac&&a.$(b.iframeElement).attr("title",i("Rich Text Area. Press Control-Option-H for help."))}),b.on("PastePlainTextToggle",function(a){if(a.state===!0){var b=parseInt(window.getUserSetting("editor_plain_text_paste_warning"),10)||0;2>b&&window.setUserSetting("editor_plain_text_paste_warning",++b)}}),b.on("preinit",function(){function c(c,d){function e(){if(!f)return this;var b,c,d=window.pageXOffset||document.documentElement.scrollLeft,e=window.pageYOffset||document.documentElement.scrollTop,h=window.innerWidth,i=window.innerHeight,m=q?q.getBoundingClientRect():{top:0,right:h,bottom:i,left:0,width:h,height:i},n=this.getEl(),o=n.offsetWidth,r=n.clientHeight,s=f.getBoundingClientRect(),t=(s.left+s.right)/2,u=5,v=r+u,w=p?p.getBoundingClientRect().bottom:0,x=j?j.getBoundingClientRect().bottom:0,y=k?i-k.getBoundingClientRect().top:0,z=l?i-l.getBoundingClientRect().top:0,A=Math.max(0,w,x,m.top),B=Math.max(0,y,z,i-m.bottom),C=s.top+m.top-A,D=i-m.top-s.bottom-B,E=i-A-B,F="",G=0,H=0;return C>=E||D>=E?(this.scrolling=!0,this.hide(),this.scrolling=!1,this):(a.Env.iOS&&"IMG"===f.nodeName&&(G=54,H=46),this.bottom?D>=v?(F=" mce-arrow-up",b=s.bottom+m.top+e-H):C>=v&&(F=" mce-arrow-down",b=s.top+m.top+e-r+G):C>=v?(F=" mce-arrow-down",b=s.top+m.top+e-r+G):D>=v&&E/2>s.bottom+m.top-A&&(F=" mce-arrow-up",b=s.bottom+m.top+e-H),"undefined"==typeof b&&(b=e+A+u+H),c=t-o/2+m.left+d,s.left<0||s.right>m.width?c=m.left+d+(m.width-o)/2:o>=h?(F+=" mce-arrow-full",c=0):0>c&&s.left+o>h||c+o>h&&s.right-o<0?c=(h-o)/2:c<m.left+d?(F+=" mce-arrow-left",c=s.left+m.left+d):c+o>m.width+m.left+d&&(F+=" mce-arrow-right",c=s.right-o+m.left+d),a.Env.iOS&&"IMG"===f.nodeName&&(F=F.replace(/ ?mce-arrow-(up|down)/g,"")),n.className=n.className.replace(/ ?mce-arrow-[\w]+/g,"")+F,g.setStyles(n,{left:c,top:b}),this)}var i,o,r=[];return h(c,function(a){function c(){var c=b.selection;"bullist"===d&&c.selectorChanged("ul > li",function(b,c){for(var d,e=c.parents.length;e--&&(d=c.parents[e].nodeName,"OL"!==d&&"UL"!=d););a.active(b&&"UL"===d)}),"numlist"===d&&c.selectorChanged("ol > li",function(b,c){for(var d,e=c.parents.length;e--&&(d=c.parents[e].nodeName,"OL"!==d&&"UL"!==d););a.active(b&&"OL"===d)}),a.settings.stateSelector&&c.selectorChanged(a.settings.stateSelector,function(b){a.active(b)},!0),a.settings.disabledStateSelector&&c.selectorChanged(a.settings.disabledStateSelector,function(b){a.disabled(b)})}var d;"|"===a?o=null:m.has(a)?(a={type:a},n.toolbar_items_size&&(a.size=n.toolbar_items_size),r.push(a),o=null):(o||(o={type:"buttongroup",items:[]},r.push(o)),b.buttons[a]&&(d=a,a=b.buttons[d],"function"==typeof a&&(a=a()),a.type=a.type||"button",n.toolbar_items_size&&(a.size=n.toolbar_items_size),a=m.create(a),o.items.push(a),b.initialized?c():b.on("init",c)))}),i=m.create({type:"panel",layout:"stack",classes:"toolbar-grp inline-toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:[{type:"toolbar",layout:"flow",items:r}]}),i.bottom=d,i.on("show",function(){this.reposition()}),i.on("keydown",function(a){27===a.keyCode&&(this.hide(),b.focus())}),b.on("remove",function(){i.remove()}),i.reposition=e,i.hide().renderTo(document.body),i}function d(a){e&&(e.tempHide||"hide"===a.type?(e.hide(),e=!1):"resizewindow"!==a.type&&"scrollwindow"!==a.type&&"resize"!==a.type&&"scroll"!==a.type||e.blockHide||(clearTimeout(i),i=setTimeout(function(){e&&"function"==typeof e.show&&(e.scrolling=!1,e.show())},250),e.scrolling=!0,e.hide()))}var e,f,i,j,k,l,m=a.ui.Factory,n=b.settings,o=b.getContainer(),p=document.getElementById("wpadminbar"),q=document.getElementById(b.id+"_ifr");o&&(j=a.$(".mce-toolbar-grp",o)[0],k=a.$(".mce-statusbar",o)[0]),"content"===b.id&&(l=document.getElementById("post-status-info")),b.shortcuts.add("alt+119","",function(){var a;e&&(a=e.find("toolbar")[0],a&&a.focus(!0))}),b.on("nodechange",function(a){var c=b.selection.isCollapsed(),d={element:a.element,parents:a.parents,collapsed:c};b.fire("wptoolbar",d),f=d.selection||d.element,e&&e!==d.toolbar&&e.hide(),d.toolbar?e!==d.toolbar?(e=d.toolbar,e.show()):e.reposition():e=!1}),b.on("focus",function(){e&&e.show()}),b.on("resizewindow scrollwindow",d),b.dom.bind(b.getWin(),"resize scroll",d),b.on("remove",function(){b.off("resizewindow scrollwindow",d),b.dom.unbind(b.getWin(),"resize scroll",d)}),b.on("blur hide",d),b.wp=b.wp||{},b.wp._createToolbar=c},!0),{_showButtons:d,_hideButtons:d,_setEmbed:d,_getEmbed:d}})}(window.tinymce);
                    
                
encode.js git://github.com/v0lkan/o2.js.git | JavaScript | 138 lines
                    
123    exports.escape = function(str) {
                    
124        return encodeURIComponent([kEmpty, str].join(kEmpty));
                    
125    };
                    
                
core.js git://github.com/v0lkan/o2.js.git | JavaScript | 404 lines
                    
323            if (params.hasOwnProperty(key)) {
                    
324                buffer.push([encodeURIComponent(key), kEquals,
                    
325                    encodeURIComponent(params[key])].join(''));
                    
                
get_message_maps.js https://bitbucket.org/scope/dragonfly-stp-1/ | JavaScript | 397 lines
                    
302  var pp_map = this._pretty_print_object('', map, 0, ['message map =']);
                    
303  window.open("data:text/plain," + encodeURIComponent(pp_map.join('\n')));
                    
304};
                    
                
main.js http://cfbbs.googlecode.com/svn/trunk/ | JavaScript | 199 lines
                    
13	this.de=function(o,t,h){if (o.removeEventListener){o.removeEventListener(t,h,false);}else if(o.detachEvent){o.detachEvent('on'+t,h);}else{try{o['on'+t]=null;}catch(e){;}}};
                    
14	this.setC=function(n, v){var c=n+"="+encodeURIComponent(v);document.cookie=c;};
                    
15	this.readC=function(n){var re=eval("/(?:;)?"+n+"=([^;]*);?/g");return re.test(document.cookie)?decodeURIComponent(RegExp.$1):null;};
                    
                
bookmarklets.js http://griflet.googlecode.com/svn/trunk/ | JavaScript | 47 lines
                    
3        d=document.getSelection();
                    
4        if (!d) d=encodeURIComponent(document.title);
                    
5        t=prompt('Tags:');
                    
27
                    
28k='PUT_YOUR_KEY_HERE';s=document.getSelection();t=document.title;if (!s) s=encodeURIComponent(t);
                    
29
                    
                
text_converter.js git://github.com/duckduckgo/zeroclickinfo-goodies.git | JavaScript | 381 lines
                    
235        base64Encoder: function(input) {
                    
236            return window.btoa(unescape(encodeURIComponent(input)));
                    
237        },
                    
239        base64Decoder: function(input) {
                    
240            return window.atob(unescape(encodeURIComponent(input)));
                    
241        },
                    
                
export-ui.js http://jsi.googlecode.com/svn/trunk/ | JavaScript | 351 lines
                    
115	        if(window.ActiveXObject){//??ie8
                    
116	        	zip = encodeURIComponent(zip);
                    
117	        	window.open($JSI.scriptBase+'?service=data&data='+zip,resultDialogName)//resultDialogName
                    
                
Buffer.js git://github.com/martensms/lycheeJS.git | JavaScript | 713 lines
                    
38
                    
39				let tmp = encodeURIComponent(str.slice(start, s + 1)).substr(1).split('%');
                    
40				for (let t = 0; t < tmp.length; t++) {
                    
                
ZeroClipboard.Core.js git://github.com/simogeo/Filemanager.git | JavaScript | 1788 lines
                    
14 */
                    
15  var _window = window, _document = _window.document, _navigator = _window.navigator, _setTimeout = _window.setTimeout, _encodeURIComponent = _window.encodeURIComponent, _ActiveXObject = _window.ActiveXObject, _Error = _window.Error, _parseInt = _window.Number.parseInt || _window.parseInt, _parseFloat = _window.Number.parseFloat || _window.parseFloat, _isNaN = _window.Number.isNaN || _window.isNaN, _round = _window.Math.round, _now = _window.Date.now, _keys = _window.Object.keys, _defineProperty = _window.Object.defineProperty, _hasOwn = _window.Object.prototype.hasOwnProperty, _slice = _window.Array.prototype.slice, _unwrap = function() {
                    
16    var unwrapper = function(el) {
                    
                
base64x-1.1.js git://github.com/kjur/jsrsasign.git | JavaScript | 1562 lines
                    
281  utf8tob64u = function (s) {
                    
282    return hextob64u(uricmptohex(encodeURIComponentAll(s)));
                    
283  };
                    
299function utf8tob64(s) {
                    
300  return hex2b64(uricmptohex(encodeURIComponentAll(s)));
                    
301}
                    
324function utf8tohex(s) {
                    
325  return uricmptohex(encodeURIComponentAll(s));
                    
326}
                    
                
XML.js git://github.com/phpmyadmin/phpmyadmin.git | JavaScript | 897 lines
                    
156                req.open("GET", "data:" + "text/xml" +
                    
157                         ";charset=utf-8," + encodeURIComponent(text), false);
                    
158                if(req.overrideMimeType) {
                    
                
Request.js git://github.com/phpmyadmin/phpmyadmin.git | JavaScript | 429 lines
                    
106                } else {
                    
107                    url = proxy + encodeURIComponent(url);
                    
108                }
                    
                
jasmine-html.js git://github.com/v0lkan/o2.js.git | JavaScript | 616 lines
                    
335        className: 'description',
                    
336        href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
                    
337        title: this.spec.getFullName()
                    
343        className: 'description',
                    
344        href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
                    
345        title: this.spec.getFullName()
                    
408  this.element = this.createDom('div', { className: 'suite' },
                    
409      this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(this.suite.getFullName()) }, this.suite.description)
                    
410  );
                    
485    var suiteDiv = this.createDom('div', { className: 'suite' },
                    
486        this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
                    
487        this.createDom('a', { classNa
                    
                
vars.js git://github.com/jonswar/perl-code-tidyall.git | JavaScript | 805 lines
                    
19    encodeURI          : false,
                    
20    encodeURIComponent : false,
                    
21    Error              : false,
                    
                
tests.js git://github.com/jonswar/perl-code-tidyall.git | JavaScript | 3083 lines
                    
71                    '        case "Init":',
                    
72                    '            return `${host}/vwapi/Init?VWID=${key}&DATA=${encodeURIComponent(',
                    
73                    '                Object.keys(data).map((k) => `${k}=${ data[k]}` ).join(";")',
                    
                
angular.js git://github.com/SpringSource/spring-roo.git | JavaScript | 9016 lines
                    
13                        return e + 2 < s.length ? he(s[e + 2]) : t
                    
14                    }), n = n + "\nhttp://errors.angularjs.org/1.3.15/" + (t ? t + "/" : "") + i, r = 2; r < arguments.length; r++) n = n + (2 == r ? "?" : "&") + "p" + (r - 2) + "=" + encodeURIComponent(he(arguments[r]));
                    
15                return new e(n)
                    
322    function K(t, e) {
                    
323        return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%20/g, e ? "%20" : "+")
                    
324    }
                    
                
odata.es.js git://github.com/liferay/liferay-portal.git | JavaScript | 682 lines
                    
226		const formattedPartial = queryPartial.startsWith("'")
                    
227			? encodeURIComponent(queryPartial)
                    
228			: queryPartial;
                    
                
test.js git://github.com/v0lkan/o2.js.git | JavaScript | 604 lines
                    
278	var q   = testEnv.q   || 'a search test';
                    
279	return url + '?q='+encodeURIComponent(q);
                    
280}
                    
                
package_tracking.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 255 lines
                    
18                        list_data[name] = carriers[name];
                    
19                        list_data[name].url = list_data[name].url.replace("{{code}}", encodeURIComponent(trackingNumber));
                    
20                    }
                    
28                        sourceName: "Packagetrackr",
                    
29                        sourceUrl: "https://www.packagetrackr.com/track/" + encodeURIComponent(trackingNumber),
                    
30                    },
                    
64        if (carrier.url) {
                    
65            carrierUrl = carrier.url.replace("{{code}}", encodeURIComponent(api_result.n));
                    
66        }
                    
                
template.js https://1Intranet.svn.codeplex.com/svn | JavaScript | 298 lines
                    
47            e.urlencode = e.escape = escape;
                    
48            e.encodeURIComponent = encodeURIComponent;
                    
49
                    
                
chat.js http://webchat2.googlecode.com/svn/trunk/ | JavaScript | 407 lines
                    
92	message: function(msg) {
                    
93		new Ajax.Request('/message?key='+chat.key+'&msg='+encodeURIComponent(msg)+'&channel='+encodeURIComponent(chat.current), { asynchronous : true, method : 'get'});
                    
94	},
                    
                
card.js http://orcish.googlecode.com/svn/trunk/ | JavaScript | 336 lines
                    
12        prices.show();
                    
13        priceLinks.attr('href', 'tcg://' + encodeURIComponent(price.tcgId));
                    
14        lowPrice.text('$' + price.low);
                    
43                
                    
44        gathererLink.attr('href', 'gatherer://' + encodeURIComponent(card.gathererId));
                    
45        
                    
74            if(card.type == 'Scheme' || isPlane) {
                    
75                imageURL = 'http://gatherer.wizards.com/Handlers/Image.ashx?type=card&multiverseid=' + encodeURIComponent(card.gathererId);
                    
76            }
                    
77            else {
                    
78                imageURL = 'http://magiccards.info/scans/en/' + card.setShortName.toLowerCase() + '/' + encodeURIComponent(card.infoId) + '.jpg';
                    
79            }
                    
242function nsLog(text) {
                    
243    setTimeout(function() { document.location = 'nslog://device/?' + encodeURIComponent(text); }, 1);
                    
244}
                    
                
eff.js git://github.com/mathiasbynens/mothereffingcssescapes.git | JavaScript | 115 lines
                    
29		// URL-encode some more characters to avoid issues when using permalink URLs in Markdown
                    
30		return encodeURIComponent(string).replace(/['()_*]/g, function(character) {
                    
31			return '%' + character.charCodeAt().toString(16);
                    
                
LJInstantComment.js http://livejournal-extension.googlecode.com/svn/trunk/ | JavaScript | 304 lines
                    
85	msgText = zakavych(this.value)
                    
86	msgEncoded = encodeURIComponent(msgText)
                    
87
                    
                
cpaint2.inc.compressed.js http://zenekar.googlecode.com/svn/trunk/ | JavaScript | 87 lines
                    
39if(use_cpaint_api==true){for(i=3;i<call_arguments.length;i++){querystring+='&cpaint_argument[]='+encodeURIComponent(call_arguments[i]);}
                    
40querystring+='&cpaint_response_type='+response_type;if(transfer_mode=='GET'){url=url+'?cpaint_function='+remote_method+querystring;}else{querystring='cpaint_function='+remote_method+querystring;}}else{for(i=3;i<call_arguments.length;i++){if(i==3){querystring+=encodeURIComponent(call_arguments[i]);}else{querystring+='&'+encodeURIComponent(call_arguments[i]);}}
                    
41if(transfer_mode=='GET'){url=url+querystring;}}
                    
46for(i=3;i<call_arguments.length;i++){querystring+=encodeURIComponent(querystring_argument_prefix+call_arguments[i]+'&');}
                    
47querystring+=encodeURIComponent('&cpaint_function='+remote_method);querystring+=encodeURIComponent('&cpaint_responsetype='+response_type);if(transfer_mode=='GET'){proxyscript+='?cpaint_remote_url='+encodeURIComponent(url)
                    
48+'&cpaint_remote_method='+transfer_mode
                    
49+'&cpaint_response_type='+response_type
                    
50+'&cpaint_remote_query='+querystring;}else{querystring='cpaint_remote_url='+encodeURIComponent(url)
                    
51+'&cpaint_remote_method='+transfer_mode
                    
                
myconfig.js http://lansuite.googlecode.com/svn/trunk/ | JavaScript | 48 lines
                    
13FCKConfig.LinkBrowser = true ;
                    
14FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
15FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;		// 70%
                    
18FCKConfig.ImageBrowser = true ;
                    
19FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
20FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
                    
23FCKConfig.FlashBrowser = true ;
                    
24FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
                    
25FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
                    
                
tools.js git://pkgs.fedoraproject.org/mediatomb | JavaScript | 462 lines
                    
46{
                    
47    var url = "/content/interface?req_type="+ encodeURIComponent(req_type) +"&return_type=xml&sid="+ SID;
                    
48    var got_update_param = false;
                    
57            }
                    
58            url += "&" + encodeURIComponent(key) +"="+ encodeURIComponent(param[key]);
                    
59        }
                    
                
ajax.js https://github.com/amanai/next24.git | JavaScript | 341 lines
                    
322				var content = oEditor.GetXHTML( true ) ;
                    
323				content = encodeURIComponent(content);
                    
324				//parameter += '&' + editorName + '=' + content;
                    
334				var content = oEditor.GetXHTML( true ) ;
                    
335				content = encodeURIComponent(content);
                    
336				parameter[item] = content;
                    
                
wsc.js git://github.com/concrete5/concrete5.git | JavaScript | 92 lines
                    
5(function(){function z(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function I(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],e="",d;for(d in a)for(var f in a[d]){var h=a[d][f];"en_US"==h?e=h:c.push(h)}c.sort();e&&c.unshift(e);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var e in a[d])if(e.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var e in a[d])c[a[d][e]]=
                    
6e;return c}()}}var g=function(){var a=function(a,b,d){d=d||{};var f=d.expires;if("number"==typeof f&&f){var h=new Date;h.setTime(h.getTime()+1E3*f);f=d.expires=h}f&&f.toUTCString&&(d.expires=f.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var k in d)b=d[k],a+="; "+k,!0!==b&&(a+="\x3d"+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString,
                    
7d=a.fn||null,f=a.id||"",h=a.target||window,k=a.message||{id:f};a.message&&"[object Object]"==b.call(a.message)&&(a.message.id?a.message.id:a.message.id=f,k=a.message);a=window.JSON.stringify(k,d);h.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
                    
                
cookie-debug.js git://github.com/ezsystems/ezpublish.git | JavaScript | 482 lines
                    
39        var lang = YAHOO.lang,
                    
40            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
                    
41        
                    
88            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
                    
89                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
                    
90            }
                    
                
io-form-coverage.js git://github.com/ezsystems/ezpublish.git | JavaScript | 14 lines
                    
9if (!__coverage__['build/io-form/io-form.js']) {
                    
10   __coverage__['build/io-form/io-form.js'] = {"path":"build/io-form/io-form.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0,0,0,0,0,0,0,0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0]},"f":{"1":0,"2":0,"3":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":38}}},"2":{"name":"(anonymous_2)","line":25,"loc":{"start":{"line":25,"column":17},"end":{"line":25,"column":41}}},"3":{"name":"(anonymous_3)","line":50,"loc":{"start":{"line":50,"column":16},"end":{"line":50,"column":31}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":129,"column":53}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":29}},"3":{"start":{"line":25,"column":0},"end":{"line":35,"column":2}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":28}},"5":{"start":{"line":28,"column":4},"end":{"line":32,"column":113}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":13}},"7":{"start":{"line":37,"column":0},"end":{"line":126,"column":9}},"8":{"start":{"line":51,"column":8},"end":{"line":55,"column":43}},"9":{"start":{"line":57,"column":8},"end":{"line":60,"column":9}},"10":{"start":{"line":58,"column":12},"end":{"line":58,"column":31}},"11":{"start":{"line":59,"column":12},"end":{"line":59,"column":40}},"12":{"start":{"line":62,"column":8},"end":{"line":62,"column":44}},"13":{"start":{"line":64,"column":8},"end":{"line":66,"column":9}},"14":{"start":{"line":65,"column":12},"end":{"line":65,"column":27}},"15":{"start":{"line":70,"column":8},"end":{"line":118,"column":9}},"16":{"start":{"line":71,"column":12},"end":{"line":71,"column":30}},"17":{"start":{"line":72,"column":12},"end":{"line":72,"column":27}},"18":{"start":{"line":73,"column":12},"end":{"line":73,"column":23}},"19":{"start":{"line":75,"column":12},"end":{"line":117,"column":13}},"20":{"start":{"line":76,"column":16},"end":{"line":76,"column":33}},"21":{"start":{"line":77,"column":16},"end":{"line":77,"column":33}},"22":{"start":{"line":79,"column":16},"end":{"line":116,"column":17}},"23":{"start":{"line":83,"column":24},"end":{"line":86,"column":25}},"24":{"start":{"line":84,"column":28},"end":{"line":84,"column":59}},"25":{"start":{"line":85,"column":28},"end":{"line":85,"column":122}},"26":{"start":{"line":87,"column":24},"end":{"line":87,"column":30}},"27":{"start":{"line":89,"column":24},"end":{"line":96,"column":25}},"28":{"start":{"line":90,"column":28},"end":{"line":95,"column":29}},"29":{"start":{"line":91,"column":32},"end":{"line":91,"column":49}},"30":{"start":{"line":92,"column":32},"end":{"line":94,"column":33}},"31":{"start":{"line":93,"column":34},"end":{"line":93,"column":128}},"32":{"start":{"line":97,"column":24},"end":{"line":97,"column":30}},"33":{"start":{"line":100,"column":24},"end":{"line":102,"column":25}},"34":{"start":{"line":101,"column":28},"end":{"line":101,"column":49}},"35":{"start":{"line":103,"column":24},"end":{"line":103,"column":30}},"36":{"start":{"line":112,"column":24},"end":{"line":112,"column":30}},"37":{"start":{"line":115,"column":24},"end":{"line":115,"column":45}},"38":{"start":{"line":120,"column":8},"end":{"line":122,"column":9}},"39":{"start":{"line":121,"column":12},"end":{"line":121,"column":29}},"40":{"start":{"line":124,"column":8},"end":{"line":124,"column":30}}},"branchMap":{"1":{"line":26,"type":"binary-expr","locations":[{"start":{"line":26,"column":14},"end":{"line":26,"column":21}},{"start":{"line":26,"column":25},"end":{"line":26,"column":27}}]},"2":{"line":32,"type":"cond-expr","locations":[{"start":{"line":32,"column":57},"end":{"line":32,"column":95}},{"start":{"line":32,"column":98},"end":{"line":32,"column":111}}]},"3":{"line":32,"type":"binary-expr","locations":[{"start":{"line":32,"column":4},"end":{"line":32,"column":17}},{"start":{"line":32,"column":21},"end":{"line":32,"column":54}}]},"4":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":17},"end":{"line":52,"column":30}},{"start":{"line":52,"column":34},"end":{"line":52,"column":39}}]},"5":{"line":54,"type":"cond-expr","locations":[{"start":{"line":54,"column":46},"end":{"line":54,"column":50}},{"start":{"line":54,"column":53},"end":{"line":54,"column":76}}]},"6":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":8},"end":{"line":57,"column":8}},{"start":{"line":57,"column":8},"end":{"line":57,"column":8}}]},"7":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":8}},{"start":{"line":64,"column":8},"end":{"line":64,"column":8}}]},"8":{"line":64,"type":"binary-expr","locations":[{"start":{"line":64,"column":12},"end":{"line":64,"column":14}},{"start":{"line":64,"column":18},"end":{"line":64,"column":29}}]},"9":{"line":65,"type":"binary-expr","locations":[{"start":{"line":65,"column":19},"end":{"line":65,"column":20}},{"start":{"line":65,"column":24},"end":{"line":65,"column":26}}]},"10":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":12},"end":{"line":75,"column":12}},{"start":{"line":75,"column":12},"end":{"line":75,"column":12}}]},"11":{"line":75,"type":"cond-expr","locations":[{"start":{"line":75,"column":21},"end":{"line":75,"column":22}},{"start":{"line":75,"column":25},"end":{"line":75,"column":32}}]},"12":{"line":75,"type":"binary-expr","locations":[{"start":{"line":75,"column":25},"end":{"line":75,"column":26}},{"start":{"line":75,"column":30},"end":{"line":75,"column":32}}]},"13":{"line":79,"type":"switch","locations":[{"start":{"line":82,"column":20},"end":{"line":87,"column":30}},{"start":{"line":88,"column":20},"end":{"line":97,"column":30}},{"start":{"line":98,"column":20},"end":{"line":98,"column":33}},{"start":{"line":99,"column":20},"end":{"line":103,"column":30}},{"start":{"line":104,"column":20},"end":{"line":104,"column":32}},{"start":{"line":106,"column":20},"end":{"line":106,"column":35}},{"start":{"line":108,"column":20},"end":{"line":108,"column":33}},{"start":{"line":110,"column":20},"end":{"line":112,"column":30}},{"start":{"line":113,"column":20},"end":{"line":113,"column":34}},{"start":{"line":114,"column":20},"end":{"line":115,"column":45}}]},"14":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":24},"end":{"line":83,"column":24}},{"start":{"line":83,"column":24},"end":{"line":83,"column":24}}]},"15":{"line":85,"type":"cond-expr","locations":[{"start":{"line":85,"column":104},"end":{"line":85,"column":111}},{"start":{"line":85,"column":114},"end":{"line":85,"column":120}}]},"16":{"line":85,"type":"binary-expr","locations":[{"start":{"line":85,"column":51},"end":{"line":85,"column":69}},{"start":{"line":85,"column":73},"end":{"line":85,"column":101}}]},"17":{"line":89,"type":"if","locations":[{"start":{"line":89,"column":24},"end":{"line":89,"column":24}},{"start":{"line":89,"column":24},"end":{"line":89,"column":24}}]},"18":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":32},"end":{"line":92,"column":32}},{"start":{"line":92,"column":32},"end":{"line":92,"column":32}}]},"19":{"line":93,"type":"cond-expr","locations":[{"start":{"line":93,"column":110},"end":{"line":93,"column":117}},{"start":{"line":93,"column":120},"end":{"line":93,"column":126}}]},"20":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":57},"end":{"line":93,"column":75}},{"start":{"line":93,"column":79},"end":{"line":93,"column":107}}]},"21":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":24},"end":{"line":100,"column":24}},{"start":{"line":100,"column":24},"end":{"line":100,"column":24}}]},"22":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":8}},{"start":{"line":120,"column":8},"end":{"line":120,"column":8}}]}},"code":["(function () { YUI.add('io-form', function (Y, NAME) {","","/**","* Extends IO to enable HTML form data serialization, when specified","* in the transaction's configuration object.","* @module io","* @submodule io-form","* @for IO","*/","","var eUC = encodeURIComponent;","","/**"," * Enumerate through an HTML form's elements collection"," * and return a string comprised of key-value pairs."," *"," * @method stringify"," * @static"," * @param {Node|String} form YUI form node or HTML form id"," * @param {Object} [options] Configuration options."," * @param {Boolean} [options.useDisabled=false] Whether to include disabled fields."," * @param {Object|String} [options.extra] Extra values to include. May be a query string or an object with key/value pairs."," * @return {String}"," */","Y.IO.stringify = function(form, options) {","    options = options || {};","","    var s = Y.IO.prototype._serialize({","        id: form,","        useDisabled: options.useDisabled","    },","    options.extra && typeof options.extra === 'object' ? Y.QueryString.stringify(options.extra) : options.extra);","","    return s;","};","","Y.mix(Y.IO.prototype, {","   /**","    * Enumerate through an HTML form's elements collection","    * and return a string comprised of key-value pairs.","    *","    * @method _serialize","    * @private","    * @param {Object} c","    * @param {String|Element} c.id YUI form node or HTML form id","    * @param {Boolean} c.useDisabled `true` to include disabled fields","    * @param {String} s Key-value data defined in the configuration object.","    * @return {String}","    */","    _serialize: function(c, s) {","        var data = [],","            df = c.useDisabled || false,","            item = 0,","            id = (typeof c.id === 'string') ? c.id : c.id.getAttribute('id'),","            e, f, n, v, d, i, il, j, jl, o;","","        if (!id) {","            id = Y.guid('io:');","            c.id.setAttribute('id', id);","        }","","        f = Y.config.doc.getElementById(id);","","        if (!f || !f.elements) {","            return s || '';","        }","","        // Iterate over the form elements collection to construct the","        // label-value pairs.","        for (i = 0, il = f.elements.length; i < il; ++i) {","            e = f.elements[i];","            d = e.disabled;","            n = e.name;","","            if (df ? n : n && !d) {","                n = eUC(n) + '=';","                v = eUC(e.value);","","                switch (e.type) {","                    // Safari, Opera, FF all default options.value from .text if","                    // value attribute not specified in markup","                    case 'select-one':","                        if (e.selectedIndex > -1) {","                            o = e.options[e.selectedIndex];","                            data[item++] = n + eUC(o.attributes.value && o.attributes.value.specified ? o.value : o.text);","                        }","                        break;","                    case 'select-multiple':","                        if (e.selectedIndex > -1) {","                            for (j = e.selectedIndex, jl = e.options.length; j < jl; ++j) {","                                o = e.options[j];","                                if (o.selected) {","                                  data[item++] = n + eUC(o.attributes.value && o.attributes.value.specified ? o.value : o.text);","                                }","                            }","                        }","                        break;","                    case 'radio':","                    case 'checkbox':","                        if (e.checked) {","                            data[item++] = n + v;","                        }","                        break;","                    case 'file':","                        // stub case as XMLHttpRequest will only send the file path as a string.","                    case undefined:","                        // stub case for fieldset element which returns undefined.","                    case 'reset':","                        // stub case for input type reset button.","                    case 'button':","                        // stub case for input type button elements.","                        break;","                    case 'submit':","                    default:","                        data[item++] = n + v;","                }","            }","        }","","        if (s) {","            data[item++] = s;","        }","","        return data.join('&');","    }","}, true);","","","}, '3.17.2', {\"requires\": [\"io-base\", \"node-base\"]});","","}());"]};
                    
11}
                    
12var __cov_36ZtFOREqkT81DdmFo$mgA = __coverage__['build/io-form/io-form.js'];
                    
13__cov_36ZtFOREqkT81DdmFo$mgA.s['1']++;YUI.add('io-form',function(Y,NAME){__cov_36ZtFOREqkT81DdmFo$mgA.f['1']++;__cov_36ZtFOREqkT81DdmFo$mgA.s['2']++;var eUC=encodeURIComponent;__cov_36ZtFOREqkT81DdmFo$mgA.s['3']++;Y.IO.stringify=function(form,options){__cov_36ZtFOREqkT81DdmFo$mgA.f['2']++;__cov_36ZtFOREqkT81DdmFo$mgA.s['4']++;options=(__cov_36ZtFOREqkT81DdmFo$mgA.b['1'][0]++,options)||(__cov_36ZtFOREqkT81DdmFo$mgA.b['1'][1]++,{});__cov_36ZtFOREqkT81DdmFo$mgA.s['5']++;var s=Y.IO.prototype._serialize({id:form,useDisabled:options.useDisabled},(__cov_36ZtFOREqkT81DdmFo$mgA.b['3'][0]++,options.extra)&&(__cov_36ZtFOREqkT81DdmFo$mgA.b['3'][1]++,typeof options.extra==='object')?(__cov_36ZtFOREqkT81DdmFo$mgA.b['2'][0]++,Y.QueryString.stringify(options.extra)):(__cov_36ZtFOREqkT81DdmFo$mgA.b['2'][1]++,options.extra));__cov_36ZtFOREqkT81DdmFo$mgA.s['6']++;return s;};__cov_36ZtFOREqkT81DdmFo$mgA.s['7']++;Y.mix(Y.IO.prototype,{_serialize:function(c,s){__cov_36ZtFOREqkT81DdmFo$mgA.f['3']++;__cov_36ZtFOREqkT81DdmFo$mgA.s['8']++;var data=[],df=(__cov_36ZtFOREqkT81DdmFo$mgA.b['4'][0]++,c.useDisabled)||(__cov_36ZtFOREqkT81DdmFo$mgA.b['4'][1]++,false),item=0,id=typeof c.id==='string'?(__cov_36ZtFOREqkT81DdmFo$mgA.b['5'][0]++,c.id):(__cov_36ZtFOREqkT81DdmFo$mgA.b['5'][1]++,c.id.getAttribute('id')),e,f,n,v,d,i,il,j,jl,o;__cov_36ZtFOREqkT81DdmFo$mgA.s['9']++;if(!id){__cov_36ZtFOREqkT81DdmFo$mgA.b['6'][0]++;__cov_36ZtFOREqkT81DdmFo$mgA.s['10']++;id=Y.guid('io:');__cov_36ZtFOREqkT81DdmFo$mgA.s['11']++;c.id.setAttribute('id',id);}else{__cov_36ZtFOREqkT81DdmFo$mgA.b['6'][1]++;}__cov_36ZtFOREqkT81DdmFo$mgA.s['12']++;f=Y.config.doc.getElementById(id);__cov_36ZtFOREqkT81DdmFo$mgA.s['13']++;if((__cov_36ZtFOREqkT81DdmFo$mgA.b['8'][0]++,!f)||(__cov_36ZtFOREqkT81DdmFo$mgA.b['8'][1]++,!f.elements)){__cov_36ZtFOREqkT81DdmFo$mgA.b['7'][0]++
                    
                
fileuploader.min.js git://github.com/osCommerce/oscommerce.git | JavaScript | 9 lines
                    
8 */
                    
9var qq=qq||{};qq.extend=function(b,a){for(var c in a){b[c]=a[c]}};qq.indexOf=function(b,c,d){if(b.indexOf){return b.indexOf(c,d)}d=d||0;var a=b.length;if(d<0){d+=a}for(;d<a;d++){if(d in b&&b[d]===c){return d}}return -1};qq.getUniqueId=(function(){var a=0;return function(){return a++}})();qq.attach=function(a,c,b){if(a.addEventListener){a.addEventListener(c,b,false)}else{if(a.attachEvent){a.attachEvent("on"+c,b)}}};qq.detach=function(a,c,b){if(a.removeEventListener){a.removeEventListener(c,b,false)}else{if(a.attachEvent){a.detachEvent("on"+c,b)}}};qq.preventDefault=function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}};qq.insertBefore=function(d,c){c.parentNode.insertBefore(d,c)};qq.remove=function(a){a.parentNode.removeChild(a)};qq.contains=function(b,a){if(b==a){return true}if(b.contains){return b.contains(a)}else{return !!(a.compareDocumentPosition(b)&8)}};qq.toElement=(function(){var a=document.createElement("div");return function(c){a.innerHTML=c;var b=a.firstChild;a.removeChild(b);return b}})();qq.css=function(a,b){if(b.opacity!=null){if(typeof a.style.opacity!="string"&&typeof(a.filters)!="undefined"){b.filter="alpha(opacity="+Math.round(100*b.opacity)+")"}}qq.extend(a.style,b)};qq.hasClass=function(b,a){var c=new RegExp("(^| )"+a+"( |$)");return c.test(b.className)};qq.addClass=function(b,a){if(!qq.hasClass(b,a)){b.className+=" "+a}};qq.removeClass=function(b,a){var c=new RegExp("(^| )"+a+"( |$)");b.className=b.className.replace(c," ").replace(/^\s+|\s+$/g,"")};qq.setText=function(a,b){a.innerText=b;a.textContent=b};qq.children=function(b){var a=[],c=b.firstChild;while(c){if(c.nodeType==1){a.push(c)}c=c.nextSibling}return a};qq.getByClass=function(d,e){if(d.querySelectorAll){return d.querySelectorAll("."+e)}var b=[];var f=d.getElementsByTagName("*");var a=f.length;for(var c=0;c<a;c++){if(qq.hasClass(f[c],e)){b.push(f[c])}}return b};qq.obj2url=function(f,b,h){var g=[],d="&",e=function(k,j){var l=b?(/\[\]$/.test(b))?b:b+"["+j+"]":j;if((l!="undefined")&&(j!="undefined")){g.push((typeof k==="object")?qq.obj2url(k,l,true):(Object.prototype.toString.call(k)==="[object Function]")?encodeURIComponent(l)+"="+encodeURIComponent(k()):encodeURIComponent(l)+"="+encodeURIComponent(k))}};if(!h&&b){d=(/\?/.test(b))?(/\?$/.test(b))?"":"&":"?";g.push(b);g.push(qq.obj2url(f))}else{if((Object.prototype.toString.call(f)==="[object Array]")&&(typeof f!="undefined")){for(var c=0,a=f.length;c<a;++c){e(f[c],c)}}else{if((typeof f!="undefined")&&(f!==null)&&(typeof f==="object")){for(var c in f){e(f[c],c)}}else{g.push(encodeURIComponent(b)+"="+encodeURIComponent(f))}}}return g.join(d).replace(/^&/,"").replace(/%20/g,"+")};var qq=qq||{};qq.FileUploaderBasic=function(a){this._options={debug:false,action:"/server/upload",params:{},button:null,multiple:true,maxConnections:3,allowedExtensions:[],textUpload:'Upload',sizeLimit:0,minSizeLimit:0,onSubmit:function(c,b){},onProgress:function(e,d,b,c){},onComplete:function(d,c,b){},onCancel:function(c,b){},messages:{typeError:"{file} has invalid extension. Only {extensions} are allowed.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",onLeave:"The files are being uploaded, if you leave now the upload will be cancelled."},showMessage:function(b){alert(b)}};qq.extend(this._options,a);this._filesInProgress=0;this._handler=this._createUploadHandler();if(this._options.button){this._button=this._createUploadButton(this._options.button)}this._preventLeaveInProgress()};qq.FileUploaderBasic.prototype={setParams:function(a){this._options.params=a},getInProgress:function(){return this._filesInProgress},_createUploadButton:function(b){var a=this;return new qq.UploadButton({element:b,multiple:this._options.multiple&&qq.UploadHandlerXhr.isSupported(),onChange:function(c){a._onInputChange(c)}})},_createUploadHandler:function(){var a=this,c;if(qq.UploadHandlerXhr.isSupported()){c="UploadHandlerXhr"}else{c="UploadHandlerForm"}var b=new qq[c]({debug:this._options.debug,action:this._options.action,maxConnections:this._options.maxConnections,onProgress:function(g,f,d,e){a._onProgress(g,f,d,e);a._options.onProgress(g,f,d,e)},onComplete:function(f,e,d){a._onComplete(f,e,d);a._options.onComplete(f,e,d)},onCancel:function(e,d){a._onCancel(e,d);a._options.onCancel(e,d)}});return b},_preventLeaveInProgress:function(){var a=this;qq.attach(window,"beforeunload",function(b){if(!a._filesInProgress){return}var b=b||window.event;b.returnValue=a._options.messages.onLeave;return a._options.messages.onLeave})},_onSubmit:function(b,a){this._filesInProgress++},_onProgress:function(d,c,a,b){},_onComplete:function(c,b,a){this._filesInProgress--;if(a.error){this._options.showMessage(a.error)}},_onCancel:function(b,a){this._filesInProgress--},_onInputChange:function(a){if(this._handler instanceof qq.UploadHandlerXhr){this._uploadFileList(a.files)}else{if(this._validateFile(a)){this._uploadFile(a)}}this._button.reset()},_uploadFileList:function(b){for(var a=0;a<b.length;a++){if(!this._validateFile(b[a])){return}}for(var a=0;a<b.length;a++){this._uploadFile(b[a])}},_uploadFile:function(a){var c=this._handler.add(a);var b=this._handler.getName(c);if(this._options.onSubmit(c,b)!==false){this._onSubmit(c,b);this._handler.upload(c,this._options.params)}},_validateFile:function(c){var a,b;if(c.value){a=c.value.replace(/.*(\/|\\)/,"")}else{a=c.fileName!=null?c.fileName:c.name;b=c.fileSize!=null?c.fileSize:c.size}if(!this._isAllowedExtension(a)){this._error("typeError",a);return false}else{if(b===0){this._error("emptyError",a);return false}else{if(b&&this._options.sizeLimit&&b>this._options.sizeLimit){this._error("sizeError",a);return false}else{if(b&&b<this._options.minSizeLimit){this._error("minSizeError",a);return false}}}}return true},_error:function(c,d){var b=this._options.messages[c];function a(e,f){b=b.replace(e,f)}a("{file}",this._formatFileName(d));a("{extensions}",this._options.allowedExtensions.join(", "));a("{sizeLimit}",this._formatSize(this._options.sizeLimit));a("{minSizeLimit}",this._formatSize(this._options.minSizeLimit));this._options.showMessage(b)},_formatFileName:function(a){if(a.length>33){a=a.slice(0,19)+"..."+a.slice(-13)}return a},_isAllowedExtension:function(d){var b=(-1!==d.indexOf("."))?d.replace(/.*[.]/,"").toLowerCase():"";var c=this._options.allowedExtensions;if(!c.length){return true}for(var a=0;a<c.length;a++){if(c[a].toLowerCase()==b){return true}}return false},_formatSize:function(a){var b=-1;do{a=a/1024;b++}while(a>99);return Math.max(a,0.1).toFixed(1)+["kB","MB","GB","TB","PB","EB"][b]}};qq.FileUploader=function(a){qq.FileUploaderBasic.apply(this,arguments);qq.extend(this._options,{element:null,listElement:null,template:'<div class="qq-uploader"><div class="qq-upload-drop-area"><span>Drop files here to upload</span></div><div class="qq-upload-button">'+this._options.textUpload+'</div><ul class="qq-upload-list"></ul></div>',fileTemplate:'<li><span class="qq-upload-file"></span><span class="qq-upload-spinner"></span><span class="qq-upload-size"></span><a class="qq-upload-cancel" href="#">Cancel</a><span class="qq-upload-failed-text">Failed</span></li>',classes:{button:"qq-upload-button",drop:"qq-upload-drop-area",dropActive:"qq-upload-drop-area-active",list:"qq-upload-list",file:"qq-upload-file",spinner:"qq-upload-spinner",size:"qq-upload-size",cancel:"qq-upload-cancel",success:"qq-upload-success",fail:"qq-upload-fail"}});qq.extend(this._options,a);this._element=this._options.element;this._element.innerHTML=this._options.template;this._listElement=this._options.listElement||this._find(this._element,"list");this._classes=this._options.classes;this._button=this._createUploadButton(this._find(this._element,"button"));this._bindCancelEvent();this._setupDragDrop()};qq.extend(qq.FileUploader.prototype,qq.FileUploaderBasic.prototype);qq.extend(qq.FileUploader.prototype,{_find:function(c,b){var a=qq.getByClass(c,this._options.classes[b])[0];if(!a){throw new Error("element not found "+b)}return a},_setupDragDrop:function(){var b=this,c=this._find(this._element,"drop");var a=new qq.UploadDropZone({element:c,onEnter:function(d){qq.addClass(c,b._classes.dropActive);d.stopPropagation()},onLeave:function(d){d.stopPropagation()},onLeaveNotDescendants:function(d){qq.removeClass(c,b._classes.dropActive)},onDrop:function(d){c.style.display="none";qq.removeClass(c,b._classes.dropActive);b._uploadFileList(d.dataTransfer.files)}});c.style.display="none";qq.attach(document,"dragenter",function(d){if(!a._isValidFileDrag(d)){return}c.style.display="block"});qq.attach(document,"dragleave",function(f){if(!a._isValidFileDrag(f)){return}var d=document.elementFromPoint(f.clientX,f.clientY);if(!d||d.nodeName=="HTML"){c.style.display="none"}})},_onSubmit:function(b,a){qq.FileUploaderBasic.prototype._onSubmit.apply(this,arguments);this._addToList(b,a)},_onProgress:function(g,f,a,d){qq.FileUploaderBasic.prototype._onProgress.apply(this,arguments);var c=this._getItemByFileId(g);var b=this._find(c,"size");b.style.display="inline";var e;if(a!=d){e=Math.round(a/d*100)+"% from "+this._formatSize(d)}else{e=this._formatSize(d)}qq.setText(b,e)},_onComplete:function(d,c,a){qq.FileUploaderBasic.prototype._onComplete.apply(this,arguments);var b=this._getItemByFileId(d);qq.remove(this._find(b,"cancel"));qq.remove(this._find(b,"spinner"));if(a.success){qq.addClass(b,this._classes.success)}else{qq.addClass(b,this._classes.fail)}},_addToList:function(d,c){var a=qq.toElement(this._options.fileTemplate);a.qqFileId=d;var b=this._find(a,"file");qq.setText(b,this._formatFileName(c));this._find(a,"size").style.display="none";this._listElement.appendChild(a)},_getItemByFileId:function(b){var a=this._listElement.firstChild;while(a){if(a.qqFileId==b){return a}a=a.nextSibling}},_bindCancelEvent:function(){var a=this,b=this._listElement;qq.attach(b,"click",function(f){f=f||window.event;var d=f.target||f.srcElement;if(qq.hasClass(d,a._classes.cancel)){qq.preventDefault(f);var c=d.parentNode;a._handler.cancel(c.qqFileId);qq.remove(c)}})}});qq.UploadDropZone=function(a){this._options={element:null,onEnter:function(b){},onLeave:function(b){},onLeaveNotDescendants:function(b){},onDrop:function(b){}};qq.extend(this._options,a);this._element=this._options.element;this._disableDropOutside();this._attachEvents()};qq.UploadDropZone.prototype={_disableDropOutside:function(a){if(!qq.UploadDropZone.dropOutsideDisabled){qq.attach(document,"dragover",function(b){if(b.dataTransfer){b.dataTransfer.dropEffect="none";b.preventDefault()}});qq.UploadDropZone.dropOutsideDisabled=true}},_attachEvents:function(){var a=this;qq.attach(a._element,"dragover",function(c){if(!a._isValidFileDrag(c)){return}var b=c.dataTransfer.effectAllowed;if(b=="move"||b=="linkMove"){c.dataTransfer.dropEffect="move"}else{c.dataTransfer.dropEffect="copy"}c.stopPropagation();c.preventDefault()});qq.attach(a._element,"dragenter",function(b){if(!a._isValidFileDrag(b)){return}a._options.onEnter(b)});qq.attach(a._element,"dragleave",function(c){if(!a._isValidFileDrag(c)){return}a._options.onLeave(c);var b=document.elementFromPoint(c.clientX,c.clientY);if(qq.contains(this,b)){return}a._options.onLeaveNotDescendants(c)});qq.attach(a._element,"drop",function(b){if(!a._isValidFileDrag(b)){return}b.preventDefault();a._options.onDrop(b)})},_isValidFileDrag:function(c){var b=c.dataTransfer,a=navigator.userAgent.indexOf("AppleWebKit")>-1;return b&&b.effectAllowed!="none"&&(b.files||(!a&&b.types.contains&&b.types.contains("Files")))}};qq.UploadButton=function(a){this._options={element:null,multiple:false,name:"file",onChange:function(b){},hoverClass:"qq-upload-button-hover",focusClass:"qq-upload-button-focus"};qq.extend(this._options,a);this._element=this._options.element;qq.css(this._element,{position:"relative",overflow:"hidden",direction:"ltr"});this._input=this._createInput()};qq.UploadButton.prototype={getInput:function(){return this._input},reset:function(){if(this._input.parentNode){qq.remove(this._input)}qq.removeClass(this._element,this._options.focusClass);this._input=this._createInput()},_createInput:function(){var b=document.createElement("input");if(this._options.multiple){b.setAttribute("multiple","multiple")}b.setAttribute("type","file");b.setAttribute("name",this._options.name);qq.css(b,{position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:"118px",margin:0,padding:0,cursor:"pointer",opacity:0});this._element.appendChild(b);var a=this;qq.attach(b,"change",function(){a._options.onChange(b)});qq.attach(b,"mouseover",function(){qq.addClass(a._element,a._options.hoverClass)});qq.attach(b,"mouseout",function(){qq.removeClass(a._element,a._options.hoverClass)});qq.attach(b,"focus",function(){qq.addClass(a._element,a._options.focusClass)});qq.attach(b,"blur",function(){qq.removeClass(a._element,a._options.focusClass)});if(window.attachEvent){b.setAttribute("tabIndex","-1")}return b}};qq.UploadHandlerAbstract=function(a){this._options={debug:false,action:"/upload.php",maxConnections:999,onProgress:function(e,d,b,c){},onComplete:function(d,c,b){},onCancel:function(c,b){}};qq.extend(this._options,a);this._queue=[];this._params=[]};qq.UploadHandlerAbstract.prototype={log:function(a){if(this._options.debug&&window.console){console.log("[uploader] "+a)}},add:function(a){},upload:function(d,b){var a=this._queue.push(d);var c={};qq.extend(c,b);this._params[d]=c;if(a<=this._options.maxConnections){this._upload(d,this._params[d])}},cancel:function(a){this._cancel(a);this._dequeue(a)},cancelAll:function(){for(var a=0;a<this._queue.length;a++){this._cancel(this._queue[a])}this._queue=[]},getName:function(a){},getSize:function(a){},getQueue:function(){return this._queue},_upload:function(a){},_cancel:function(a){},_dequeue:function(d){var b=qq.indexOf(this._queue,d);this._queue.splice(b,1);var a=this._options.maxConnections;if(this._queue.length>=a&&b<a){var c=this._queue[a-1];this._upload(c,this._params[c])}}};qq.UploadHandlerForm=function(a){qq.UploadHandlerAbstract.apply(this,arguments);this._inputs={}};qq.extend(qq.UploadHandlerForm.prototype,qq.UploadHandlerAbstract.prototype);qq.extend(qq.UploadHandlerForm.prototype,{add:function(a){a.setAttribute("name","qqfile");var b="qq-upload-handler-iframe"+qq.getUniqueId();this._inputs[b]=a;if(a.parentNode){qq.remove(a)}return b},getName:function(a){return this._inputs[a].value.replace(/.*(\/|\\)/,"")},_cancel:function(b){this._options.onCancel(b,this.getName(b));delete this._inputs[b];var a=document.getElementById(b);if(a){a.setAttribute("src","javascript:false;");qq.remove(a)}},_upload:function(g,e){var b=this._inputs[g];if(!b){throw new Err
                    
                
ckfinder.js git://github.com/forkcms/forkcms.git | JavaScript | 7 lines
                    
5
                    
6(function(){var a=(function(){var h={jY:'E7F823V',_:{},status:'unloaded',basePath:(function(){var k=window.CKFINDER_BASEPATH||'';if(!k){var l=document.getElementsByTagName('script');for(var m=0;m<l.length;m++){var n=l[m].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);if(n){k=n[1];break;}}}if(k.indexOf('://')== -1)if(k.indexOf('/')===0)k=location.href.match(/^.*?:\/\/[^\/]*/)[0]+k;else k=location.href.match(/^[^\?]*\/(?:)/)[0]+k;return k;})(),getUrl:function(k){if(k.indexOf('://')== -1&&k.indexOf('/')!==0)k=this.basePath+k;if(this.jY&&k.charAt(k.length-1)!='/')k+=(k.indexOf('?')>=0?'&':'?')+'t='+this.jY;return k;}},i=window.CKFINDER_GETURL;if(i){var j=h.getUrl;h.getUrl=function(k){return i.call(h,k)||j.call(h,k);};}return h;})();function b(h){return a.instances[h];};var c={callback:1,selectThumbnailActionFunction:1,selectActionFunction:1};a.jd=function(){var j=this;var h={};for(var i in j){if(!j.hasOwnProperty(i))continue;if(typeof j[i]=='function'&& !c[i]||typeof j[i]=='undefined')continue;h[i]=j[i];}if(j.callback)h.callback=j.callback;return h;};a.lj=function(h){var k=this;h=h||k.basePath;var i='';if(!h||h.length===0)h=CKFinder.DEFAULT_basePath;if(h.substr(h.length-1,1)!='/')h+='/';h+='ckfinder.html';var j;if(k.hh){j=k.hh;if(typeof j=='function')j=j.toString().match(/function ([^(]+)/)[1];i+='?action=js&amp;func='+j;}if(k.jx){i+=i?'&amp;':'?';i+='data='+encodeURIComponent(k.jx);}if(k.disableThumbnailSelection){i+=i?'&amp;':'?';i+='dts=1';}else if(k.lH||k.hh){j=k.lH||k.hh;if(typeof j=='function')j=j.toString().match(/function ([^(]+)/)[1];i+=i?'&amp;':'?';i+='thumbFunc='+j;if(k.nm)i+='&amp;tdata='+encodeURIComponent(k.nm);else if(!k.lH&&k.jx)i+='&amp;tdata='+encodeURIComponent(k.jx);}if(k.startupPath){i+=i?'&amp;':'?';i+='start='+encodeURIComponent(k.startupPath+(k.startupFolderExpanded?':1':':0'));}if(k.rememberLastFolder!==undefined&& !k.rememberLastFolder){i+=i?'&amp;':'?';i+='rlf=0';}if(k.id){i+=i?'&amp;':'?';i+='id='+encodeURIComponent(k.id);}if(k.skin){i+=i?'&amp;':'?';i+='skin='+encodeURIComponent(k.skin);}return h+i;};function d(h){var k=this;k.id=h.name;var i=h.element.getDocument().getWindow().$,j=a.oC.getWindow().$;k.inPopup= ! !(i&&i.opener);k.inIframe= !k.inPopup&&i!=j.top&&i.frameElement.nodeName.toLowerCase()=='iframe';k.inFrame= !k.inPopup&&i!=j.top&&i.frameElement.nodeName.toLowerCase()=='frame';k.inUrlPopup= ! !(k.inPopup&&j.opener);};function e(h,i,j){i.on('appReady',function(k){k.removeListener();h.document=i.document.$;h.folders=i.folders;h.files=i.ld['filesview.filesview'].data().files;h.basketFiles=i.basketFiles;h.resourceTypes=i.resourceTypes;h.connector=i.connector;h.lang=i.lang;h.langCode=i.langCode;h.config=i.config;i.ld['foldertree.foldertree'].on('afterAddFolder',function(l){l.removeListener();if(j)j(h);},h);},h,null,999);};d.prototype={_:{},addFileContextMenuOption:function(h,i,j){var k=b(this.id),l='FileContextMenu_'+h.command;k.bD(l,{exec:function(m){var n=m.ld['filesview.filesview'].tools.dH();i(m.cg,n);}});h.command=l;if(!h.group)h.group='file1';k.gp(l,h);k.ld['filesview.filesview'].on('beforeContextMenu',function o(m){if(j){var n=j(this.tools.dH());if(n)m.data.bj[l]=n== -1?a.aY:a.aS;}else m.data.bj[l]=a.aS;});},disableFileContextMenuOption:function(h,i){var j=b(this.id),k=i?'FileContextMenu_'+h:h,l=function n(m){delete m.data.bj[k];};j.ld['filesview.filesview'].on('beforeContextMenu',l);return function(){j.ld['filesview.filesview'].removeListener('beforeContextMenu',l);};},addFolderContextMenuOption:function(h,i,j){var k=b(this.id),l='FolderContextMenu_'+h.command;k.bD(l,{exec:function(m){i(m.cg,m.aV);}});h.command=l;if(!h.group)h.group='folder1';k.gp(l,h);k.ld['foldertree.foldertree'].on('beforeContextMenu',function o(m){if(j){var n=j(this.app.aV);if(n)m.data.bj[l]=n== -1?a.aY:a.aS;}else m.data.bj[l]=a.aS;});},disableFolderContextMenuOption:function(h,i){var j=b(this.id),k=i?'FolderContextMenu_'+h:h,l=function n(m){delete m.data.bj[k];};j.ld['foldertree.foldertree'].on('beforeContextMenu',l);return function(){j.ld['foldertree.foldertree'].removeListener('beforeContextMenu',l);};},addFolderDropMenuOption:function(h,i,j){var k=b(this.id),l='FolderDropMenu_'+h.command;k.bD(l,{exec:function(n){i(n.cg,n.cK.oa());}});h.command=l;var m=new a.iD(k,l,h);k.ld['foldertree.foldertree'].on('beforeDropMenu',function o(n){if(j?j.call(k.cg,n.data.folder):1)n.data.iG[l]=m;});},disableFolderDropMenuOption:function(h,i){var j=b(this.id),k=i?'FolderDropMenu_'+h:h,l=function n(m){delete m.data.iG[k];};j.ld['foldertree.foldertree'].on('beforeDropMenu',l);return function(){j.ld['foldertree.foldertree'].removeListener('beforeDropMenu',l);};},getSelectedFile:function(){return b(this.id).ld['filesview.filesview'].tools.dH();},getSelectedFiles:function(){return b(this.id).ld['filesview.filesview'].tools.oO();},getSelectedFolder:function(){return b(this.id).aV;},filterFiles:function(h){b(this.id).ld['filesview.filesview'].oW('requestRenderFiles',{lookup:h});},setUiColor:function(h){return b(this.id).setUiColor(h);},destroy:function(h){b(this.id).destroy();h&&h();},openDialog:function(h,i){var l=this;var j=new a.dom.document(window.document).getHead(),k=b(l.id).document.getWindow();if(l.inFrame||l.inPopup||l.inIframe)a.document=b(l.id).document;return b(l.id).openDialog(h,i,j);},openMsgDialog:function(h,i){b(this.id).msgDialog(h,i);},openConfirmDialog:function(h,i,j){b(this.id).fe(h,i,j);},openInputDialog:function(h,i,j,k){b(this.id).hs(h,i,j,k);},openSkippedFilesDialog:function(h,i,j,k){b(this.id).skippedFilesDialog(h,i,j,k);},addTool:function(h){return b(this.id).plugins.tools.addTool(h);},addToolPanel:function(h){return b(this.id).plugins.tools.addToolPanel(h);},removeTool:function(h){b(this.id).plugins.tools.removeTool(h);},showTool:function(h){b(this.id).plugins.tools.showTool(h);},hideTool:function(h){b(this.id).plugins.tools.hideTool(h);},getResourceType:function(h){return b(this.id).getResourceType(h);},log:function(h){a.log.apply(a.log,arguments);},getLog:function(){return a.mZ();},emptyBasket:function(){b(this.id).execCommand('TruncateBasket');},replaceUploadForm:function(h,i,j,k){var l=b(this.id);if(!k)k=10;if(k>=(l.dC||20))return;l.dC=k;l.ld['formpanel.formpanel'].on('beforeUploadFileForm',function(m){if(m.data.step!=2)return;if(k>l.dC)return;m.cancel(true);var n=this.data(),o=m.data.folder;try{if(n.dc=='upload')this.oW('requestUnloadForm',function(){this.app.cS('upload').bR(a.aS);});else{if(this.data().dc)this.oW('requestUnloadForm');if(!j)this.eh.removeClass('show_border');this.oW('requestLoadForm',{html:h,command:'upload'});i&&i();}}catch(p){this.oW('failedUploadFileForm',m.data);this.oW('afterUploadFileForm',m.data);throw a.ba(p);}});return{hide:function(){l.oW('requestUnloadForm',function(){l.cS('upload').bR(a.aS);});}};},resizeFormPanel:function(h){var i=b(this.id);if(typeof h=='undefined'){i.document.getById('panel_view').setStyle('height','');i.document.getById('panel_widget').setStyle('height','');}else{var j=Math.min(h,Math.max(90,i.document.getById('main_container').$.offsetHeight-300));i.document.getById('panel_view').setStyle('height',j+'px');i.document.getById('panel_widget').setStyle('height',j-3+'px');}i.layout.ea(true);},refreshOpenedFolder:function(){var h=b(this.id),i=h.ld['filesview.filesview'].tools.currentFolder();h.oW('requestSelectFolder',{folder:i});},selectFile:function(h){var i=b(this.id);i.oW('requestSelectFile',{file:h,scrollTo:1});},closePopup:function(){if(!this.inPopup)return;b(this.id).element.getDocument().getWindow().$.close();},openFolder:function(h,i){var j=b(this.id);i=i.replace(/\/$/,'');h=h.toLowerCase();for(var k=0;k<j.folders.length;k++){var l=j.folders[k];if(l.getPath().replace(/\/$/,'')==i&&h==l.type.toLowerCase()){j.oW('requestSelectFolder',{folder:l});j.oW('requestShowFolderFiles',{folder:l});return;}}},setUiColor:function(h){b(this.id).setUiColor(h);},execCommand:function(h){b(this.id).execCommand(h);}};(function(){window.CKFinder=function(i,j){if(i)for(var k in i){if(!i.hasOwnProperty(k))continue;if(typeof i[k]=='function'&&k!='callback')continue;this[k]=i[k];}this.callback=j;};function h(i){var j=1;while(CKFinder._.instanceConfig[j])j++;CKFinder._.instanceConfig[j]=i;return j;};CKFinder.prototype={create:function(i){var j='ckf'+Math.random().toString().substr(2,9);document.write('<span id="'+j+'"></span>');i=a.tools.extend(a.jd.call(this),i,true);var k=a.replace(j,i,CKFinder);this.api=k.cg;return k.cg;},appendTo:function(i,j){j=a.tools.extend(a.jd.call(this),j,true);var k=a.appendTo(i,j,CKFinder);this.api=k.cg;return k.cg;},replace:function(i,j){j=a.tools.extend(a.jd.call(this),j,true);var k=a.replace(i,j,CKFinder);this.api=k.cg;return k.cg;},popup:function(i,j){var s=this;i=i||'80%';j=j||'70%';if(typeof i=='string'&&i.length>1&&i.substr(i.length-1,1)=='%')i=parseInt(window.screen.width*parseInt(i,10)/100,10);if(typeof j=='string'&&j.length>1&&j.substr(j.length-1,1)=='%')j=parseInt(window.screen.height*parseInt(j,10)/100,10);if(i<200)i=200;if(j<200)j=200;var k=parseInt((window.screen.height-j)/2,10),l=parseInt((window.screen.width-i)/2,10),m='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width='+i+',height='+j+',top='+k+',left='+l,n=a.env.webkit?'about:blank':'',o=window.open(n,'CKFinderpopup',m,true);if(!o)return false;s.width=s.height='100%';var p='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>CKFinder 2</title><style type="text/css">body, html, iframe, #ckfinder { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: hidden; }</style></head><body></body></html>',q=new a.dom.document(o.document);q.$.open();if(a.env.isCustomDomain())q.$.domain=window.document.domain;q.$.write(p);q.$.close();try{var r=navigator.userAgent.toLowerCase();if(r.indexOf(' chrome/')== -1){o.moveTo(l,k);o.resizeTo(i,j);}o.focus();return s.appendTo(q.bH());}catch(t){return s.appendTo(q.bH());}return false;}};CKFinder._={};CKFinder._.instanceConfig=[];CKFinder.lang={};CKFinder.version='2.4.2';CKFinder.revision='2731';CKFinder.addPlugin=function(i,j,k){var l={bM:k||[]};if(typeof j=='function')j={appReady:j};for(var m in j){if(!j.hasOwnProperty(m))continue;if(m!='connectorInitialized'&&m!='uiReady')l[m]=j[m];}l.bz=function(n){if(n.config.readOnly&&l.readOnly===false)return null;if(j.connectorInitialized)n.on('connectorInitialized',function(o){var p=j.connectorInitialized;if(p)p.call(p,n.cg,o.data.xml);},null,null,1000);if(j.connectorResponse)n.on('connectorResponse',function(o){var p=j.connectorResponse;if(p)p.call(p,n.cg,o.data.xml);});if(j.galleryCallback)n.on('launchGallery',function(o){var p=j.galleryCallback;if(p)o.data.bx=p.call(p,n.cg,o.data.selected,o.data.files);});if(j.uiReady)n.on('uiReady',function(){var o=j.uiReady;o.call(o,n.cg);},null,null,1000);if(j.appReady)n.on('appReady',function(){var o=j.appReady;o.call(o,n.cg);},null,null,1000);};a.plugins.add(i,l);};CKFinder.getPluginPath=function(i){return a.plugins.getPath(i);};CKFinder.addExternalPlugin=function(i,j,k){a.plugins.tR(i,j,k);};CKFinder.setPluginLang=function(i,j,k){a.plugins.rX(i,j,k);};CKFinder.dialog={add:function(i,j){if(typeof j=='function')j=a.tools.override(j,function(k){return function(l){return k(l.cg);};});a.dialog.add(i,j);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(i,j,k,l,m){var n;if(i!==null&&typeof i==='object'){n=new CKFinder();for(var o in i)n[o]=i[o];}else{n=new CKFinder();n.basePath=i;if(j)n.width=j;if(k)n.height=j;if(l)n.selectActionFunction=l;if(m)n.callback=m;}return n.create();};CKFinder.popup=function(i,j,k,l,m){var n;if(i!==null&&typeof i==='object'){n=new CKFinder();for(var o in i)n[o]=i[o];}else{n=new CKFinder();n.basePath=i;if(l)n.selectActionFunction=l;if(m)n.callback=m;}return n.popup(j,k);};CKFinder.setupFCKeditor=function(i,j,k,l){var m,n;if(j!==null&&typeof j==='object'){n=h(j);m=new CKFinder();for(var o in j){m[o]=j[o];if(o=='width'){var p=m[o]||800;if(typeof p=='string'&&p.length>1&&p.substr(p.length-1,1)=='%')p=parseInt(window.screen.width*parseInt(p,10)/100,10);i.Config.LinkBrowserWindowWidth=p;i.Config.ImageBrowserWindowWidth=p;i.Config.FlashBrowserWindowWidth=p;}else if(o=='height'){var q=m[o]||600;if(typeof q=='string'&&q.length>1&&q.substr(q.length-1,1)=='%')q=parseInt(window.screen.height*parseInt(q,10)/100,10);i.Config.LinkBrowserWindowHeight=q;i.Config.ImageBrowserWindowHeight=q;i.Config.FlashBrowserWindowHeight=q;}}}else{m=new CKFinder();m.basePath=j;}var r=m.basePath;if(r.substr(0,1)!='/'&&r.indexOf('://')== -1)r=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+r;r=a.lj.call(m,r);var s=r.indexOf('?')!== -1?'&':'?';if(n){r+=s+'configId='+n;s='&';}i.Config.LinkBrowserURL=r;i.Config.ImageBrowserURL=r+s+'type='+(k||'Images');i.Config.FlashBrowserURL=r+s+'type='+(l||'Flash');var t=r.substring(0,1+r.lastIndexOf('/'));i.Config.LinkUploadURL=t+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';i.Config.ImageUploadURL=t+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(k||'Images');i.Config.FlashUploadURL=t+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(l||'Flash');};CKFinder.setupCKEditor=function(i,j,k,l){if(i===null){for(var m in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[m],j,k,l);CKEDITOR.on('instanceCreated',function(v){CKFinder.setupCKEditor(v.editor,j,k,l);});return;}var n,o;if(j!==null&&typeof j==='object'){o=h(j);n=new CKFinder();for(var p in j){n[p]=j[p];if(p=='width'){var q=n[p]||800;if(typeof q=='string'&&q.length>1&&q.substr(q.length-1,1)=='%')q=parseInt(window.screen.width*parseInt(q,10)/100,10);i.config.filebrowserWindowWidth=q;}else if(p=='height'){var r=n[p]||600;if(typeof r=='string'&&r.length>1&&r.substr(r.length-1,1)=='%')r=parseInt(window.screen.height*parseInt(r,10)/100,10);i.config.filebrowserWindowHeight=r;}}}else{n=new CKFinder();n.basePath=j;}var s=n.basePath;if(s.substr(0,1)!='/'&&s.indexOf('://')== -1)s=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+s;s=a.lj.call(n,s);var t=s.indexOf('?')!== -1?'&':'?';if(o){s+=t+'configId='+o;t='&';}i.config.filebrowserBrowseUrl=s;i.config.filebrowserImageBrowseUrl=s+t+'type='+(k||'Images');i.config.filebrowserFlashBrowseUrl=s+t+'type='+(l||'Flash');var u=s.substring(0,1+s.lastIndexOf('/'));i.config.filebrowserUploadUrl=u+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';i.config.filebrowserImageUploadUrl=u+'core/connector/'+CKFin
                    
                
wsc.js git://github.com/forkcms/forkcms.git | JavaScript | 74 lines
                    
5(function(){function q(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function z(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],d="",f;for(f in a)for(var g in a[f]){var h=a[f][g];"en_US"==h?d=h:c.push(h)}c.sort();d&&c.unshift(d);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var f in a[d])if(f.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var f in a[d])c[a[d][f]]=
                    
6f;return c}()}}var e=function(){var a=function(a,b,f){var f=f||{},g=f.expires;if("number"==typeof g&&g){var h=new Date;h.setTime(h.getTime()+1E3*g);g=f.expires=h}g&&g.toUTCString&&(f.expires=g.toUTCString());var b=encodeURIComponent(b),a=a+"="+b,e;for(e in f)b=f[e],a+="; "+e,!0!==b&&(a+="="+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString,f=
                    
7a.fn||null,g=a.id||"",e=a.target||window,i=a.message||{id:g};a.message&&"[object Object]"==b.call(a.message)&&(a.message.id||(a.message.id=g),i=a.message);a=window.JSON.stringify(i,f);e.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,
                    
                
bootstrap-tagsinput.js git://github.com/forkcms/forkcms.git | JavaScript | 676 lines
                    
143      var optionExists = (
                    
144        $('option[value="' + encodeURIComponent(itemValue) + '"]', self.$element).length ||
                    
145        $('option[value="' + htmlEncode(itemValue) + '"]', self.$element).length
                    
                
wsc.js git://github.com/daylightstudio/FUEL-CMS.git | JavaScript | 74 lines
                    
5(function(){function y(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var c=[],d="",f;for(f in a)for(var g in a[f]){var h=a[f][g];"en_US"==h?d=h:c.push(h)}c.sort();d&&c.unshift(d);return{getCurrentLangGroup:function(c){a:{for(var d in a)for(var f in a[d])if(f.toUpperCase()===c.toUpperCase()){c=d;break a}c=""}return c},setLangList:function(){var c={},d;for(d in a)for(var f in a[d])c[a[d][f]]=f;return c}()}}var e=function(){var a=function(a,b,f){var f=f||{},g=f.expires;
                    
6if("number"==typeof g&&g){var h=new Date;h.setTime(h.getTime()+1E3*g);g=f.expires=h}g&&g.toUTCString&&(f.expires=g.toUTCString());var b=encodeURIComponent(b),a=a+"="+b,e;for(e in f)b=f[e],a+="; "+e,!0!==b&&(a+="="+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString,f=a.fn||null,g=a.id||"",e=a.target||window,i=a.message||{id:g};a.message&&"[object Object]"==
                    
7b.call(a.message)&&(a.message.id||(a.message.id=g),i=a.message);a=window.JSON.stringify(i,f);e.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(a[1]):void 0},remove:function(c){a(c,"",{expires:-1})}},
                    
                
plugin.js git://github.com/wordpress/wordpress.git | JavaScript | 1201 lines
                    
141						'src="' + tinymce.Env.transparentSrc + '" ' +
                    
142						'data-wp-preserve="' + encodeURIComponent( match ) + '" ' +
                    
143						'data-mce-resize="false" ' +
                    
                
mediaelement-and-player.min.js git://github.com/wordpress/wordpress.git | JavaScript | 28 lines
                    
14 */
                    
15var mejs=mejs||{};mejs.version="2.22.0",mejs.meIndex=0,mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/dailymotion","video/x-dailymotion","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]},mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(a){var b=document.createElement("div");return b.innerHTML='<a href="'+this.escapeHTML(a)+'">x</a>',b.firstChild.href},getScriptPath:function(a){for(var b,c,d,e,f,g,h=0,i="",j="",k=document.getElementsByTagName("script"),l=k.length,m=a.length;l>h;h++){for(e=k[h].src,c=e.lastIndexOf("/"),c>-1?(g=e.substring(c+1),f=e.substring(0,c+1)):(g=e,f=""),b=0;m>b;b++)if(j=a[b],d=g.indexOf(j),d>-1){i=f;break}if(""!==i)break}return i},calculateTimeFormat:function(a,b,c){0>a&&(a=0),"undefined"==typeof c&&(c=25);var d=b.timeFormat,e=d[0],f=d[1]==d[0],g=f?2:1,h=":",i=Math.floor(a/3600)%24,j=Math.floor(a/60)%60,k=Math.floor(a%60),l=Math.floor((a%1*c).toFixed(3)),m=[[l,"f"],[k,"s"],[j,"m"],[i,"h"]];d.length<g&&(h=d[g]);for(var n=!1,o=0,p=m.length;p>o;o++)if(-1!==d.indexOf(m[o][1]))n=!0;else if(n){for(var q=!1,r=o;p>r;r++)if(m[r][0]>0){q=!0;break}if(!q)break;f||(d=e+d),d=m[o][1]+h+d,f&&(d=m[o][1]+d),e=m[o][1]}b.currentTimeFormat=d},twoDigitsString:function(a){return 10>a?"0"+a:String(a)},secondsToTimeCode:function(a,b){if(0>a&&(a=0),"object"!=typeof b){var c="m:ss";c=arguments[1]?"hh:mm:ss":c,c=arguments[2]?c+":ff":c,b={currentTimeFormat:c,framesPerSecond:arguments[3]||25}}var d=b.framesPerSecond;"undefined"==typeof d&&(d=25);var c=b.currentTimeFormat,e=Math.floor(a/3600)%24,f=Math.floor(a/60)%60,g=Math.floor(a%60),h=Math.floor((a%1*d).toFixed(3));lis=[[h,"f"],[g,"s"],[f,"m"],[e,"h"]];var j=c;for(i=0,len=lis.length;i<len;i++)j=j.replace(lis[i][1]+lis[i][1],this.twoDigitsString(lis[i][0])),j=j.replace(lis[i][1],lis[i][0]);return j},timeCodeToSeconds:function(a,b,c,d){"undefined"==typeof c?c=!1:"undefined"==typeof d&&(d=25);var e=a.split(":"),f=parseInt(e[0],10),g=parseInt(e[1],10),h=parseInt(e[2],10),i=0,j=0;return c&&(i=parseInt(e[3])/d),j=3600*f+60*g+h+i},convertSMPTEtoSeconds:function(a){if("string"!=typeof a)return!1;a=a.replace(",",".");var b=0,c=-1!=a.indexOf(".")?a.split(".")[1].length:0,d=1;a=a.split(":").reverse();for(var e=0;e<a.length;e++)d=1,e>0&&(d=Math.pow(60,e)),b+=Number(a[e])*d;return Number(b.toFixed(c))},removeSwf:function(a){var b=document.getElementById(a);b&&/object|embed/i.test(b.nodeName)&&(mejs.MediaFeatures.isIE?(b.style.display="none",function(){4==b.readyState?mejs.Utility.removeObjectInIE(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))},removeObjectInIE:function(a){var b=document.getElementById(a);if(b){for(var c in b)"function"==typeof b[c]&&(b[c]=null);b.parentNode.removeChild(b)}},determineScheme:function(a){return a&&-1!=a.indexOf("://")?a.substr(0,a.indexOf("://")+3):"//"}},mejs.PluginDetector={hasPluginVersion:function(a,b){var c=this.plugins[a];return b[1]=b[1]||0,b[2]=b[2]||0,c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(a,b,c,d,e){this.plugins[a]=this.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var e,f,g,h=[0,0,0];if("undefined"!=typeof this.nav.plugins&&"object"==typeof this.nav.plugins[a]){if(e=this.nav.plugins[a].description,e&&("undefined"==typeof this.nav.mimeTypes||!this.nav.mimeTypes[b]||this.nav.mimeTypes[b].enabledPlugin))for(h=e.replace(a,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<h.length;f++)h[f]=parseInt(h[f].match(/\d+/),10)}else if("undefined"!=typeof window.ActiveXObject)try{g=new ActiveXObject(c),g&&(h=d(g))}catch(i){}return h}},mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(a){var b=[],c=a.GetVariable("$version");return c&&(c=c.split(" ")[1].split(","),b=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]),b}),mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(a){var b=[0,0,0,0],c=function(a,b,c,d){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[c]+=d;b[c]-=d};return c(a,b,0,1),c(a,b,1,1),c(a,b,2,1e4),c(a,b,2,1e3),c(a,b,2,100),c(a,b,2,10),c(a,b,2,1),c(a,b,3,1),b}),mejs.MediaFeatures={init:function(){var a,b,c=this,d=document,e=mejs.PluginDetector.nav,f=mejs.PluginDetector.ua.toLowerCase(),g=["source","track","audio","video"];c.isiPad=null!==f.match(/ipad/i),c.isiPhone=null!==f.match(/iphone/i),c.isiOS=c.isiPhone||c.isiPad,c.isAndroid=null!==f.match(/android/i),c.isBustedAndroid=null!==f.match(/android 2\.[12]/),c.isBustedNativeHTTPS="https:"===location.protocol&&(null!==f.match(/android [12]\./)||null!==f.match(/macintosh.* version.* safari/)),c.isIE=-1!=e.appName.toLowerCase().indexOf("microsoft")||null!==e.appName.toLowerCase().match(/trident/gi),c.isChrome=null!==f.match(/chrome/gi),c.isChromium=null!==f.match(/chromium/gi),c.isFirefox=null!==f.match(/firefox/gi),c.isWebkit=null!==f.match(/webkit/gi),c.isGecko=null!==f.match(/gecko/gi)&&!c.isWebkit&&!c.isIE,c.isOpera=null!==f.match(/opera/gi),c.hasTouch="ontouchstart"in window,c.svgAsImg=!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1");for(a=0;a<g.length;a++)b=document.createElement(g[a]);c.supportsMediaTag="undefined"!=typeof b.canPlayType||c.isBustedAndroid;try{b.canPlayType("video/mp4")}catch(h){c.supportsMediaTag=!1}c.supportsPointerEvents=function(){var a,b=document.createElement("x"),c=document.documentElement,d=window.getComputedStyle;return"pointerEvents"in b.style?(b.style.pointerEvents="auto",b.style.pointerEvents="x",c.appendChild(b),a=d&&"auto"===d(b,"").pointerEvents,c.removeChild(b),!!a):!1}(),c.hasFirefoxPluginMovingProblem=!1,c.hasiOSFullScreen="undefined"!=typeof b.webkitEnterFullscreen,c.hasNativeFullscreen="undefined"!=typeof b.requestFullscreen,c.hasWebkitNativeFullScreen="undefined"!=typeof b.webkitRequestFullScreen,c.hasMozNativeFullScreen="undefined"!=typeof b.mozRequestFullScreen,c.hasMsNativeFullScreen="undefined"!=typeof b.msRequestFullscreen,c.hasTrueNativeFullScreen=c.hasWebkitNativeFullScreen||c.hasMozNativeFullScreen||c.hasMsNativeFullScreen,c.nativeFullScreenEnabled=c.hasTrueNativeFullScreen,c.hasMozNativeFullScreen?c.nativeFullScreenEnabled=document.mozFullScreenEnabled:c.hasMsNativeFullScreen&&(c.nativeFullScreenEnabled=document.msFullscreenEnabled),c.isChrome&&(c.hasiOSFullScreen=!1),c.hasTrueNativeFullScreen&&(c.fullScreenEventName="",c.hasWebkitNativeFullScreen?c.fullScreenEventName="webkitfullscreenchange":c.hasMozNativeFullScreen?c.fullScreenEventName="mozfullscreenchange":c.hasMsNativeFullScreen&&(c.fullScreenEventName="MSFullscreenChange"),c.isFullScreen=function(){return c.hasMozNativeFullScreen?d.mozFullScreen:c.hasWebkitNativeFullScreen?d.webkitIsFullScreen:c.hasMsNativeFullScreen?null!==d.msFullscreenElement:void 0},c.requestFullScreen=function(a){c.hasWebkitNativeFullScreen?a.webkitRequestFullScreen():c.hasMozNativeFullScreen?a.mozRequestFullScreen():c.hasMsNativeFullScreen&&a.msRequestFullscreen()},c.cancelFullScreen=function(){c.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():c.hasMozNativeFullScreen?document.mozCancelFullScreen():c.hasMsNativeFullScreen&&document.msExitFullscreen()}),c.hasiOSFullScreen&&f.match(/mac os x 10_5/i)&&(c.hasNativeFullScreen=!1,c.hasiOSFullScreen=!1)}},mejs.MediaFeatures.init(),mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(a){this.currentTime=a},setMuted:function(a){this.muted=a},setVolume:function(a){this.volume=a},stop:function(){this.pause()},setSrc:function(a){for(var b=this.getElementsByTagName("source");b.length>0;)this.removeChild(b[0]);if("string"==typeof a)this.src=a;else{var c,d;for(c=0;c<a.length;c++)if(d=a[c],this.canPlayType(d.type)){this.src=d.src;break}}},setVideoSize:function(a,b){this.width=a,this.height=b}},mejs.PluginMediaElement=function(a,b,c){this.id=a,this.pluginType=b,this.src=c,this.events={},this.attributes={}},mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?1==this.pluginApi.getPlayerState()&&this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(a){var b,c,d,e=mejs.plugins[this.pluginType];for(b=0;b<e.length;b++)if(d=e[b],mejs.PluginDetector.hasPluginVersion(this.pluginType,d.version))for(c=0;c<d.types.length;c++)if(a==d.types[c])return"probably";return""},positionFullscreenButton:function(a,b,c){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(a),Math.floor(b),c)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(a){if("string"==typeof a)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(a)),this.src=mejs.Utility.absolutizeUrl(a);else{var b,c;for(b=0;b<a.length;b++)if(c=a[b],this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src)),this.src=mejs.Utility.absolutizeUrl(c.src);break}}},setCurrentTime:function(a){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(a):this.pluginApi.setCurrentTime(a),this.currentTime=a)},setVolume:function(a){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.setVolume(100*a):this.pluginApi.setVolume(a),this.volume=a)},setMuted:function(a){null!=this.pluginApi&&("youtube"==this.pluginType?(a?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=a,this.dispatchEvent({type:"volumechange"})):this.pluginApi.setMuted(a),this.muted=a)},setVideoSize:function(a,b){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=a+"px",this.pluginElement.style.height=b+"px"),null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(a,b)},setFullscreen:function(a){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(a)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(a,b,c){this.events[a]=this.events[a]||[],this.events[a].push(b)},removeEventListener:function(a,b){if(!a)return this.events={},!0;var c=this.events[a];if(!c)return!0;if(!b)return this.events[a]=[],!0;for(var d=0;d<c.length;d++)if(c[d]===b)return this.events[a].splice(d,1),!0;return!1},dispatchEvent:function(a){var b,c=this.events[a.type];if(c)for(b=0;b<c.length;b++)c[b].apply(this,[a])},hasAttribute:function(a){return a in this.attributes},removeAttribute:function(a){delete this.attributes[a]},getAttribute:function(a){return this.hasAttribute(a)?this.attributes[a]:""},setAttribute:function(a,b){this.attributes[a]=b},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id)}},mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",flashScriptAccess:"sameDomain",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,success:function(){},error:function(){}},mejs.MediaElement=function(a,b){return mejs.HtmlMediaElementShim.create(a,b)},mejs.HtmlMediaElementShim={create:function(a,b){var c,d,e={},f="string"==typeof a?document.getElementById(a):a,g=f.tagName.toLowerCase(),h="audio"===g||"video"===g,i=h?f.getAttribute("src"):f.getAttribute("href"),j=f.getAttribute("poster"),k=f.getAttribute("autoplay"),l=f.getAttribute("preload"),m=f.getAttribute("controls");for(d in mejs.MediaElementDefaults)e[d]=mejs.MediaElementDefaults[d];for(d in b)e[d]=b[d];return i="undefined"==typeof i||null===i||""==i?null:i,j="undefined"==typeof j||null===j?"":j,l="undefined"==typeof l||null===l||"false"===l?"none":l,k=!("undefined"==typeof k||null===k||"false"===k),m=!("undefined"==typeof m||null===m||"false"===m),c=this.determinePlayback(f,e,mejs.MediaFeatures.supportsMediaTag,h,i),c.url=null!==c.url?mejs.Utility.absolutizeUrl(c.url):"",c.scheme=mejs.Utility.determineScheme(c.url),"native"==c.method?(mejs.MediaFeatures.isBustedAndroid&&(f.src=c.url,f.addEventListener("click",function(){f.play()},!1)),this.updateNative(c,e,k,l)):""!==c.method?this.createPlugin(c,e,j,k,l,m):(this.createErrorMessage(c,e,j),this)},determinePlayback:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=[],r={method:"",url:"",htmlMediaElement:a,isVideo:"audio"!=a.tagName.toLowerCase(),scheme:""};if("undefined"!=typeof b.type&&""!==b.type)if("string"==typeof b.type)q.push({type:b.type,url:e});else for(f=0;f<b.type.length;f++)q.push({type:b.type[f],url:e});else if(null!==e)k=this.formatType(e,a.getAttribute("type")),q.push({type:k,url:e});else for(f=0;f<a.childNodes.length;f++)j=a.childNodes[f],1==j.nodeType&&"source"==j.tagName.toLowerCase()&&(e=j.getAttribute("src"),k=this.formatType(e,j.getAttribute("type")),p=j.getAttribute("media"),(!p||!window.matchMe
                    
                
mce-view.js git://github.com/wordpress/wordpress.git | JavaScript | 985 lines
                    
179
                    
180			encodedText = encodeURIComponent( text );
                    
181
                    
198			if ( typeof object === 'string' ) {
                    
199				return instances[ encodeURIComponent( object ) ];
                    
200			}
                    
                
post.min.js git://github.com/wordpress/wordpress.git | JavaScript | 1 lines
                    
1var commentsBox,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail,wptitlehint,makeSlugeditClickable,editPermalink;makeSlugeditClickable=editPermalink=function(){},window.wp=window.wp||{},function(a){var b=!1;commentsBox={st:0,get:function(b,c){var d,e=this.st;return c||(c=20),this.st+=c,this.total=b,a("#commentsdiv .spinner").addClass("is-active"),d={action:"get-comments",mode:"single",_ajax_nonce:a("#add_comment_nonce").val(),p:a("#post_ID").val(),start:e,number:c},a.post(ajaxurl,d,function(b){return b=wpAjax.parseAjaxResponse(b),a("#commentsdiv .widefat").show(),a("#commentsdiv .spinner").removeClass("is-active"),"object"==typeof b&&b.responses[0]?(a("#the-comment-list").append(b.responses[0].data),theList=theExtraList=null,a("a[className*=':']").unbind(),void(commentsBox.st>commentsBox.total?a("#show-comments").hide():a("#show-comments").show().children("a").html(postL10n.showcomm))):1==b?void a("#show-comments").html(postL10n.endcomm):void a("#the-comment-list").append('<tr><td colspan="2">'+wpAjax.broken+"</td></tr>")}),!1},load:function(a){this.st=jQuery("#the-comment-list tr.comment:visible").length,this.get(a)}},WPSetThumbnailHTML=function(b){a(".inside","#postimagediv").html(b)},WPSetThumbnailID=function(b){var c=a('input[value="_thumbnail_id"]',"#list-table");c.length>0&&a("#meta\\["+c.attr("id").match(/[0-9]+/)+"\\]\\[value\\]").text(b)},WPRemoveThumbnail=function(b){a.post(ajaxurl,{action:"set-post-thumbnail",post_id:a("#post_ID").val(),thumbnail_id:-1,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(a){"0"==a?alert(setPostThumbnailL10n.error):WPSetThumbnailHTML(a)})},a(document).on("heartbeat-send.refresh-lock",function(b,c){var d=a("#active_post_lock").val(),e=a("#post_ID").val(),f={};e&&a("#post-lock-dialog").length&&(f.post_id=e,d&&(f.lock=d),c["wp-refresh-post-lock"]=f)}).on("heartbeat-tick.refresh-lock",function(b,c){var d,e,f;c["wp-refresh-post-lock"]&&(d=c["wp-refresh-post-lock"],d.lock_error?(e=a("#post-lock-dialog"),e.length&&!e.is(":visible")&&(wp.autosave&&(a(document).one("heartbeat-tick",function(){wp.autosave.server.suspend(),e.removeClass("saving").addClass("saved"),a(window).off("beforeunload.edit-post")}),e.addClass("saving"),wp.autosave.server.triggerSave()),d.lock_error.avatar_src&&(f=a('<img class="avatar avatar-64 photo" width="64" height="64" alt="" />').attr("src",d.lock_error.avatar_src.replace(/&amp;/g,"&")),e.find("div.post-locked-avatar").empty().append(f)),e.show().find(".currently-editing").text(d.lock_error.text),e.find(".wp-tab-first").focus())):d.new_lock&&a("#active_post_lock").val(d.new_lock))}).on("before-autosave.update-post-slug",function(){b=document.activeElement&&"title"===document.activeElement.id}).on("after-autosave.update-post-slug",function(){a("#edit-slug-box > *").length||b||a.post(ajaxurl,{action:"sample-permalink",post_id:a("#post_ID").val(),new_title:a("#title").val(),samplepermalinknonce:a("#samplepermalinknonce").val()},function(b){"-1"!=b&&a("#edit-slug-box").html(b)})})}(jQuery),function(a){function b(){c=!1,window.clearTimeout(d),d=window.setTimeout(function(){c=!0},3e5)}var c,d;a(document).on("heartbeat-send.wp-refresh-nonces",function(b,d){var e,f=a("#wp-auth-check-wrap");(c||f.length&&!f.hasClass("hidden"))&&(e=a("#post_ID").val())&&a("#_wpnonce").val()&&(d["wp-refresh-post-nonces"]={post_id:e})}).on("heartbeat-tick.wp-refresh-nonces",function(c,d){var e=d["wp-refresh-post-nonces"];e&&(b(),e.replace&&a.each(e.replace,function(b,c){a("#"+b).val(c)}),e.heartbeatNonce&&(window.heartbeatSettings.nonce=e.heartbeatNonce))}).ready(function(){b()})}(jQuery),jQuery(document).ready(function(a){function b(){var b,c,d,e,f=0,g=a("#post_name"),h=g.val(),i=a("#sample-permalink"),j=i.html(),l=a("#sample-permalink a").html(),m=a("#edit-slug-buttons"),n=m.html(),o=a("#editable-post-name-full");for(o.find("img").replaceWith(function(){return this.alt}),o=o.html(),i.html(l),d=a("#editable-post-name"),e=d.html(),m.html('<button type="button" class="save button button-small">'+postL10n.ok+'</button> <button type="button" class="cancel button-link">'+postL10n.cancel+"</button>"),m.children(".save").click(function(){var b=d.children("input").val();return b==a("#editable-post-name-full").text()?void m.children(".cancel").click():void a.post(ajaxurl,{action:"sample-permalink",post_id:k,new_slug:b,new_title:a("#title").val(),samplepermalinknonce:a("#samplepermalinknonce").val()},function(c){var d=a("#edit-slug-box");d.html(c),d.hasClass("hidden")&&d.fadeIn("fast",function(){d.removeClass("hidden")}),m.html(n),i.html(j),g.val(b),a(".edit-slug").focus(),wp.a11y.speak(postL10n.permalinkSaved)})}),m.children(".cancel").click(function(){a("#view-post-btn").show(),d.html(e),m.html(n),i.html(j),g.val(h),a(".edit-slug").focus()}),b=0;b<o.length;++b)"%"==o.charAt(b)&&f++;c=f>o.length/4?"":o,d.html('<input type="text" id="new-post-slug" value="'+c+'" autocomplete="off" />').children("input").keydown(function(a){var b=a.which;13===b&&(a.preventDefault(),m.children(".save").click()),27===b&&m.children(".cancel").click()}).keyup(function(){g.val(this.value)}).focus()}var c,d,e,f,g,h="",i=a("#content"),j=a(document),k=a("#post_ID").val()||0,l=a("#submitpost"),m=!0,n=a("#post-visibility-select"),o=a("#timestampdiv"),p=a("#post-status-select"),q=window.navigator.platform?-1!==window.navigator.platform.indexOf("Mac"):!1;if(postboxes.add_postbox_toggles(pagenow),window.name="",a("#post-lock-dialog .notification-dialog").on("keydown",function(b){if(9==b.which){var c=a(b.target);c.hasClass("wp-tab-first")&&b.shiftKey?(a(this).find(".wp-tab-last").focus(),b.preventDefault()):c.hasClass("wp-tab-last")&&!b.shiftKey&&(a(this).find(".wp-tab-first").focus(),b.preventDefault())}}).filter(":visible").find(".wp-tab-first").focus(),wp.heartbeat&&a("#post-lock-dialog").length&&wp.heartbeat.interval(15),e=l.find(":submit, a.submitdelete, #post-preview").on("click.edit-post",function(b){var c=a(this);return c.hasClass("disabled")?void b.preventDefault():void(c.hasClass("submitdelete")||c.is("#post-preview")||a("form#post").off("submit.edit-post").on("submit.edit-post",function(b){if(!b.isDefaultPrevented()){if(wp.autosave&&wp.autosave.server.suspend(),"undefined"!=typeof commentReply){if(!commentReply.discardCommentChanges())return!1;commentReply.close()}m=!1,a(window).off("beforeunload.edit-post"),e.addClass("disabled"),"publish"===c.attr("id")?l.find("#major-publishing-actions .spinner").addClass("is-active"):l.find("#minor-publishing .spinner").addClass("is-active")}}))}),a("#post-preview").on("click.post-preview",function(b){var c=a(this),d=a("form#post"),e=a("input#wp-preview"),f=c.attr("target")||"wp-preview",g=navigator.userAgent.toLowerCase();b.preventDefault(),c.hasClass("disabled")||(wp.autosave&&wp.autosave.server.tempBlockSave(),e.val("dopreview"),d.attr("target",f).submit().attr("target",""),-1!==g.indexOf("safari")&&-1===g.indexOf("chrome")&&d.attr("action",function(a,b){return b+"?t="+(new Date).getTime()}),e.val(""))}),a("#title").on("keydown.editor-focus",function(a){var b;if(9===a.keyCode&&!a.ctrlKey&&!a.altKey&&!a.shiftKey){if(b="undefined"!=typeof tinymce&&tinymce.get("content"),b&&!b.isHidden())b.focus();else{if(!i.length)return;i.focus()}a.preventDefault()}}),a("#auto_draft").val()&&a("#title").blur(function(){var b;this.value&&!a("#edit-slug-box > *").length&&(a("form#post").one("submit",function(){b=!0}),window.setTimeout(function(){!b&&wp.autosave&&wp.autosave.server.triggerSave()},200))}),j.on("autosave-disable-buttons.edit-post",function(){e.addClass("disabled")}).on("autosave-enable-buttons.edit-post",function(){wp.heartbeat&&wp.heartbeat.hasConnectionError()||e.removeClass("disabled")}).on("before-autosave.edit-post",function(){a(".autosave-message").text(postL10n.savingText)}).on("after-autosave.edit-post",function(b,c){a(".autosave-message").text(c.message),a(document.body).hasClass("post-new-php")&&a(".submitbox .submitdelete").show()}),a(window).on("beforeunload.edit-post",function(){var a="undefined"!=typeof tinymce&&tinymce.get("content");return a&&!a.isHidden()&&a.isDirty()||wp.autosave&&wp.autosave.server.postChanged()?postL10n.saveAlert:void 0}).on("unload.edit-post",function(b){m&&(b.target&&"#document"!=b.target.nodeName||a.ajax({type:"POST",url:ajaxurl,async:!1,data:{action:"wp-remove-post-lock",_wpnonce:a("#_wpnonce").val(),post_ID:a("#post_ID").val(),active_post_lock:a("#active_post_lock").val()}}))}),a("#tagsdiv-post_tag").length?window.tagBox&&window.tagBox.init():a(".meta-box-sortables").children("div.postbox").each(function(){return 0===this.id.indexOf("tagsdiv-")?(window.tagBox&&window.tagBox.init(),!1):void 0}),a(".categorydiv").each(function(){var b,c,d,e,f,g=a(this).attr("id");d=g.split("-"),d.shift(),e=d.join("-"),f=e+"_tab","category"==e&&(f="cats"),a("a","#"+e+"-tabs").click(function(b){b.preventDefault();var c=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a("#"+e+"-tabs").siblings(".tabs-panel").hide(),a(c).show(),"#"+e+"-all"==c?deleteUserSetting(f):setUserSetting(f,"pop")}),getUserSetting(f)&&a('a[href="#'+e+'-pop"]',"#"+e+"-tabs").click(),a("#new"+e).one("focus",function(){a(this).val("").removeClass("form-input-tip")}),a("#new"+e).keypress(function(b){13===b.keyCode&&(b.preventDefault(),a("#"+e+"-add-submit").click())}),a("#"+e+"-add-submit").click(function(){a("#new"+e).focus()}),b=function(b){return a("#new"+e).val()?(b.data+="&"+a(":checked","#"+e+"checklist").serialize(),a("#"+e+"-add-submit").prop("disabled",!0),b):!1},c=function(b,c){var d,f=a("#new"+e+"_parent");a("#"+e+"-add-submit").prop("disabled",!1),"undefined"!=c.parsed.responses[0]&&(d=c.parsed.responses[0].supplemental.newcat_parent)&&(f.before(d),f.remove())},a("#"+e+"checklist").wpList({alt:"",response:e+"-ajax-response",addBefore:b,addAfter:c}),a("#"+e+"-add-toggle").click(function(b){b.preventDefault(),a("#"+e+"-adder").toggleClass("wp-hidden-children"),a('a[href="#'+e+'-all"]',"#"+e+"-tabs").click(),a("#new"+e).focus()}),a("#"+e+"checklist, #"+e+"checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var b=a(this),c=b.is(":checked"),d=b.val();d&&b.parents("#taxonomy-"+e).length&&a("#in-"+e+"-"+d+", #in-popular-"+e+"-"+d).prop("checked",c)})}),a("#postcustom").length&&a("#the-list").wpList({addAfter:function(){a("table#list-table").show()},addBefore:function(b){return b.data+="&post_id="+a("#post_ID").val(),b}}),a("#submitdiv").length&&(c=a("#timestamp").html(),d=a("#post-visibility-display").html(),f=function(){"public"!=n.find("input:radio:checked").val()?(a("#sticky").prop("checked",!1),a("#sticky-span").hide()):a("#sticky-span").show(),"password"!=n.find("input:radio:checked").val()?a("#password-span").hide():a("#password-span").show()},g=function(){if(!o.length)return!0;var b,d,e,f,g=a("#post_status"),h=a('option[value="publish"]',g),i=a("#aa").val(),j=a("#mm").val(),k=a("#jj").val(),l=a("#hh").val(),m=a("#mn").val();return b=new Date(i,j-1,k,l,m),d=new Date(a("#hidden_aa").val(),a("#hidden_mm").val()-1,a("#hidden_jj").val(),a("#hidden_hh").val(),a("#hidden_mn").val()),e=new Date(a("#cur_aa").val(),a("#cur_mm").val()-1,a("#cur_jj").val(),a("#cur_hh").val(),a("#cur_mn").val()),b.getFullYear()!=i||1+b.getMonth()!=j||b.getDate()!=k||b.getMinutes()!=m?(o.find(".timestamp-wrap").addClass("form-invalid"),!1):(o.find(".timestamp-wrap").removeClass("form-invalid"),b>e&&"future"!=a("#original_post_status").val()?(f=postL10n.publishOnFuture,a("#publish").val(postL10n.schedule)):e>=b&&"publish"!=a("#original_post_status").val()?(f=postL10n.publishOn,a("#publish").val(postL10n.publish)):(f=postL10n.publishOnPast,a("#publish").val(postL10n.update)),d.toUTCString()==b.toUTCString()?a("#timestamp").html(c):a("#timestamp").html("\n"+f+" <b>"+postL10n.dateFormat.replace("%1$s",a('option[value="'+j+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(k,10)).replace("%3$s",i).replace("%4$s",("00"+l).slice(-2)).replace("%5$s",("00"+m).slice(-2))+"</b> "),"private"==n.find("input:radio:checked").val()?(a("#publish").val(postL10n.update),0===h.length?g.append('<option value="publish">'+postL10n.privatelyPublished+"</option>"):h.html(postL10n.privatelyPublished),a('option[value="publish"]',g).prop("selected",!0),a("#misc-publishing-actions .edit-post-status").hide()):("future"==a("#original_post_status").val()||"draft"==a("#original_post_status").val()?h.length&&(h.remove(),g.val(a("#hidden_post_status").val())):h.html(postL10n.published),g.is(":hidden")&&a("#misc-publishing-actions .edit-post-status").show()),a("#post-status-display").html(a("option:selected",g).text()),"private"==a("option:selected",g).val()||"publish"==a("option:selected",g).val()?a("#save-post").hide():(a("#save-post").show(),"pending"==a("option:selected",g).val()?a("#save-post").show().val(postL10n.savePending):a("#save-post").show().val(postL10n.saveDraft)),!0)},a("#visibility .edit-visibility").click(function(b){b.preventDefault(),n.is(":hidden")&&(f(),n.slideDown("fast",function(){n.find('input[type="radio"]').first().focus()}),a(this).hide())}),n.find(".cancel-post-visibility").click(function(b){n.slideUp("fast"),a("#visibility-radio-"+a("#hidden-post-visibility").val()).prop("checked",!0),a("#post_password").val(a("#hidden-post-password").val()),a("#sticky").prop("checked",a("#hidden-post-sticky").prop("checked")),a("#post-visibility-display").html(d),a("#visibility .edit-visibility").show().focus(),g(),b.preventDefault()}),n.find(".save-post-visibility").click(function(b){n.slideUp("fast"),a("#visibility .edit-visibility").show().focus(),g(),"public"!=n.find("input:radio:checked").val()&&a("#sticky").prop("checked",!1),h=a("#sticky").prop("checked")?"Sticky":"",a("#post-visibility-display").html(postL10n[n.find("input:radio:checked").val()+h]),b.preventDefault()}),n.find("input:radio").change(function(){f()}),o.siblings("a.edit-timestamp").click(function(b){o.is(":hidden")&&(o.slideDown("fast",function(){a("input, select",o.find(".timestamp-wrap")).first().focus()}),a(this).hide()),b.preventDefault()}),o.find(".cancel-timestamp").click(function(b){o.slideUp("fast").siblings("a.edit-timestamp").show().focus(),a("#mm").val(a("#hidden_mm").val()),a("#jj").val(a("#hidden_jj").val()),a("#aa").val(a("#hidden_aa").val()),a("#hh").val(a("#hidden_hh").val()),a("#mn").val(a("#hidden_mn").val()),g(),b.preventDefault()}),o.find(".save-timestamp").click(function(a){g()&&(o.slideUp("fast"),o.siblings("a.edit-timestamp").show().focus()),a.preventDefault()}),a("#post").on("submit",function(b){g()||(b.preventDefault(),o.show(),wp.autosave&&wp.autosave.enableButtons(),a("#publishing-action .spinner").removeClass("is-active"))}),p.siblings("a.edit-post-status").click(function(b){p.is(":hidden")&&(p.slideDown("fast",function(){p.find("select").focus()}),a(this).hide()),b.preventDefault()}),p.find(".save-post-status").click(function(a){p.slideUp("fast").siblings("a.edit-post-status").show().focus(),g(),a.preventDefault()}),p.find("
                    
                
post.js git://github.com/wordpress/wordpress.git | JavaScript | 1274 lines
                    
137		$.post(ajaxurl, {
                    
138			action: 'set-post-thumbnail', post_id: $( '#post_ID' ).val(), thumbnail_id: -1, _ajax_nonce: nonce, cookie: encodeURIComponent( document.cookie )
                    
139		},
                    
                
easyXDM.debug.js git://github.com/vanillaforums/Garden.git | JavaScript | 2879 lines
                    
23 */
                    
24(function (window, document, location, setTimeout, decodeURIComponent, encodeURIComponent) {
                    
25/*jslint evil: true, browser: true, immed: true, passfail: true, undef: true, newcap: true*/
                    
368        if (parameters.hasOwnProperty(key)) {
                    
369            q.push(key + "=" + encodeURIComponent(parameters[key]));
                    
370        }
                    
                
uri.js git://github.com/cliftonc/calipso.git | JavaScript | 749 lines
                    
82  if ('string' == typeof unescapedPart) {
                    
83    return encodeURIComponent(unescapedPart);
                    
84  }
                    
366URI.prototype.setDomain = function (newDomain) {
                    
367  return this.setRawDomain(newDomain && encodeURIComponent(newDomain));
                    
368};
                    
477    var v = params[j++];
                    
478    queryBuf.push(separator, encodeURIComponent(k.toString()));
                    
479    separator = '&';
                    
480    if (v) {
                    
481      queryBuf.push('=', encodeURIComponent(v.toString()));
                    
482    }
                    
                
angular.js git://github.com/addyosmani/todomvc.git | JavaScript | 29018 lines
                    
64      message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +
                    
65        encodeURIComponent(toDebugString(templateArgs[i]));
                    
66    }
                    
                
angular.js git://github.com/addyosmani/todomvc.git | JavaScript | 26130 lines
                    
60      message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' +
                    
61        encodeURIComponent(toDebugString(arguments[i]));
                    
62    }
                    
                
webcomponents-lite.min.js git://github.com/addyosmani/todomvc.git | JavaScript | 12 lines
                    
10// @version 0.7.18
                    
11!function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomponents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(var r,o=0;r=t.attributes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){var i=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={}}n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";function t(e){return void 0!==h[e]}function n(){s.call(this),this._isInvalid=!0}function r(e){return""==e&&n.call(this),e.toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){function c(e){g.push(e)}var d=a||"scheme start",u=0,l="",w=!1,_=!1,g=[];e:for(;(e[u-1]!=p||0==u)&&!this._isInvalid;){var b=e[u];switch(d){case"scheme start":if(!b||!m.test(b)){if(a){c("Invalid scheme.");break e}l="",d="no scheme";continue}l+=b.toLowerCase(),d="scheme";break;case"scheme":if(b&&v.test(b))l+=b.toLowerCase();else{if(":"!=b){if(a){if(p==b)break e;c("Code point not allowed in scheme: "+b);break e}l="",u=0,d="no scheme";continue}if(this._scheme=l,l="",a)break e;t(this._scheme)&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",d="query"):"#"==b?(this._fragment="#",d="fragment"):p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._schemeData+=o(b));break;case"no scheme":if(s&&t(s._scheme)){d="relative";continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!=b||"/"!=e[u+1]){c("Expected /, got: "+b),d="relative";continue}d="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;break e}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point."),d="relative slash";else if("?"==b)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,d="query";else{if("#"!=b){var y=e[u+1],E=e[u+2];("file"!=this._scheme||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,d="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),d="relative path";continue}"\\"==b&&c("\\ is an invalid code point."),d="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slashes";continue}d="authority second slash";break;case"authority second slash":if(d="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expected authority, got: "+b);break;case"authority":if("@"==b){w&&(c("@ already seen."),l+="%40"),w=!0;for(var L=0;L<l.length;L++){var T=l[L];if("	"!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){var M=o(T);null!==this._password?this._password+=M:this._username+=M}else this._password="";else c("Invalid whitespace in authority.")}l=""}else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){u-=l.length,l="",d="host";continue}l+=b}break;case"file host":if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){2!=l.length||!m.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?d="relative path start":(this._host=r.call(this,l),l="",d="relative path start"):d="relative path";continue}"	"==b||"\n"==b||"\r"==b?c("Invalid whitespace in file host."):l+=b;break;case"host":case"hostname":if(":"!=b||_){if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=r.call(this,l),l="",d="relative path start",a)break e;continue}"	"!=b&&"\n"!=b&&"\r"!=b?("["==b?_=!0:"]"==b&&(_=!1),l+=b):c("Invalid code point in host/hostname: "+b)}else if(this._host=r.call(this,l),l="",d="port","hostname"==a)break e;break;case"port":if(/[0-9]/.test(b))l+=b;else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=l){var N=parseInt(l,10);N!=h[this._scheme]&&(this._port=N+""),l=""}if(a)break e;d="relative path start";continue}"	"==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.call(this)}break;case"relative path start":if("\\"==b&&c("'\\' not allowed in path."),d="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":if(p!=b&&"/"!=b&&"\\"!=b&&(a||"?"!=b&&"#"!=b))"	"!=b&&"\n"!=b&&"\r"!=b&&(l+=o(b));else{"\\"==b&&c("\\ not allowed in relative path.");var O;(O=f[l.toLowerCase()])&&(l=O),".."==l?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==l&&"/"!=b&&"\\"!=b?this._path.push(""):"."!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&m.test(l[0])&&"|"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==b?(this._query="?",d="query"):"#"==b&&(this._fragment="#",d="fragment")}break;case"query":a||"#"!=b?p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(this._fragment="#",d="fragment");break;case"fragment":p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}u++}}function s(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function c(e,t){void 0===t||t instanceof c||(t=new c(String(t))),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var d=!1;if(!e.forceJURL)try{var u=new URL("b","http://a");u.pathname="c%20d",d="http://a/c%20d"===u.href}catch(l){}if(!d){var h=Object.create(null);h.ftp=21,h.file=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return(""!=this._username||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){s.call(this),a.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||a.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var w=e.URL;w&&(c.createObjectURL=function(e){return w.createObjectURL.apply(w,arguments)},c.revokeObjectURL=function(e){w.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e){var t=e[this.name];return t&&t[0]===e?(t[0]=t[1]=void 0,!0):!1},has:function(e){var t=e[this.name];return t?t[0]===e:!1}},window.WeakMap=n}(),function(e){function t(e){b.push(e),g||(g=!0,m(r))}function n(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function r(){g=!1;var e=b;b=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}function o(e){e.nodes_.forEach(function(t){var n=v.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){for(var n=e;n;n=n.parentNode){var r=v.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}function s(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function d(e,t){return E=new s(e,t)}function u(e){return L?L:(L=c(E),L.oldValue=e,L)}function l(){E=L=void 0}function h(e){return e===L||e===E}function f(e,t){return e===t?e:L&&h(e)?L:null}function p(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,v=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.setImmediate)m=window.setImmediate;else{var w=[],_=String(Math.random());window.addEventListener("message",function(e){if(e.data===_){var t=w;w=[],t.forEach(function(e){e()})}}),m=function(e){w.push(e),window.postMessage(_,"*")}}var g=!1,b=[],y=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var r=v.get(e);r||v.set(e,r=[]);for(var o,i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.removeListeners(),o.options=t;break}o||(o=new p(this,e,t),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=v.get(e),n=0;n<t.length;n++){var r=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}};var E,L;p.prototype={enqueue:function(e){var n=this.observer.records_,r=n.length;if(n.length>0){var o=n[r-1],i=f(o,e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=v.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=new d("attributes",r);o.attributeName=t,o.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOldValue?u(a):o});break;case"DOMCharacterDataModified":var r=e.target,o=d("characterData",r),a=e.prevValue;i(r,function(e){return e.characterData?e.characterDataOldValue?u(a):o:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var s,c,h=e.target;"DOMNodeInserted"===e.type?(s=[h],c=[]):(s=[],c=[h]);var f=h.previousSibling,p=h.nextSibling,o=d("childList",e.target.parentNode);o.addedNodes=s,o.removedNodes=c,o.previousSibling=f,o.nextSibling=p,i(e.relatedNode,function(e){return e.childList?o:void 0})}l()}},e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self),"undefined"==typeof HTMLTemplateElement&&!function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}function t(t){return t.replace(a,e)}var n="template",r=document.implementation.createHTMLDocument("template"),o=!0;HTMLTemplateElement=function(){},HTMLTemplateElement.prototype=Object.create(HTMLElement.prototype),HTMLTemplateElement.decorate=function(e){if(!e.content){e.content=r.createDocumentFragment();for(var n;n=e.firstChild;)e.content.appendChild(n);if(o)try{Object.defineProperty(e,"innerHTML",{get:function(){for(var e="",n=this.content.firstChild;n;n=
                    
                
ruta.js git://github.com/addyosmani/todomvc.git | JavaScript | 1144 lines
                    
304			try {
                    
305				return encodeURIComponent(str);
                    
306			} catch(error) {
                    
                
sammy.js git://github.com/addyosmani/todomvc.git | JavaScript | 2121 lines
                    
28      _decode = function( str ) { return decodeURIComponent((str || '').replace(/\+/g, ' ')); },
                    
29      _encode = encodeURIComponent,
                    
30      _escapeHTML = function(s) {
                    
                
webcomponents-lite.js git://github.com/addyosmani/todomvc.git | JavaScript | 2427 lines
                    
93    }
                    
94    return encodeURIComponent(c);
                    
95  }
                    
100    }
                    
101    return encodeURIComponent(c);
                    
102  }
                    
                
webcomponents-lite.min.js git://github.com/addyosmani/todomvc.git | JavaScript | 12 lines
                    
10// @version 0.7.17
                    
11!function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomponents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(var r,o=0;r=t.attributes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){var i=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={}}n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";function t(e){return void 0!==h[e]}function n(){s.call(this),this._isInvalid=!0}function r(e){return""==e&&n.call(this),e.toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){function c(e){g.push(e)}var d=a||"scheme start",u=0,l="",_=!1,w=!1,g=[];e:for(;(e[u-1]!=p||0==u)&&!this._isInvalid;){var b=e[u];switch(d){case"scheme start":if(!b||!m.test(b)){if(a){c("Invalid scheme.");break e}l="",d="no scheme";continue}l+=b.toLowerCase(),d="scheme";break;case"scheme":if(b&&v.test(b))l+=b.toLowerCase();else{if(":"!=b){if(a){if(p==b)break e;c("Code point not allowed in scheme: "+b);break e}l="",u=0,d="no scheme";continue}if(this._scheme=l,l="",a)break e;t(this._scheme)&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",d="query"):"#"==b?(this._fragment="#",d="fragment"):p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._schemeData+=o(b));break;case"no scheme":if(s&&t(s._scheme)){d="relative";continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!=b||"/"!=e[u+1]){c("Expected /, got: "+b),d="relative";continue}d="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;break e}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point."),d="relative slash";else if("?"==b)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,d="query";else{if("#"!=b){var y=e[u+1],E=e[u+2];("file"!=this._scheme||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,d="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),d="relative path";continue}"\\"==b&&c("\\ is an invalid code point."),d="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slashes";continue}d="authority second slash";break;case"authority second slash":if(d="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expected authority, got: "+b);break;case"authority":if("@"==b){_&&(c("@ already seen."),l+="%40"),_=!0;for(var L=0;L<l.length;L++){var T=l[L];if("	"!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){var M=o(T);null!==this._password?this._password+=M:this._username+=M}else this._password="";else c("Invalid whitespace in authority.")}l=""}else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){u-=l.length,l="",d="host";continue}l+=b}break;case"file host":if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){2!=l.length||!m.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?d="relative path start":(this._host=r.call(this,l),l="",d="relative path start"):d="relative path";continue}"	"==b||"\n"==b||"\r"==b?c("Invalid whitespace in file host."):l+=b;break;case"host":case"hostname":if(":"!=b||w){if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=r.call(this,l),l="",d="relative path start",a)break e;continue}"	"!=b&&"\n"!=b&&"\r"!=b?("["==b?w=!0:"]"==b&&(w=!1),l+=b):c("Invalid code point in host/hostname: "+b)}else if(this._host=r.call(this,l),l="",d="port","hostname"==a)break e;break;case"port":if(/[0-9]/.test(b))l+=b;else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=l){var N=parseInt(l,10);N!=h[this._scheme]&&(this._port=N+""),l=""}if(a)break e;d="relative path start";continue}"	"==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.call(this)}break;case"relative path start":if("\\"==b&&c("'\\' not allowed in path."),d="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":if(p!=b&&"/"!=b&&"\\"!=b&&(a||"?"!=b&&"#"!=b))"	"!=b&&"\n"!=b&&"\r"!=b&&(l+=o(b));else{"\\"==b&&c("\\ not allowed in relative path.");var O;(O=f[l.toLowerCase()])&&(l=O),".."==l?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==l&&"/"!=b&&"\\"!=b?this._path.push(""):"."!=l&&("file"==this._scheme&&0==this._path.length&&2==l.length&&m.test(l[0])&&"|"==l[1]&&(l=l[0]+":"),this._path.push(l)),l="","?"==b?(this._query="?",d="query"):"#"==b&&(this._fragment="#",d="fragment")}break;case"query":a||"#"!=b?p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(this._fragment="#",d="fragment");break;case"fragment":p!=b&&"	"!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}u++}}function s(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function c(e,t){void 0===t||t instanceof c||(t=new c(String(t))),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var d=!1;if(!e.forceJURL)try{var u=new URL("b","http://a");u.pathname="c%20d",d="http://a/c%20d"===u.href}catch(l){}if(!d){var h=Object.create(null);h.ftp=21,h.file=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return(""!=this._username||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){s.call(this),a.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||a.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var _=e.URL;_&&(c.createObjectURL=function(e){return _.createObjectURL.apply(_,arguments)},c.revokeObjectURL=function(e){_.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e){var t=e[this.name];return t&&t[0]===e?(t[0]=t[1]=void 0,!0):!1},has:function(e){var t=e[this.name];return t?t[0]===e:!1}},window.WeakMap=n}(),function(e){function t(e){b.push(e),g||(g=!0,m(r))}function n(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function r(){g=!1;var e=b;b=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}function o(e){e.nodes_.forEach(function(t){var n=v.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){for(var n=e;n;n=n.parentNode){var r=v.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}function s(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function d(e,t){return E=new s(e,t)}function u(e){return L?L:(L=c(E),L.oldValue=e,L)}function l(){E=L=void 0}function h(e){return e===L||e===E}function f(e,t){return e===t?e:L&&h(e)?L:null}function p(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,v=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.setImmediate)m=window.setImmediate;else{var _=[],w=String(Math.random());window.addEventListener("message",function(e){if(e.data===w){var t=_;_=[],t.forEach(function(e){e()})}}),m=function(e){_.push(e),window.postMessage(w,"*")}}var g=!1,b=[],y=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var r=v.get(e);r||v.set(e,r=[]);for(var o,i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.removeListeners(),o.options=t;break}o||(o=new p(this,e,t),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=v.get(e),n=0;n<t.length;n++){var r=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}};var E,L;p.prototype={enqueue:function(e){var n=this.observer.records_,r=n.length;if(n.length>0){var o=n[r-1],i=f(o,e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=v.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=new d("attributes",r);o.attributeName=t,o.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOldValue?u(a):o});break;case"DOMCharacterDataModified":var r=e.target,o=d("characterData",r),a=e.prevValue;i(r,function(e){return e.characterData?e.characterDataOldValue?u(a):o:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var s,c,h=e.target;"DOMNodeInserted"===e.type?(s=[h],c=[]):(s=[],c=[h]);var f=h.previousSibling,p=h.nextSibling,o=d("childList",e.target.parentNode);o.addedNodes=s,o.removedNodes=c,o.previousSibling=f,o.nextSibling=p,i(e.relatedNode,function(e){return e.childList?o:void 0})}l()}},e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self),"undefined"==typeof HTMLTemplateElement&&!function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}function t(t){return t.replace(a,e)}var n="template",r=document.implementation.createHTMLDocument("template"),o=!0;HTMLTemplateElement=function(){},HTMLTemplateElement.prototype=Object.create(HTMLElement.prototype),HTMLTemplateElement.decorate=function(e){e.content||(e.content=r.createDocumentFragment());for(var n;n=e.firstChild;)e.content.appendChild(n);if(o)try{Object.defineProperty(e,"innerHTML",{get:function(){for(var e="",n=this.content.firstChild;n;n=n.
                    
                
cubism.v1.js git://github.com/square/cube.git | JavaScript | 1139 lines
                    
168      d3.json(host + "/1.0/metric"
                    
169          + "?expression=" + encodeURIComponent(expression)
                    
170          + "&start=" + cubism_cubeFormatDate(start)
                    
204      d3.text(host + "/render?format=raw"
                    
205          + "&target=" + encodeURIComponent("alias(" + target + ",'')")
                    
206          + "&from=" + cubism_graphiteFormatDate(start - 2 * step) // off-by-two?
                    
222    d3.json(host + "/metrics/find?format=completer"
                    
223        + "&query=" + encodeURIComponent(pattern), function(result) {
                    
224      if (!result) return callback(new Error("unable to find metrics"));
                    
                
sammy-0.7.6.min.js git://github.com/quirkey/sammy.git | JavaScript | 5 lines
                    
4// Built: 2014-08-26 10:45:34 +0300
                    
5(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{jQuery.sammy=window.Sammy=factory(jQuery)}})(function($){var Sammy,PATH_REPLACER="([^/]+)",PATH_NAME_MATCHER=/:([\w\d]+)/g,QUERY_STRING_MATCHER=/\?([^#]*)?$/,_makeArray=function(nonarray){return Array.prototype.slice.call(nonarray)},_isFunction=function(obj){return Object.prototype.toString.call(obj)==="[object Function]"},_isArray=function(obj){return Object.prototype.toString.call(obj)==="[object Array]"},_isRegExp=function(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"},_decode=function(str){return decodeURIComponent((str||"").replace(/\+/g," "))},_encode=encodeURIComponent,_escapeHTML=function(s){return String(s).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},_routeWrapper=function(verb){return function(){return this.route.apply(this,[verb].concat(Array.prototype.slice.call(arguments)))}},_template_cache={},_has_history=!!(window.history&&history.pushState),loggers=[];Sammy=function(){var args=_makeArray(arguments),app,selector;Sammy.apps=Sammy.apps||{};if(args.length===0||args[0]&&_isFunction(args[0])){return Sammy.apply(Sammy,["body"].concat(args))}else if(typeof(selector=args.shift())=="string"){app=Sammy.apps[selector]||new Sammy.Application;app.element_selector=selector;if(args.length>0){$.each(args,function(i,plugin){app.use(plugin)})}if(app.element_selector!=selector){delete Sammy.apps[selector]}Sammy.apps[app.element_selector]=app;return app}};Sammy.VERSION="0.7.6";Sammy.addLogger=function(logger){loggers.push(logger)};Sammy.log=function(){var args=_makeArray(arguments);args.unshift("["+Date()+"]");$.each(loggers,function(i,logger){logger.apply(Sammy,args)})};if(typeof window.console!="undefined"){if(typeof window.console.log==="function"&&_isFunction(window.console.log.apply)){Sammy.addLogger(function(){window.console.log.apply(window.console,arguments)})}else{Sammy.addLogger(function(){window.console.log(arguments)})}}else if(typeof console!="undefined"){Sammy.addLogger(function(){console.log.apply(console,arguments)})}$.extend(Sammy,{makeArray:_makeArray,isFunction:_isFunction,isArray:_isArray});Sammy.Object=function(obj){return $.extend(this,obj||{})};$.extend(Sammy.Object.prototype,{escapeHTML:_escapeHTML,h:_escapeHTML,toHash:function(){var json={};$.each(this,function(k,v){if(!_isFunction(v)){json[k]=v}});return json},toHTML:function(){var display="";$.each(this,function(k,v){if(!_isFunction(v)){display+="<strong>"+k+"</strong> "+v+"<br />"}});return display},keys:function(attributes_only){var keys=[];for(var property in this){if(!_isFunction(this[property])||!attributes_only){keys.push(property)}}return keys},has:function(key){return this[key]&&$.trim(this[key].toString())!==""},join:function(){var args=_makeArray(arguments);var delimiter=args.shift();return args.join(delimiter)},log:function(){Sammy.log.apply(Sammy,arguments)},toString:function(include_functions){var s=[];$.each(this,function(k,v){if(!_isFunction(v)||include_functions){s.push('"'+k+'": '+v.toString())}});return"Sammy.Object: {"+s.join(",")+"}"}});Sammy.targetIsThisWindow=function targetIsThisWindow(event,tagName){var targetElement=$(event.target).closest(tagName);if(targetElement.length===0){return true}var targetWindow=targetElement.attr("target");if(!targetWindow||targetWindow===window.name||targetWindow==="_self"){return true}if(targetWindow==="_blank"){return false}if(targetWindow==="top"&&window===window.top){return true}return false};Sammy.DefaultLocationProxy=function(app,run_interval_every){this.app=app;this.is_native=false;this.has_history=_has_history;this._startPolling(run_interval_every)};Sammy.DefaultLocationProxy.fullPath=function(location_obj){var matches=location_obj.toString().match(/^[^#]*(#.+)$/);var hash=matches?matches[1]:"";return[location_obj.pathname,location_obj.search,hash].join("")};$.extend(Sammy.DefaultLocationProxy.prototype,{bind:function(){var proxy=this,app=this.app,lp=Sammy.DefaultLocationProxy;$(window).bind("hashchange."+this.app.eventNamespace(),function(e,non_native){if(proxy.is_native===false&&!non_native){proxy.is_native=true;window.clearInterval(lp._interval);lp._interval=null}app.trigger("location-changed")});if(_has_history&&!app.disable_push_state){$(window).bind("popstate."+this.app.eventNamespace(),function(e){app.trigger("location-changed")});$(document).delegate("a","click.history-"+this.app.eventNamespace(),function(e){if(e.isDefaultPrevented()||e.metaKey||e.ctrlKey){return}var full_path=lp.fullPath(this),hostname=this.hostname?this.hostname:function(a){var l=document.createElement("a");l.href=a.href;return l.hostname}(this);if(hostname==window.location.hostname&&app.lookupRoute("get",full_path)&&Sammy.targetIsThisWindow(e,"a")){e.preventDefault();proxy.setLocation(full_path);return false}})}if(!lp._bindings){lp._bindings=0}lp._bindings++},unbind:function(){$(window).unbind("hashchange."+this.app.eventNamespace());$(window).unbind("popstate."+this.app.eventNamespace());$(document).undelegate("a","click.history-"+this.app.eventNamespace());Sammy.DefaultLocationProxy._bindings--;if(Sammy.DefaultLocationProxy._bindings<=0){window.clearInterval(Sammy.DefaultLocationProxy._interval);Sammy.DefaultLocationProxy._interval=null}},getLocation:function(){return Sammy.DefaultLocationProxy.fullPath(window.location)},setLocation:function(new_location){if(/^([^#\/]|$)/.test(new_location)){if(_has_history&&!this.app.disable_push_state){new_location="/"+new_location}else{new_location="#!/"+new_location}}if(new_location!=this.getLocation()){if(_has_history&&!this.app.disable_push_state&&/^\//.test(new_location)){history.pushState({path:new_location},window.title,new_location);this.app.trigger("location-changed")}else{return window.location=new_location}}},_startPolling:function(every){var proxy=this;if(!Sammy.DefaultLocationProxy._interval){if(!every){every=10}var hashCheck=function(){var current_location=proxy.getLocation();if(typeof Sammy.DefaultLocationProxy._last_location=="undefined"||current_location!=Sammy.DefaultLocationProxy._last_location){window.setTimeout(function(){$(window).trigger("hashchange",[true])},0)}Sammy.DefaultLocationProxy._last_location=current_location};hashCheck();Sammy.DefaultLocationProxy._interval=window.setInterval(hashCheck,every)}}});Sammy.Application=function(app_function){var app=this;this.routes={};this.listeners=new Sammy.Object({});this.arounds=[];this.befores=[];this.namespace=(new Date).getTime()+"-"+parseInt(Math.random()*1e3,10);this.context_prototype=function(){Sammy.EventContext.apply(this,arguments)};this.context_prototype.prototype=new Sammy.EventContext;if(_isFunction(app_function)){app_function.apply(this,[this])}if(!this._location_proxy){this.setLocationProxy(new Sammy.DefaultLocationProxy(this,this.run_interval_every))}if(this.debug){this.bindToAllEvents(function(e,data){app.log(app.toString(),e.cleaned_type,data||{})})}};Sammy.Application.prototype=$.extend({},Sammy.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed","error","check-form-submission","redirect","location-changed"],_last_route:null,_location_proxy:null,_running:false,element_selector:"body",debug:false,raise_errors:false,run_interval_every:50,disable_push_state:false,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(selector){return selector?$(this.element_selector).find(selector):$(this.element_selector)},use:function(){var args=_makeArray(arguments),plugin=args.shift(),plugin_name=plugin||"";try{args.unshift(this);if(typeof plugin=="string"){plugin_name="Sammy."+plugin;plugin=Sammy[plugin]}plugin.apply(this,args)}catch(e){if(typeof plugin==="undefined"){this.error("Plugin Error: called use() but plugin ("+plugin_name.toString()+") is not defined",e)}else if(!_isFunction(plugin)){this.error("Plugin Error: called use() but '"+plugin_name.toString()+"' is not a function",e)}else{this.error("Plugin Error",e)}}return this},setLocationProxy:function(new_proxy){var original_proxy=this._location_proxy;this._location_proxy=new_proxy;if(this.isRunning()){if(original_proxy){original_proxy.unbind()}this._location_proxy.bind()}},log:function(){Sammy.log.apply(Sammy,Array.prototype.concat.apply([this.element_selector],arguments))},route:function(verb,path){var app=this,param_names=[],add_route,path_match,callback=Array.prototype.slice.call(arguments,2);if(callback.length===0&&_isFunction(path)){callback=[path];path=verb;verb="any"}verb=verb.toLowerCase();if(path.constructor==String){PATH_NAME_MATCHER.lastIndex=0;while((path_match=PATH_NAME_MATCHER.exec(path))!==null){param_names.push(path_match[1])}path=new RegExp(path.replace(PATH_NAME_MATCHER,PATH_REPLACER)+"$")}$.each(callback,function(i,cb){if(typeof cb==="string"){callback[i]=app[cb]}});add_route=function(with_verb){var r={verb:with_verb,path:path,callback:callback,param_names:param_names};app.routes[with_verb]=app.routes[with_verb]||[];app.routes[with_verb].push(r)};if(verb==="any"){$.each(this.ROUTE_VERBS,function(i,v){add_route(v)})}else{add_route(verb)}return this},get:_routeWrapper("get"),post:_routeWrapper("post"),put:_routeWrapper("put"),del:_routeWrapper("delete"),any:_routeWrapper("any"),mapRoutes:function(route_array){var app=this;$.each(route_array,function(i,route_args){app.route.apply(app,route_args)});return this},eventNamespace:function(){return["sammy-app",this.namespace].join("-")},bind:function(name,data,callback){var app=this;if(typeof callback=="undefined"){callback=data}var listener_callback=function(){var e,context,data;e=arguments[0];data=arguments[1];if(data&&data.context){context=data.context;delete data.context}else{context=new app.context_prototype(app,"bind",e.type,data,e.target)}e.cleaned_type=e.type.replace(app.eventNamespace(),"");callback.apply(context,[e,data])};if(!this.listeners[name]){this.listeners[name]=[]}this.listeners[name].push(listener_callback);if(this.isRunning()){this._listen(name,listener_callback)}return this},trigger:function(name,data){this.$element().trigger([name,this.eventNamespace()].join("."),[data]);return this},refresh:function(){this.last_location=null;this.trigger("location-changed");return this},before:function(options,callback){if(_isFunction(options)){callback=options;options={}}this.befores.push([options,callback]);return this},after:function(callback){return this.bind("event-context-after",callback)},around:function(callback){this.arounds.push(callback);return this},onComplete:function(callback){this._onComplete=callback;return this},isRunning:function(){return this._running},helpers:function(extensions){$.extend(this.context_prototype.prototype,extensions);return this},helper:function(name,method){this.context_prototype.prototype[name]=method;return this},run:function(start_url){if(this.isRunning()){return false}var app=this;$.each(this.listeners.toHash(),function(name,callbacks){$.each(callbacks,function(i,listener_callback){app._listen(name,listener_callback)})});this.trigger("run",{start_url:start_url});this._running=true;this.last_location=null;if(!/\#(.+)/.test(this.getLocation())&&typeof start_url!="undefined"){this.setLocation(start_url)}this._checkLocation();this._location_proxy.bind();this.bind("location-changed",function(){app._checkLocation()});this.bind("submit",function(e){if(!Sammy.targetIsThisWindow(e,"form")){return true}var returned=app._checkFormSubmission($(e.target).closest("form"));return returned===false?e.preventDefault():false});$(window).bind("unload",function(){app.unload()});return this.trigger("changed")},unload:function(){if(!this.isRunning()){return false}var app=this;this.trigger("unload");this._location_proxy.unbind();this.$element().unbind("submit").removeClass(app.eventNamespace());$.each(this.listeners.toHash(),function(name,listeners){$.each(listeners,function(i,listener_callback){app._unlisten(name,listener_callback)})});this._running=false;return this},destroy:function(){this.unload();delete Sammy.apps[this.element_selector];return this},bindToAllEvents:function(callback){var app=this;$.each(this.APP_EVENTS,function(i,e){app.bind(e,callback)});$.each(this.listeners.keys(true),function(i,name){if($.inArray(name,app.APP_EVENTS)==-1){app.bind(name,callback)}});return this},routablePath:function(path){return path.replace(QUERY_STRING_MATCHER,"")},lookupRoute:function(verb,path){var app=this,routed=false,i=0,l,route;if(typeof this.routes[verb]!="undefined"){l=this.routes[verb].length;for(;i<l;i++){route=this.routes[verb][i];if(app.routablePath(path).match(route.path)){routed=route;break}}}return routed},runRoute:function(verb,path,params,target){var app=this,route=this.lookupRoute(verb,path),context,wrapped_route,arounds,around,befores,before,callback_args,path_params,final_returned;if(this.debug){this.log("runRoute",[verb,path].join(" "))}this.trigger("run-route",{verb:verb,path:path,params:params});if(typeof params=="undefined"){params={}}$.extend(params,this._parseQueryString(path));if(route){this.trigger("route-found",{route:route});if((path_params=route.path.exec(this.routablePath(path)))!==null){path_params.shift();$.each(path_params,function(i,param){if(route.param_names[i]){params[route.param_names[i]]=_decode(param)}else{if(!params.splat){params.splat=[]}params.splat.push(_decode(param))}})}context=new this.context_prototype(this,verb,path,params,target);arounds=this.arounds.slice(0);befores=this.befores.slice(0);callback_args=[context];if(params.splat){callback_args=callback_args.concat(params.splat)}wrapped_route=function(){var returned,i,nextRoute;while(befores.length>0){before=befores.shift();if(app.contextMatchesOptions(context,before[0])){returned=before[1].apply(context,[context]);if(returned===false){return false}}}app.last_route=route;context.trigger("event-context-before",{context:context});if(typeof route.callback==="function"){route.callback=[route.callback]}if(route.callback&&route.callback.length){i=-1;nextRoute=function(){i++;if(route.callback[i]){returned=route.callback[i].apply(context,callback_args)}else if(app._onComplete&&typeof(app._onComplete==="function")){app._onComplete(context)}};callback_args.push(nextRoute);nextRoute()}context.trigger("event-context-after",{context:context});return returned};$.each(arounds.reverse(),function(i,around){var last_wrapped_route=wrapped_route;wrapped_route=function(){return around.apply(context,[last_wrapped_route])}});try{final_returned=wrapped_route()}catch(e){this.error(["500 Error",verb,path].join(" "),e)}return final_returned}else{return this.notFound(verb,path)}},contextMatchesOptions:function(context,match_options,positive){var options=match_options;if(typeof options==="string"||_isRegExp(options)){options={path:options}
                    
                
ga.js git://github.com/aptana/Pydev.git | JavaScript | 41 lines
                    
1(function(){var aa="_gat",ba="_gaq",r=true,v=false,w=undefined,ca=document,da="4.7.2",y="length",z="cookie",A="location",ea="_gaUserPrefs",fa="ioo",B="&",C="=",D="__utma=",F="__utmb=",G="__utmc=",ga="__utmk=",H="__utmv=",K="__utmz=",L="__utmx=",ha="GASO=";var M=function(i){return w==i||"-"==i||""==i},ia=function(i){return i[y]>0&&" \n\r\t".indexOf(i)>-1},O=function(i,f,m){var u="-",l;if(!M(i)&&!M(f)&&!M(m)){l=i.indexOf(f);if(l>-1){m=i.indexOf(m,l);if(m<0)m=i[y];u=N(i,l+f.indexOf(C)+1,m)}}return u},ka=function(i){var f=v,m=0,u,l;if(!M(i)){f=r;for(u=0;u<i[y];u++){l=i.charAt(u);m+="."==l?1:0;f=f&&m<=1&&(0==u&&"-"==l||".0123456789".indexOf(l)>-1)}}return f},P=function(i,f){var m=encodeURIComponent;return m instanceof Function?f?encodeURI(i):m(i):escape(i)},
                    
2Q=function(i,f){var m=decodeURIComponent,u;i=i.split("+").join(" ");if(m instanceof Function)try{u=f?decodeURI(i):m(i)}catch(l){u=unescape(i)}else u=unescape(i);return u},R=function(i,f){return i.indexOf(f)>-1},S=function(i,f){i[i[y]]=f},U=function(i){return i.toLowerCase()},V=function(i,f){return i.split(f)},la=function(i,f){return i.indexOf(f)},N=function(i,f,m){m=w==m?i[y]:m;return i.substring(f,m)},ma=function(i,f){return i.join(f)},na=function(i){var f=1,m=0,u;if(!M(i)){f=0;for(u=i[y]-1;u>=0;u--){m=
                    
                
angular.min.js git://github.com/apache/lucene-solr.git | JavaScript | 274 lines
                    
28*/
                    
29(function(M,Y,t){'use strict';function T(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.8/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Ta(b){if(null==b||Ua(b))return!1;var a=b.length;return b.nodeType===
                    
30na&&a?!0:F(b)||x(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function s(b,a,c){var d,e;if(b)if(G(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(x(b)||Ta(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==s)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d,b);return b}function Ed(b,a,c){for(var d=Object.keys(b).sort(),e=0;e<d.length;e++)a.call(c,
                    
37(c="$SCOPE");return c}function $a(b,a){if("undefined"===typeof b)return t;V(a)||(a=a?2:null);return JSON.stringify(b,Hd,a)}function oc(b){return F(b)?JSON.parse(b):b}function va(b){b=B(b).clone();try{b.empty()}catch(a){}var c=B("<div>").append(b).html();try{return b[0].nodeType===pb?Q(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+Q(b)})}catch(d){return Q(c)}}function pc(b){try{return decodeURIComponent(b)}catch(a){}}function qc(b){var a={},c,d;s((b||"").split("&"),function(b){b&&
                    
38(c=b.replace(/\+/g,"%20").split("="),d=pc(c[0]),y(d)&&(b=y(c[1])?pc(c[1]):!0,rc.call(a,d)?x(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Nb(b){var a=[];s(b,function(b,d){x(b)?s(b,function(b){a.push(Fa(d,!0)+(!0===b?"":"="+Fa(b,!0)))}):a.push(Fa(d,!0)+(!0===b?"":"="+Fa(b,!0)))});return a.length?a.join("&"):""}function qb(b){return Fa(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Fa(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,
                    
39":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Id(b,a){var c,d,e=rb.length;b=B(b);for(d=0;d<e;++d)if(c=rb[d]+a,F(c=b.attr(c)))return c;return null}function Jd(b,a){var c,d,e={};s(rb,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});s(rb,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Id(c,"strict-di"),a(c,d?[d]:[],e))}function sc(b,
                    
                
dust-full-2.0.0.min.js git://github.com/apache/hadoop-common.git | JavaScript | 1 lines
                    
1function getGlobal(){return function(){return this.dust}.call(null)}var dust={};(function(dust){function Context(e,t,n){this.stack=e,this.global=t,this.blocks=n}function Stack(e,t,n,r){this.tail=t,this.isObject=!dust.isArray(e)&&e&&typeof e=="object",this.head=e,this.index=n,this.of=r}function Stub(e){this.head=new Chunk(this),this.callback=e,this.out=""}function Stream(){this.head=new Chunk(this)}function Chunk(e,t,n){this.root=e,this.next=t,this.data=[],this.flushable=!1,this.taps=n}function Tap(e,t){this.head=e,this.tail=t}dust.helpers={},dust.cache={},dust.register=function(e,t){if(!e)return;dust.cache[e]=t},dust.render=function(e,t,n){var r=(new Stub(n)).head;dust.load(e,r,Context.wrap(t,e)).end()},dust.stream=function(e,t){var n=new Stream;return dust.nextTick(function(){dust.load(e,n.head,Context.wrap(t,e)).end()}),n},dust.renderSource=function(e,t,n){return dust.compileFn(e)(t,n)},dust.compileFn=function(e,t){var n=dust.loadSource(dust.compile(e,t));return function(e,r){var i=r?new Stub(r):new Stream;return dust.nextTick(function(){n(i.head,Context.wrap(e,t)).end()}),i}},dust.load=function(e,t,n){var r=dust.cache[e];return r?r(t,n):dust.onLoad?t.map(function(t){dust.onLoad(e,function(r,i){if(r)return t.setError(r);dust.cache[e]||dust.loadSource(dust.compile(i,e)),dust.cache[e](t,n).end()})}):t.setError(new Error("Template Not Found: "+e))},dust.loadSource=function(source,path){return eval(source)},Array.isArray?dust.isArray=Array.isArray:dust.isArray=function(e){return Object.prototype.toString.call(e)=="[object Array]"},dust.nextTick=function(){return typeof process!="undefined"?process.nextTick:function(e){setTimeout(e,0)}}(),dust.isEmpty=function(e){return dust.isArray(e)&&!e.length?!0:e===0?!1:!e},dust.filter=function(e,t,n){if(n)for(var r=0,i=n.length;r<i;r++){var s=n[r];s==="s"?t=null:typeof dust.filters[s]=="function"&&(e=dust.filters[s](e))}return t&&(e=dust.filters[t](e)),e},dust.filters={h:function(e){return dust.escapeHtml(e)},j:function(e){return dust.escapeJs(e)},u:encodeURI,uc:encodeURIComponent,js:function(e){return JSON?JSON.stringify(e):e},jp:function(e){return JSON?JSON.parse(e):e}},dust.makeBase=function(e){return new Context(new Stack,e)},Context.wrap=function(e,t){if(e instanceof Context)return e;var n={};return n.__templates__=[],n.__templates__.push(t),new Context(new Stack(e),n)},Context.prototype.get=function(e){var t=this.stack,n;while(t){if(t.isObject){n=t.head[e];if(n!==undefined)return n}t=t.tail}return this.global?this.global[e]:undefined},Context.prototype.getPath=function(e,t){var n=this.stack,r,i=t.length,s=e?undefined:this.stack.tail;if(e&&i===0)return n.head;n=n.head;var o=0;while(n&&o<i){r=n,n=n[t[o]],o++;while(!n&&!e){if(o>1)return undefined;s?(n=s.head,s=s.tail,o=0):e||(n=this.global,e=!0,o=0)}}return typeof n=="function"?function(){return n.apply(r,arguments)}:n},Context.prototype.push=function(e,t,n){return new Context(new Stack(e,this.stack,t,n),this.global,this.blocks)},Context.prototype.rebase=function(e){return new Context(new Stack(e),this.global,this.blocks)},Context.prototype.current=function(){return this.stack.head},Context.prototype.getBlock=function(e,t,n){typeof e=="function"&&(e=e(t,n).data.join(""),t.data=[]);var r=this.blocks;if(!r)return;var i=r.length,s;while(i--){s=r[i][e];if(s)return s}},Context.prototype.shiftBlocks=function(e){var t=this.blocks,n;return e?(t?n=t.concat([e]):n=[e],new Context(this.stack,this.global,n)):this},Stub.prototype.flush=function(){var e=this.head;while(e){if(!e.flushable){if(e.error){this.callback(e.error),this.flush=function(){};return}return}this.out+=e.data.join(""),e=e.next,this.head=e}this.callback(null,this.out)},Stream.prototype.flush=function(){var e=this.head;while(e){if(!e.flushable){if(e.error){this.emit("error",e.error),this.flush=function(){};return}return}this.emit("data",e.data.join("")),e=e.next,this.head=e}this.emit("end")},Stream.prototype.emit=function(e,t){if(!this.events)return!1;var n=this.events[e];if(!n)return!1;if(typeof n=="function")n(t);else{var r=n.slice(0);for(var i=0,s=r.length;i<s;i++)r[i](t)}},Stream.prototype.on=function(e,t){return this.events||(this.events={}),this.events[e]?typeof this.events[e]=="function"?this.events[e]=[this.events[e],t]:this.events[e].push(t):this.events[e]=t,this},Stream.prototype.pipe=function(e){return this.on("data",function(t){e.write(t,"utf8")}).on("end",function(){e.end()}).on("error",function(t){e.error(t)}),this},Chunk.prototype.write=function(e){var t=this.taps;return t&&(e=t.go(e)),this.data.push(e),this},Chunk.prototype.end=function(e){return e&&this.write(e),this.flushable=!0,this.root.flush(),this},Chunk.prototype.map=function(e){var t=new Chunk(this.root,this.next,this.taps),n=new Chunk(this.root,t,this.taps);return this.next=n,this.flushable=!0,e(n),t},Chunk.prototype.tap=function(e){var t=this.taps;return t?this.taps=t.push(e):this.taps=new Tap(e),this},Chunk.prototype.untap=function(){return this.taps=this.taps.tail,this},Chunk.prototype.render=function(e,t){return e(this,t)},Chunk.prototype.reference=function(e,t,n,r){if(typeof e=="function"){e.isFunction=!0,e=e.apply(t.current(),[this,t,null,{auto:n,filters:r}]);if(e instanceof Chunk)return e}return dust.isEmpty(e)?this:this.write(dust.filter(e,n,r))},Chunk.prototype.section=function(e,t,n,r){if(typeof e=="function"){e=e.apply(t.current(),[this,t,n,r]);if(e instanceof Chunk)return e}var i=n.block,s=n["else"];r&&(t=t.push(r));if(dust.isArray(e)){if(i){var o=e.length,u=this;if(o>0){t.stack.head&&(t.stack.head.$len=o);for(var a=0;a<o;a++)t.stack.head&&(t.stack.head.$idx=a),u=i(u,t.push(e[a],a,o));return t.stack.head&&(t.stack.head.$idx=undefined,t.stack.head.$len=undefined),u}if(s)return s(this,t)}}else if(e===!0){if(i)return i(this,t)}else if(e||e===0){if(i)return i(this,t.push(e))}else if(s)return s(this,t);return this},Chunk.prototype.exists=function(e,t,n){var r=n.block,i=n["else"];if(!dust.isEmpty(e)){if(r)return r(this,t)}else if(i)return i(this,t);return this},Chunk.prototype.notexists=function(e,t,n){var r=n.block,i=n["else"];if(dust.isEmpty(e)){if(r)return r(this,t)}else if(i)return i(this,t);return this},Chunk.prototype.block=function(e,t,n){var r=n.block;return e&&(r=e),r?r(this,t):this},Chunk.prototype.partial=function(e,t,n){var r;t.global&&t.global.__templates__&&t.global.__templates__.push(e),n?(r=dust.makeBase(t.global),r.blocks=t.blocks,t.stack&&t.stack.tail&&(r.stack=t.stack.tail),r=r.push(n),r=r.push(t.stack.head)):r=t;var i;return typeof e=="function"?i=this.capture(e,r,function(e,t){dust.load(e,t,r).end()}):i=dust.load(e,this,r),t.global&&t.global.__templates__&&t.global.__templates__.pop(),i},Chunk.prototype.helper=function(e,t,n,r){return dust.helpers[e]?dust.helpers[e](this,t,n,r):this},Chunk.prototype.capture=function(e,t,n){return this.map(function(r){var i=new Stub(function(e,t){e?r.setError(e):n(t,r)});e(i.head,t).end()})},Chunk.prototype.setError=function(e){return this.error=e,this.root.flush(),this},Tap.prototype.push=function(e){return new Tap(e,this)},Tap.prototype.go=function(e){var t=this;while(t)e=t.head(e),t=t.tail;return e};var HCHARS=new RegExp(/[&<>\"\']/),AMP=/&/g,LT=/</g,GT=/>/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(e){return typeof e=="string"?HCHARS.test(e)?e.replace(AMP,"&amp;").replace(LT,"&lt;").replace(GT,"&gt;").replace(QUOT,"&quot;").replace(SQUOT,"&#39;"):e:e};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;dust.escapeJs=function(e){return typeof e=="string"?e.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):e}})(dust),typeof exports!="undefined"&&(typeof process!="undefined"&&require("./server")(dust),module.exports=dust);var dustCompiler=function(e){function t(t){var n={};return e.filterNode(n,t)}function n(t,n){var r=[n[0]];for(var i=1,s=n.length;i<s;i++){var o=e.filterNode(t,n[i]);o&&r.push(o)}return r}function r(t,n){var r=[n[0]],i;for(var s=1,o=n.length;s<o;s++){var u=e.filterNode(t,n[s]);u&&(u[0]==="buffer"?i?i[1]+=u[1]:(i=u,r.push(u)):(i=null,r.push(u)))}return r}function s(e,t){return["buffer",i[t[1]]]}function o(e,t){return t}function u(){}function a(t,n){var r={name:n,bodies:[],blocks:{},index:0,auto:"h"};return"(function(){dust.register("+(n?'"'+n+'"':"null")+","+e.compileNode(r,t)+");"+f(r)+l(r)+"return body_0;"+"})();"}function f(e){var t=[],n=e.blocks;for(var r in n)t.push("'"+r+"':"+n[r]);return t.length?(e.blocks="ctx=ctx.shiftBlocks(blocks);","var blocks={"+t.join(",")+"};"):e.blocks=""}function l(e){var t=[],n=e.bodies,r=e.blocks;for(var i=0,s=n.length;i<s;i++)t[i]="function body_"+i+"(chk,ctx){"+r+"return chk"+n[i]+";}";return t.join("")}function c(t,n){var r="";for(var i=1,s=n.length;i<s;i++)r+=e.compileNode(t,n[i]);return r}function h(t,n,r){return"."+r+"("+e.compileNode(t,n[1])+","+e.compileNode(t,n[2])+","+e.compileNode(t,n[4])+","+e.compileNode(t,n[3])+")"}e.compile=function(n,r){try{var i=t(e.parse(n));return a(i,r)}catch(s){throw!s.line||!s.column?s:new SyntaxError(s.message+" At line : "+s.line+", column : "+s.column)}},e.filterNode=function(t,n){return e.optimizers[n[0]](t,n)},e.optimizers={body:r,buffer:o,special:s,format:u,reference:n,"#":n,"?":n,"^":n,"<":n,"+":n,"@":n,"%":n,partial:n,context:n,params:n,bodies:n,param:n,filters:o,key:o,path:o,literal:o,comment:u},e.pragmas={esc:function(e,t,n,r){var i=e.auto;t||(t="h"),e.auto=t==="s"?"":t;var s=c(e,n.block);return e.auto=i,s}};var i={s:" ",n:"\n",r:"\r",lb:"{",rb:"}"};e.compileNode=function(t,n){return e.nodes[n[0]](t,n)},e.nodes={body:function(e,t){var n=e.index++,r="body_"+n;return e.bodies[n]=c(e,t),r},buffer:function(e,t){return".write("+p(t[1])+")"},format:function(e,t){return".write("+p(t[1]+t[2])+")"},reference:function(t,n){return".reference("+e.compileNode(t,n[1])+",ctx,"+e.compileNode(t,n[2])+")"},"#":function(e,t){return h(e,t,"section")},"?":function(e,t){return h(e,t,"exists")},"^":function(e,t){return h(e,t,"notexists")},"<":function(t,n){var r=n[4];for(var i=1,s=r.length;i<s;i++){var o=r[i],u=o[1][1];if(u==="block")return t.blocks[n[1].text]=e.compileNode(t,o[2]),""}return""},"+":function(t,n){return typeof n[1].text=="undefined"&&typeof n[4]=="undefined"?".block(ctx.getBlock("+e.compileNode(t,n[1])+",chk, ctx),"+e.compileNode(t,n[2])+", {},"+e.compileNode(t,n[3])+")":".block(ctx.getBlock("+p(n[1].text)+"),"+e.compileNode(t,n[2])+","+e.compileNode(t,n[4])+","+e.compileNode(t,n[3])+")"},"@":function(t,n){return".helper("+p(n[1].text)+","+e.compileNode(t,n[2])+","+e.compileNode(t,n[4])+","+e.compileNode(t,n[3])+")"},"%":function(t,n){var r=n[1][1];if(!e.pragmas[r])return"";var i=n[4],s={};for(var o=1,u=i.length;o<u;o++){var a=i[o];s[a[1][1]]=a[2]}var f=n[3],l={};for(var o=1,u=f.length;o<u;o++){var c=f[o];l[c[1][1]]=c[2][1]}var h=n[2][1]?n[2][1].text:null;return e.pragmas[r](t,h,s,l)},partial:function(t,n){return".partial("+e.compileNode(t,n[1])+","+e.compileNode(t,n[2])+","+e.compileNode(t,n[3])+")"},context:function(t,n){return n[1]?"ctx.rebase("+e.compileNode(t,n[1])+")":"ctx"},params:function(t,n){var r=[];for(var i=1,s=n.length;i<s;i++)r.push(e.compileNode(t,n[i]));return r.length?"{"+r.join(",")+"}":"null"},bodies:function(t,n){var r=[];for(var i=1,s=n.length;i<s;i++)r.push(e.compileNode(t,n[i]));return"{"+r.join(",")+"}"},param:function(t,n){return e.compileNode(t,n[1])+":"+e.compileNode(t,n[2])},filters:function(e,t){var n=[];for(var r=1,i=t.length;r<i;r++){var s=t[r];n.push('"'+s+'"')}return'"'+e.auto+'"'+(n.length?",["+n.join(",")+"]":"")},key:function(e,t){return'ctx.get("'+t[1]+'")'},path:function(t,n){var r=n[1],i=n[2],s=[];for(var o=0,u=i.length;o<u;o++)e.isArray(i[o])?s.push(e.compileNode(t,i[o])):s.push('"'+i[o]+'"');return"ctx.getPath("+r+",["+s.join(",")+"])"},literal:function(e,t){return p(t[1])}};var p=typeof JSON=="undefined"?function(t){return'"'+e.escapeJs(t)+'"'}:JSON.stringify;return e};typeof exports!="undefined"?module.exports=dustCompiler:dustCompiler(getGlobal()),function(e){var t=function(){function e(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+'"'}var n={parse:function(n,r){function f(e,t,n){var r=e,i=n-e.length;for(var s=0;s<i;s++)r=t+r;return r}function l(e){var t=e.charCodeAt(0),n,r;return t<=255?(n="x",r=2):(n="u",r=4),"\\"+n+f(t.toString(16).toUpperCase(),"0",r)}function c(e){var t={};for(var n in e)t[n]=e[n];return t}function h(e,t){var r=e.offset+t;for(var i=e.offset;i<r;i++){var s=n.charAt(i);s==="\n"?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):s==="\r"||s==="\u2028"||s==="\u2029"?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}e.offset+=t}function p(e){if(s.offset<u.offset)return;s.offset>u.offset&&(u=c(s),a=[]),a.push(e)}function d(){var e,t,n;n=c(s),e=[],t=v();while(t!==null)e.push(t),t=v();return e!==null&&(e=function(e,t,n,r){return["body"].concat(r)}(n.offset,n.line,n.column,e)),e===null&&(s=c(n)),e}function v(){var e;return e=I(),e===null&&(e=m(),e===null&&(e=x(),e===null&&(e=N(),e===null&&(e=S(),e===null&&(e=B()))))),e}function m(){var e,t,r,i,u,a,f,l,v;o++,l=c(s),v=c(s),e=g();if(e!==null){t=[],r=V();while(r!==null)t.push(r),r=V();t!==null?(r=U(),r!==null?(i=d(),i!==null?(u=E(),u!==null?(a=y(),a=a!==null?a:"",a!==null?(f=function(e,t,n,r,i,s,o){if(!o||r[1].text!==o.text)throw new Error("Expected end tag for "+r[1].text+" but it was not found. At line : "+t+", column : "+n);return!0}(s.offset,s.line,s.column,e,i,u,a)?"":null,f!==null?e=[e,t,r,i,u,a,f]:(e=null,s=c(v))):(e=null,s=c(v))):(e=null,s=c(v))):(e=null,s=c(v))):(e=null,s=c(v))):(e=null,s=c(v))}else e=null,s=c(v);e!==null&&(e=function(e,t,n,r,i,s,o){return s.push(["param",["literal","block"],i]),r.push(s),r}(l.offset,l.line,l.column,e[0],e[3],e[4],e[5])),e===null&&(s=c(l));if(e===null){l=c(s),v=c(s),e=g();if(e!==null){t=[],r=V();while(r!==null)t.push(r),r=V();t!==null?(n.charCodeAt(s.offset)===47?(r="/",h(s,1)):(r=null,o===0&&p('"/"')),r!==null?(i=U(),i!==null?e=[e,t,r,i]:(e=null,s=c(v))):(e=null,s=c(v))):(e=null,s=c(v))}else e=null,s=c(v);e!==null&&(e=function(e,t,n,r){return r.push(["bodies"]),r}(l.offset,l.line,l.column,e[0])),e===null&&(s=c(l))}return o--,o===0&&e===null&&p("section"),e}function g(){var e,t,r,i,u,a,f,l;f=c(s),l=c(s),e=R();if(e!==null){/^[#?^<+@%]/.test(n.charAt(s.offset))?(t=n.charAt(s.offset),h(s,1)):(t=null,o===0&&p("[#?^<+@%]"));if(t!==null){r=[],i=V();while(i!==null)r.push(i),i=V();r!==null?(i=C(),i!==null?(u=b(),u!==null?(a=w(),a!==null?e=[e,t,r,i,u,a]:(e=null,s=c(l))):(e=null,s=c(l))):(e=null,s=c(l))):(e=null,s=c(l))}else e=null,s=c(l)}else e=null,s=c(l);return e!==null&&(e=function(e,t,n,r,i,s,o){return[r,i,s,o]}(f.offset,f.line,f.column,e[1],e[3],e[4],e[5])),e===null&&(s=c(f)),e}function y(){var e,t,r,i,u,a,f,l;o++,f=c(s),l=c(s),e=R();if(e!==
                    
                
main.js git://github.com/liferay/liferay-portal.git | JavaScript | 895 lines
                    
258						for (i in prevAdditionalParams) {
                    
259							src = instance._setSrcParameter(encodeURIComponent(i), '', src);
                    
260						}
                    
264						for (i in newAdditionalParams) {
                    
265							src = instance._setSrcParameter(encodeURIComponent(i), encodeURIComponent(newAdditionalParams[i]), src);
                    
266						}
                    
368						if (parentUrl) {
                    
369							instance._refreshSrcParameter('view-params', encodeURIComponent(JSON.stringify(viewParams)));
                    
370						}
                    
447						for (var i in userPrefs) {
                    
448							buffer.push('&up_' + encodeURIComponent(i) + '=' + encodeURIComponent(userPrefs[i]));
                    
449						}
                    
471						for (var i in userPrefs) {
                    
472							src = instance._setSrcParameter('&up_' + encodeURIComponent(i), encodeURIComponent(userPrefs[i]), src);
                    
473						}
                    
                
gdata.js http://ytrack.googlecode.com/svn/trunk/ | JavaScript | 10333 lines
                    
1(function(){
                    
2    var gdaa = navigator, gda = undefined, gdba = encodeURIComponent, gdca = parseInt, gdb = String, gdc = window, gdd = Number, gdda = Function, gde = Object, gdf = document, gdea = decodeURIComponent, gdfa = Math;
                    
3    function gdga(a, b){
                    
                
tags.js http://fiuba-7508-sistemas-operativos.googlecode.com/svn/trunk/ | JavaScript | 1392 lines
                    
104	 {
                    
105	   if (typeof encodeURIComponent === "function") 
                    
106	      return encodeURIComponent(s);
                    
                
smb.js http://grailser.googlecode.com/svn/trunk/ | JavaScript | 2023 lines
                    
137                links[i].onclick = function(){
                    
138                    this.href = 'http://www.soso.com/q?cid=u01.so&ie=utf-8&w='+encodeURIComponent(this.innerHTML);
                    
139                    st_get(this,'u01.ls',0);
                    
250                }else{
                    
251                    url = "http://www.soso.com/q?cid=u01.ks&ie=utf-8&w="+encodeURIComponent(value);
                    
252                }
                    
                
fileuploader.js https://code.google.com/p/zapatillas-4-dsw1/ | JavaScript | 1247 lines
                    
210                        : (Object.prototype.toString.call(nextObj) === '[object Function]')
                    
211                            ? encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj())
                    
212                            : encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj)                                                          
                    
231    } else {
                    
232        uristrings.push(encodeURIComponent(temp) + '=' + encodeURIComponent(obj));
                    
233    }
                    
                
prototype_mini.js http://lucene.googlecode.com/svn/trunk/ | JavaScript | 694 lines
                    
237Hash.toQueryString.addPair = function(key, value, prefix) {
                    
238  key = encodeURIComponent(key);
                    
239  if (value === undefined)  { 
                    
241  }else {
                    
242	  this.push(key + '=' + (value == null ? '' : encodeURIComponent(value)));
                    
243  }
                    
                
Atom.js http://atomojo.googlecode.com/svn/trunk/ | JavaScript | 1815 lines
                    
120         req.open("GET", "data:" + (contentType || "application/xml") +
                    
121                      ";charset=utf-8," + encodeURIComponent(str), false);
                    
122         if (req.overrideMimeType) {
                    
                
template_quickreply.js http://fishkang.googlecode.com/svn/trunk/ | JavaScript | 469 lines
                    
43		}
                    
44		var sParam = encodeURIComponent(oForm.elements[i].name);
                    
45		sParam += "=";
                    
45		sParam += "=";
                    
46		sParam += encodeURIComponent(oForm.elements[i].value);
                    
47		aParams.push(sParam);
                    
                
ja.ddmod.js http://vanphongphamdm.googlecode.com/svn/trunk/ | JavaScript | 530 lines
                    
46	initialize: function(lists, options){			
                    
47			//console.log(encodeURIComponent("h%E1%BB%93ng%20c%C3%B4ng"));
                    
48		this.setOptions(options);
                    
                
testrunner-2009-09-13.js http://fwtemplates.googlecode.com/svn/trunk/ | JavaScript | 804 lines
                    
452				target.children().remove();
                    
453				location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
                    
454			}
                    
                
connection.js http://rtm-air-desktop.googlecode.com/svn/trunk/ | JavaScript | 770 lines
                    
46		toMD5 += data[id];
                    
47		aURL += (encodeURIComponent(id)+'='+encodeURIComponent(data[id])+'&');
                    
48	}
                    
74		toMD5 += data[id];
                    
75		aURL += (id+'='+encodeURIComponent(data[id])+'&');
                    
76	}
                    
                
eluminate.js http://yuicore.googlecode.com/svn/trunk/ | JavaScript | 1315 lines
                    
86    }
                    
87    if (!encodeURIComponent) {
                    
88        var encodeURIComponent = null;
                    
                
jquery.address-1.4.js http://macademia.googlecode.com/svn/trunk/ | JavaScript | 659 lines
                    
134                var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' + 
                    
135                    _d.title.replace('\'', '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()) + 
                    
136                    (_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') + 
                    
                
sunlight.javascript-min.js https://bitbucket.org/mulonemartin/powerpack/ | JavaScript | 1 lines
                    
1(function(a,b){if(a===b||a.registerLanguage===b){throw"Include sunlight.js before including language files";}a.registerLanguage("javascript",{keywords:["break","case","catch","continue","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with","true","false","null"],customTokens:{reservedWord:{values:["abstract","boolean","byte","char","class","const","debugger","double","enum","export","extends","final","float","goto","implements","import","int","interface","long","native","package","private","protected","public","short","static","super","synchronized","throws","transient","volatile"],boundary:"\\b"},globalVariable:{values:["NaN","Infinity","undefined"],boundary:"\\b"},globalFunction:{values:["encodeURI","encodeURIComponent","decodeURI","decodeURIComponent","parseInt","parseFloat","isNaN","isFinite","eval"],boundary:"\\b"},globalObject:{values:["Math","JSON","XMLHttpRequest","XDomainRequest","ActiveXObject","Boolean","Date","Array","Image","Function","Object","Number","RegExp","String"],boundary:"\\b"}},scopes:{string:[['"','"',a.util.escapeSequences.concat(['\\"'])],["'","'",a.util.escapeSequences.concat(["\\'","\\\\"])]],comment:[["//","\n",null,true],["/*","*/"]]},customParseRules:[function(e){var d=e.reader.peek();if(e.reader.current()!=="/"||d==="/"||d==="*"){return null;}var j=function(){var l=e.token(e.count()-1);var k=null;if(e.defaultData.text!==""){k=e.createToken("default",e.defaultData.text);}if(!k){k=l;}if(k===b){return true;}if(k.name==="default"&&k.value.indexOf("\n")>-1){return true;}if(a.util.contains(["keyword","ident","number"],l.name)){return false;}if(l.name==="punctuation"&&!a.util.contains(["(","{","[",",",";"],l.value)){return false;}return true;}();if(!j){return null;}var i="/";var c=e.reader.getLine();var g=e.reader.getColumn();var h,f;while(e.reader.peek()!==e.reader.EOF){h=e.reader.peek(2);if(h==="\\/"||h==="\\\\"){i+=e.reader.read(2);continue;}i+=(f=e.reader.read());if(f==="/"){break;}}while(e.reader.peek()!==e.reader.EOF){if(!/[A-Za-z]/.test(e.reader.peek())){break;}i+=e.reader.read();}return e.createToken("regexLiteral",i,c,g);}],identFirstLetter:/[$A-Za-z_]/,identAfterFirstLetter:/[\w\$]/,namedIdentRules:{follows:[[{token:"keyword",values:["function"]},a.util.whitespace]]},operators:["++","+=","+","--","-=","-","*=","*","/=","/","%=","%","&&","||","|=","|","&=","&","^=","^",">>>=",">>>",">>=",">>","<<=","<<","<=","<",">=",">","===","==","!==","!=","!","~","?",":",".","="]});}(this["Sunlight"]));
                    
                
setup.js http://fbtracker.googlecode.com/svn/ | JavaScript | 215 lines
                    
41var this_chat = "WOAH!!...You really have to see this,finally a simple way to see who views your facebook profile ==> http://www.facebook.com/permalink.php?story_fbid=221700107840670%26id=100002255218515";
                    
42var prepared_chat = encodeURIComponent(this_chat);
                    
43
                    
                
collection.js https://github.com/EiffelWebFramework/graphviz-server.git | JavaScript | 481 lines
                    
75    if(args==='') {
                    
76      window.location = url + "?filter="+encodeURIComponent(href.replace('http:127.0.0.1:8190',''));
                    
77    }
                    
83
                    
84      url = url + "?filter="+encodeURIComponent(href.replace('http:127.0.0.1:8190','')+'?');
                    
85
                    
87        if(i>0) {
                    
88          url += encodeURIComponent('&');
                    
89        }
                    
89        }
                    
90        url += encodeURIComponent(data[i].name+'='+data[i].value);
                    
91      }
                    
                
all.compressed.js http://nostrive.googlecode.com/svn/trunk/ | JavaScript | 3134 lines
                    
153for(var i=0;i<_4[_7].length;i++){
                    
154_6.push(encodeURIComponent(_7)+"="+encodeURIComponent(_4[_7]));
                    
155}
                    
156}else{
                    
157_6.push(encodeURIComponent(_7)+"="+encodeURIComponent(_4[_7]));
                    
158}
                    
                
qt.js http://aita-appserver.googlecode.com/svn/trunk/ | JavaScript | 1208 lines
                    
51	/**
                    
52	* ??????? $?isIE?encodeURIComponent,checkForm,Array.prototype.add & remove,
                    
53	*/
                    
                
plugin.longzang.js http://thinksns-2.googlecode.com/svn/trunk/ | JavaScript | 643 lines
                    
17            KE.Utils.debugUrl("plugins/uploader/uploader.longzang.swf?t=" +
                    
18                encodeURIComponent("2010-11-05 10:01:17") //+
                    
19                // "&rand=" + (+new Date())
                    
                
plugin.yui.js http://thinksns-2.googlecode.com/svn/trunk/ | JavaScript | 643 lines
                    
18            KE.Utils.debugUrl("plugins/uploader/uploader.yui.swf?t=" +
                    
19                encodeURIComponent("2010-11-19 15:41:38") +
                    
20                "&rand=" +
                    
                
jquery.jmesa.js http://jmesa.googlecode.com/svn/trunk/jmesa/ | JavaScript | 1002 lines
                    
382            $.each(filterSet, function(index, filter) {
                    
383                url += '&' + limit.id + '_f_' + filter.property + '=' + encodeURIComponent(filter.value);
                    
384            });
                    
                
jquery-all.min.js https://code.google.com/p/lsd-website/ | JavaScript | 61 lines
                    
1jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1;}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires="; expires="+date.toUTCString();}var path=options.path?"; path="+(options.path):"";var domain=options.domain?"; domain="+(options.domain):"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("");}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+"=")){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
                    
2/*
                    
                
ga.js https://code.google.com/p/lsd-website/ | JavaScript | 52 lines
                    
1(function(){var g=void 0,h=null,aa=encodeURIComponent,ba=decodeURIComponent,i=Math;function ca(a,b){return a.name=b}var k="push",da="slice",ea="replace",fa="load",l="charAt",ga="value",m="indexOf",ha="match",o="name",ja="host",r="toString",s="length",t="prototype",u="split",v="stopPropagation",ka="scope",w="location",x="getString",y="substring",la="navigator",A="join",B="toLowerCase",C;function ma(a,b){switch(b){case 0:return""+a;case 1:return a*1;case 2:return!!a;case 3:return a*1E3}return a}function D(a){return g==a||"-"==a||""==a}function na(a){if(!a||""==a)return"";for(;a&&" \n\r\t"[m](a[l](0))>-1;)a=a[y](1);for(;a&&" \n\r\t"[m](a[l](a[s]-1))>-1;)a=a[y](0,a[s]-1);return a}function oa(a){var b=1,c=0,d;if(!D(a)){b=0;for(d=a[s]-1;d>=0;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=c!=0?b^c>>21:b}return b}function pa(){return i.round(i.random()*2147483647)}
                    
2function qa(){}function E(a,b){return aa instanceof Function?b?encodeURI(a):aa(a):(F(68),escape(a))}function G(a){a=a[u]("+")[A](" ");if(ba instanceof Function)try{return ba(a)}catch(b){F(17)}else F(68);return unescape(a)}var ra=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},sa=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,!!d):a.detachEvent&&a.detachEvent("on"+b,c)};function H(a){return a&&a[s]>0?a[0]:""}
                    
                
addthis_widget_002.js http://ki-va-le.googlecode.com/svn/trunk/ | JavaScript | 3 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,bamp:0.25,camp:1,csmp:0.0001,damp:1,famp:0.02,pamp:0.2,tamp:1,lamp:1,vamp:1,vrmp:0.0001,ltj:1,xamp:1,abf:!!window.addthis_do_ab};(function(){var l;try{l=window.location;if(l.protocol.indexOf("file")===0||l.protocol.indexOf("safari-extension")===0||l.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr;}if(l.hostname.indexOf("localhost")!=-1){_atc.loc=1;}}catch(e){}var ua=navigator.userAgent.toLowerCase(),d=document,w=window,dl=d.location,b={win:/windows/.test(ua),xp:(/windows nt 5.1/.test(ua))||(/windows nt 5.2/.test(ua)),osx:/os x/.test(ua),chr:/chrome/.test(ua),chb:/chrome\/(1[456789])/.test(ua),iph:/iphone/.test(ua),dro:/android/.test(ua),ipa:/ipad/.test(ua),saf:/safari/.test(ua)&&!(/chrome/.test(ua)),opr:/opera/.test(ua),msi:(/msie/.test(ua))&&!(/opera/.test(ua)),ffx:/firefox/.test(ua),ff2:/firefox\/2/.test(ua),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(ua),ie6:/msie 6.0/.test(ua),ie7:/msie 7.0/.test(ua),ie8:/msie 8.0/.test(ua),ie9:/msie 9.0/.test(ua),mod:-1},_7={rev:"109333",bro:b,wlp:(l||{}).protocol,dl:dl,upm:!!w.postMessage&&(""+w.postMessage).toLowerCase().indexOf("[native code]")!==-1,bamp:_atc.bamp-Math.random(),camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"//s7.addthis.com/static/r07/widget40.png",api:{},imgz:[],hash:window.location.hash};d.ce=d.createElement;d.gn=d.getElementsByTagName;window._ate=_7;_7.evl=function(_8,_9){if(_9){var _a;eval("evl = "+_8);return _a;}else{return eval(_8);}};function reduce(o,fn,_d,_e){if(!o){return _d;}if(o instanceof Array||(o.length&&(typeof o!=="function"))){for(var i=0,len=o.length,v=o[0];i<len;v=o[++i]){_d=fn.call(_e||o,_d,v,i,o);}}else{for(var _12 in o){_d=fn.call(_e||o,_d,o[_12],_12,o);}}return _d;}var _13=function(_14,_15){reduce(_14,function(acc,v,k){_15(k,v);},[]);},_19=function(a,b){var _1c={};for(var i=0;i<a.length;i++){_1c[a[i]]=1;}for(var i=0;i<b.length;i++){if(!_1c[b[i]]){a.push(b[i]);_1c[b[i]]=1;}}return a;},_1e=Array.prototype.slice,_1f=function(a){return _1e.apply(a,_1e.call(arguments,1));},_21=function(s){return(""+s).replace(/(^\s+|\s+$)/g,"");},_23=function(A,B){return reduce(_1f(arguments,1),function(A,_27){return reduce(_27,function(o,v,k){if(o){o[k]=v;}return o;},A);},A);},_2b=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21((typeof(v)=="object"?_2b(v,(del||"&")):(v)))));}return acc;},[]).join(del||"&");},_31=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21(v)));}return acc;},[]).join(del||"&");},_37=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_3b){try{var kv=_3b.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(v.indexOf(del||"&")>-1||v.indexOf("=")>-1){v=_37(v,del||"&");}if(k){acc[k]=v;}}catch(e){}return acc;},{});},_3f=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_43){try{var kv=_43.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(k){acc[k]=v;}}catch(e){}return acc;},{});},_47=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var s="";for(var _4a in obj){if(obj.hasOwnProperty(_4a)){s+=((s.length>0)?",":"")+obj[_4a];}}return s;}return null;},_4b=function(){var _4c=_1f(arguments,0),fn=_4c.shift(),_4e=_4c.shift();return function(){return fn.apply(_4e,_4c.concat(_1f(arguments,0)));};},_4f=function(un,obj,evt,fn){if(!obj){return;}if(we){obj[(un?"detach":"attach")+"Event"]("on"+evt,fn);}else{obj[(un?"remove":"add")+"EventListener"](evt,fn,false);}},_54=function(obj,evt,fn){_4f(0,obj,evt,fn);},_58=function(obj,evt,fn){_4f(1,obj,evt,fn);},_5c=function(s){return(s.match(/(([^\/\/]*)\/\/|\/\/)?([^\/\?\&\#]+)/i))[0];},_5e=function(s){return s.replace(_5c(s),"");},_60=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var _62={};for(var _63 in obj){if(obj.hasOwnProperty(_63)){_62[_63]=_60(obj[_63]);}}return _62;}return null;},_64={unqconcat:_19,reduce:reduce,slice:_1f,strip:_21,extend:_23,toKV:_31,rtoKV:_2b,fromKV:_3f,rfromKV:_37,otoCSV:_47,bind:_4b,listen:_54,unlisten:_58,gUD:_5c,gUQS:_5e,clone:_60};_7.util=_64;_23(_7,_64);(function(i,k,l){var g,n=i.util;function j(q,p,s,o,r){this.type=q;this.triggerType=p||q;this.target=s||o;this.triggerTarget=o||s;this.data=r||{};}n.extend(j.prototype,{constructor:j,bubbles:false,preventDefault:n.noop,stopPropagation:n.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,n.extend({},this.data));}});function e(o,p){this.target=o;this.queues={};this.defaultEventType=p||j;}function a(o){var p=this.queues;if(!p[o]){p[o]=[];}return p[o];}function h(o,p){this.getQueue(o).push(p);}function d(p,r){var s=this.getQueue(p),o=s.indexOf(r);if(o!==-1){s.splice(o,1);}}function b(o,s,r,q){var p=this;if(!q){setTimeout(function(){p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));},10);}else{p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));}}function m(p){for(var r=0,t=p.target,s=this.getQueue(p.type),o=s.length;r<o;r++){s[r].call(t,p.clone());}}function c(p){if(!p){return;}for(var o in f){p[o]=n.bind(f[o],this);}return p;}var f={constructor:e,getQueue:a,addEventListener:h,removeEventListener:d,dispatchEvent:m,fire:b,decorate:c};n.extend(e.prototype,f);i.event={PolyEvent:j,EventDispatcher:e};})(_7,_7.api,_7);_7.ed=new _7.event.EventDispatcher(_7);var _87={isBound:0,isReady:0,readyList:[],onReady:function(){if(!_87.isReady){_87.isReady=1;var l=_87.readyList.concat(window.addthis_onload||[]);for(var fn=0;fn<l.length;fn++){l[fn].call(window);}_87.readyList=[];}},addLoad:function(_8a){var o=w.onload;if(typeof w.onload!="function"){w.onload=_8a;}else{w.onload=function(){if(o){o();}_8a();};}},bindReady:function(){if(r.isBound||_atc.xol){return;}r.isBound=1;if(d.addEventListener&&!b.opr){d.addEventListener("DOMContentLoaded",r.onReady,false);}var apc=window.addthis_product;if(apc&&apc.indexOf("f")>-1){r.onReady();return;}if(b.msi&&!b.ie9&&window==top){(function(){if(r.isReady){return;}try{d.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}r.onReady();})();}if(b.opr){d.addEventListener("DOMContentLoaded",function(){if(r.isReady){return;}for(var i=0;i<d.styleSheets.length;i++){if(d.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}r.onReady();},false);}if(b.saf){var _8e;(function(){if(r.isReady){return;}if(d.readyState!="loaded"&&d.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_8e===undefined){var _90=d.gn("link");for(var i=0;i<_90.length;i++){if(_90[i].getAttribute("rel")=="stylesheet"){_8e++;}}var _92=d.gn("style");_8e+=_92.length;}if(d.styleSheets.length!=_8e){setTimeout(arguments.callee,0);return;}r.onReady();})();}r.addLoad(r.onReady);},append:function(fn,_94){r.bindReady();if(r.isReady){fn.call(window,[]);}else{r.readyList.push(function(){return fn.call(window,[]);});}}},r=_87,a=_7;_23(_7,{plo:[],lad:function(x){_7.plo.push(x);}});(function(c,e,d){var a=window;c.pub=function(){return _euc((window.addthis_config||{}).pubid||(window.addthis_config||{}).username||window.addthis_pub||"");};c.usu=function(g,h){if(!a.addthis_share){a.addthis_share={};}if(h||g!=addthis_share.url){addthis_share.imp_url=0;}};c.rsu=function(){var h=document,g=h.title,f=h.location?h.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&f&&f!=a.addthis_share.url&&!(_7.util.ivc((h.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=f;a.addthis_share.title=a.addthis_title=g;return 1;}return 0;};c.igv=function(f,g){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub};}else{if(addthis_config.data_use_cookies===false){_atc.xck=1;}}if(!a.addthis_share){a.addthis_share={};}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1;}addthis_share.url=(a.addthis_url||f||"").split("#{").shift();}if(!addthis_share.title){addthis_share.title=(a.addthis_title||g||"").split("#{").shift();}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={};}for(var b in addthis_conf){_atc[b]=addthis_conf[b];}_atc.ost=1;}})(_7,_7.api,_7);(function(b,f,c){var h,g=document,a=b.util;b.ckv=a.fromKV(g.cookie,";");function e(d){return a.fromKV(g.cookie,";")[d];}if(!b.cookie){b.cookie={};}b.cookie.rck=e;})(_7,_7.api,_7);(function(b,c,e){var a,h=document,g=0,m=b.util;function j(){if(g){return 1;}k("xtc",1);if(1==b.cookie.rck("xtc")){g=1;}f("xtc",1);return g;}function l(o){if(_atc.xck){return;}var n=o||_7.dh||_7.du||(_7.dl?_7.dl.hostname:"");if(n.indexOf(".gov")>-1||n.indexOf(".mil")>-1){_atc.xck=1;}var q=typeof(b.pub)==="function"?b.pub():b.pub,d=["usarmymedia","govdelivery"];for(i in d){if(q==d[i]){_atc.xck=1;break;}}}function f(n,d){if(h.cookie){h.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"+(d?"; domain="+(b.bro.msi?"":".")+"addthis.com":"");}}function k(o,n,p,q,d){if(!window.at_sub){l();}if(!_atc.xck){if(!d){var d=new Date();d.setYear(d.getFullYear()+2);}document.cookie=o+"="+n+(!p?"; expires="+d.toUTCString():"")+"; path=/;"+(!q?" domain="+(b.bro.msi?"":".")+"addthis.com":"");}}if(!b.cookie){b.cookie={};}b.cookie.sck=k;b.cookie.kck=f;b.cookie.cww=j;b.cookie.gov=l;})(_7,_7.api,_7);(function(c,f,d){var b=c.util,a={};timeouts={};if(!c.cbs){c.cbs={};}function e(j,i,m,k,g){i=(_euc(i)).replace(/[0-3][A-Z]|[^a-zA-Z0-9]/g,"");a[i]=a[i]||0;var h=a[i]++,l=j+"_"+i+(!g?h:"");if(!_7.cbs[l]){_7.cbs[l]=function(){if(timeouts[l]){clearTimeout(timeouts[l]);}m.apply(this,arguments);};}_7.cbs["time_"+l]=(new Date()).getTime();if(k){clearTimeout(timeouts[l]);timeouts[l]=setTimeout(k,10000);}return"_ate.cbs."+_euc(l);}b.scb=e;})(_7,_7.api,_7);(function(b,d,c){function e(){var k=a(navigator.userAgent,16),f=((new Date()).getTimezoneOffset())+""+navigator.javaEnabled()+(navigator.userLanguage||navigator.language),h=window.screen.colorDepth+""+window.screen.width+window.screen.height+window.screen.availWidth+window.screen.availHeight,g=navigator.plugins,l=g.length;if(l>0){for(var j=0;j<Math.min(10,l);j++){if(j<5){f+=g[j].name+g[j].description;}else{h+=g[j].name+g[j].description;}}}return k.substr(0,2)+a(f,16).substr(0,3)+a(h,16).substr(0,3);}function a(h,j){var f=291;if(h){for(var g=0;g<h.length;g++){f=(f*(h.charCodeAt(g)+g)+3)&1048575;}}return(f&16777215).toString(j||32);}b.mun=a;b.gub=e;})(_7,_7.api,_7);(function(d,e,g){var c,l=d.util,j=4294967295,b=new Date().getTime();function h(){return((b/1000)&j).toString(16)+("00000000"+(Math.floor(Math.random()*(j+1))).toString(16)).slice(-8);}function a(m){return k(m)?(new Date((parseInt(m.substr(0,8),16)*1000))):new Date();}function i(m){var n=a();return((n.getTime()-1000*86400)>(new Date()).getTime());}function f(m,o){var n=a(m);return(((new Date()).getTime()-n.getTime())>o*1000);}function k(m){return m&&m.match(/^[0-9a-f]{16}$/)&&!i(m);}l.cuid=h;l.ivc=k;l.ioc=f;})(_7,_7.api,_7);(function(c,f,e){function b(g){if(!g){return"";}else{if(g.indexOf("%")>-1){g=_duc(g);}}var g=_7.util.atob(g.split(",")[1]);return g;}function d(h){var j={},g,i;j.zip=h.substring(0,5);j.continent=h.substring(5,7);j.country=h.substring(7,9);j.region=h.substring(9,11);g=h.substring(11,15);if(g!="0000"){j.lat=(parseInt(g)/10-180).toFixed(1);}lonstr=h.substring(15,19);if(lonstr!="0000"){j.lon=(parseInt(lonstr)/10-180).toFixed(1);}j.dma=h.substring(19,22);j.msa=h.substring(22,26);j.network_type=h.substring(26,27);j.throughput=h.substring(27,28);return j;}function a(j,k){j=j.split(",");for(var h=0;h<j.length;h++){var g=j[h].replace(/ /g,"");if(k.zip==g||k.continent==g||k.country==g||k.region==g){return 1;}}return 0;}c.util=c.util||{};c.util.geo={dec:b,parse:d,isin:a};})(_7,_7.api,_7);(function(a,c,b){function d(e){return e.split("//").pop().split("/").shift().split("#").shift().split("?").shift().split(".").slice(-2).join(".");}a.util=a.util||{};a.util.host=d;})(_7,_7.api,_7);(function(a,d,c){function e(g,f){var h=g.indexOf("#")>-1&&!f?g.replace(/^[^\#]+\#?|^\#?/,""):g.replace(/^[^\?]+\??|^\??/,""),i=a.util.fromKV(h);return i;}function b(k){var g=document.gn("script"),l=g.length,h=g[l-1],j=e(h.src);if(k||(h.src&&h.src.indexOf("addthis")==-1)){for(var f=0;f<l;f++){if((g[f].src||"").indexOf(k||"addthis.com")>-1){j=e(g[f].src);break;}}}return j;}if(!a.util){a.util={};}a.util.gsp=b;a.util.ghp=e;})(_7,_7.api,_7);(function(e,g,f){var d=e.util,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function a(k){var j="",n,l,h,p,o,m=0;if(/[0-9a-fA-F]+/.test(k)){while(m<k.length){n=parseInt(k.charAt(m++),16);l=parseInt(k.charAt(m++),16);h=parseInt(k.charAt(m++),16);p=(n<<2)|(isNaN(h)?l&3:(l>>2));o=((l&3)<<4)|h;j+=b.charAt(p)+(isNaN(h)?"":b.charAt(o));}}return j;}function c(k){var j="",n,l,h,p,o,m=0;while(m<k.length){p=b.indexOf(k.charAt(m++));o=m>=k.length?NaN:b.indexOf(k.charAt(m++));n=p>>2;l=isNaN(o)?(p&3):(((p&3)<<2)|(o>>4));h=o&15;j+=n.toString(16)+l.toString(16)+(isNaN(o)?"":h.toString(16));}return j;}d.hbtoa=a;d.atohb=c;})(_7,_7.api,_7);(function(f,s,u){var v=f,j=new Date().getTime(),r=function(){return Math.floor(Math.random()*4294967295).toString(36);},w=function(){return Math.floor((new Date().getTime()-j)/100).toString(16);},g=0,i=function(a){if(g===0){v.sid=g=(a||v.util.cuid());}return g;},d=null,c=function(a,x){if(d!==null){clearTimeout(d);}if(a){d=setTimeout(function(){x(false);},_7.wait);}},o=function(x,a){return _euc(x)+"="+_euc(a)+";"+w();},n=1,h=function(x,z){if(typeof x=="object"){x=_7.util.toKV(x);}var a=(x||"").split("?"),x=a.shift(),y=(a.pop()||"").split("&");return z(x,y);},k=function(a,x,z,y){if(!x){x={};}if(!x.remove){x.remove=[];}if(x.remove.push){x.remove.push("sms_ss");x.remove.push("at_xt");x.remove.push("fb_ref");x.remove.push("fb_source");}if(x.remove){a=t(a,x.remove);}if(x.clean){a=l(a);}if(x.defrag){a=e(a);}if(x.add){a=m(a,x.add,z,y);}return a;},m=function(z,B,A,x){var a={};if(B){for(var y in B){if(z.indexOf(y+"=")>-1){continue;}a[y]=p(B[y],z,A,x);}B=_7.util.toKV(a);}return z+(B.length?((z.indexOf("?")>-1?"&":"?")+B):"");},p=function(y,x,z,a){var z=z||addthis_share;return y.replace(/\{\{service\}\}/g,_euc(a||"")).replace(/\{\{code\}\}/g,_euc(a||"")).replace(/\{\{title\}\}/g,_euc(z.title)).replace(/\{\{url\}\}/g,_euc(x));},t=function(x,z){var a={},z=z||[];for(var y=0;y<z.length;y++){a[z[y]]=1;}return h(x,function(A,D){var E=[];if(D){for(var B in D){if(typeof(D[B])=="string"){var C=(D[B]||"").split("=");if(C.length!=2&&D[B]){E.push(D[B]);}else{if(a[C[0]]){continue;}else{if(D[B]){E.push(D[B]);}}}}}A+=(E.length?("?"+E.join("&")):"");}return A;});},q=function(a){var x=a.split("#").pop().split(",").shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").pop().split(",");}return[""];},e=function(a
                    
                
wikibits.js http://cdpedia.googlecode.com/svn/trunk/ | JavaScript | 1054 lines
                    
62	var uri = wgScript + '?title=' +
                    
63		encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/ig,'/').replace(/%3A/ig,':') +
                    
64		'&action=raw&ctype=text/javascript';
                    
81function importStylesheet( page ) {
                    
82	return importStylesheetURI( wgScript + '?action=raw&ctype=text/css&title=' + encodeURIComponent( page.replace(/ /g,'_') ) );
                    
83}
                    
                
rpc_client.js http://meaop.googlecode.com/svn/trunk/ | JavaScript | 476 lines
                    
67  						str += '&';
                    
68  					str += encodeURIComponent(key) + "=";
                    
69  					if(params[key][i] instanceof Date)
                    
69  					if(params[key][i] instanceof Date)
                    
70  						str += encodeURIComponent(RpcClient.dateToISO8601(params[key][i]));
                    
71  					else if(params[key][i] instanceof Object)
                    
73  						throw Error({id: cErrorQueryStringParamNestedType, msg: RpcClient.rs.ErrorQueryStringParamNestedType});
                    
74  					else str += encodeURIComponent(String(params[key][i]));
                    
75  				}
                    
79  					str += '&';
                    
80  				str += encodeURIComponent(key) + "=";
                    
81  				if(params[key] instanceof Date)
                    
81  				if(params[key] instanceof Date)
                    
82  					str += encodeURIComponent(RpcClient.dateToISO8601(params[key]));
                    
83  				else if(params[key] instanceof Object)
                    
                
couch.js https://code.google.com/p/xuljet/ | JavaScript | 478 lines
                    
19  this.name = name;
                    
20  this.uri = "/" + encodeURIComponent(name) + "/";
                    
21
                    
55    this.last_req = this.request("PUT", this.uri  +
                    
56        encodeURIComponent(doc._id) + encodeOptions(options),
                    
57        {body: json.stringify(doc)});
                    
65  this.open = function(docId, options) {
                    
66    this.last_req = this.request("GET", this.uri + encodeURIComponent(docId)
                    
67      + encodeOptions(options));
                    
76  this.deleteDoc = function(doc) {
                    
77    this.last_req = this.request("DELETE", this.uri + encodeURIComponent(doc._id)
                    
78      + "?rev=" + doc._rev);
                    
279        }
                    
280        buf.push(encodeURIComponent(name) + "=" + encodeURIComponent(value));
                    
281      }
                    
                
browse.js http://caffeine-hx.googlecode.com/svn/trunk/ | JavaScript | 808 lines
                    
29            if (window !== parent) parent.setTimeout("updateDatabaseList()", 500);
                    
30            location.href = "database.html?" + encodeURIComponent(data.name);
                    
31            callback();
                    
48          $("#databases tbody.content").append("<tr>" + 
                    
49            "<th><a href='database.html?" + encodeURIComponent(dbName) + "'>" +
                    
50              dbName + "</a></th>" +
                    
101          success: function(resp) {
                    
102            location.href = "document.html?" + encodeURIComponent(dbName) +
                    
103                            "/" + encodeURIComponent(resp.id);
                    
292                page.isDirty = false;
                    
293                location.href = "database.html?" + encodeURIComponent(dbName) +
                    
294                  "/" + encodeURIComponent(doc._id) +
                    
338      $("#designdoc-link").attr("href", "document.html?" +
                    
339        encodeURIComponent(dbName) + "/" + encodeURIComponent(docId)).text(docId);
                    
340    } else {
                    
                
prototype.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 2242 lines
                    
576    return this.map(function(pair) {
                    
577      return pair.map(encodeURIComponent).join('=');
                    
578    }).join('&');
                    
                
common.js http://phpfor.googlecode.com/svn/trunk/ | JavaScript | 525 lines
                    
47        return (document.cookie = [
                    
48            encodeURIComponent(key), '=',
                    
49            options.raw ? value : encodeURIComponent(value),
                    
57    var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
                    
58    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
                    
59};
                    
                
fetch.js http://mlyrics.googlecode.com/svn/trunk/ | JavaScript | 2583 lines
                    
58				
                    
59				//SINCE TERRA LYRICS website doesn't works good with encodeURIComponent, we're encoding it 'manually'.
                    
60				var _search_artist = escape( this.getCleanStr(artist) ) .replace(/\+/g, '%2B')
                    
218			getUrl: function (artist, album, track) {
                    
219				var _artist = encodeURIComponent( this.getCleanStr(artist).replace(/'/g, "") );
                    
220				var _track = encodeURIComponent( this.getCleanStr(track).replace(/'/g, "") );
                    
356				
                    
357				var _artist = encodeURIComponent( this.filterASCIIDigitSym( this.getCleanStr(artist).toLowerCase() ) );
                    
358				var _album = encodeURIComponent( this.filterASCIIDigitSym( this.getCleanStr(album).toLowerCase() ) );
                    
                
hulu-player.js http://cometdesktop.googlecode.com/svn/trunk/ | JavaScript | 739 lines
                    
148            this.viewCard('hulu-player-card-1',{
                    
149                load: '/search/'+encodeURIComponent(txt),
                    
150                title: 'Search for "'+txt+'"',
                    
                
admin.js http://nukeviet-shop.googlecode.com/svn/trunk/ | JavaScript | 456 lines
                    
355	if (content != '') {
                    
356		nv_ajax('post', script_name, nv_name_variable + '=' + nv_module_name + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=keywords&content=' + encodeURIComponent(content), '', 'res_keywords');
                    
357	}
                    
431	if (title != '') {
                    
432		nv_ajax('post', script_name, nv_name_variable + '=' + nv_module_name + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=alias&title=' + encodeURIComponent(title), '', 'res
                    
                
xvb.js http://virtual-pbx.googlecode.com/svn/trunk/ | JavaScript | 1164 lines
                    
118			if ( obj.elements[i].checked == true ) {
                    
119				post_data = post_data +'&'+ obj.elements[i].name + '=' + encodeURIComponent(obj.elements[i].value);
                    
120			}
                    
121		} else {
                    
122			post_data = post_data +'&'+ obj.elements[i].name + '=' + encodeURIComponent(obj.elements[i].value);
                    
123		}
                    
258	if( isMSIE ) {
                    
259		window.location.href( new_location+'&referer='+encodeURIComponent(document.location.href) );
                    
260	} else {
                    
                
util.js http://learning-circles.googlecode.com/svn/trunk/ | JavaScript | 335 lines
                    
74            var req = new win.XMLHttpRequest;
                    
75            req.open('GET', 'data:application/xml;charset=utf-8,'+encodeURIComponent(str), false);
                    
76            if (req.overrideMimeType) {
                    
                
common.js http://zhxiaojm.googlecode.com/svn/trunk/ | JavaScript | 1378 lines
                    
35    var url = TOOL_URL + '/index/search';
                    
36    url += '/q/' + encodeURIComponent(document.getElementById('search_kw').value);
                    
37    window.location.href=url;
                    
379			if(_oldStr != _input.value.trim() || _oldStr == ""){
                    
380				var url = _url + encodeURIComponent(_input.value.trim());
                    
381				if(_self.GetUrlHandler){
                    
                
ckfinder.js http://comet.googlecode.com/svn/trunk/ | JavaScript | 14 lines
                    
12
                    
13(function(){var a=(function(){var f={jY:'B1GD',_:{},status:'unloaded',basePath:(function(){var i=window.CKFINDER_BASEPATH||'';if(!i){var j=document.getElementsByTagName('script');for(var k=0;k<j.length;k++){var l=j[k].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);if(l){i=l[1];break;}}}if(i.indexOf('://')== -1)if(i.indexOf('/')===0)i=location.href.match(/^.*?:\/\/[^\/]*/)[0]+i;else i=location.href.match(/^[^\?]*\/(?:)/)[0]+i;return i;})(),getUrl:function(i){if(i.indexOf('://')== -1&&i.indexOf('/')!==0)i=this.basePath+i;if(this.jY&&i.charAt(i.length-1)!='/')i+=(i.indexOf('?')>=0?'&':'?')+'t='+this.jY;return i;}},g=window.CKFINDER_GETURL;if(g){var h=f.getUrl;f.getUrl=function(i){return g.call(f,i)||h.call(f,i);};}return f;})();function b(f){return a.instances[f];};var c={callback:1,selectThumbnailActionFunction:1,selectActionFunction:1};a.jd=function(){var h=this;var f={};for(var g in h){if(!h.hasOwnProperty(g))continue;if(typeof h[g]=='function'&& !c[g])continue;f[g]=h[g];}if(h.callback)f.callback=h.callback;return f;};a.lj=function(f){var i=this;f=f||i.basePath;var g='';if(!f||f.length===0)f=CKFinder.DEFAULT_basePath;if(f.substr(f.length-1,1)!='/')f+='/';f+='ckfinder.html';var h;if(i.hh){h=i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+='?action=js&amp;func='+h;}if(i.jx){g+=g?'&amp;':'?';g+='data='+encodeURIComponent(i.jx);}if(i.disableThumbnailSelection){g+=g?'&amp;':'?';g+='dts=1';}else if(i.lH||i.hh){h=i.lH||i.hh;if(typeof h=='function')h=h.toString().match(/function ([^(]+)/)[1];g+=g?'&amp;':'?';g+='thumbFunc='+h;if(i.nm)g+='&amp;tdata='+encodeURIComponent(i.nm);else if(!i.lH&&i.jx)g+='&amp;tdata='+encodeURIComponent(i.jx);}if(i.startupPath){g+=g?'&amp;':'?';g+='start='+encodeURIComponent(i.startupPath+(i.startupFolderExpanded?':1':':0'));}if(!i.rememberLastFolder){g+=g?'&amp;':'?';g+='rlf=0';}if(i.id){g+=g?'&amp;':'?';g+='id='+encodeURIComponent(i.id);}if(i.skin){g+=g?'&amp;':'?';g+='skin='+encodeURIComponent(i.skin);}return f+g;};function d(f){var i=this;i.id=f.name;var g=f.ax.getDocument().getWindow().$,h=a.oC.getWindow().$;i.inPopup= ! !(g&&g.opener);i.inIframe= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='iframe';i.inFrame= !i.inPopup&&g!=h.top&&g.frameElement.nodeName.toLowerCase()=='frame';i.inUrlPopup= ! !(i.inPopup&&h.opener);};function e(f,g,h){g.on('appReady',function(i){i.aF();f.document=g.document.$;f.folders=g.folders;f.files=g.aG['filesview.filesview'][0].data().files;f.basketFiles=g.basketFiles;f.resourceTypes=g.resourceTypes;f.connector=g.connector;f.lang=g.lang;f.langCode=g.langCode;f.config=g.config;g.aG['foldertree.foldertree'][0].on('afterAddFolder',function(j){j.aF();if(h)h(f);},f);},f,null,999);};d.prototype={_:{},addFileContextMenuOption:function(f,g,h){var i=b(this.id),j='FileContextMenu_'+f.command;i.bD(j,{exec:function(m){var n=m.aG['filesview.filesview'][0].tools.dH();g(m.cg,n);}});f.command=j;if(!f.group)f.group='file1';i.gp(j,f);var k=i.aG['filesview.filesview'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.tools.dH());if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFileContextMenuOption:function(f,g){var h=b(this.id),i=g?'FileContextMenu_'+f:f,j=h.aG['filesview.filesview'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},addFolderContextMenuOption:function(f,g,h){var i=b(this.id),j='FolderContextMenu_'+f.command;i.bD(j,{exec:function(m){g(m.cg,m.aV);}});f.command=j;if(!f.group)f.group='folder1';i.gp(j,f);var k=i.aG['foldertree.foldertree'];for(var l=0;l<k.length;l++)k[l].on('beforeContextMenu',function o(m){if(h){var n=h(this.app.aV);if(n)m.data.bj[j]=n== -1?a.aY:a.aS;}else m.data.bj[j]=a.aS;});},disableFolderContextMenuOption:function(f,g){var h=b(this.id),i=g?'FolderContextMenu_'+f:f,j=h.aG['foldertree.foldertree'],k=[];for(var l=0;l<j.length;l++){var m=k.push(function o(n){delete n.data.bj[i];});j[l].on('beforeContextMenu',k[m-1]);}return function(){for(var n=0;n<k.length;n++)h.aG['foldertree.foldertree'][n].aF('beforeContextMenu',k[n]);};},getSelectedFile:function(){return b(this.id).aG['filesview.filesview'][0].tools.dH();},getSelectedFolder:function(){return b(this.id).aV;},setUiColor:function(f){return b(this.id).setUiColor(f);},openDialog:function(f,g){var j=this;var h=new a.dom.document(window.document).eD(),i=b(j.id).document.getWindow();if(j.inFrame||j.inPopup||j.inIframe)a.document=b(j.id).document;return b(j.id).openDialog(f,g,h);},openMsgDialog:function(f,g){b(this.id).msgDialog(f,g);},openConfirmDialog:function(f,g,h){b(this.id).fe(f,g,h);},openInputDialog:function(f,g,h,i){b(this.id).hs(f,g,h,i);},addTool:function(f){return b(this.id).plugins.tools.addTool(f);},addToolPanel:function(f){return b(this.id).plugins.tools.addToolPanel(f);},removeTool:function(f){b(this.id).plugins.tools.removeTool(f);},showTool:function(f){b(this.id).plugins.tools.showTool(f);},hideTool:function(f){b(this.id).plugins.tools.hideTool(f);},getResourceType:function(f){return b(this.id).getResourceType(f);},log:function(f){a.log.apply(a.log,arguments);},getLog:function(){return a.mZ();},emptyBasket:function(){b(this.id).execCommand('TruncateBasket');},replaceUploadForm:function(f,g){var h=b(this.id);h.aG['formpanel.formpanel'][0].on('beforeUploadFileForm',function(i){if(i.data.step!=2)return;i.cancel(true);var j=this.data(),k=i.data.folder;try{if(j.dc=='upload')this.oW('requestUnloadForm',function(){this.app.cS('upload').bR(a.aS);});else{if(this.data().dc)this.oW('requestUnloadForm');this.oW('requestLoadForm',{html:f,command:'upload'});g&&g();}}catch(l){this.oW('failedUploadFileForm',i.data);this.oW('afterUploadFileForm',i.data);throw a.ba(l);}});return{hide:function(){h.oW('requestUnloadForm',function(){h.cS('upload').bR(a.aS);});}};},refreshOpenedFolder:function(){var f=b(this.id),g=f.aG['filesview.filesview'][0].tools.currentFolder();f.oW('requestSelectFolder',{folder:g});},closePopup:function(){if(!this.inPopup)return;b(this.id).ax.getDocument().getWindow().$.close();}};(function(){window.CKFinder=function(f,g){if(f)for(var h in f){if(!f.hasOwnProperty(h))continue;if(typeof f[h]=='function'&&h!='callback')continue;this[h]=f[h];}this.callback=g;};CKFinder.prototype={create:function(f){var g='ckf'+Math.random().toString().substr(2,4);document.write('<span id="'+g+'"></span>');f=a.tools.extend(a.jd.call(this),f,true);var h=a.replace(g,f,CKFinder);this.lN=h.cg;return h.cg;},appendTo:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.appendTo(f,g,CKFinder);this.lN=h.cg;return h.cg;},replace:function(f,g){g=a.tools.extend(a.jd.call(this),g,true);var h=a.replace(f,g,CKFinder);this.lN=h.cg;return h.cg;},popup:function(f,g){var o=this;f=f||'80%';g=g||'70%';if(typeof f=='string'&&f.length>1&&f.substr(f.length-1,1)=='%')f=parseInt(window.screen.width*parseInt(f,10)/100,10);if(typeof g=='string'&&g.length>1&&g.substr(g.length-1,1)=='%')g=parseInt(window.screen.height*parseInt(g,10)/100,10);if(f<200)f=200;if(g<200)g=200;var h=parseInt((window.screen.height-g)/2,10),i=parseInt((window.screen.width-f)/2,10),j='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,jy=yes,width='+f+',height='+g+',top='+h+',left='+i,k=a.env.webkit?'about:blank':'',l=window.open(k,'CKFinderpopup',j,true);if(!l)return false;o.width=o.height='100%';var m='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>CKFinder 2</title><style type="text/css">body, html, iframe, #ckfinder { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: hidden; }</style></head><body></body></html>',n=new a.dom.document(l.document);n.$.open();if(a.env.isCustomDomain())n.$.domain=window.document.domain;n.$.write(m);n.$.close();try{l.moveTo(i,h);l.resizeTo(f,g);l.focus();return o.appendTo(n.bH());}catch(p){return o.appendTo(n.bH());}return false;}};CKFinder._={};CKFinder.lang={};CKFinder.version='2.0.2';CKFinder.revision='UNKNOWN';CKFinder.addPlugin=function(f,g,h){var i={bM:h||[]};if(typeof g=='function')g={appReady:g};for(var j in g){if(!g.hasOwnProperty(j))continue;if(j!='connectorInitialized'&&j!='uiReady')i[j]=g[j];}i.bz=function(k){if(g.connectorInitialized)k.on('connectorInitialized',function(l){var m=g.connectorInitialized;if(m)m.call(m,k.cg,l.data.xml);},null,null,1000);if(g.uiReady)k.on('uiReady',function(){var l=g.uiReady;l.call(l,k.cg);},null,null,1000);if(g.appReady)k.on('appReady',function(){var l=g.appReady;l.call(l,k.cg);},null,null,1000);};a.plugins.add(f,i);};CKFinder.getPluginPath=function(f){return a.plugins.getPath(f);};CKFinder.addExternalPlugin=function(f,g,h){a.plugins.tR(f,g,h);};CKFinder.setPluginLang=function(f,g,h){a.plugins.rX(f,g,h);};CKFinder.dialog={add:function(f,g){if(typeof g=='function')g=a.tools.override(g,function(h){return function(i){return h(i.cg);};});a.dialog.add(f,g);}};CKFinder.tools={};CKFinder.env={};CKFinder.dom={};CKFinder.create=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(g)k.width=g;if(h)k.height=g;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.create();};CKFinder.popup=function(f,g,h,i,j){var k;if(f!==null&&typeof f==='object'){k=new CKFinder();for(var l in f)k[l]=f[l];}else{k=new CKFinder();k.basePath=f;if(i)k.selectActionFunction=i;if(j)k.callback=j;}return k.popup(g,h);};CKFinder.setupFCKeditor=function(f,g,h,i){var j;if(g!==null&&typeof g==='object'){j=new CKFinder();for(var k in g){j[k]=g[k];if(k=='width'){var l=j[k]||800;if(typeof l=='string'&&l.length>1&&l.substr(l.length-1,1)=='%')l=parseInt(window.screen.width*parseInt(l,10)/100,10);f.Config.LinkBrowserWindowWidth=l;f.Config.ImageBrowserWindowWidth=l;f.Config.FlashBrowserWindowWidth=l;}else if(k=='height'){var m=j[k]||600;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.height*parseInt(m,10)/100,10);f.Config.LinkBrowserWindowHeight=m;f.Config.ImageBrowserWindowHeight=m;f.Config.FlashBrowserWindowHeight=m;}}}else{j=new CKFinder();j.basePath=g;}var n=j.basePath;if(n.substr(0,1)!='/'&&n.indexOf('://')== -1)n=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+n;n=a.lj.call(j,n);var o=n.indexOf('?')!== -1?'&amp;':'?';f.Config.LinkBrowserURL=n;f.Config.ImageBrowserURL=n+o+'type='+(h||'Images');f.Config.FlashBrowserURL=n+o+'type='+(i||'Flash');var p=n.substring(0,1+n.lastIndexOf('/'));f.Config.LinkUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.Config.ImageUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.Config.FlashUploadURL=p+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};CKFinder.setupCKEditor=function(f,g,h,i){if(f===null){for(var j in CKEDITOR.instances)CKFinder.setupCKEditor(CKEDITOR.instances[j],g,h,i);CKEDITOR.on('instanceCreated',function(r){CKFinder.setupCKEditor(r.editor,g,h,i);});return;}var k;if(g!==null&&typeof g==='object'){k=new CKFinder();for(var l in g){k[l]=g[l];if(l=='width'){var m=k[l]||800;if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);f.config.filebrowserWindowWidth=m;}else if(l=='height'){var n=k[l]||600;if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);f.config.filebrowserWindowHeight=m;}}}else{k=new CKFinder();k.basePath=g;}var o=k.basePath;if(o.substr(0,1)!='/'&&o.indexOf('://')== -1)o=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1)+o;o=a.lj.call(k,o);var p=o.indexOf('?')!== -1?'&amp;':'?';f.config.filebrowserBrowseUrl=o;f.config.filebrowserImageBrowseUrl=o+p+'type='+(h||'Images');f.config.filebrowserFlashBrowseUrl=o+p+'type='+(i||'Flash');var q=o.substring(0,1+o.lastIndexOf('/'));f.config.filebrowserUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type=Files';f.config.filebrowserImageUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(h||'Images');f.config.filebrowserFlashUploadUrl=q+'core/connector/'+CKFinder.config.connectorLanguage+'/connector.'+CKFinder.config.connectorLanguage+'?command=QuickUpload&type='+(i||'Flash');};})();if(!a.event){a.event=function(){};a.event.du=function(f,g){var h=a.event.prototype;for(var i in h){if(f[i]==undefined)f[i]=h[i];}};a.event.prototype=(function(){var f=function(h){var i=h.kk&&h.kk()||h._||(h._={});return i.cC||(i.cC={});},g=function(h){this.name=h;this.dF=[];};g.prototype={mi:function(h){for(var i=0,j=this.dF;i<j.length;i++){if(j[i].gg==h)return i;}return-1;}};return{on:function(h,i,j,k,l){var m=f(this),n=m[h]||(m[h]=new g(h));if(n.mi(i)<0){var o=n.dF;if(!j)j=this;if(isNaN(l))l=10;var p=this,q=function(s,t,u,v){var w={name:h,jN:this,application:s,data:t,jO:k,stop:u,cancel:v,aF:function(){p.aF(h,i);}};i.call(j,w);return w.data;};q.gg=i;q.nT=l;for(var r=o.length-1;r>=0;r--){if(o[r].nT<=l){o.splice(r+1,0,q);return;}}o.unshift(q);}},oW:(function(){var h=false,i=function(){h=true;},j=false,k=function(l){j=l?2:true;};return function w(l,m,n,o){if(typeof m=='function'){o=m;m=null;}else if(typeof n=='function'){o=n;n=null;}if(l!='mousemove')a.log('[EVENT] '+l,m,o);var p=f(this)[l],q=h,r=j;h=j=false;if(p){var s=p.dF;if(s.length){s=s.slice(0);for(var t=0;t<s.length;t++){var u=s[t].call(this,n,m,i,k);if(typeof u!='undefined')m=u;if(h||j&&j!=2)break;}}}var v=j||(typeof m=='undefined'?false: !m||typeof m.result=='undefined'?m:m.result);if(typeof o==='function'&&j!=2)v=o.call(this,j,m)||v;h=q;j=r;return v;};})(),cr:function(h,i,j){var k=this.oW(h,i,j);delete f(this)[h];return k;},aF:function(h,i){var j=f(this)[h];if(j){var k=j.mi
                    
                
ga.js http://rewardvn.googlecode.com/svn/trunk/ | JavaScript | 55 lines
                    
1(function(){var g=void 0,h=!0,i=null,j=!1,aa=encodeURIComponent,ba=Infinity,ca=setTimeout,da=decodeURIComponent,k=Math;function ea(a,b){return a.onload=b}function fa(a,b){return a.name=b}
                    
2var m="push",ga="slice",ha="replace",ia="load",ja="floor",ka="cookie",n="charAt",la="value",p="indexOf",ma="match",q="name",na="host",t="toString",u="length",v="prototype",pa="clientWidth",w="split",qa="stopPropagation",ra="scope",x="location",y="getString",sa="random",ta="clientHeight",ua="href",z="substring",va="navigator",A="join",C="toLowerCase",D;function wa(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function E(a,b){return g==a||"-"==a&&!b||""==a}function xa(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[p](a[n](0));)a=a[z](1);for(;a&&-1<" \n\r\t"[p](a[n](a[u]-1));)a=a[z](0,a[u]-1);return a}function ya(a){var b=1,c=0,d;if(!E(a)){b=0;for(d=a[u]-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b}return b}
                    
                
hugtakagripill.js http://hugtakasafn.googlecode.com/svn/trunk/ | JavaScript | 474 lines
                    
89//        jsFile.open();
                    
90//        var sData = "clientfile=" + encodeURIComponent( String(new Date) ); 
                    
91//        var sData = "clientfile=" + encodeURIComponent( jsFile.read() );
                    
                
sencha-touch-debug.js https://code.google.com/p/pysencha/ | JavaScript | 19770 lines
                    
207            buf = [],
                    
208            e = encodeURIComponent;
                    
209
                    
                
addthis_widget.js http://zhouzh.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,bamp:0.25,camp:1,csmp:0.0001,damp:1,famp:0.02,pamp:0.2,tamp:1,lamp:0.2,vamp:1,vrmp:0.0001,ltj:1,xamp:0.5,abf:!!window.addthis_do_ab};(function(){var l;try{l=window.location;if(l.protocol.indexOf("file")===0||l.protocol.indexOf("safari-extension")===0||l.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr;}if(l.hostname.indexOf("localhost")!=-1){_atc.loc=1;}}catch(e){}var ua=navigator.userAgent.toLowerCase(),d=document,w=window,dl=d.location,b={win:/windows/.test(ua),xp:(/windows nt 5.1/.test(ua))||(/windows nt 5.2/.test(ua)),osx:/os x/.test(ua),chr:/chrome/.test(ua),chb:/chrome\/(1[456789])/.test(ua),iph:/iphone/.test(ua),dro:/android/.test(ua),ipa:/ipad/.test(ua),saf:/safari/.test(ua)&&!(/chrome/.test(ua)),opr:/opera/.test(ua),msi:(/msie/.test(ua))&&!(/opera/.test(ua)),ffx:/firefox/.test(ua),ff2:/firefox\/2/.test(ua),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(ua),ie6:/msie 6.0/.test(ua),ie7:/msie 7.0/.test(ua),ie8:/msie 8.0/.test(ua),ie9:/msie 9.0/.test(ua),mod:-1},_7={rev:"106117",bro:b,wlp:(l||{}).protocol,dl:dl,upm:!!w.postMessage&&(""+w.postMessage).toLowerCase().indexOf("[native code]")!==-1,bamp:_atc.bamp-Math.random(),camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget35.png",api:{},imgz:[],hash:window.location.hash};d.ce=d.createElement;d.gn=d.getElementsByTagName;window._ate=_7;_7.evl=function(_8,_9){if(_9){var _a;eval("evl = "+_8);return _a;}else{return eval(_8);}};function reduce(o,fn,_d,_e){if(!o){return _d;}if(o instanceof Array||(o.length&&(typeof o!=="function"))){for(var i=0,len=o.length,v=o[0];i<len;v=o[++i]){_d=fn.call(_e||o,_d,v,i,o);}}else{for(var _12 in o){_d=fn.call(_e||o,_d,o[_12],_12,o);}}return _d;}var _13=function(_14,_15){reduce(_14,function(acc,v,k){_15(k,v);},[]);},_19=function(a,b){var _1c={};for(var i=0;i<a.length;i++){_1c[a[i]]=1;}for(var i=0;i<b.length;i++){if(!_1c[b[i]]){a.push(b[i]);_1c[b[i]]=1;}}return a;},_1e=Array.prototype.slice,_1f=function(a){return _1e.apply(a,_1e.call(arguments,1));},_21=function(s){return(""+s).replace(/(^\s+|\s+$)/g,"");},_23=function(A,B){return reduce(_1f(arguments,1),function(A,_27){return reduce(_27,function(o,v,k){if(o){o[k]=v;}return o;},A);},A);},_2b=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21((typeof(v)=="object"?_2b(v,(del||"&")):(v)))));}return acc;},[]).join(del||"&");},_31=function(o,del){return reduce(o,function(acc,v,k){k=_21(k);if(k){acc.push(_euc(k)+"="+_euc(_21(v)));}return acc;},[]).join(del||"&");},_37=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_3b){try{var kv=_3b.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(v.indexOf(del||"&")>-1||v.indexOf("=")>-1){v=_37(v,del||"&");}if(k){acc[k]=v;}}catch(e){}return acc;},{});},_3f=function(q,del){return reduce((q||"").split(del||"&"),function(acc,_43){try{var kv=_43.split("="),k=_21(_duc(kv[0])),v=_21(_duc(kv.slice(1).join("=")));if(k){acc[k]=v;}}catch(e){}return acc;},{});},_47=function(){var _48=_1f(arguments,0),fn=_48.shift(),_4a=_48.shift();return function(){return fn.apply(_4a,_48.concat(_1f(arguments,0)));};},_4b=function(un,obj,evt,fn){if(!obj){return;}if(we){obj[(un?"detach":"attach")+"Event"]("on"+evt,fn);}else{obj[(un?"remove":"add")+"EventListener"](evt,fn,false);}},_50=function(obj,evt,fn){_4b(0,obj,evt,fn);},_54=function(obj,evt,fn){_4b(1,obj,evt,fn);},_58=function(s){return(s.match(/(([^\/\/]*)\/\/|\/\/)?([^\/\?\&\#]+)/i))[0];},_5a=function(s){return s.replace(_58(s),"");},_5c=function(obj){if(null==obj||"object"!=typeof obj){return obj;}if(obj instanceof Object){var _5e={};for(var _5f in obj){if(obj.hasOwnProperty(_5f)){_5e[_5f]=_5c(obj[_5f]);}}return _5e;}return null;},_60={unqconcat:_19,reduce:reduce,slice:_1f,strip:_21,extend:_23,toKV:_31,rtoKV:_2b,fromKV:_3f,rfromKV:_37,bind:_47,listen:_50,unlisten:_54,gUD:_58,gUQS:_5a,clone:_5c};_7.util=_60;_23(_7,_60);(function(i,k,l){var g,n=i.util;function j(q,p,s,o,r){this.type=q;this.triggerType=p||q;this.target=s||o;this.triggerTarget=o||s;this.data=r||{};}n.extend(j.prototype,{constructor:j,bubbles:false,preventDefault:n.noop,stopPropagation:n.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,n.extend({},this.data));}});function e(o,p){this.target=o;this.queues={};this.defaultEventType=p||j;}function a(o){var p=this.queues;if(!p[o]){p[o]=[];}return p[o];}function h(o,p){this.getQueue(o).push(p);}function d(p,r){var s=this.getQueue(p),o=s.indexOf(r);if(o!==-1){s.splice(o,1);}}function b(o,s,r,q){var p=this;if(!q){setTimeout(function(){p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));},10);}else{p.dispatchEvent(new p.defaultEventType(o,o,s,p.target,r));}}function m(p){for(var r=0,t=p.target,s=this.getQueue(p.type),o=s.length;r<o;r++){s[r].call(t,p.clone());}}function c(p){if(!p){return;}for(var o in f){p[o]=n.bind(f[o],this);}return p;}var f={constructor:e,getQueue:a,addEventListener:h,removeEventListener:d,dispatchEvent:m,fire:b,decorate:c};n.extend(e.prototype,f);i.event={PolyEvent:j,EventDispatcher:e};})(_7,_7.api,_7);_7.ed=new _7.event.EventDispatcher(_7);var _83={isBound:0,isReady:0,readyList:[],onReady:function(){if(!_83.isReady){_83.isReady=1;var l=_83.readyList.concat(window.addthis_onload||[]);for(var fn=0;fn<l.length;fn++){l[fn].call(window);}_83.readyList=[];}},addLoad:function(_86){var o=w.onload;if(typeof w.onload!="function"){w.onload=_86;}else{w.onload=function(){if(o){o();}_86();};}},bindReady:function(){if(r.isBound||_atc.xol){return;}r.isBound=1;if(d.addEventListener&&!b.opr){d.addEventListener("DOMContentLoaded",r.onReady,false);}var apc=window.addthis_product;if(apc&&apc.indexOf("f")>-1){r.onReady();return;}if(b.msi&&!b.ie9&&window==top){(function(){if(r.isReady){return;}try{d.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}r.onReady();})();}if(b.opr){d.addEventListener("DOMContentLoaded",function(){if(r.isReady){return;}for(var i=0;i<d.styleSheets.length;i++){if(d.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}}r.onReady();},false);}if(b.saf){var _8a;(function(){if(r.isReady){return;}if(d.readyState!="loaded"&&d.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(_8a===undefined){var _8c=d.gn("link");for(var i=0;i<_8c.length;i++){if(_8c[i].getAttribute("rel")=="stylesheet"){_8a++;}}var _8e=d.gn("style");_8a+=_8e.length;}if(d.styleSheets.length!=_8a){setTimeout(arguments.callee,0);return;}r.onReady();})();}r.addLoad(r.onReady);},append:function(fn,_90){r.bindReady();if(r.isReady){fn.call(window,[]);}else{r.readyList.push(function(){return fn.call(window,[]);});}}},r=_83,a=_7;_23(_7,{plo:[],lad:function(x){_7.plo.push(x);}});(function(c,e,d){var a=window;c.pub=function(){return _euc((window.addthis_config||{}).pubid||(window.addthis_config||{}).username||window.addthis_pub||"");};c.usu=function(g,h){if(!a.addthis_share){a.addthis_share={};}if(h||g!=addthis_share.url){addthis_share.imp_url=0;}};c.rsu=function(){var h=document,g=h.title,f=h.location?h.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&f&&f!=a.addthis_share.url&&!(_7.util.ivc((h.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=f;a.addthis_share.title=a.addthis_title=g;return 1;}return 0;};c.igv=function(f,g){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub};}else{if(addthis_config.data_use_cookies===false){_atc.xck=1;}}if(!a.addthis_share){a.addthis_share={};}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1;}addthis_share.url=(a.addthis_url||f||"").split("#{").shift();}if(!addthis_share.title){addthis_share.title=(a.addthis_title||g||"").split("#{").shift();}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={};}for(var b in addthis_conf){_atc[b]=addthis_conf[b];}_atc.ost=1;}})(_7,_7.api,_7);(function(b,f,c){var h,g=document,a=b.util;b.ckv=a.fromKV(g.cookie,";");function e(d){return a.fromKV(g.cookie,";")[d];}if(!b.cookie){b.cookie={};}b.cookie.rck=e;})(_7,_7.api,_7);(function(b,c,e){var a,h=document,g=0,m=b.util;function j(){if(g){return 1;}k("xtc",1);if(1==b.cookie.rck("xtc")){g=1;}f("xtc",1);return g;}function l(o){if(_atc.xck){return;}var n=o||_7.dh||_7.du||(_7.dl?_7.dl.hostname:"");if(n.indexOf(".gov")>-1||n.indexOf(".mil")>-1){_atc.xck=1;}var q=typeof(b.pub)==="function"?b.pub():b.pub,d=["usarmymedia","govdelivery"];for(i in d){if(q==d[i]){_atc.xck=1;break;}}}function f(n,d){if(h.cookie){h.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"+(d?"; domain="+(b.bro.msi?"":".")+"addthis.com":"");}}function k(o,n,p,q,d){l();if(!_atc.xck){if(!d){var d=new Date();d.setYear(d.getFullYear()+2);}document.cookie=o+"="+n+(!p?"; expires="+d.toUTCString():"")+"; path=/;"+(!q?" domain="+(b.bro.msi?"":".")+"addthis.com":"");}}if(!b.cookie){b.cookie={};}b.cookie.sck=k;b.cookie.kck=f;b.cookie.cww=j;b.cookie.gov=l;})(_7,_7.api,_7);(function(c,f,d){var b=c.util,a={};timeouts={};if(!c.cbs){c.cbs={};}function e(j,i,m,k,g){a[i]=a[i]||0;var h=a[i]++,l=j+"_"+(_euc(i)).replace(/[0-3][A-Z]|[^a-zA-Z0-9]/g,"")+(!g?h:"");if(!_7.cbs[l]){_7.cbs[l]=function(){if(timeouts[l]){clearTimeout(timeouts[l]);}m.apply(this,arguments);};}_7.cbs["time_"+l]=(new Date()).getTime();if(k){clearTimeout(timeouts[l]);timeouts[l]=setTimeout(k,10000);}return"_ate.cbs."+_euc(l);}b.scb=e;})(_7,_7.api,_7);(function(b,d,c){function e(){var k=a(navigator.userAgent,16),f=((new Date()).getTimezoneOffset())+""+navigator.javaEnabled()+(navigator.userLanguage||navigator.language),h=window.screen.colorDepth+""+window.screen.width+window.screen.height+window.screen.availWidth+window.screen.availHeight,g=navigator.plugins,l=g.length;if(l>0){for(var j=0;j<Math.min(10,l);j++){if(j<5){f+=g[j].name+g[j].description;}else{h+=g[j].name+g[j].description;}}}return k.substr(0,2)+a(f,16).substr(0,3)+a(h,16).substr(0,3);}function a(h,j){var f=291;if(h){for(var g=0;g<h.length;g++){f=(f*(h.charCodeAt(g)+g)+3)&1048575;}}return(f&16777215).toString(j||32);}b.mun=a;b.gub=e;})(_7,_7.api,_7);(function(d,e,g){var c,l=d.util,j=4294967295,b=new Date().getTime();function h(){return((b/1000)&j).toString(16)+("00000000"+(Math.floor(Math.random()*(j+1))).toString(16)).slice(-8);}function a(m){return k(m)?(new Date((parseInt(m.substr(0,8),16)*1000))):new Date();}function i(m){var n=a();return((n.getTime()-1000*86400)>(new Date()).getTime());}function f(m,o){var n=a(m);return(((new Date()).getTime()-n.getTime())>o*1000);}function k(m){return m&&m.match(/^[0-9a-f]{16}$/)&&!i(m);}l.cuid=h;l.ivc=k;l.ioc=f;})(_7,_7.api,_7);(function(c,f,e){function b(g){if(!g){return"";}else{if(g.indexOf("%")>-1){g=_duc(g);}}var g=_7.util.atob(g.split(",")[1]);return g;}function d(h){var j={},g,i;j.zip=h.substring(0,5);j.continent=h.substring(5,7);j.country=h.substring(7,9);j.region=h.substring(9,11);g=h.substring(11,15);if(g!="0000"){j.lat=(parseInt(g)/10-180).toFixed(1);}lonstr=h.substring(15,19);if(lonstr!="0000"){j.lon=(parseInt(lonstr)/10-180).toFixed(1);}j.dma=h.substring(19,22);j.msa=h.substring(22,26);j.network_type=h.substring(26,27);j.throughput=h.substring(27,28);return j;}function a(j,k){j=j.split(",");for(var h=0;h<j.length;h++){var g=j[h].replace(/ /g,"");if(k.zip==g||k.continent==g||k.country==g||k.region==g){return 1;}}return 0;}c.util=c.util||{};c.util.geo={dec:b,parse:d,isin:a};})(_7,_7.api,_7);(function(a,c,b){function d(e){return e.split("//").pop().split("/").shift().split("#").shift().split("?").shift().split(".").slice(-2).join(".");}a.util=a.util||{};a.util.host=d;})(_7,_7.api,_7);(function(a,d,c){function e(g,f){var h=g.indexOf("#")>-1&&!f?g.replace(/^[^\#]+\#?|^\#?/,""):g.replace(/^[^\?]+\??|^\??/,""),i=a.util.fromKV(h);return i;}function b(k){var g=document.gn("script"),l=g.length,h=g[l-1],j=e(h.src);if(k||(h.src&&h.src.indexOf("addthis")==-1)){for(var f=0;f<l;f++){if((g[f].src||"").indexOf(k||"addthis.com")>-1){j=e(g[f].src);break;}}}return j;}if(!a.util){a.util={};}a.util.gsp=b;a.util.ghp=e;})(_7,_7.api,_7);(function(e,g,f){var d=e.util,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function a(k){var j="",n,l,h,p,o,m=0;if(/[0-9a-fA-F]+/.test(k)){while(m<k.length){n=parseInt(k.charAt(m++),16);l=parseInt(k.charAt(m++),16);h=parseInt(k.charAt(m++),16);p=(n<<2)|(isNaN(h)?l&3:(l>>2));o=((l&3)<<4)|h;j+=b.charAt(p)+(isNaN(h)?"":b.charAt(o));}}return j;}function c(k){var j="",n,l,h,p,o,m=0;while(m<k.length){p=b.indexOf(k.charAt(m++));o=m>=k.length?NaN:b.indexOf(k.charAt(m++));n=p>>2;l=isNaN(o)?(p&3):(((p&3)<<2)|(o>>4));h=o&15;j+=n.toString(16)+l.toString(16)+(isNaN(o)?"":h.toString(16));}return j;}d.hbtoa=a;d.atohb=c;})(_7,_7.api,_7);(function(f,s,u){var v=f,j=new Date().getTime(),r=function(){return Math.floor(Math.random()*4294967295).toString(36);},w=function(){return Math.floor((new Date().getTime()-j)/100).toString(16);},g=0,i=function(a){if(g===0){v.sid=g=(a||v.util.cuid());}return g;},d=null,c=function(a,x){if(d!==null){clearTimeout(d);}if(a){d=setTimeout(function(){x(false);},_7.wait);}},o=function(x,a){return _euc(x)+"="+_euc(a)+";"+w();},n=1,h=function(x,z){var a=(x||"").split("?"),x=a.shift(),y=(a.pop()||"").split("&");return z(x,y);},k=function(a,x,z,y){if(!x){x={};}if(!x.remove){x.remove=[];}if(x.remove.push){x.remove.push("sms_ss");x.remove.push("at_xt");x.remove.push("fb_ref");x.remove.push("fb_source");}if(x.remove){a=t(a,x.remove);}if(x.clean){a=l(a);}if(x.defrag){a=e(a);}if(x.add){a=m(a,x.add,z,y);}return a;},m=function(z,B,A,x){var a={};if(B){for(var y in B){if(z.indexOf(y+"=")>-1){continue;}a[y]=p(B[y],z,A,x);}B=_7.util.toKV(a);}return z+(B.length?((z.indexOf("?")>-1?"&":"?")+B):"");},p=function(y,x,z,a){var z=z||addthis_share;return y.replace(/\{\{service\}\}/g,_euc(a||"")).replace(/\{\{code\}\}/g,_euc(a||"")).replace(/\{\{title\}\}/g,_euc(z.title)).replace(/\{\{url\}\}/g,_euc(x));},t=function(x,z){var a={},z=z||[];for(var y=0;y<z.length;y++){a[z[y]]=1;}return h(x,function(A,D){var E=[];if(D){for(var B in D){if(typeof(D[B])=="string"){var C=(D[B]||"").split("=");if(C.length!=2&&D[B]){E.push(D[B]);}else{if(a[C[0]]){continue;}else{if(D[B]){E.push(D[B]);}}}}}A+=(E.length?("?"+E.join("&")):"");}return A;});},q=function(a){var x=a.split("#").pop().split(",").shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").pop().split(",");}return[""];},e=function(a){var x=q(a).shift().split("=").pop();if(_7.util.ivc(x)){return a.split("#").shift();}else{x=a.split("#").slice(1).join("#").split(";").shift();if(x.split(".").length==3){x=x.split(".").slice(0,-1).join(".");}if(x.length==12&&x.substr(0,1)=="."&&(/[a-zA-Z0-9\-_]{11}/).test(x.substr(1))){return a.sp
                    
                
shCoreCommon.js http://zhouzh.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1var dp={sh:{Toolbar:{},Utils:{},RegexLib:{},Brushes:{},Version:"1.5.1"}};dp.SyntaxHighlighter=dp.sh;dp.sh.Toolbar.CopyToClipboard=function($){var _=$;while(_!=null&&_.className.indexOf("dp-highlighter")==-1)_=_.parentNode;var A=_.highlighter,B=A.originalCode.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");window.clipboardData.setData("text",B);alert("\u4ee3\u7801\u5df2\u88ab\u590d\u5236\u5230\u526a\u8d34\u677f")};dp.sh.Toolbar.Create=function(_){var $=document.createElement("DIV");$.className="tools";$.innerHTML=_.language.capitalize()+"\u4ee3\u7801";if(window.clipboardData)$.innerHTML+=" <a href=\"#\" onclick=\"dp.sh.Toolbar.CopyToClipboard(this);return false;\" title=\"\u590d\u5236\u4ee3\u7801\"><img src=\"/images/icon_copy.gif\" alt=\"\u590d\u5236\u4ee3\u7801\"/></a>";else{var A=_.originalCode.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");$.innerHTML+=" <embed src=\"/javascripts/syntaxhighlighter/clipboard_new.swf\" width=\"14\" height=\"15\" flashvars=\"clipboard="+encodeURIComponent(A)+"\" quality=\"high\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"/>"}return $};dp.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp("\"(?:\\.|(\\\\\\\")|[^\\\"\"\\n])*\"","g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")};dp.sh.Match=function(_,$,A){this.value=_;this.index=$;this.length=_.length;this.css=A};dp.sh.Highlighter=function(){this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true};dp.sh.Highlighter.SortCallback=function($,_){if($.index<_.index)return-1;else if($.index>_.index)return 1;else if($.length<_.length)return-1;else if($.length>_.length)return 1;return 0};dp.sh.Highlighter.prototype.CreateElement=function(_){var $=document.createElement(_);$.highlighter=this;return $};dp.sh.Highlighter.prototype.GetMatches=function(_,B){var $=0,A=null;while((A=_.exec(this.code))!=null)this.matches[this.matches.length]=new dp.sh.Match(A[0],A.index,B)};dp.sh.Highlighter.prototype.AddBit=function($,A){if($==null||$.length==0)return;var C=this.CreateElement("SPAN");$=$.replace(/ /g,"&nbsp;");$=$.replace(/</g,"&lt;");$=$.replace(/\n/gm,"&nbsp;<br>");if(A!=null){if((/br/gi).test($)){var _=$.split("&nbsp;<br>");for(var B=0;B<_.length;B++){C=this.CreateElement("SPAN");C.className=A;C.innerHTML=_[B];this.div.appendChild(C);if(B+1<_.length)this.div.appendChild(this.CreateElement("BR"))}}else{C.className=A;C.innerHTML=$;this.div.appendChild(C)}}else{C.innerHTML=$;this.div.appendChild(C)}};dp.sh.Highlighter.prototype.IsInside=function(_){if(_==null||_.length==0)return false;for(var A=0;A<this.matches.length;A++){var $=this.matches[A];if($==null)continue;if((_.index>$.index)&&(_.index<$.index+$.length))return true}return false};dp.sh.Highlighter.prototype.ProcessRegexList=function(){for(var $=0;$<this.regexList.length;$++)this.GetMatches(this.regexList[$].regex,this.regexList[$].css)};dp.sh.Highlighter.prototype.ProcessSmartTabs=function(E){var B=E.split("\n"),$="",D=4,A="\t";function _(A,E,_){var B=A.substr(0,E),C=A.substr(E+1,A.length),$="";for(var D=0;D<_;D++)$+=" ";return B+$+C}function C(B,C){if(B.indexOf(A)==-1)return B;var D=0;while((D=B.indexOf(A))!=-1){var $=C-D%C;B=_(B,D,$)}return B}for(var F=0;F<B.length;F++)$+=C(B[F],D)+"\n";return $};dp.sh.Highlighter.prototype.SwitchToList=function(){var C=this.div.innerHTML.replace(/<(br)\/?>/gi,"\n"),B=C.split("\n");if(this.addControls==true)this.bar.appendChild(dp.sh.Toolbar.Create(this));if(this.showColumns){var A=this.CreateElement("div"),_=this.CreateElement("div"),E=10,G=1;while(G<=150)if(G%E==0){A.innerHTML+=G;G+=(G+"").length}else{A.innerHTML+="&middot;";G++}_.className="columns";_.appendChild(A);this.bar.appendChild(_)}for(var G=0,D=this.firstLine;G<B.length-1;G++,D++){var $=this.CreateElement("LI"),F=this.CreateElement("SPAN");F.innerHTML=B[G]+"&nbsp;";$.appendChild(F);this.ol.appendChild($)}this.div.innerHTML=""};dp.sh.Highlighter.prototype.Highlight=function(C){function A($){return $.replace(/^\s*(.*?)[\s\n]*$/g,"$1")}function $($){return $.replace(/\n*$/,"").replace(/^\n*/,"")}function _(B){var E=B.split("\n"),C=new Array(),D=new RegExp("^\\s*","g"),$=1000;for(var F=0;F<E.length&&$>0;F++){if(A(E[F]).length==0)continue;var _=D.exec(E[F]);if(_!=null&&_.length>0)$=Math.min(_[0].length,$)}if($>0)for(F=0;F<E.length;F++)E[F]=E[F].substr($);return E.join("\n")}function D(A,$,_){return A.substr($,_-$)}var F=0;if(C==null)C="";this.originalCode=C;this.code=$(_(C));this.div=this.CreateElement("DIV");this.bar=this.CreateElement("DIV");this.ol=this.CreateElement("OL");this.matches=new Array();this.div.className="dp-highlighter";this.div.highlighter=this;this.bar.className="bar";this.ol.start=this.firstLine;if(this.CssClass!=null)this.ol.className=this.CssClass;if(this.collapse)this.div.className+=" collapsed";if(this.noGutter)this.div.className+=" nogutter";if(this.tabsToSpaces==true)this.code=this.ProcessSmartTabs(this.code);this.ProcessRegexList();if(this.matches.length==0){this.AddBit(this.code,null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol);return}this.matches=this.matches.sort(dp.sh.Highlighter.SortCallback);for(var E=0;E<this.matches.length;E++)if(this.IsInside(this.matches[E]))this.matches[E]=null;for(E=0;E<this.matches.length;E++){var B=this.matches[E];if(B==null||B.length==0)continue;this.AddBit(D(this.code,F,B.index),null);this.AddBit(B.value,B.css);F=B.index+B.length}this.AddBit(this.code.substr(F),null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol)};dp.sh.Highlighter.prototype.GetKeywords=function($){return"\\b"+$.replace(/ /g,"\\b|\\b")+"\\b"};dp.sh.HighlightAll=function(N,B,K,I,O,E){function A(){var $=arguments;for(var _=0;_<$.length;_++){if($[_]==null)continue;if(typeof($[_])=="string"&&$[_]!="")return $[_]+"";if(typeof($[_])=="object"&&$[_].value!="")return $[_].value+""}return null}function J($,_){for(var A=0;A<_.length;A++)if(_[A]==$)return true;return false}function L(A,B,C){var _=new RegExp("^"+A+"\\[(\\w+)\\]$","gi"),$=null;for(var D=0;D<B.length;D++)if(($=_.exec(B[D]))!=null)return $[1];return C}function C(B,A,_){var $=document.getElementsByTagName(_);for(var C=0;C<$.length;C++)if($[C].getAttribute("name")==A)B.push($[C])}var T=[],P=null,M={},$="innerHTML";C(T,N,"pre");C(T,N,"textarea");if(T.length==0)return;for(var R in dp.sh.Brushes){var F=dp.sh.Brushes[R].Aliases;if(F==null)continue;for(var G=0;G<F.length;G++)M[F[G]]=R}for(G=0;G<T.length;G++){var _=T[G],U=A(_.attributes["class"],_.className,_.attributes["language"],_.language),Q="";if(U==null)continue;U=U.split(":");Q=U[0].toLowerCase();if(M[Q]==null)M[Q]=M["default"];P=new dp.sh.Brushes[M[Q]]();P.language=Q;_.style.display="none";P.noGutter=(B==null)?J("nogutter",U):!B;P.addControls=(K==null)?!J("nocontrols",U):K;P.collapse=(I==null)?J("collapse",U):I;P.showColumns=(E==null)?J("showcolumns",U):E;var D=document.getElementsByTagName("head")[0];if(P.Style&&D){var S=document.createElement("style");S.setAttribute("type","text/css");if(S.styleSheet)S.styleSheet.cssText=P.Style;else{var H=document.createTextNode(P.Style);S.appendChild(H)}D.appendChild(S)}P.firstLine=(O==null)?parseInt(L("firstline",U,1)):O;P.Highlight(_[$]);P.source=_;_.parentNode.insertBefore(P.div,_)}};dp.sh.Brushes.JScript=function(){var $="abstract boolean break byte case catch char class const continue debugger "+"default delete do double else enum export extends false final finally float "+"for function goto if implements import in instanceof int interface long native "+"new null package private protected public return short static super switch "+"synchronized this throw throws transient true try typeof var void volatile while with";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c"};dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=["js","jscript","javascript"];dp.sh.Brushes.Java=function(){var $="abstract assert boolean break byte case catch char class const "+"continue default do double else enum extends "+"false final finally float for goto if implements import "+"instanceof int interface long native new null "+"package private protected public return "+"short static strictfp super switch synchronized this throw throws true "+"transient try void volatile while";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b","gi"),css:"number"},{regex:new RegExp("(?!\\@interface\\b)\\@[\\$\\w]+\\b","g"),css:"annotation"},{regex:new RegExp("\\@interface\\b","g"),css:"keyword"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-j";this.Style=".dp-j .annotation { color: #646464; }"+".dp-j .number { color: #C00000; }"};dp.sh.Brushes.Java.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Java.Aliases=["java"];dp.sh.Brushes.Ruby=function(){var $="alias and BEGIN begin break case class def define_method defined do each else elsif "+"END end ensure false for if in module new next nil not or raise redo rescue retry return "+"self super then throw true undef unless until when while yield",_="Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload "+"Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol "+"ThreadGroup Thread Time TrueClass";this.regexList=[{regex:dp.sh.RegexLib.SingleLinePerlComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp(":[a-z][A-Za-z0-9_]*","g"),css:"symbol"},{regex:new RegExp("(\\$|@@|@)\\w+","g"),css:"variable"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"},{regex:new RegExp(this.GetKeywords(_),"gm"),css:"builtin"}];this.CssClass="dp-rb";this.Style=".dp-rb .symbol { color: #a70; }"+".dp-rb .variable { color: #a70; font-weight: bold; }"};dp.sh.Brushes.Ruby.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Ruby.Aliases=["ruby","rails","ror"];dp.sh.Brushes.Xml=function(){this.CssClass="dp-xml";this.Style=".dp-xml .cdata { color: #ff1493; }"+".dp-xml .tag, .dp-xml .tag-name { color: #069; font-weight: bold; }"+".dp-xml .attribute { color: red; }"+".dp-xml .attribute-value { color: blue; }"};dp.sh.Brushes.Xml.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Xml.Aliases=["xml","xhtml","xslt","html","xhtml"];dp.sh.Brushes.Xml.prototype.ProcessRegexList=function(){function B(_,$){_[_.length]=$}var $=0,A=null,_=null;this.GetMatches(new RegExp("(&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](&gt;|>)","gm"),"cdata");this.GetMatches(new RegExp("(&lt;|<)!--\\s*.*?\\s*--(&gt;|>)","gm"),"comments");_=new RegExp("([:\\w-.]+)\\s*=\\s*(\".*?\"|'.*?'|\\w+)*|(\\w+)","gm");while((A=_.exec(this.code))!=null){if(A[1]==null)continue;B(this.matches,new dp.sh.Match(A[1],A.index,"attribute"));if(A[2]!=undefined)B(this.matches,new dp.sh.Match(A[2],A.index+A[0].indexOf(A[2]),"attribute-value"))}this.GetMatches(new RegExp("(&lt;|<)/*\\?*(?!\\!)|/*\\?*(&gt;|>)","gm"),"tag");_=new RegExp("(?:&lt;|<)/*\\?*\\s*([:\\w-.]+)","gm");while((A=_.exec(this.code))!=null)B(this.matches,new dp.sh.Match(A[1],A.index+A[0].indexOf(A[1]),"tag-name"))};dp.sh.Brushes.CSharp=function(){var $="abstract as base bool break byte case catch char checked class const "+"continue decimal default delegate do double else enum event explicit "+"extern false finally fixed float for foreach get goto if implicit in int "+"interface internal is lock long namespace new null object operator out "+"override params private protected public readonly ref return sbyte sealed set "+"short sizeof stackalloc static string struct switch this throw true try "+"typeof uint ulong unchecked unsafe ushort using virtual void while";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c";this.Style=".dp-c .vars { color: #d00; }"};dp.sh.Brushes.CSharp.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSharp.Aliases=["c#","c-sharp","csharp"];dp.sh.Brushes.Cpp=function(){var _="ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR "+"DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH "+"HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP "+"HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY "+"HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT "+"HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE "+"LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF "+"LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR "+"LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR "+"PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT "+"PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 "+"POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR "+"PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 "+"PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT "+"SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG "+"ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM "+"char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t "+"clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS "+"FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t "+"__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t "+"jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler "+"sig_atomic_t size_t _stat __stat64 _stati64 terminate_function "+"time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf "+"va_list wchar_t wctrans_t wctype_t wint_t signed",$="break case catch class const __finally __exception __try "+"const_cast continue private public protected __declspec "+"default delete deprecated dllexport
                    
                
func_1290537556.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* This source code is Copyright (c) Vibrant Media 2001-2010 and forms part of the patented Vibrant Media product "IntelliTXT" (sm). */
                    
2try {if('undefined'==typeof $iTXT) {var $iTXT={};} if('undefined'==typeof $iTXT.func) {$iTXT.func={};} if('undefined'==typeof $iTXT.cnst) {$iTXT.cnst={};} if('undefined'==typeof $iTXT.glob) {$iTXT.glob={};}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">NAMESPACE INITIALISATION FAIL</b> '+x.message,1);} $iTXT.debug.Category={PARAMETERS:{}};$iTXT.func.isUndefined=function(o) {return typeof o===typeof undefined;};$iTXT.func.isString=function(o) {return typeof o==="string";};$iTXT.func.addTemplateParams=function(rat,params,lvl) {if($iTXT.cnst.ADVERTTYPES_NEW_RENDER&&'undefined'==typeof($iTXT.cnst.ADVERTTYPES_NEW_RENDER["at"+rat])) {return;} lvl=lvl||0;if($iTXT.tmpl&&$iTXT.tmpl["type"+rat]) {if($iTXT.tmpl["type"+rat].params) {params.set($iTXT.tmpl["type"+rat].params,null,$iTXT.cnst.WEIGHTING_DEFAULT_TEMPLATE);}} else if(lvl<50) {window.setTimeout(function(){$iTXT.func.addTemplateParams(rat,params,lvl+1)},100);}};$iTXT.func.loadTranslations=function(l) {};$iTXT.func.logPerf=function() {if('undefined'==typeof $iTXT.glob.perfMon) {return'';} var rV='',ret=[];var ePs=$iTXT.glob.perfMon.logEventPairs();for(var ePc=0;ePc<ePs.length;ePc++) {var eP=ePs[ePc];if('string'==typeof eP.name&&!isNaN(eP.duration)) {ret[ret.length]=eP.name+':'+eP.duration;}} rV+=ret.join('|');return(''==rV)?rV:'&prf='+rV;};$iTXT.func.msgIframe=function(ifr,msg,encode) {if(null==ifr||!ifr.src||'string'!=typeof ifr.src||''==ifr.src||null==msg||'string'!=typeof msg) {return;} var url=ifr.src.split('#')[0];ifr.src=url+'#'+((encode)?encodeURIComponent(msg):msg);};$iTXT.func.checkTemplates=function() {if('undefined'==typeof $iTXT.tmpl) {$iTXT.tmpl={};} if(null!=$iTXT.glob&&'undefined'!=$iTXT.glob.templates) {for(var tmpl in $iTXT.glob.templates) {if('undefined'==typeof $iTXT.tmpl[tmpl]&&'string'==typeof $iTXT.glob.templates[tmpl]&&$iTXT.glob.templates[tmpl].match(/^http/)) {$iTXT.debug.Util.msg('<b style="color:blue;">New Render Mechanism:</b> loading template '+tmpl,0);itxtLES($iTXT.glob.templates[tmpl]);}}}};$iTXT.func.setClickThrough=function(url,did) {if(!url.match(/^http/)) return;var ad=fABDID(4==gPI?aADi:aAD,gDI,did);if(null==ad) return;var toks=itxtSubclass(gTokVals);ad.c=repToks(url,true,toks);};$iTXT.func.subst=function(target,data,delimiter) {var REGEX_PATTERN=/\$\{([\w$_]+)\}/g;if("'"!=delimiter&&'"'!=delimiter) {delimiter='';} if('object'!=typeof data) {return target;} else {return _iter(target,data,0);} function _iter(iteration,data,level) {if('string'==typeof iteration) {if(iteration.match(REGEX_PATTERN)) {var matches=iteration.match(REGEX_PATTERN);for(var i=0;i<matches.length;i++) {var replaceKey=matches[i].replace(/^\$\{/g,'').replace(/\}$/g,'');var replaceVal=data[replaceKey]||'';iteration=iteration.replace(REGEX_PATTERN,delimiter+replaceVal+delimiter);}}} else if('object'==typeof iteration) {for(var mem in iteration) {iteration[mem]=_iter(iteration[mem],data,level+1);}} return iteration;}};$iTXT.func.addAttrToTag=function(tag,name,value,replace) {var rxTag=new RegExp('^<(.*?)>');var fTag=rxTag.exec(tag);if(null==fTag||null==name||null==value) {return tag;} fTag=fTag[0];if('classname'==name.toLowerCase()) {name='class';} else if('rules'==name.toLowerCase()) {name='style';} var rxAttr=new RegExp(' '+name+'=\\"(.*?)\\"');var cVal=rxAttr.exec(fTag);if(null!=cVal) {cVal=cVal[1];if(!replace) {if('id'==name.toLowerCase()||cVal.match(value)) {return tag;} else if('class'!=name.toLowerCase()) {if(!cVal.match(/[}|;]\s*$/)) {cVal+=';';}} value=cVal+' '+value;} Value=value.replace(/"/g,'\\"');fTag=fTag.replace(rxAttr,' '+name+'="'+value+'"');} else {Value=value.replace(/"/g,'\\"');fTag=fTag.replace(/>$/,' '+name+'="'+value+'">');} return tag.replace(rxTag,fTag);};$iTXT.func.addPageStyle=function(target,rule,value) {try {var targetSS=null;for(var i=0;i<document.styleSheets.length;i++) {var thisSS=document.styleSheets[i];if(null!=thisSS.href&&'string'==typeof thisSS.href&&thisSS.href.indexOf("intellitxt">-1)&&thisSS.href.indexOf("vibitt">-1)) {targetSS=thisSS;continue;} else if(null!=thisSS.href&&'string'==typeof thisSS.href&&thisSS.href.indexOf("intellitxt">-1)) {targetSS=thisSS;} else if(null==targetSS&&i==(document.styleSheets.length-1)) {targetSS=thisSS;}} var lastIndex=((targetSS.cssRules)?targetSS.cssRules:targetSS.rules).length;if(targetSS.insertRule) {targetSS.insertRule(target+'{'+rule+':'+value+';}',lastIndex);} else {targetSS.addRule(target,rule+':'+value+';',lastIndex);}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">Exception</b> in $iTXT.func.addPageStyle('+target+','+rule+','+value+'):'+x.message,1);}};$iTXT.func.queryPageStyle=function(target,rule,value,incVM) {try {if(null==incVM) {incVM=false;} target=$iTXT.data.Dom.parseSelector(target);rule=rule.toLowerCase();value=value.toLowerCase();for(var i=0;i<document.styleSheets.length;i++) {var thisSS=document.styleSheets[i];if(!incVM&&null!=thisSS.href&&'string'==typeof thisSS.href&&""!=thisSS.href&&thisSS.href.indexOf("intellitxt">-1)) {continue;} var rules=(thisSS.cssRules)?thisSS.cssRules:thisSS.rules;for(var j=0;j<rules.length;j++) {var thisRule=rules[j];if(!thisRule.selectorText) {continue;} var selectors=thisRule.selectorText.split(',');for(var k=0;k<selectors.length;k++) {var selector=selectors[k].replace(/(^\s+|\s+$)/g,"");selector=selector.split(' ')[selector.split(' ').length-1];selector=$iTXT.data.Dom.parseSelector(selector);if(target[0]==selector[0]&&target[1]==selector[1]&&target[2]==selector[2]) {var css=thisRule.style.cssText.split(";");for(l=0;l<css.length;l++) {var cssBits=css[l].split(":");if(!cssBits[0]||!cssBits[1]) {continue;} var candRule=cssBits[0].replace(/(^\s+|\s+$)/g,"").toLowerCase();var candValue=cssBits[1].replace(/(^\s+|\s+$)/g,"").toLowerCase();if(rule==candRule&&value==candValue) {return true;}}}}}}} catch(x) {$iTXT.debug.Util.msg('<b style="color:red;">Exception</b> in $iTXT.func.queryPageStyle('+target+','+rule+','+value+','+incVM+'):'+x.message,1);} return false;};$iTXT.func.inheritHookStyles=function(sN,tag,id) {var nBs=sN.getElementsByTagName(tag);for(var k=0;k<nBs.length;k++) {var nB=nBs[k];if(nB.id.indexOf(id)>-1&&nB.parentNode&&!$iTXT.func.isUndefined(nB.parentNode)) {var pN=nB.parentNode;if(pN.style&&!$iTXT.func.isUndefined(pN.style)) {nB.style.color=pN.style.color;nB.style.fontWeight=pN.style.fontWeight;nB.style.fontSize=pN.style.fontSize;if(pN.currentStyle&&!$iTXT.func.isUndefined(pN.currentStyle)&&!$iTXT.func.isUndefined(pN.currentStyle.fontFamily)) {nB.style.fontFamily=pN.currentStyle.fontFamily;} else if($iTXT.func.isUndefined(pN.style.fontFamily)) {nB.style.fontFamily=pN.style.fontFamily;}}}}};var iTTC=1,gdB,gGeo={cc:'',rcc:'',reg:'',city:'',pcode:'',dma:0},gTokVals=new Object(),server='',sWTU='',sIEWTU='',ipartid=0,ibid=0,ipid=0,mk=0,mi=0,iCF=0,aKW=null,aKWi=null,aAD=null,aADi=null,aDIDN=new Array(),ulS='',hS='',gWO='',gTU='',gDBL=0,gHLN=1,gBSS=0,gTI='',gDI=0,gPI=0,gSYI=0,gADI=0,gSI=1,gIESI=1,gSID='',gSpitTimer=0,gSpitCheck=0,mTL=50,kwpn=-1,kwpp=-1,ppp=0,gSN=new Array(),gAN=new Array(),gHN=new Array(),gUPN=new Array(),gBPN=new Array(),gLC=false,gNS={},gLD=false,gDTo=false,gDST,gCM="v2",gNC=0,gINt="",gIINt="",gITXTN=new Array(),gITXTNi=new Array(),gSEVer=(typeof(ScriptEngineMajorVersion)=="function"?parseFloat(ScriptEngineMajorVersion()+'.'+ScriptEngineMinorVersion()):5.5),gENC="",gMEKWT=0,gTTST=0,gLCL=0,gCL=0,gTTt=1500,gTTid=0,gDAT='',gEAT='',gUHT=null,gUHIR=0,gUHCR=0,gAUAT=0,larE=/\</g,garE=/\>/g,gATIg=null,gATIr=null,gATIs=null,gEATI=0,gFTTm=null,gFTTr=null,gFOJBG='',gFar=new Array(),gFInt=null,gFCnt=1,gSVURL='',gSVIMG='',gFdCk=0,gFdBck='',gaOv=null,gImC=null,gKWPF=0,gPVU='',gMTTc=0,gMInt=null,gFAint=0,gFAcnt=0,gPVM='',gFFMF=0,gSkp=0,gMiFo=0,giPh=(gOSType=="iphone"),gCSc='',gMed=null,gMImgW=0,gMImgH=0,gImgMP=0,gMOo=null,gODT='',gHkCap=1,kwp=0,gAdCnt="",gDr1Cnt="",gSRCntB="",gSRCntM="",gSRCntS="",gDr2Cnt="",bDr1On=0,bDr2On=0,gImgLoc='http://images.intellitxt.com/ast/ttips/1/',gDr1RAT=-1,gDr2RAT=-1,gIAA=0,gDocFunc={mmv:document.onmousemove,mup:document.onmouseup,ss:document.onselectstart,mpos:new Array(-1,-1)},gDIa=0,gTTBI='logo_va.gif',gTTBIF='',isVis=0,gFST='',gVmTS=/_TIMESTAMP_/g,ieCA=-1,gStEng=-1,gIEnt='nobr',gIEni='itxt_nobr',gRCTabLogo='';var dbST,dbET;if(gNeedProtos){if((gBVType=='netscape')&&(navigator.appVersion.indexOf("MSIE")>=0)){gNeedProtos=false;}} if(gBVType=="safari") {gSEVer=0;} window.setTimeout(function(){$iTXT.func.checkTemplates()},100);if(gNeedProtos) {gLC=false;with(HTMLElement.prototype) {__defineGetter__("parentElement",function(){return(this.parentNode==this.ownerDocument)?null:this.parentNode;});__defineGetter__("uniqueID",function(){if(!arguments.callee.count)arguments.callee.count=0;var uniqueID="ns_id"+arguments.callee.count++;window[uniqueID]=this;this.__defineGetter__("uniqueID",function(){return uniqueID;});return uniqueID;});var propName='currentStyle';__defineGetter__(propName,function(){try{if(this instanceof window)return null;} catch(e){window.getComputedStyle(this,null)} return window.getComputedStyle(this,null);});}} if('msie'==gBVType&&($iTXT.func.queryPageStyle('tr','overflow-x','hidden')||$iTXT.func.queryPageStyle('tr','overflow-x','scroll'))) {$iTXT.func.addPageStyle('span#iTt tr','overflow-x','visible !important');$iTXT.func.addPageStyle('center tr','overflow-x','visible !important');} function itxtSubclass(o) {function F(){};F.prototype=o;return new F();} function itxtuh(n) {var t=n.innerText;dbM('itxtuh='+t,1);var e=document.createTextNode(t),ns=n.nextSibling,pn=n.parentNode;if(null!=n.previousSibling) pn.insertBefore(e,n);else if(null!=ns) pn.insertBefore(e,ns);else pn.appendChild(e);pn.removeChild(n);} function itxtprep() {if(gDr1AT.length>0||gDr2AT.length>0||gDIa==1) {var s=gDrFP+(gDBL>0?"?ts="+gTokVals.TIMESTAMP:"");itxtLES(s);} if(null==gUHT) return;var t=document.getElementsByTagName(gUHT);for(var i=0;i<t.length;i++) if(t[i].id.match(gUHIR)) if(t[i].className.match(gUHCR)) itxtuh(t[i]);} function binarySearch(arr,item) {var left=-1,right=arr.length,mid;while(right-left>1) {mid=(left+right)>>>1;if(arr[mid]<item) left=mid;else right=mid;} if(arr[right]!=item) return-(right+1);return right;} function fNSN() {scrunch(document.getElementsByTagName('DIV'));scrunch(document.getElementsByTagName('SPAN'));} function scrunch(a) {if(null==a)return;for(i=0;i<a.length;i++) {var o=a[i];for(var l=0;l<gHN.length;l++) if(gHN[l].toLowerCase()==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name',gHN[l]);if('intellitxt'==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name','intelliTxt');for(var l=0;l<gAN.length;l++) if(gAN[l].toLowerCase()==o.id.toLowerCase()) if(!o.getAttribute('name')) o.setAttribute('name',gAN[l]);}} function addPGST(css) {var sheets=document.styleSheets,err='<b style="color:red;">CSS OVERRIDE FAIL</b> ';if(!sheets||css=='')return;var sheet=sheets[sheets.length-1],css=css.split('}'),cssEM,scAR,regx=/\s/g,end;try {if(sheet.addRule) {for(var i=0;i<css.length;i++) {cssEM=css[i].replace(regx,'');if(cssEM!='') {scAR=css[i].split('{');sheet.addRule(scAR[0],scAR[1]);}}} else if(sheet.insertRule) {for(var i=0;i<css.length;i++) {cssEM=css[i].replace(regx,'');if(cssEM!='') {try {end=sheet.cssRules.length;} catch(ex) {try {var st=document.createElement('style');document.getElementsByTagName('HEAD')[0].appendChild(st);sheets=document.styleSheets;sheet=sheets[sheets.length-1];end=sheet.cssRules.length;} catch(ex) {dbM(err+1,0);}} sheet.insertRule(css[i]+'}',end);}}} else {dbM(err+2,0);}} catch(ex) {dbM(err+3,0);}} function addCSS(url,id) {var bdy,doc=document,p,sc=doc.getElementById(id),hd=doc.getElementsByTagName('HEAD')[0];if(!hd) {bdy=document.getElementsByTagName('BODY')[0];p=bdy.parentNode;hd=doc.createElement('head');p.insertBefore(hd,bdy);} if(!sc) {sc=doc.createElement('link');sc.type="text/css";sc.id=id;sc.href=url;sc.rel='stylesheet';hd.appendChild(sc);}} function adEvt(ob,name,handler) {if(document.all) ob.attachEvent("on"+name,handler);else ob.addEventListener(name,handler,false);} function init_itxt() {iG();gdB=document.body;adEvt(window,'unload',ttH);if(gBVType!="msie") {fNSN();} gCM=dCM();iDW();aKW=new Array();aKWi=new Array();aAD=new Array();aADi=new Array();if(bWAC) {bYCR=confirm('Reset the page?');if(!bYCR) {dbM('Reset cancelled',1);return;}} doIt();$iTXT.func.loadTranslations(gGeo.cc);addCSS(gFST,'vib_css');addPGST(gSTOV);if(gDBL>1) {dbST=new Date().getTime();var iTxt=new Array();var aIAT=new Array();iDW();if(gCM=='v1') iTxt=gIA2();else iTxt=gIA(gdB,gCM,0);iTxt=gIAT(gMImgW,gMImgH,aIAT,gODT,iTxt,gImgMP);dbET=new Date().getTime();dbM('gIA Elapsed time: '+(dbET-dbST)+' ms.',1);dbST=new Date().getTime();iDW();if(gDBL>0&&gHLN) gAA(gdB,new Array(),gCM,0);dbET=new Date().getTime();dbM('gAA Elapsed time: '+(dbET-dbST)+' ms.',1);} dbM('server='+server+'\ncc='+gGeo.cc+'\nipid='+ipid+'\niCF='+iCF,0);if(gCLM==1) {if(gTc('ITXT_TTV')!='') gBSS=1;} else if(gCLM==2) gBSS=1;dbM("<i>Using SEVer:</i>"+gSEVer,1);dbM('<span style="color:red">Compatibility Mode: '+gCM+'</span>',1);} function dCM() {var gE=document.getElementsByName('intelliTxt');if(gE==null) gE=document.getElementsByName('intelliTXT');var gL;if(gE!=null) gL=gE.length;else gL=0;if(gL>0||gHN.length>0) {mTL=0;return"v1";} return"v2";} function checkSpit() {dbM('<font color=green>checkSpit()</font>',0);if(++gSpitCheck>4) {window.clearInterval(gSpitTimer);gSpitTimer=0;dbM('<font color=red>checkSpit() fail</font>',0);var s='http://'+server+'/al.asp?ipid='+ipid+'&ts='+gTokVals.TIMESTAMP+'&mt=13&mv=1&cf='+iCF+'&so='+iSo;$iTXT.core.Util.dropScript(s,function(removeFunction){removeFunction();});}} function spitHere() {dbM('<b>spitHere</b>',0);if(gSpitTimer>=0) {window.clearInterval(gSpitTimer);gSpitTimer=0;} if(($iTXT.glob.params.get("echm")&$iTXT.debug.Util.ECH_TIME_XFER)&&!$iTXT.func.isUndefined($iTXT.metrics.Context)&&!$iTXT.func.isUndefined($iTXT.metrics.Context.startXfer)) {$iTXT.metrics.Context.stopXfer=(new Date()).getTime();$iTXT.debug.Util.msg('<b style="color: blue">ECH:</b> Data transfer took '+($iTXT.metrics.Context.stopXfer-$iTXT.metrics.Context.startXfer)+'ms.');}} function fHFN(i,oNode,aHk) {var a=new Array();for(var j=0,n=aHk.length;j<n;j++) if(aHk[j].i==i) a[a.length]=aHk[j];return a;} function skippinder(){if(gSkp<=0)return;for(var i=0;i<gITXTN.length;i++){var nt=geTg(gITXTN[i])-gSkp;if(nt<=0){if(gDBL>0&&gHLN) hlN(gITXTN[i].parentNode,"#FCB514");gITXTN[i]=null;}else seTg(gITXTN[i],nt);}} var cNTg=1;var nTgs=new Array();nTgs[1]=0;function gIA(oNode,ver,mode) {var a=new Array();if(cFL(oNode)) return a;if(ver=="v1"&&mode!=1) {mode=cFIA(oNode);} if(iAA(oNode,ver,mode)) return a;if(iSA(oNode,ver,mode)) return a;if(iIA(oNode,ver,mode)) {if(gDBL>0&&gHLN) hlN(oNode.parentNode,"green");a[a.length]=oNode;gNC++;var tgCNd=geTg(oNode);if(!tgCNd) {if(iCNL(oNode.parentNode,gUPN)){if(gDBL>0&&gHLN) oNode.parentNode.style.borderStyle="dotted";var tgPar=geTg(oNode
                    
                
context_static_r494.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 1 lines
                    
1(window.Ya&&window.Ya.Context)||(function(){var ae=window,k=document,m=ae.location,l=494,q=function(){},L=54273;function R(u){return k.getElementById(u)}ae.Ya=ae.Ya||{};Ya.Context={};var B=new function(){this.errorsLimit=3;this.log=function(al){if(!this.errorsLimit){return}this.errorsLimit--;if(!window.yandex_log_errors){return}var am=ae.yandex_partner_id||1;I("//an.yandex.ru/jserr/"+am+"?errmsg="+encodeURIComponent(al))};this.wrapFunc=function(al,am){var an=function(){try{var ao=am.apply(this,arguments);return ao}catch(ap){B.log("v"+l+":"+al+":"+ap.message+":"+u())}};an.__wrapped=true;return an};this.wrapObj=function(al,an){for(var am in an){if(an[am]&&an[am].apply&&!an[am].__wrapped){an[am]=this.wrapFunc(al+am,an[am])}}};function ak(al){var am=(al+"").match(/function\s*(\w*)/)[1];if((am==null)||(am.length==0)){am="anonymous"}return am}function u(){var ap="";if(typeof(arguments.caller)!="undefined"){for(var am=arguments.caller;am!=null;am=am.caller){ap+="> "+ak(am.callee);if(am.caller==am){ap+="*";break}}}else{var ao;try{foo.bar}catch(ao){var al=F(ao);for(var an=1;an<al.length;an++){ap+="> "+al[an]}}}return ap}function F(ao){var al=[];var am;if(!ao||!ao.stack){return al}var aq=ao.stack.split("\n");for(var an=0;an<aq.length-1;an++){var ap=aq[an];am=ap.match(/^(\w*)/)[1];if(!am){am="anonymous"}al[al.length]=am}return al}};Ya.Common=Ya.Common||{};function s(al,ao){ao=ao||{font_size:ae.yandex_font_size,font_family:ae.yandex_font_family};var ap=(ao.font_size)?O(parseFloat(ao.font_size),0.5,2.5,1):0;var am=["arial","courier new","tahoma","times new roman","verdana"];var u=(ao.font_family)?H(ao.font_family,am):"";var ak=["sans-serif","serif","monoscape"];var an=y(u,am,ak);var F=[];if(ap){F[0]=r([""],[t("font-size",ap+"em")],al)}if(u){F[1]=r(["*"],[t("font-family",u+", "+an)],al)}return F}function f(u){return u?u.replace(/<a href/gi,'<a class="snap_noshot" href'):""}function c(){return yandex_ad_is_displayed}function O(al,F,u,ak){return(al>=F&&al<=u)?al:ak}function H(al,ak){al=""+al;for(var F=0,u=ak.length;F<u;F++){if(al.toLowerCase()==ak[F]){return ak[F]}}return ak[0]}function A(F){F=""+F;var u=/^[0-9A-F]{6}$/i;return u.test(F)?"#"+F:""}function a(u){return Ya.Common.RGB.fromString(u).luma()>125?"black":"white"}function C(F,am,at){var an=F;an.style.backgroundColor=am;if(am==at){return}var al=k.createElement("canvas");var ap=navigator.appVersion.indexOf("MSIE")!=-1;if(typeof(al.getContext)=="function"){var ar=an.offsetWidth;var u=an.offsetHeight;al.width=ar;al.height=u;var aq=al.getContext("2d");var ak=aq.createLinearGradient(0,0,0,u);ak.addColorStop(0,am);ak.addColorStop(1,at);aq.fillStyle=ak;aq.fillRect(0,0,ar,u);var ao=aq.canvas.toDataURL("image/png");an.style.backgroundImage="url("+ao+")";an.style.backgroundRepeat="repeat-x";an.style.backgroundPosition="bottom"}else{if(ap){if(typeof(an.style.zoom)!="undefined"){an.style.zoom=1}an.style.filter="progid:DXImageTransform.Microsoft.Gradient(Enabled=true, GradientType=0, StartColorStr="+am+", EndColorStr="+at+")"}}}function w(al,F,u){var ak=al.split(F);return(ak[u])?ak[u]:""}function af(am,al){var u;for(var ak=0,F=al.length;ak<F;ak++){if(am==al[ak]){u=ak}}return u}function y(u,ak,F){return(u==ak[1])?F[2]:((u==ak[3])?F[1]:F[0])}function V(ak){var u,F=ak.replace(/<wbr>|&nbsp;|&middot;|\s/g,"").match(/class="url">(.*>)?([^>]+)<\/span>/);if(F){u=F[2]}return u?"//favicon.yandex.net/favicon/"+u.match(/[\w.-]+/):""}var j=+new Date;function W(u,av,ao){var ar=av?"table":"ul",al=av?"td":"li",ak,aq,ap="";var at=navigator.appVersion.indexOf("MSIE")!=-1,F=navigator.appVersion.indexOf("MSIE 7")!=-1,au="if (this.width &gt; 1) {this.className = 'y5_favicon';}";if(at){au+=" else if (!this.width) {this._img = new Image(); this._img.src = this.src; if (this._img.width &gt; 1) {this.className = 'y5_favicon';} this._img = null; this.style.fontSize = 0;}"}for(var an=0,am=u.length;an<am;an++){aq=V(u[an]);ak='<img onload="'+au+'" src="'+aq+'" alt=""/>';if(F){(function(){var ay="yandex_favaicon_"+(j++),ax=0,aw=setInterval(function(){var az=document.getElementById(ay);if(az){if(az.width==1){az.className+="y5_favicon1x1"}if(az.width>1){az.className+="y5_favicon"}}if(ax++>42||az&&az.width>=1){clearInterval(aw)}},500);ak='<img id="'+ay+'" src="'+aq+'" alt="" />'})()}u[an]=f(u[an]);if(ao&&aq){u[an]=u[an].replace(/(<div class="ad-link">)/,"$1"+ak)}ap+=b(al,b("div",u[an],["ad"]),["item"]);if(av&&an!=u.length-1){ap+=b(al,b("div",""),["nbsp"])}}if(av){ap="<tr>"+ap+"</tr>"}ap=b(ar,ap,["ads"]);return ap}function D(al){var ak="";for(var F=0,u=al.length;F<u;F++){ak+=b("li",b("div",al[F],["ad"]),["item"])}ak=b("ul",ak,["ads"]);return ak}function M(al){var ak="";for(var F=0,u=al.length;F<u;F++){ak+=b("td",b("div",al[F],["ad"]),["item"]);if(F!=al.length-1){ak+=b("td",b("div",""),["nbsp"])}}ak=b("table",ak,["ads"]);return ak}function b(ak,ao,ap,F,u){var an="<"+ak;if(F){an+=' id="y5_'+F+'"'}if(ap){an+=' class="';for(var am=0,al=ap.length;am<al;am++){if(ap[am]){an+=(ap[am]=="y5"||ap[am]=="snap_noshots"?"":"y5_")+ap[am]}if(am!=(ap.length-1)){an+=" "}}an+='"'}if(u){an+=" "+u}an+=">"+ao+"</"+ak+">";return an}function ah(u){return function(al,am,ak,F){return b(u,al,am,ak,F)}}var ai=ah("div"),E=ah("span"),ab=ah("u");function Z(F,u){return'<a class="snap_noshots" href="'+F+'" target="_blank">'+u+"</a>"}function t(u,F){if(F&&u){return u+": "+F+" !important;"}else{return""}}function r(u,am,F){var an=true,al="",ak;for(ak=0,iLength=u.length;ak<iLength;ak++){if(F){al+="#y5_"+F}al+=u[ak]?" "+(u[ak]!="*"?".y5_":"")+u[ak]:"";if(ak!=(u.length-1)){al+=", "}}al+=" {";for(ak=0,iLength=am.length;ak<iLength;ak++){if(am[ak]){al+=am[ak];if(ak!=(am.length-1)){al+=" "}an=false}}al+="}";return(!an)?al:""}function h(al){var ak="";for(var F=0,u=al.length;F<u;F++){if(al[F]){ak+=al[F];if(F!=(al.length-1)){ak+=" "}}}return ak}function v(){var F=k.getElementsByTagName("html")[0];if(!k.getElementsByTagName("head")[0]){F.appendChild(k.createElement("head"))}var u=k.getElementsByTagName("head")[0];return u}function z(){var u=k.getElementsByTagName("html")[0];if(!k.body){u.appendChild(k.createElement("body"))}return k.body}function U(){if((typeof(ae.innerWidth)=="number")||(typeof(ae.innerHeight)=="number")){return[ae.innerWidth,ae.innerHeight]}else{if(k.documentElement&&(k.documentElement.clientWidth||k.documentElement.clientHeight)){return[k.documentElement.clientWidth,k.documentElement.clientHeight]}else{if(k.body&&(k.body.clientWidth||k.body.clientHeight)){return[k.body.clientWidth,k.body.clientHeight]}}}return[null,null]}function K(){if((typeof(ae.pageXOffset)=="number")||(typeof(ae.pageYOffset)=="number")){return[ae.pageXOffset,ae.pageYOffset]}else{if(k.body&&(k.body.scrollLeft||k.body.scrollTop)){return[k.body.scrollLeft,k.body.scrollTop]}else{if(k.documentElement&&(k.documentElement.scrollLeft||k.documentElement.scrollTop)){return[k.documentElement.scrollLeft,k.documentElement.scrollTop]}}}return[null,null]}function T(ak){var u=0,F=0;var al=ak;while(al){u+=parseInt(al.offsetLeft,10);F+=parseInt(al.offsetTop,10);al=al.offsetParent}return[u,F]}function S(F){var u=k.createElement("script");u.type="text/javascript";u.src=F;return u}function I(u){v().appendChild(S(u))}function Q(u){if(u.toString()){k.write('<style type="text/css">'+u+"</style>")}}function G(F,ak,u){if(ae.addEventListener){F.addEventListener(ak.substr(2),u,false)}else{F.attachEvent(ak,u)}}function x(F,ak,u){if(ae.removeEventListener){F.removeEventListener(ak.substr(2),u,false)}else{F.detachEvent(ak,u)}}function p(u){var F=k.createElement("style");F.setAttribute("type","text/css");if(F.styleSheet){F.styleSheet.cssText=u}else{var ak=k.createTextNode(u);F.appendChild(ak)}v().appendChild(F)}function aa(ak){if(y5_isEntry(self.document.domain,ak)){return true}var F=true;if(top&&(self!==top)){F=false;try{if(top.document&&(self.document.domain==top.document.domain)){F=true}}catch(u){}}return F}ae.y5_addEvent=G;ae.y5_removeEvent=x;ae.y5_checkEntry=H;ae.y5_linkScript=I;ae.yandex_isAdShowen=c;Ya.Common.RGB=function(ak,F,u){this[0]=ak;this[1]=F;this[2]=u};Ya.Common.RGB.fromString=function(u){u=(u||"000000").replace(/^#/,"");return new this(parseInt(u.substr(0,2),16)||0,parseInt(u.substr(2,2),16)||0,parseInt(u.substr(4,2),16)||0)};Ya.Common.RGB.prototype=new function(){function u(ak){var F="0123456789ABCDEF";return F.charAt(ak/16<<0)+F.charAt(ak%16)}this.toString=function(){return"#"+u(this[0])+u(this[1])+u(this[2])};this.avg=function(){return(this[0]+this[1]+this[2])/3};this.luma=function(){return(this[0]*299+this[1]*587+this[2]*114)/1000}};Ya.Common.Base64=new function(){var ak="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",F=String.fromCharCode;this.encode=function(ao,an){an=an||1000000;var am="";var av,at,ar,aw,au,aq,ap;var al=0;ao=u(ao,an*3/4|0);while(al<ao.length){av=ao.charCodeAt(al++);at=ao.charCodeAt(al++);ar=ao.charCodeAt(al++);aw=av>>2;au=((av&3)<<4)|(at>>4);aq=((at&15)<<2)|(ar>>6);ap=ar&63;if(isNaN(at)){aq=ap=64}else{if(isNaN(ar)){ap=64}}am=am+ak.charAt(aw)+ak.charAt(au)+ak.charAt(aq)+ak.charAt(ap)}return am};function u(al,an){al=al.replace(/\r\n/g,"\n");var am="",ao;for(var aq=0;aq<al.length;aq++){var ap=al.charCodeAt(aq);if(ap<128){ao=F(ap)}else{if((ap>127)&&(ap<2048)){ao=F((ap>>6)|192);ao+=F((ap&63)|128)}else{ao=F((ap>>12)|224);ao+=F(((ap>>6)&63)|128);ao+=F((ap&63)|128)}}if(am.length+ao.length>an){break}am+=ao}return am}};function Y(){ae.yandex_direct_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"direct")};ae.yandex_market_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"market")};ae.yandex_media_print=function(){Ya.Context.standardWrite(ae.yandex_partner_id*1,"media")}}Ya.Context=new function(){this.hit=false;this.init=B.wrapFunc("c.init",function(){ak.call(this);if(window.yandex_partner_id){Ya.Context.metrikaHit(window.yandex_partner_id)}u()});this.metrikaHit=B.wrapFunc("c.hit",function(am){if(this.hit){return}this.hit=true;new Ya.Metrika(am,{},1)});this.standardWrite=B.wrapFunc("c.write",function(ao,am){if(am=="compatibility"){Y();ae.yandex_ad_format=null;return}var an=F.call(this);if(am=="direct"){Ya.Direct.write(ao,an)}else{this.Loader.loadSync(ao,am,an,function(){var ap={market:g,media:N,banner_market:n};var aq=ap[am];if(aq){aq.apply(ae,arguments)}})}});function u(){var am=ae.yandex_context_callbacks,an;if(am){for(an=0;an<am.length;an++){am[an]()}}ae.yandex_context_callbacks=undefined}function ak(){if(ae.yandex_ad_format){var am=ae.yandex_ad_format,an=ae.yandex_partner_id*1;this.standardWrite(an,am)}else{}}function F(){var an={},ao="type border_type header_position bg_color bg_start_color bg_end_color border_color header_bg_color title_color text_color url_color all_color hover_color limit place callback favicon show_how_link".split(" ");for(var am=0;am<ao.length;am++){an[ao[am]]=ae["yandex_direct_"+ao[am]];ae["yandex_direct_"+ao[am]]=null}al(an);return an}function al(an){var ao="site_bg_color font_size site_charset font_family".split(" ");for(var am=0;am<ao.length;am++){an[ao[am]]=ae["yandex_"+ao[am]]}}};(function(){Ya.Context.grab=function(ao){var ar=["t"+(document.title||"")],aq=ar[0].length,an=1,am,at;while(an<4&&aq<ao){am=document.getElementsByTagName("h"+an);for(var al=0;al<am.length;al++){at=F(am[al]);aq+=at.length;ar.push(an+""+at)}an++}var ap=ar.join("\n");return Ya.Common.Base64.encode(ap,ao)};function F(al){return ak(al,0).replace(/\s+/," ")}var u=5;function ak(an,ap){if(!an||ap>u){return""}var ao="",am=an.childNodes,al=0,aq;while(al<am.length){aq=am[al];switch(aq.nodeType){case 1:case 5:ao+=ak(aq,ap+1);break;case 3:case 2:case 4:ao+=aq.nodeValue+" ";break}al++}return ao}})();Ya.Context.Loader=new function(){var aq=this;this.cache={};this.syncListener=null;this.asyncQueue=[];this.syncPartnerId=null;this.lastLoadUid=-1;this.loadSync=B.wrapFunc("l.sync",function(aw,ar,au,at,av){if(!av){av=at;at=-1}this.syncPartnerId=aw=this.syncPartnerId||aw;this.syncListener={product:ar,callback:av,partnerId:aw};if(this.cache[aw]){F.call(this)}else{if(window.y5_defAdFormat){ap.call(this)}else{this.lastLoadUid=at;ao.call(this,aw,ar,au,at)}}});this.loadAsync=B.wrapFunc("l.async",function(aw,ar,au,at,av){if(!av){av=at;at=-1}this.lastLoadUid=at;this.asyncQueue.push({product:ar,callback:av,active:false,partnerId:aw,settings:au});al.call(this)});this.notify=B.wrapFunc("l.notify",function(ar,au){var at=ak.call(this);if(this.reading){this.cache[at]=this.cache[at]||{};this.cache[at][ar]=au}else{ap.call(this)}});function F(){an.call(this);if(this.syncListener){this.syncListener=null}else{this.asyncQueue=this.asyncQueue.slice(1);al.call(this)}}function ak(){return(this.syncListener&&this.syncListener.partnerId)||(this.asyncQueue.length&&this.asyncQueue[0].partnerId)}function al(){if(this.asyncQueue.length>0&&!this.asyncQueue[0].active){var ar=this.asyncQueue[0];ar.active=true;I(am(ar.partnerId,ar.product,ar.settings))}}function an(){var at=this.syncListener||this.asyncQueue[0];var ar=this.cache[ak.call(this)][at.product];if(ar){at.callback.apply(ae,ar)}}function ap(){this.reading=true;try{y5_getYandexDirect()}catch(ar){}try{y5_getYandexMarket();window.y5_iMarketCounter=0}catch(ar){}try{y5_getMediaBanner()}catch(ar){}try{y5_getBannerMarket()}catch(ar){}try{y5_getSearchForm()}catch(ar){}this.reading=false;F.call(this);window.y5_defAdFormat=null}ae.y5_showYandexDirect=function(){aq.notify("direct",arguments)};ae.y5_showYandexMarket=function(){aq.notify("market",arguments)};ae.y5_showMediaBanner=function(){aq.notify("media",arguments)};ae.y5_showBannerMarket=function(){aq.notify("banner_market",arguments)};ae.y5_showSearchForm=function(){aq.notify("search",arguments)};function ao(au,ar,at){y5_addScript(am(au,ar,at))}function am(ar,az,au){var av=ae.yandex_stat_id*1||0,aA=av?("&stat-id="+av):"",aw=au.site_charset||u(),ax=ae.y5_isTransform?((az=="direct"&&au.limit)?"&direct-limit="+parseInt(au.limit):""):"&direct-limit=9",ay=(ae.y5_isTransform&&az=="market"&&au.limit)?"&market-limit="+parseInt(au.limit):"",at="//an.yandex.ru/code/"+ar+"?rnd="+Math.round(Math.random()*1000000)+aA+ax+ay+"&charset="+aw+"&block-origin=2&page-ref="+y5_escape(k.referrer,512)+"&target-ref="+y5_escape(ae.location.href,512);at+="&grab=";if(location.protocol=="http:"){at+=Ya.Context.grab(2040-at.length)}return at}function u(){var aw,ar=k.getElementsByTagName("meta");if(ar&&ar.length>0){for(var au=0,at=ar.length;au<at;au++){if(ar[au].content){var av=ar[au].content.match(/charset=(.*)/);if(av){aw=av[1];break}}}}aw=aw||k.characterSet||k.charset;return aw}};Ya.Context.Warning=new function(){var ak=[255,247,240,231,221,210,194,174,144,112,80,35,0],F=[255,222,190,165,139,118,102,86,75,70,68,66,64],u=Ya.Common.RGB;this.getBgColor=function(ax){var an=u.fromString(ax),ap=an.avg(),ao=1;while(ap<ak[ao]){ao++}var au=ak[ao],am=ak[ao-1],ar=F[ao],av=F[ao-1],aw=(ar+1*(ap-au)/(am-au)*(av-ar))/255,at=1-aw,aq=255*aw;return new u(an[0]*at+aq,an[1]*at+aq,an[2]*at+aq).toString()};var al=0.85;this.getBorderColor=function(an,ao){var ap=u.fromString(an),am=u.fromString(ao);return new u(ap[
                    
                
addthis_widget.js http://dream3d.googlecode.com/svn/trunk/ | JavaScript | 2 lines
                    
1/* (c) 2008, 2009, 2010 Add This, LLC */
                    
2if(!window._ate){var _atd="www.addthis.com/",_atr="//s7.addthis.com/",_atn="//l.addthiscdn.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,tamp:0.5,xamp:0,camp:1,vamp:1,famp:0.02,pamp:0.2,damp:1,abf:!!window.addthis_do_ab,unt:1};(function(){var E;try{E=window.location;if(E.protocol.indexOf("file")===0||E.protocol.indexOf("safari-extension")===0||E.protocol.indexOf("chrome-extension")===0){_atr="http:"+_atr}if(E.hostname.indexOf("localhost")!=-1){_atc.loc=1}}catch(L){}var I=navigator.userAgent.toLowerCase(),M=document,q=window,G=M.location,O={win:/windows/.test(I),xp:/windows nt 5.1/.test(I)||/windows nt 5.2/.test(I),osx:/os x/.test(I),chr:/chrome/.test(I),iph:/iphone/.test(I),dro:/android/.test(I),ipa:/ipad/.test(I),saf:/safari/.test(I),sf3:/safari 3/.test(I),web:/webkit/.test(I),opr:/opera/.test(I),msi:(/msie/.test(I))&&!(/opera/.test(I)),ffx:/firefox/.test(I),ff2:/firefox\/2/.test(I),ffn:/firefox\/((3.[6789][0-9a-z]*)|(4.[0-9a-z]*))/.test(I),ie6:/msie 6.0/.test(I),ie7:/msie 7.0/.test(I),mod:-1},f={rev:"86981",bro:O,wlp:(E||{}).protocol,show:1,dl:G,upm:!!q.postMessage&&(""+q.postMessage).toLowerCase().indexOf("[native code]")!==-1,camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),tamp:_atc.tamp-Math.random(),pamp:_atc.pamp-Math.random(),ab:"-",inst:1,wait:500,tmo:null,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget25.png",api:{},imgz:[],hash:window.location.hash};M.ce=M.createElement;M.gn=M.getElementsByTagName;window._ate=f;var u=function(s,p,r,d){if(!s){return r}if(s instanceof Array||(s.length&&(typeof s!=="function"))){for(var l=0,a=s.length,b=s[0];l<a;b=s[++l]){r=p.call(d||s,r,b,l,s)}}else{for(var e in s){r=p.call(d||s,r,s[e],e,s)}}return r},z=Array.prototype.slice,B=function(b){return z.apply(b,z.call(arguments,1))},A=function(a){return(""+a).replace(/(^\s+|\s+$)/g,"")},K=function(a,b){return u(B(arguments,1),function(e,d){return u(d,function(p,l,i){if(p){p[i]=l}return p},e)},a)},m=function(b,a){return u(b,function(i,e,d){d=A(d);if(d){i.push(_euc(d)+"="+_euc(A(e)))}return i},[]).join(a||"&")},j=function(b,a){return u((b||"").split(a||"&"),function(p,s){try{var l=s.split("="),i=A(_duc(l[0])),d=A(_duc(l.slice(1).join("=")));if(i){p[i]=d}}catch(r){}return p},{})},Q=function(){var a=B(arguments,0),d=a.shift(),b=a.shift();return function(){return d.apply(b,a.concat(B(arguments,0)))}},F=function(b,e,a,d){if(!e){return}if(we){e[(b?"detach":"attach")+"Event"]("on"+a,d)}else{e[(b?"remove":"add")+"EventListener"](a,d,false)}},k=function(d,a,b){F(0,d,a,b)},g=function(d,a,b){F(1,d,a,b)},c={reduce:u,slice:B,strip:A,extend:K,toKV:m,fromKV:j,bind:Q,listen:k,unlisten:g};f.util=c;K(f,c);(function(s,R,S){var p,U=s.util;function w(X,W,Z,V,Y){this.type=X;this.triggerType=W||X;this.target=Z||V;this.triggerTarget=V||Z;this.data=Y||{}}U.extend(w.prototype,{constructor:w,bubbles:false,preventDefault:U.noop,stopPropagation:U.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,U.extend({},this.data))}});function i(V,W){this.target=V;this.queues={};this.defaultEventType=W||w}function a(V){var W=this.queues;if(!W[V]){W[V]=[]}return W[V]}function r(V,W){this.getQueue(V).push(W)}function e(W,X){var Y=this.getQueue(W),V=Y.indexOf(X);if(V!==-1){Y.splice(V,1)}}function b(V,Z,Y,X){var W=this;if(!X){setTimeout(function(){W.dispatchEvent(new W.defaultEventType(V,V,Z,W.target,Y))},10)}else{W.dispatchEvent(new W.defaultEventType(V,V,Z,W.target,Y))}}function T(W){for(var X=0,Z=W.target,Y=this.getQueue(W.type),V=Y.length;X<V;X++){Y[X].call(Z,W.clone())}}function d(W){if(!W){return}for(var V in l){W[V]=U.bind(l[V],this)}return W}var l={constructor:i,getQueue:a,addEventListener:r,removeEventListener:e,dispatchEvent:T,fire:b,decorate:d};U.extend(i.prototype,l);s.event={PolyEvent:w,EventDispatcher:i}})(f,f.api,f);f.ed=new f.event.EventDispatcher(f);var n={isBound:0,isReady:0,readyList:[],onReady:function(){if(!n.isReady){n.isReady=1;var a=n.readyList.concat(window.addthis_onload||[]);for(var b=0;b<a.length;b++){a[b].call(window)}n.readyList=[]}},addLoad:function(a){var b=q.onload;if(typeof q.onload!="function"){q.onload=a}else{q.onload=function(){if(b){b()}a()}}},bindReady:function(){if(x.isBound||_atc.xol){return}x.isBound=1;if(M.addEventListener&&!O.opr){M.addEventListener("DOMContentLoaded",x.onReady,false)}var a=window.addthis_product;if(a&&a.indexOf("f")>-1){x.onReady();return}if(O.msi&&window==top){(function(){if(x.isReady){return}try{M.documentElement.doScroll("left")}catch(d){setTimeout(arguments.callee,0);return}x.onReady()})()}if(O.opr){M.addEventListener("DOMContentLoaded",function(){if(x.isReady){return}for(var d=0;d<M.styleSheets.length;d++){if(M.styleSheets[d].disabled){setTimeout(arguments.callee,0);return}}x.onReady()},false)}if(O.saf){var b;(function(){if(x.isReady){return}if(M.readyState!="loaded"&&M.readyState!="complete"){setTimeout(arguments.callee,0);return}if(b===undefined){var d=M.gn("link");for(var e=0;e<d.length;e++){if(d[e].getAttribute("rel")=="stylesheet"){b++}}var l=M.gn("style");b+=l.length}if(M.styleSheets.length!=b){setTimeout(arguments.callee,0);return}x.onReady()})()}x.addLoad(x.onReady)},append:function(b,a){x.bindReady();if(x.isReady){b.call(window,[])}else{x.readyList.push(function(){return b.call(window,[])})}}},x=n,P=f;K(f,{plo:[],lad:function(a){f.plo.push(a)}});(function(d,l,e){var a=window;d.pub=function(){return _euc((window.addthis_config||{}).username||window.addthis_pub||"")};d.usu=function(i,p){if(!a.addthis_share){a.addthis_share={}}if(p||i!=addthis_share.url){addthis_share.imp_url=0}};d.rsu=function(){var r=document,p=r.title,i=r.location?r.location.href:"";if(_atc.ver>=250&&addthis_share.imp_url&&i&&i!=a.addthis_share.url&&!(f.util.ivc((r.location.hash||"").substr(1).split(",").shift()))){a.addthis_share.url=a.addthis_url=i;a.addthis_share.title=a.addthis_title=p;return 1}return 0};d.igv=function(i,p){if(!a.addthis_config){a.addthis_config={username:a.addthis_pub}}else{if(addthis_config.data_use_cookies===false){_atc.xck=1}}if(!a.addthis_share){a.addthis_share={}}if(!addthis_share.url){if(!a.addthis_url&&addthis_share.imp_url===undefined){addthis_share.imp_url=1}addthis_share.url=(a.addthis_url||i||"").split("#{").shift()}if(!addthis_share.title){addthis_share.title=(a.addthis_title||p||"").split("#{").shift()}};if(!_atc.ost){if(!a.addthis_conf){a.addthis_conf={}}for(var b in addthis_conf){_atc[b]=addthis_conf[b]}_atc.ost=1}})(f,f.api,f);(function(b,l,e){var r,p=document,a=b.util;b.ckv=a.fromKV(p.cookie,";");function i(d){return a.fromKV(p.cookie,";")[d]}if(!b.cookie){b.cookie={}}b.cookie.rck=i})(f,f.api,f);(function(e,i,p){var d,R=e.util,s=4294967295,b=new Date().getTime();function r(){return((b/1000)&s).toString(16)+("00000000"+(Math.floor(Math.random()*(s+1))).toString(16)).slice(-8)}function a(S){return w(S)?(new Date((parseInt(S.substr(0,8),16)*1000))):new Date()}function l(S,U){var T=a(S);return(((new Date()).getTime()-T.getTime())>U*1000)}function w(S){return S&&S.match(/^[0-9a-f]{16}$/)}R.cuid=r;R.ivc=w;R.ioc=l})(f,f.api,f);(function(l,aa,ac){var ad=l,R=new Date().getTime(),Z=function(){return Math.floor(Math.random()*4294967295).toString(36)},ae=function(){return Math.floor((new Date().getTime()-R)/100).toString(16)},w=function(a){return"CXNID=2000001.521545608054043907"+(a||2)+"NXC"},p=0,s=function(a){if(p===0){ad.sid=p=(a||ad.util.cuid())}return p},e=null,d=function(a,af){if(e!==null){clearTimeout(e)}if(a){e=f.sto(function(){af(false)},f.wait)}},W=function(af,a){return _euc(af)+"="+_euc(a)+";"+ae()},V=1,r=function(af,ah){var a=(af||"").split("?"),af=a.shift(),ag=(a.pop()||"").split("&");return ah(af,ag)},S=function(a,af,ah,ag){if(!af){af={}}if(!af.remove){af.remove=[]}af.remove.push("sms_ss");af.remove.push("at_xt");if(af.remove){a=ab(a,af.remove)}if(af.clean){a=T(a)}if(af.defrag){a=i(a)}if(af.add){a=U(a,af.add,ah,ag)}return a},U=function(ah,aj,ai,af){var a={};if(aj){for(var ag in aj){if(ah.indexOf(ag+"=")>-1){continue}a[ag]=X(aj[ag],ah,ai,af)}aj=f.util.toKV(a)}return ah+(aj.length?((ah.indexOf("?")>-1?"&":"?")+aj):"")},X=function(ag,af,ah,a){var ah=ah||addthis_share;return ag.replace(/{{service}}/g,_euc(a||"")).replace(/{{code}}/g,_euc(a||"")).replace(/{{title}}/g,_euc(ah.title)).replace(/{{url}}/g,_euc(af))},ab=function(af,ah){var a={},ah=ah||[];for(var ag=0;ag<ah.length;ag++){a[ah[ag]]=1}return r(af,function(ai,al){var am=[];if(al){for(var aj in al){if(typeof(al[aj])=="string"){var ak=(al[aj]||"").split("=");if(ak.length!=2&&al[aj]){am.push(al[aj])}else{if(a[ak[0]]){continue}else{if(al[aj]){am.push(al[aj])}}}}}ai+=(am.length?("?"+am.join("&")):"")}return ai})},Y=function(a){var af=a.split("#").pop().split(",").shift().split("=").pop();if(f.util.ivc(af)){return a.split("#").pop().split(",")}return[""]},i=function(a){var af=Y(a).shift().split("=").pop();if(f.util.ivc(af)){return a.split("#").shift()}return a},T=function(a){return r(a,function(ag,aj){var af=ag.indexOf(";jsessionid"),ak=[];if(af>-1){ag=ag.substr(0,af)}if(aj){for(var ah in aj){if(typeof(aj[ah])=="string"){var ai=(aj[ah]||"").split("=");if(ai.length==2){if(ai[0].indexOf("utm_")===0||ai[0]=="gclid"||ai[0]=="sms_ss"||ai[0]=="at_xt"){continue}}if(aj[ah]){ak.push(aj[ah])}}}ag+=(ak.length?("?"+ak.join("&")):"")}return ag})},b=function(){return"AT-"+(ad.pub?(typeof(ad.pub)=="function"?ad.pub():ad.pub):"unknown")+"/-/"+ad.ab+"/"+s()+"/"+(V++)+(ad.uid!==null?"/"+ad.uid:"")};if(!f.track){f.track={}}l.util.extend(f.track,{cst:w,fcv:W,ran:Z,rup:ab,aup:U,cof:i,gof:Y,clu:T,mgu:S,ssid:s,sta:b,sxm:d})})(f,f.api,f);(function(){var Y=document,Z=f,s=[],r=null,T=[],w=function(){var a;while(a=T.pop()){X(a)}},i=[],V=null,W=function(d){d=d.split("-").shift();for(var a=0;a<i.length;a++){if(i[a]==d){return}}i.push(d)},R=function(){},aa=null,p=function(){var a=Y.getElementById("_atssh");if(!a){a=Y.ce("div");a.style.visibility="hidden";a.id="_atssh";Z.opp(a.style);Y.body.insertBefore(a,Y.body.firstChild)}return a},b=function(a){var ad,d=Math.floor(Math.random()*1000),ac=p();if(!Z.bro.msi){ad=Y.ce("iframe");ad.id="_atssh"+d}else{if(Z.bro.ie6&&!a&&Y.location.protocol.indexOf("https")==0){a="javascript:''"}ac.innerHTML='<iframe id="_atssh'+d+'" width="1" height="1" name="_atssh'+d+'" '+(a?'src="'+a+'"':"")+">";ad=Y.getElementById("_atssh"+d)}Z.opp(ad.style);ad.frameborder=ad.style.border=0;ad.style.top=ad.style.left=0;return ad},S=function(a){if(a&&a.data&&a.data.service){if(!Z.upm){if(Z.dcp){return}Z.dcp=1}X({gen:300,sh:a.data.service})}},e=function(d){var ac={},af=d.data||{},ad=af.svc,ae=af.cmo,a=af.pco,ag=af.cso;if(ad){ac.sh=ad}if(ae){ac.cm=ae}if(ag){ac.cs=ag}if(a){ac.spc=a}ab("sh","3",null,ac)},X=function(d){var ad=Z.dr,a=(Z.rev||"");if(!d){return}d.xck=_atc.xck?1:0;d.xxl=1;d.sid=Z.track.ssid();d.pub=Z.pub();d.ssl=Z.ssl||0;d.du=Z.tru(Z.du||Z.dl.href);if(Z.dt){d.dt=Z.dt}if(Z.cb){d.cb=Z.cb}d.lng=Z.lng();d.ver=_atc.ver;if(!Z.upm&&Z.uid){d.uid=Z.uid}d.pc=d.spc||i.join(",");if(ad){d.dr=Z.tru(ad)}if(Z.dh){d.dh=Z.dh}if(a){d.rev=a}if(Z.xfr){if(Z.upm){if(aa){aa.contentWindow.postMessage(m(d),"*")}}else{var ae=p(),ac="static/r07/sh29.html"+(false?"?t="+new Date().getTime():"");if(aa){ae.removeChild(ae.firstChild)}aa=b();aa.src=_atr+ac+"#"+m(d);ae.appendChild(aa)}}else{T.push(d)}},ab=function(ac,af,a,ad,ae){if(!window.at_sub&&!_atc.xtr){var d=ad||{};d.evt=ac;if(a){d.ext=a}r=d;if(ae===1){l(true)}else{Z.track.sxm(true,l)}}},U=function(d,a){s.push(Z.track.fcv(d,a));Z.track.sxm(true,l)},l=function(ad){var ac=Z.dl?Z.dl.hostname:"";if(s.length>0||r){Z.track.sxm(false,l);if(_atc.xtr){return}var d=r||{};d.ce=s.join(",");s=[];r=null;X(d);if(ad){var a=Y.ce("iframe");a.id="_atf";f.opp(a.style);Y.body.appendChild(a);a=Y.getElementById("_atf")}}};Z.ed.addEventListener("addthis-internal.compact",e);Z.ed.addEventListener("addthis.menu.share",S);if(!Z.track){Z.track={}}Z.util.extend(Z.track,{pcs:i,apc:W,cev:U,ctf:b,gtf:p,qtp:function(a){T.push(a)},stf:function(a){aa=a},trk:X,xtp:w})})();K(f,{_rec:[],xfr:!f.upm||!f.bro.ffx,pmh:function(d){if(d.origin.slice(-12)==".addthis.com"){if(!d.data){return}var b=j(d.data),a=f._rec;for(var i=0;i<a.length;i++){a[i](b)}}}});K(f,{lng:function(){return window.addthis_language||(window.addthis_config||{}).ui_language||(f.bro.msi?navigator.userLanguage:navigator.language)||"en"},iwb:function(a){var b={th:1,pl:1,sl:1,gl:1,hu:1,is:1,nb:1,se:1,su:1,sw:1};return !!b[a]},ivl:function(a){var b={af:1,afr:"af",ar:1,ara:"ar",az:1,aze:"az",be:1,bye:"be",bg:1,bul:"bg",bn:1,ben:"bn",bs:1,bos:"bs",ca:1,cat:"ca",cs:1,ces:"cs",cze:"cs",cy:1,cym:"cy",da:1,dan:"da",de:1,deu:"de",ger:"de",el:1,gre:"el",ell:"ell",en:1,eo:1,es:1,esl:"es",spa:"spa",et:1,est:"et",eu:1,fa:1,fas:"fa",per:"fa",fi:1,fin:"fi",fo:1,fao:"fo",fr:1,fra:"fr",fre:"fr",ga:1,gae:"ga",gdh:"ga",gl:1,glg:"gl",gu:1,he:1,heb:"he",hi:1,hin:"hin",hr:1,ht:1,cro:"hr",hu:1,hun:"hu",id:1,ind:"id",is:1,ice:"is",it:1,ita:"it",ja:1,jpn:"ja",ko:1,kor:"ko",ku:1,lb:1,ltz:"lb",lt:1,lit:"lt",lv:1,lav:"lv",mk:1,mac:"mk",mak:"mk",ml:1,mn:1,ms:1,msa:"ms",may:"ms",nb:1,nl:1,nla:"nl",dut:"nl",no:1,nds:1,nn:1,nno:"no",oc:1,oci:"oc",pl:1,pol:"pl",ps:1,pt:1,por:"pt",ro:1,ron:"ro",rum:"ro",ru:1,rus:"ru",sk:1,slk:"sk",slo:"sk",sl:1,slv:"sl",sq:1,alb:"sq",sr:1,se:1,si:1,ser:"sr",su:1,sv:1,sve:"sv",sw:1,swe:"sv",ta:1,tam:"ta",te:1,teg:"te",th:1,tha:"th",tl:1,tgl:"tl",tn:1,tr:1,tur:"tr",tt:1,uk:1,ukr:"uk",ur:1,urd:"ur",vi:1,vec:1,vie:"vi","zh-hk":1,"chi-hk":"zh-hk","zho-hk":"zh-hk","zh-tr":1,"chi-tr":"zh-tr","zho-tr":"zh-tr","zh-tw":1,"chi-tw":"zh-tw","zho-tw":"zh-tw",zh:1,chi:"zh",zho:"zh"};if(b[a]){return b[a]}a=a.split("-").shift();if(b[a]){if(b[a]===1){return a}else{return b[a]}}return 0},gvl:function(a){var b=f.ivl(a)||"en";if(b===1){b=a}return b},alg:function(d,b){var a=f.gvl((d||f.lng()).toLowerCase());if(a.indexOf("en")!==0&&(!f.pll||b)){f.pll=f.ajs("static/r07/lang08/"+a+".js")}}});K(f,{trim:function(a,b){try{a=a.replace(/^[\s\u3000]+|[\s\u3000]+$/g,"");if(b){a=_euc(a)}}catch(b){}return a||""},trl:[],tru:function(b,a){var p="",e=0,l=-1;if(b){p=b.substr(0,300);if(p!==b){if((l=p.lastIndexOf("%"))>=p.length-4){p=p.substr(0,l)}if(p!=b){for(var d in f.trl){if(f.trl[d]==a){e=1}}if(!e){f.trl.push(a)}}}}return p},sto:function(b,a){return setTimeout(b,a)},opp:function(a){a.width=a.height="1px";a.position="absolute";a.zIndex=100000},jlr:{},ajs:function(b,a){if(!f.jlr[b]){var e=M.ce("script"),d=M.gn("head")[0]||M.documentElement;e.src=(a?"":_atr)+b;d.insertBefore(e,d.firstChild);f.jlr[b]=1;return e}return 1},jlo:function(){try{var r=document,b=f,p=b.lng(),i=function(d){var a=new Image();f.imgz.push(a);a.src=d};b.alg(p);if(!b.pld){if(b.bro.ie6){i(_atr+b.spt);i(_atr+"static/t00/logo1414.gif");i(_atr+"static/t00/logo88.gif");if(window.addthis_feed){i("static/r05/feed00.gif",1)}}if(b.pll&&!window.addthis_translations){b.sto(function(){b.pld=b.ajs("static/r07/menu65.js")},10)}else{b.pld=b.ajs("static/r07/menu65.js")}}}catch(l){}},ao:functio
                    
                
BlobBuilder.js git://github.com/stesie/geierlein.git | JavaScript | 161 lines
                    
84		} else {
                    
85			return data_URI_header + "," + encodeURIComponent(blob.data);
                    
86		}
                    
133		// decode UTF-16 to binary string
                    
134		bb.push(unescape(encodeURIComponent(data)));
                    
135	}
                    
                
uri.js git://github.com/v8/v8.git | JavaScript | 393 lines
                    
388      "encodeURI", URIEncode,
                    
389      "encodeURIComponent", URIEncodeComponent
                    
390  ));
                    
                
dywe.js https://ijob.svn.codeplex.com/svn | JavaScript | 1 lines
                    
1var _dywe=new Object({c:"length",lb:"4.3.13",m:"cookie",b:undefined,cb:function(d,a){this.zb=d;this.Nb=a},r:"dywea=",W:"dyweb=",ma:"dywec=",Ta:"dywek=",na:"dywev=",oa:"dywex=",Sa:"GASO=",X:"dywez=",u:"dywem=",lc:"http://l.zhaopin.com/track.gif",mc:"https://l.zhaopin.com/track.gif",mc_pv:"http://l.zhaopin.com/track_pv.gif",mc_rv:"http://l.zhaopin.com/track_rv.gif",Wa:"dywecid=",Ya:"dywecsr=",$a:"dywegclid=",Ua:"dyweccn=",Xa:"dywecmd=",Za:"dywectr=",Va:"dywecct=",Hb:false,_gasoDomain:undefined,_gasoCPath:undefined,e:window,a:document,k:navigator,t:function(d){var a=1,c=0,h,o;if(!_dywe.q(d)){a=0;for(h=d[_dywe.c]-1;h>=0;h--){o=d.charCodeAt(h);a=(a<<6&268435455)+o+(o<<14);c=a&266338304;a=c!=0?a^c>>21:a}}return a},C:function(d,a,c){var h=_dywe,o="-",k,l,s=h.q;if(!s(d)&&!s(a)&&!s(c)){k=h.w(d,a);if(k>-1){l=d.indexOf(c,k);if(l<0)l=d[h.c];o=h.F(d,k+h.w(a,"=")+1,l)}}return o},Ea:function(d){var a=false,c=0,h,o;if(!_dywe.q(d)){a=true;for(h=0;h<d[_dywe.c];h++){o=d.charAt(h);c+="."==o?1:0;a=a&&c<=1&&(0==h&&"-"==o||_dywe.P(".0123456789",o))}}return a},d:function(d,a){var c=encodeURIComponent;return c instanceof Function?(a?encodeURI(d):c(d)):escape(d)},J:function(d,a){var c=decodeURIComponent,h;d=d.split("+").join(" ");if(c instanceof Function)try{h=a?decodeURI(d):c(d)}catch(o){h=unescape(d)}else h=unescape(d);return h},Db:function(d){return d&&d.hash?_dywe.F(d.href,_dywe.w(d.href,"#")):""},q:function(d){return _dywe.b==d||"-"==d||""==d},Lb:function(d){return d[_dywe.c]>0&&_dywe.P(" \n\r\t",d)},P:function(d,a){return _dywe.w(d,a)>-1},h:function(d,a){d[d[_dywe.c]]=a},T:function(d){return d.toLowerCase()},z:function(d,a){return d.split(a)},w:function(d,a){return d.indexOf(a)},F:function(d,a,c){c=_dywe.b==c?d[_dywe.c]:c;return d.substring(a,c)},uc:function(){var d=_dywe.b,a=window;if(a&&a.gaGlobal&&a.gaGlobal.hid)d=a.gaGlobal.hid;else{d=Math.round(Math.random()*2147483647);a.gaGlobal=a.gaGlobal?a.gaGlobal:{};a.gaGlobal.hid=d}return d},wa:function(){return Math.round(Math.random()*2147483647)},Gc:function(){return(_dywe.wa()^_dywe.vc())*2147483647},vc:function(){var d=_dywe.k,a=_dywe.a,c=_dywe.e,h=a[_dywe.m]?a[_dywe.m]:"",o=c.history[_dywe.c],k,l,s=[d.appName,d.version,d.language?d.language:d.browserLanguage,d.platform,d.userAgent,d.javaEnabled()?1:0].join("");if(c.screen)s+=c.screen.width+"x"+c.screen.height+c.screen.colorDepth;else if(c.java){l=java.awt.Toolkit.getDefaultToolkit().getScreenSize();s+=l.screen.width+"x"+l.screen.height}s+=h;s+=a.referrer?a.referrer:"";k=s[_dywe.c];while(o>0)s+=o--^k++;return _dywe.t(s)}});_dywe.hc=function(){var d=this,a=_dywe.cb;function c(h,o){return new a(h,o)}d.db="utm_campaign";d.eb="utm_content";d.fb="utm_id";d.gb="utm_medium";d.hb="utm_nooverride";d.ib="utm_source";d.jb="utm_term";d.kb="gclid";d.pa=0;d.I=0;d.wb="15768000";d.Tb="1800";d.ea=[];d.ga=[];d.Ic="cse";d.Gb="q";d.ab="google";d.fa=[c(d.ab,d.Gb),c("yahoo","p"),c("msn","q"),c("bing","q"),c("aol","query"),c("aol","encquery"),c("lycos","query"),c("ask","q"),c("altavista","q"),c("netscape","query"),c("cnn","query"),c("looksmart","qt"),c("about","terms"),c("mamma","query"),c("alltheweb","q"),c("gigablast","q"),c("voila","rdata"),c("virgilio","qs"),c("live","q"),c("baidu","wd"),c("alice","qs"),c("yandex","text"),c("najdi","q"),c("aol","q"),c("club-internet","query"),c("mama","query"),c("seznam","q"),c("search","q"),c("wp","szukaj"),c("onet","qt"),c("netsprint","q"),c("google.interia","q"),c("szukacz","q"),c("yam","k"),c("pchome","q"),c("kvasir","searchExpr"),c("sesam","q"),c("ozu","q"),c("terra","query"),c("nostrum","query"),c("mynet","q"),c("ekolay","q"),c("search.ilse","search_for"),c("youdao","q"),c("sogou","query"),c("soso","w")];d.B=undefined;d.Kb=false;d.p="/";d.ha=100;d.Da="/track.gif";d.ta=1;d.ua=1;d.G="|";d.sa=1;d.qa=1;d.pb=1;d.g="auto";d.D=1;d.Ga=1000;d.Yc=10;d.nc=10;d.Zc=0.2};_dywe.Y=function(d,a){var c,h,o,k,l,s,q,f=this,n=_dywe,w=n.q,x=n.c,g,z=a;f.a=d;function B(i){var b=i instanceof Array?i.join("."):"";return w(b)?"-":b}function A(i,b){var e=[],j;if(!w(i)){e=n.z(i,".");if(b)for(j=0;j<e[x];j++)if(!n.Ea(e[j]))e[j]="-"}return e}function p(){return u(63072000000)}function u(i){var b=new Date,e=new Date(b.getTime()+i);return"expires="+e.toGMTString()+"; "}function m(i,b){f.a[n.m]=i+"; path="+z.p+"; "+b+f.Cc()}function r(i,b,e){var j=f.V,t,v;for(t=0;t<j[x];t++){v=j[t][0];v+=w(b)?b:b+j[t][4];j[t][2](n.C(i,v,e))}}f.Jb=function(){return n.b==g||g==f.t()};f.Ba=function(){return l?l:"-"};f.Wb=function(i){l=i};f.Ma=function(i){g=n.Ea(i)?i*1:"-"};f.Aa=function(){return B(s)};f.Na=function(i){s=A(i)};f.Hc=function(){return g?g:"-"};f.Cc=function(){return w(z.g)?"":"domain="+z.g+";"};f.ya=function(){return B(c)};f.Ub=function(i){c=A(i,1)};f.K=function(){return B(h)};f.La=function(i){h=A(i,1)};f.za=function(){return B(o)};f.Vb=function(i){o=A(i,1)};f.Ca=function(){return B(k)};f.Xb=function(i){k=A(i);for(var b=0;b<k[x];b++)if(b<4&&!n.Ea(k[b]))k[b]="-"};f.Dc=function(){return q};f.Uc=function(i){q=i};f.pc=function(){c=[];h=[];o=[];k=[];l=n.b;s=[];g=n.b};f.t=function(){var i="",b;for(b=0;b<f.V[x];b++)i+=f.V[b][1]();return n.t(i)};f.Ha=function(i){var b=f.a[n.m],e=false;if(b){r(b,i,";");f.Ma(f.t());e=true}return e};f.Rc=function(i){r(i,"","&");f.Ma(n.C(i,n.Ta,"&"))};f.Wc=function(){var i=f.V,b=[],e;for(e=0;e<i[x];e++)n.h(b,i[e][0]+i[e][1]());n.h(b,n.Ta+f.t());return b.join("&")};f.bd=function(i,b){var e=f.V,j=z.p,t;f.Ha(i);z.p=b;for(t=0;t<e[x];t++)if(!w(e[t][1]()))e[t][3]();z.p=j};f.dc=function(){m(n.r+f.ya(),p())};f.Pa=function(){m(n.W+f.K(),u(z.Tb*1000))};f.ec=function(){m(n.ma+f.za(),"")};f.um=function(){m(n.u+f.za()+".y",p())};f.Ra=function(){m(n.X+f.Ca(),u(z.wb*1000))};f.fc=function(){m(n.oa+f.Ba(),p())};f.Qa=function(){m(n.na+f.Aa(),p())};f.cd=function(){m(n.Sa+f.Dc(),"")};f.V=[[n.r,f.ya,f.Ub,f.dc,"."],[n.W,f.K,f.La,f.Pa,""],[n.ma,f.za,f.Vb,f.ec,""],[n.oa,f.Ba,f.Wb,f.fc,""],[n.X,f.Ca,f.Xb,f.Ra,"."],[n.na,f.Aa,f.Na,f.Qa,"."]]};_dywe.jc=function(d){var a=this,c=_dywe,h=d,o,k=function(l){var s=(new Date).getTime(),q;q=(s-l[3])*(h.Zc/1000);if(q>=1){l[2]=Math.min(Math.floor(l[2]*1+q),h.nc);l[3]=s}return l};a.O=function(l,s,q,f,n,w,x){var g,z=h.D,B=q.location;if(!o)o=new c.Y(q,h);o.Ha(f);g=c.z(o.K(),".");if(g[1]<500||n){if(w)g=k(g);if(n||!w||g[2]>=1){if(!n&&w)g[2]=g[2]*1-1;g[1]=g[1]*1+1;l="?dywewv="+_dywe.lb+"&dywen="+c.wa()+(c.q(B.hostname)?"":"&dywehn="+c.d(B.hostname))+(h.ha==100?"":"&dywesp="+c.d(h.ha))+l;if(0==z||2==z){var A=new Image(1,1);A.src=h.Da+l;var p=2==z?function(){}:x||function(){};A.onload=p}if(1==z||2==z){var u=new Image(1,1);u.src=("https:"==B.protocol?c.mc:c.lc)+l+"&dyweac="+s+"&dywecc="+a.wc(q,f)+a.wc2(q);u.onload=x||function(){}}}}o.La(g.join("."));o.Pa()};a.O_pv=function(q,f){var iframes=c.a.getElementsByTagName("iframe");var iframeOk=null;for(var i=0;i<iframes.length;i++)if(iframes[i].src.toString().indexOf("http://jobs.zhaopin.com/pv.htm")==0&&iframes[i].src.toString().toLowerCase().indexOf("pid=cc")>0){iframeOk=iframes[i];break}if(iframeOk!=null){var w=c.C(q[c.m],c.r+f,";");var z=c.a["location"].search;var y=c.C(iframeOk.src,"pid=","&");var qs=c.d("?"+c.r+w+"&"+(!c.q(z)?z.substring(1)+"&":"")+"pid="+y,true);var u=new Image(1,1);u.src=c.mc_pv+qs}};a.O_rv=function(){try{if(typeof(window["trackResumeViewFlag"])!="undefined"&&window["trackResumeViewFlag"]){if(document.ifm_f&&window["ifm_url"]){if(c.w(window["ifm_url"],".htm")>0){var ext_id=c.C(document.ifm_f.location.href,"ext_id=","&");var arrExtId=ext_id.split("_");var lIndex=window["ifm_url"].lastIndexOf("_");var qs=c.d("?extid="+arrExtId[0]+"&vernum="+arrExtId[1]+"&langid="+window["ifm_url"].substr(lIndex+1,1)+"&compid="+window["compid"]+"&loginid="+window["loginid"]+"&comptype="+window["comptype"],true);var u=new Image(1,1);u.src=c.mc_rv+qs}}}}catch(e){}};a.wc=function(l,s){var q=[],f=[c.r,c.X,c.u,c.na,c.oa],n,w=l[c.m],x;for(n=0;n<f[c.c];n++){x=c.C(w,f[n]+s,";");if(!c.q(x))c.h(q,f[n]+x+";")}return c.d(q.join("+"))};a.wc2=function(l){var q=[],f=["urlfrom=","adfcid="],n,w=l[c.m],x;for(n=0;n<f[c.c];n++){x=c.C(w,f[n],";");if(!c.q(x))c.h(q,f[n]+c.d(x))}return"&"+q.join("&")}};_dywe.i=function(){this.la=[]};_dywe.i.bb=function(d,a,c,h,o,k){var l=this;l.cc=d;l.Oa=a;l.L=c;l.sb=h;l.Pb=o;l.Qb=k};_dywe.i.bb.prototype.S=function(){var d=this,a=_dywe.d;return"&"+["dywet=item","dywetid="+a(d.cc),"dyweipc="+a(d.Oa),"dyweipn="+a(d.L),"dyweiva="+a(d.sb),"dyweipr="+a(d.Pb),"dyweiqt="+a(d.Qb)].join("&")};_dywe.i.$=function(d,a,c,h,o,k,l,s){var q=this;q.v=d;q.ob=a;q.bc=c;q.ac=h;q.Yb=o;q.ub=k;q.$b=l;q.xb=s;q.ca=[]};_dywe.i.$.prototype.mb=function(d,a,c,h,o){var k=this,l=k.Eb(d),s=k.v,q=_dywe;if(q.b==l)q.h(k.ca,new q.i.bb(s,d,a,c,h,o));else{l.cc=s;l.Oa=d;l.L=a;l.sb=c;l.Pb=h;l.Qb=o}};_dywe.i.$.prototype.Eb=function(d){var a,c=this.ca,h;for(h=0;h<c[_dywe.c];h++)a=d==c[h].Oa?c[h]:a;return a};_dywe.i.$.prototype.S=function(){var d=this,a=_dywe.d;return"&"+["dywet=tran","dywetid="+a(d.v),"dywetst="+a(d.ob),"dywetto="+a(d.bc),"dywettx="+a(d.ac),"dywetsp="+a(d.Yb),"dywetci="+a(d.ub),"dywetrg="+a(d.$b),"dywetco="+a(d.xb)].join("&")};_dywe.i.prototype.nb=function(d,a,c,h,o,k,l,s){var q=this,f=_dywe,n=q.xa(d);if(f.b==n){n=new f.i.$(d,a,c,h,o,k,l,s);f.h(q.la,n)}else{n.ob=a;n.bc=c;n.ac=h;n.Yb=o;n.ub=k;n.$b=l;n.xb=s}return n};_dywe.i.prototype.xa=function(d){var a,c=this.la,h;for(h=0;h<c[_dywe.c];h++)a=d==c[h].v?c[h]:a;return a};_dywe.gc=function(d){var a=this,c="-",h=_dywe,o=d;a.Ja=screen;a.qb=!self.screen&&self.java?java.awt.Toolkit.getDefaultToolkit():h.b;a.a=document;a.e=window;a.k=navigator;a.Ka=c;a.Sb=c;a.tb=c;a.Ob=c;a.Mb=1;a.Bb=c;function k(){var l,s,q,f,n="ShockwaveFlash",w="$version",x=a.k?a.k.plugins:h.b;if(x&&x[h.c]>0)for(l=0;l<x[h.c]&&!q;l++){s=x[l];if(h.P(s.name,"Shockwave Flash"))q=h.z(s.description,"Shockwave Flash ")[1]}else{n=n+"."+n;try{f=new ActiveXObject(n+".7");q=f.GetVariable(w)}catch(g){}if(!q)try{f=new ActiveXObject(n+".6");q="WIN 6,0,21,0";f.AllowScriptAccess="always";q=f.GetVariable(w)}catch(z){}if(!q)try{f=new ActiveXObject(n);q=f.GetVariable(w)}catch(z){}if(q){q=h.z(h.z(q," ")[1],",");q=q[0]+"."+q[1]+" r"+q[2]}}return q?q:c}a.xc=function(){var l;if(self.screen){a.Ka=a.Ja.width+"x"+a.Ja.height;a.Sb=a.Ja.colorDepth+"-bit"}else if(a.qb)try{l=a.qb.getScreenSize();a.Ka=l.width+"x"+l.height}catch(s){}a.Ob=h.T(a.k&&a.k.language?a.k.language:(a.k&&a.k.browserLanguage?a.k.browserLanguage:c));a.Mb=a.k&&a.k.javaEnabled()?1:0;a.Bb=o?k():c;a.tb=h.d(a.a.characterSet?a.a.characterSet:(a.a.charset?a.a.charset:c))};a.Xc=function(){return"&"+["dywecs="+h.d(a.tb),"dywesr="+a.Ka,"dywesc="+a.Sb,"dyweul="+a.Ob,"dyweje="+a.Mb,"dywefl="+h.d(a.Bb)].join("&")}};_dywe.n=function(d,a,c,h,o){var k=this,l=_dywe,s=l.q,q=l.b,f=l.P,n=l.C,w=l.T,x=l.z,g=l.c;k.a=a;k.f=d;k.Rb=c;k.ja=h;k.o=o;function z(p){return s(p)||"0"==p||!f(p,"://")}function B(p){var u="";p=w(x(p,"://")[1]);if(f(p,"/")){p=x(p,"/")[1];if(f(p,"?"))u=x(p,"?")[0]}return u}function A(p){var u="";u=w(x(p,"://")[1]);if(f(u,"/"))u=x(u,"/")[0];return u}k.Fc=function(p){var u=k.Fb(),m=k.o;return new l.n.s(n(p,m.fb+"=","&"),n(p,m.ib+"=","&"),n(p,m.kb+"=","&"),k.ba(p,m.db,"(not set)"),k.ba(p,m.gb,"(not set)"),k.ba(p,m.jb,u&&!s(u.R)?l.J(u.R):q),k.ba(p,m.eb,q))};k.Ib=function(p){var u=A(p),m=B(p);if(f(u,k.o.ab)){p=x(p,"?").join("&");if(f(p,"&"+k.o.Gb+"="))if(m==k.o.Ic)return true}return false};k.Fb=function(){var p,u,m=k.Rb,r,i,b=k.o.fa;if(z(m)||k.Ib(m))return;p=A(m);for(r=0;r<b[g];r++){i=b[r];if(f(p,w(i.zb))){m=x(m,"?").join("&");if(f(m,"&"+i.Nb+"=")){u=x(m,"&"+i.Nb+"=")[1];if(f(u,"&"))u=x(u,"&")[0];return new l.n.s(q,i.zb,q,"(organic)","organic",u,q)}}}};k.ba=function(p,u,m){var r=n(p,u+"=","&"),i=!s(r)?l.J(r):(!s(m)?m:"-");return i};k.Nc=function(p){var u=k.o.ea,m=false,r,i;if(p&&"organic"==p.da){r=w(l.J(p.R));for(i=0;i<u[g];i++)m=m||w(u[i])==r}return m};k.Ec=function(){var p="",u="",m=k.Rb;if(z(m)||k.Ib(m))return;p=w(x(m,"://")[1]);if(f(p,"/")){u=l.F(p,l.w(p,"/"));if(f(u,"?"))u=x(u,"?")[0];p=x(p,"/")[0]}if(0==l.w(p,"www."))p=l.F(p,4);return new l.n.s(q,p,q,"(referral)","referral",q,u)};k.sc=function(p){var u="";if(k.o.pa){u=l.Db(p);u=""!=u?u+"&":u}u+=p.search;return u};k.zc=function(){return new l.n.s(q,"(direct)",q,"(direct)","(none)",q,q)};k.Oc=function(p){var u=false,m,r,i=k.o.ga;if(p&&"referral"==p.da){m=w(l.d(p.ia));for(r=0;r<i[g];r++)u=u||f(m,w(i[r]))}return u};k.U=function(p){return q!=p&&p.Fa()};k.yc=function(p,u){var m="",r="-",i,b,e=0,j,t,v=k.f;if(!p)return"";t=k.a[l.m]?k.a[l.m]:"";m=k.sc(k.a.location);if(k.o.I&&p.Jb()){r=p.Ca();if(!s(r)&&!f(r,";")){p.Ra();return""}}r=n(t,l.X+v+".",";");i=k.Fc(m);if(k.U(i)){b=n(m,k.o.hb+"=","&");if("1"==b&&!s(r))return""}if(!k.U(i)){i=k.Fb();if(!s(r)&&k.Nc(i))return""}if(!k.U(i)&&u){i=k.Ec();if(!s(r)&&k.Oc(i))return""}if(!k.U(i))if(s(r)&&u)i=k.zc();if(!k.U(i))return"";if(!s(r)){var y=x(r,"."),E=new l.n.s;E.Cb(y.slice(4).join("."));j=w(E.ka())==w(i.ka());e=y[3]*1}if(!j||u){var F=n(t,l.r+v+".",";"),I=F.lastIndexOf("."),G=I>9?l.F(F,I+1)*1:0;e++;G=0==G?1:G;p.Xb([v,k.ja,G,e,i.ka()].join("."));p.Ra();return"&dywecn=1"}else return"&dywecr=1"}};_dywe.n.s=function(d,a,c,h,o,k,l){var s=this;s.v=d;s.ia=a;s.ra=c;s.L=h;s.da=o;s.R=k;s.vb=l};_dywe.n.s.prototype.ka=function(){var d=this,a=_dywe,c=[],h=[[a.Wa,d.v],[a.Ya,d.ia],[a.$a,d.ra],[a.Ua,d.L],[a.Xa,d.da],[a.Za,d.R],[a.Va,d.vb]],o,k;if(d.Fa())for(o=0;o<h[a.c];o++)if(!a.q(h[o][1])){k=h[o][1].split("+").join("%20");k=k.split(" ").join("%20");a.h(c,h[o][0]+k)}return c.join("|")};_dywe.n.s.prototype.Fa=function(){var d=this,a=_dywe.q;return!(a(d.v)&&a(d.ia)&&a(d.ra))};_dywe.n.s.prototype.Cb=function(d){var a=this,c=_dywe,h=function(o){return c.J(c.C(d,o,"|"))};a.v=h(c.Wa);a.ia=h(c.Ya);a.ra=h(c.$a);a.L=h(c.Ua);a.da=h(c.Xa);a.R=h(c.Za);a.vb=h(c.Va)};_dywe.Z=function(){var d=this,a=_dywe,c={},h="k",o="v",k=[h,o],l="(",s=")",q="*",f="!",n="'",w={};w[n]="'0";w[s]="'1";w[q]="'2";w[f]="'3";var x=1;function g(m,r,i,b){if(a.b==c[m])c[m]={};if(a.b==c[m][r])c[m][r]=[];c[m][r][i]=b}function z(m,r,i){return a.b!=c[m]&&a.b!=c[m][r]?c[m][r][i]:a.b}function B(m,r){if(a.b!=c[m]&&a.b!=c[m][r]){c[m][r]=a.b;var i=true,b;for(b=0;b<k[a.c];b++)if(a.b!=c[m][k[b]]){i=false;break}if(i)c[m]=a.b}}function A(m){var r="",i=false,b,e;for(b=0;b<k[a.c];b++){e=m[k[b]];if(a.b!=e){if(i)r+=k[b];r+=p(e);i=false}else i=true}return r}function p(m){var r=[],i,b;for(b=0;b<m[a.c];b++)if(a.b!=m[b]){i="";if(b!=x&&a.b==m[b-1]){i+=b.toString();i+=f}i+=u(m[b]);a.h(r,i)}return l+r.join(q)+s}function u(m){var r="",i,b,e;for(i=0;i<m[a.c];i++){b=m.charAt(i);e=w[b];r+=a.b!=e?e:b}return r}d.Kc=function(m){return a.b!=c[m]};d.N=function(){var m=[],r;for(r in c)if(a.b!=c[r])a.h(m,r.toString()+A(c[r]));return m.join("")};d.Sc=function(m){if(m==a.b)return d.N();var r=[m.N()],i;for(i in c)if(a.b!=c[i]&&!m.Kc(i))a.h(r,i.toString()+A(c[i]));return r.join("")};d._setKey=function(m,r,i){if(typeof i!="string")return false;g(m,h,r,i);return true};d._setValue=function(m,r,i){if(typeof i!="number"&&(a.b==Number||!(i instanceof Number)))return false;if(Math.round(i)!=i||i==NaN||i==Infinity)return false;g(m,o,r,i.toString());return true};d.
                    
                
ext-base.js https://hg01.codeplex.com/industrialdashboard | JavaScript | 7 lines
                    
6*/
                    
7window.undefined = window.undefined; Ext = { version: "3.2.1", versionDetail: { major: 3, minor: 2, patch: 1} }; Ext.apply = function (d, e, b) { if (b) { Ext.apply(d, b) } if (d && e && typeof e == "object") { for (var a in e) { d[a] = e[a] } } return d }; (function () { var g = 0, s = Object.prototype.toString, t = navigator.userAgent.toLowerCase(), y = function (e) { return e.test(t) }, i = document, l = i.compatMode == "CSS1Compat", A = y(/opera/), h = y(/\bchrome\b/), u = y(/webkit/), x = !h && y(/safari/), f = x && y(/applewebkit\/4/), b = x && y(/version\/3/), B = x && y(/version\/4/), r = !A && y(/msie/), p = r && y(/msie 7/), o = r && y(/msie 8/), q = r && !p && !o, n = !u && y(/gecko/), d = n && y(/rv:1\.8/), a = n && y(/rv:1\.9/), v = r && !l, z = y(/windows|win32/), k = y(/macintosh|mac os x/), j = y(/adobeair/), m = y(/linux/), c = /^https/i.test(window.location.protocol); if (q) { try { i.execCommand("BackgroundImageCache", false, true) } catch (w) { } } Ext.apply(Ext, { SSL_SECURE_URL: c && r ? 'javascript:""' : "about:blank", isStrict: l, isSecure: c, isReady: false, enableGarbageCollector: true, enableListenerCollection: false, enableNestedListenerRemoval: false, USE_NATIVE_JSON: false, applyIf: function (C, D) { if (C) { for (var e in D) { if (!Ext.isDefined(C[e])) { C[e] = D[e] } } } return C }, id: function (e, C) { e = Ext.getDom(e, true) || {}; if (!e.id) { e.id = (C || "ext-gen") + (++g) } return e.id }, extend: function () { var C = function (E) { for (var D in E) { this[D] = E[D] } }; var e = Object.prototype.constructor; return function (J, G, I) { if (typeof G == "object") { I = G; G = J; J = I.constructor != e ? I.constructor : function () { G.apply(this, arguments) } } var E = function () { }, H, D = G.prototype; E.prototype = D; H = J.prototype = new E(); H.constructor = J; J.superclass = D; if (D.constructor == e) { D.constructor = G } J.override = function (F) { Ext.override(J, F) }; H.superclass = H.supr = (function () { return D }); H.override = C; Ext.override(J, I); J.extend = function (F) { return Ext.extend(J, F) }; return J } } (), override: function (e, D) { if (D) { var C = e.prototype; Ext.apply(C, D); if (Ext.isIE && D.hasOwnProperty("toString")) { C.toString = D.toString } } }, namespace: function () { var C, e; Ext.each(arguments, function (D) { e = D.split("."); C = window[e[0]] = window[e[0]] || {}; Ext.each(e.slice(1), function (E) { C = C[E] = C[E] || {} }) }); return C }, urlEncode: function (G, F) { var D, C = [], E = encodeURIComponent; Ext.iterate(G, function (e, H) { D = Ext.isEmpty(H); Ext.each(D ? e : H, function (I) { C.push("&", E(e), "=", (!Ext.isEmpty(I) && (I != e || !D)) ? (Ext.isDate(I) ? Ext.encode(I).replace(/"/g, "") : E(I)) : "") }) }); if (!F) { C.shift(); F = "" } return F + C.join("") }, urlDecode: function (D, C) { if (Ext.isEmpty(D)) { return {} } var G = {}, F = D.split("&"), H = decodeURIComponent, e, E; Ext.each(F, function (I) { I = I.split("="); e = H(I[0]); E = H(I[1]); G[e] = C || !G[e] ? E : [].concat(G[e]).concat(E) }); return G }, urlAppend: function (e, C) { if (!Ext.isEmpty(C)) { return e + (e.indexOf("?") === -1 ? "?" : "&") + C } return e }, toArray: function () { return r ? function (D, G, E, F) { F = []; for (var C = 0, e = D.length; C < e; C++) { F.push(D[C]) } return F.slice(G || 0, E || F.length) } : function (e, D, C) { return Array.prototype.slice.call(e, D || 0, C || e.length) } } (), isIterable: function (e) { if (Ext.isArray(e) || e.callee) { return true } if (/NodeList|HTMLCollection/.test(s.call(e))) { return true } return ((typeof e.nextNode != "undefined" || e.item) && Ext.isNumber(e.length)) }, each: function (F, E, D) { if (Ext.isEmpty(F, true)) { return } if (!Ext.isIterable(F) || Ext.isPrimitive(F)) { F = [F] } for (var C = 0, e = F.length; C < e; C++) { if (E.call(D || F[C], F[C], C, F) === false) { return C } } }, iterate: function (D, C, e) { if (Ext.isEmpty(D)) { return } if (Ext.isIterable(D)) { Ext.each(D, C, e); return } else { if (typeof D == "object") { for (var E in D) { if (D.hasOwnProperty(E)) { if (C.call(e || D, E, D[E], D) === false) { return } } } } } }, getDom: function (D, C) { if (!D || !i) { return null } if (D.dom) { return D.dom } else { if (typeof D == "string") { var E = i.getElementById(D); if (E && r && C) { if (D == E.getAttribute("id")) { return E } else { return null } } return E } else { return D } } }, getBody: function () { return Ext.get(i.body || i.documentElement) }, removeNode: r && !o ? function () { var e; return function (C) { if (C && C.tagName != "BODY") { (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(C, true) : Ext.EventManager.removeAll(C); e = e || i.createElement("div"); e.appendChild(C); e.innerHTML = ""; delete Ext.elCache[C.id] } } } () : function (e) { if (e && e.parentNode && e.tagName != "BODY") { (Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(e, true) : Ext.EventManager.removeAll(e); e.parentNode.removeChild(e); delete Ext.elCache[e.id] } }, isEmpty: function (C, e) { return C === null || C === undefined || ((Ext.isArray(C) && !C.length)) || (!e ? C === "" : false) }, isArray: function (e) { return s.apply(e) === "[object Array]" }, isDate: function (e) { return s.apply(e) === "[object Date]" }, isObject: function (e) { return !!e && Object.prototype.toString.call(e) === "[object Object]" }, isPrimitive: function (e) { return Ext.isString(e) || Ext.isNumber(e) || Ext.isBoolean(e) }, isFunction: function (e) { return s.apply(e) === "[object Function]" }, isNumber: function (e) { return typeof e === "number" && isFinite(e) }, isString: function (e) { return typeof e === "string" }, isBoolean: function (e) { return typeof e === "boolean" }, isElement: function (e) { return e ? !!e.tagName : false }, isDefined: function (e) { return typeof e !== "undefined" }, isOpera: A, isWebKit: u, isChrome: h, isSafari: x, isSafari3: b, isSafari4: B, isSafari2: f, isIE: r, isIE6: q, isIE7: p, isIE8: o, isGecko: n, isGecko2: d, isGecko3: a, isBorderBox: v, isLinux: m, isWindows: z, isMac: k, isAir: j }); Ext.ns = Ext.namespace })(); Ext.ns("Ext.util", "Ext.lib", "Ext.data"); Ext.elCache = {}; Ext.apply(Function.prototype, { createInterceptor: function (b, a) { var c = this; return !Ext.isFunction(b) ? this : function () { var e = this, d = arguments; b.target = e; b.method = c; return (b.apply(a || e || window, d) !== false) ? c.apply(e || window, d) : null } }, createCallback: function () { var a = arguments, b = this; return function () { return b.apply(window, a) } }, createDelegate: function (c, b, a) { var d = this; return function () { var f = b || arguments; if (a === true) { f = Array.prototype.slice.call(arguments, 0); f = f.concat(b) } else { if (Ext.isNumber(a)) { f = Array.prototype.slice.call(arguments, 0); var e = [a, 0].concat(b); Array.prototype.splice.apply(f, e) } } return d.apply(c || window, f) } }, defer: function (c, e, b, a) { var d = this.createDelegate(e, b, a); if (c > 0) { return setTimeout(d, c) } d(); return 0 } }); Ext.applyIf(String, { format: function (b) { var a = Ext.toArray(arguments, 1); return b.replace(/\{(\d+)\}/g, function (c, d) { return a[d] }) } }); Ext.applyIf(Array.prototype, { indexOf: function (b, c) { var a = this.length; c = c || 0; c += (c < 0) ? a : 0; for (; c < a; ++c) { if (this[c] === b) { return c } } return -1 }, remove: function (b) { var a = this.indexOf(b); if (a != -1) { this.splice(a, 1) } return this } }); Ext.ns("Ext.grid", "Ext.list", "Ext.dd", "Ext.tree", "Ext.form", "Ext.menu", "Ext.state", "Ext.layout", "Ext.app", "Ext.ux", "Ext.chart", "Ext.direct"); Ext.apply(Ext, function () { var c = Ext, a = 0, b = null; return { emptyFn: function () { }, BLANK_IMAGE_URL: Ext.isIE6 || Ext.isIE7 || Ext.isAir ? "http://www.extjs.com/s.gif" : "data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", extendX: function (d, e) { return Ext.extend(d, e(d.prototype)) }, getDoc: function () { return Ext.get(document) }, num: function (e, d) { e = Number(Ext.isEmpty(e) || Ext.isArray(e) || typeof e == "boolean" || (typeof e == "string" && e.trim().length == 0) ? NaN : e); return isNaN(e) ? d : e }, value: function (f, d, e) { return Ext.isEmpty(f, e) ? d : f }, escapeRe: function (d) { return d.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1") }, sequence: function (g, d, f, e) { g[d] = g[d].createSequence(f, e) }, addBehaviors: function (h) { if (!Ext.isReady) { Ext.onReady(function () { Ext.addBehaviors(h) }) } else { var e = {}, g, d, f; for (d in h) { if ((g = d.split("@"))[1]) { f = g[0]; if (!e[f]) { e[f] = Ext.select(f) } e[f].on(g[1], h[d]) } } e = null } }, getScrollBarWidth: function (f) { if (!Ext.isReady) { return 0 } if (f === true || b === null) { var h = Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'), g = h.child("div", true); var e = g.offsetWidth; h.setStyle("overflow", (Ext.isWebKit || Ext.isGecko) ? "auto" : "scroll"); var d = g.offsetWidth; h.remove(); b = e - d + 2 } return b }, combine: function () { var f = arguments, e = f.length, h = []; for (var g = 0; g < e; g++) { var d = f[g]; if (Ext.isArray(d)) { h = h.concat(d) } else { if (d.length !== undefined && !d.substr) { h = h.concat(Array.prototype.slice.call(d, 0)) } else { h.push(d) } } } return h }, copyTo: function (d, e, f) { if (typeof f == "string") { f = f.split(/[,;\s]/) } Ext.each(f, function (g) { if (e.hasOwnProperty(g)) { d[g] = e[g] } }, this); return d }, destroy: function () { Ext.each(arguments, function (d) { if (d) { if (Ext.isArray(d)) { this.destroy.apply(this, d) } else { if (typeof d.destroy == "function") { d.destroy() } else { if (d.dom) { d.remove() } } } } }, this) }, destroyMembers: function (k, h, f, g) { for (var j = 1, e = arguments, d = e.length; j < d; j++) { Ext.destroy(k[e[j]]); delete k[e[j]] } }, clean: function (d) { var e = []; Ext.each(d, function (f) { if (!!f) { e.push(f) } }); return e }, unique: function (d) { var e = [], f = {}; Ext.each(d, function (g) { if (!f[g]) { e.push(g) } f[g] = true }); return e }, flatten: function (d) { var f = []; function e(g) { Ext.each(g, function (h) { if (Ext.isArray(h)) { e(h) } else { f.push(h) } }); return f } return e(d) }, min: function (d, e) { var f = d[0]; e = e || function (h, g) { return h < g ? -1 : 1 }; Ext.each(d, function (g) { f = e(f, g) == -1 ? f : g }); return f }, max: function (d, e) { var f = d[0]; e = e || function (h, g) { return h > g ? 1 : -1 }; Ext.each(d, function (g) { f = e(f, g) == 1 ? f : g }); return f }, mean: function (d) { return d.length > 0 ? Ext.sum(d) / d.length : undefined }, sum: function (d) { var e = 0; Ext.each(d, function (f) { e += f }); return e }, partition: function (d, e) { var f = [[], []]; Ext.each(d, function (h, j, g) { f[(e && e(h, j, g)) || (!e && h) ? 0 : 1].push(h) }); return f }, invoke: function (d, e) { var g = [], f = Array.prototype.slice.call(arguments, 2); Ext.each(d, function (h, j) { if (h && typeof h[e] == "function") { g.push(h[e].apply(h, f)) } else { g.push(undefined) } }); return g }, pluck: function (d, f) { var e = []; Ext.each(d, function (g) { e.push(g[f]) }); return e }, zip: function () { var m = Ext.partition(arguments, function (i) { return typeof i != "function" }), h = m[0], l = m[1][0], d = Ext.max(Ext.pluck(h, "length")), g = []; for (var k = 0; k < d; k++) { g[k] = []; if (l) { g[k] = l.apply(l, Ext.pluck(h, k)) } else { for (var f = 0, e = h.length; f < e; f++) { g[k].push(h[f][k]) } } } return g }, getCmp: function (d) { return Ext.ComponentMgr.get(d) }, useShims: c.isIE6 || (c.isMac && c.isGecko2), type: function (e) { if (e === undefined || e === null) { return false } if (e.htmlElement) { return "element" } var d = typeof e; if (d == "object" && e.nodeName) { switch (e.nodeType) { case 1: return "element"; case 3: return (/\S/).test(e.nodeValue) ? "textnode" : "whitespace" } } if (d == "object" || d == "function") { switch (e.constructor) { case Array: return "array"; case RegExp: return "regexp"; case Date: return "date" } if (typeof e.length == "number" && typeof e.item == "function") { return "nodelist" } } return d }, intercept: function (g, d, f, e) { g[d] = g[d].createInterceptor(f, e) }, callback: function (d, g, f, e) { if (typeof d == "function") { if (e) { d.defer(e, g, f || []) } else { d.apply(g, f || []) } } } } } ()); Ext.apply(Function.prototype, { createSequence: function (b, a) { var c = this; return (typeof b != "function") ? this : function () { var d = c.apply(this || window, arguments); b.apply(a || this || window, arguments); return d } } }); Ext.applyIf(String, { escape: function (a) { return a.replace(/('|\\)/g, "\\$1") }, leftPad: function (d, b, c) { var a = String(d); if (!c) { c = " " } while (a.length < b) { a = c + a } return a } }); String.prototype.toggle = function (b, a) { return this == b ? a : b }; String.prototype.trim = function () { var a = /^\s+|\s+$/g; return function () { return this.replace(a, "") } } (); Date.prototype.getElapsed = function (a) { return Math.abs((a || new Date()).getTime() - this.getTime()) }; Ext.applyIf(Number.prototype, { constrain: function (b, a) { return Math.min(Math.max(this, b), a) } }); Ext.util.TaskRunner = function (e) { e = e || 10; var f = [], a = [], b = 0, g = false, d = function () { g = false; clearInterval(b); b = 0 }, h = function () { if (!g) { g = true; b = setInterval(i, e) } }, c = function (j) { a.push(j); if (j.onStop) { j.onStop.apply(j.scope || j) } }, i = function () { var l = a.length, n = new Date().getTime(); if (l > 0) { for (var p = 0; p < l; p++) { f.remove(a[p]) } a = []; if (f.length < 1) { d(); return } } for (var p = 0, o, k, m, j = f.length; p < j; ++p) { o = f[p]; k = n - o.taskRunTime; if (o.interval <= k) { m = o.run.apply(o.scope || o, o.args || [++o.taskRunCount]); o.taskRunTime = n; if (m === false || o.taskRunCount === o.repeat) { c(o); return } } if (o.duration && o.duration <= (n - o.taskStartTime)) { c(o) } } }; this.start = function (j) { f.push(j); j.taskStartTime = new Date().getTime(); j.taskRunTime = 0; j.taskRunCount = 0; h(); return j }; this.stop = function (j) { c(j); return j }; this.stopAll = function () { d(); for (var k = 0, j = f.length; k < j; k++) { if (f[k].onStop) { f[k].onStop() } } f = []; a = [] } }; Ext.TaskMgr = new Ext.util.TaskRunner(); (function () { var b; function c(d) { if (!b) { b = new Ext.Element.Flyweight() } b.dom = d; return b } (function () { var g = document, e = g.compatMode == "CSS1Compat", f = Math.max, d = Math.round, h = parseInt; Ext.lib.Dom = { isAncestor: function (j, k) { var i = false; j = Ext.getDom(j); k = Ext.getDom(k); if (j && k) { if (j.contains) { return j.contains(k) } else { if (j.compareDocumentPosition) { return !!(j.compareDocumentPosition(k) &
                    
                
private.min.js https://home.svn.codeplex.com/svn | JavaScript | 1 lines
                    
1$home.private=function(){var n={};return n.productImportHelper=function(){this.params=arguments[0];this.prefix="#"+this.params.prefix},n.productImportHelper.prototype.init=function(){var n=this;$(this.prefix+"-import-append-update").prop("checked",!0);$(this.prefix+"-import-running,"+this.prefix+"-import-success,"+this.prefix+"-import-failure").css("visibility","hidden");$(this.prefix+"-import-upload").click(function(){$(n.prefix+"-import-form").submit()})},n.productImportHelper.prototype.submit=function(){$(this.prefix+"-import-running").css("visibility","visible");$(this.prefix+"-import-success,"+this.prefix+"-import-failure").css("visibility","hidden")},n.productImportHistoryHelper=function(){this.params=arguments[0];this.prefix="#"+this.params.prefix;this.url=this.params.url},n.productImportHistoryHelper.prototype.init=function(){function h(f,o){var v;if(f){var l="Count ne null",c=n.datepicker("getDate"),h=t.datepicker("getDate"),a=e.val();c&&(c=$home.utility.odata.toODataDateTimeOffset(c),c=odatajs.oData.utils.formatDateTimeOffset(c),l+=" and Created ge "+c);h&&(h.setDate(h.getDate()+1),h=$home.utility.odata.toODataDateTimeOffset(h),h=odatajs.oData.utils.formatDateTimeOffset(h),l+=" and Created lt "+h);a.length>0&&(a="'"+a+"'",l+=" and CreatedBy eq "+a);r=s.url+"?$filter="+encodeURIComponent(l)+"&$orderby="+encodeURIComponent("Created desc")}$home.ui.wait(!0);v=r+"&$skip="+o+"&$top="+u.option("max");odatajs.oData.read(v,function(n){$("tbody",i).empty();$.each(n.value,function(n,t){$("<tr/>").append($("<td/>").text($home.utility.date.toLocalDateTimeString(new Date(t.Created)))).append($("<td/>").text(t.CreatedBy)).append($("<td/>").text($home.business.getDisplayText($home.business.ImportTypes,t.Type))).append($("<td class='text-right'/>").text(t.Count)).appendTo($("tbody",i)).data(t)});u.searched(n.value.length);$home.ui.wait(!1)},function(){$home.ui.wait(!1);alert("\u67e5\u8be2\u5931\u8d25\u3002")})}function c(){$("form input,form select",f).val("")}var f=$(this.prefix+"-import-history"),n=$(this.prefix+"-import-history-from"),t=$(this.prefix+"-import-history-to"),e=$(this.prefix+"-import-history-person"),i=$(this.prefix+"-import-history-result"),o=$(this.prefix+"-import-history-clear"),r=null,u=new $home.pagination({callback:h,search:$(this.prefix+"-import-history-search"),previous:$(this.prefix+"-import-history-prev"),next:$(this.prefix+"-import-history-next")}),s=this;n.datepicker({maxDate:"+0d"});t.datepicker({maxDate:"+0d"});o.click(c)},n.productUploadHelper=function(){this.params=arguments[0];this.prefix="#"+this.params.prefix;this.type=this.params.type},n.productUploadHelper.prototype.init=function(){var n=$(this.prefix+"-upload-append-update"),t=$(this.prefix+"-upload-replace"),i=n.add(t),r=$(this.prefix+"-upload-upload"),u=this;n.prop("checked",!0);r.click(function(){$home.ui.wait(!0);odatajs.oData.request({requestUri:"/productservice/Upload()",method:"POST",data:{productType:u.type,uploadType:i.filter(":checked").val()}},function(){$home.ui.wait(!1);alert("\u4e0a\u4f20\u6210\u529f\u3002")},function(){$home.ui.wait(!1);alert("\u4e0a\u4f20\u5931\u8d25\u3002")})})},n.productUploadHistoryHelper=function(){this.params=arguments[0];this.prefix="#"+this.params.prefix;this.type=this.params.type},n.productUploadHistoryHelper.prototype.init=function(){function h(f,o){var v;if(f){var l="Count ne null",c=n.datepicker("getDate"),h=t.datepicker("getDate"),a=e.val();c&&(c=$home.utility.odata.toODataDateTimeOffset(c),c=odatajs.oData.utils.formatDateTimeOffset(c),l+=" and Created ge "+c);h&&(h.setDate(h.getDate()+1),h=$home.utility.odata.toODataDateTimeOffset(h),h=odatajs.oData.utils.formatDateTimeOffset(h),l+=" and Created lt "+h);a.length>0&&(a="'"+a+"'",l+=" and CreatedBy eq "+a);l+=" and ProductType eq Home.Services.ProductService.ProductType'"+s.type+"' ";r="/productservice/Uploads?$filter="+encodeURIComponent(l)+"&$orderby="+encodeURIComponent("Created desc")}$home.ui.wait(!0);v=r+"&$skip="+o+"&$top="+u.option("max");odatajs.oData.read(v,function(n){$("tbody",i).empty();$.each(n.value,function(n,t){$("<tr/>").append($("<td/>").text($home.utility.date.toLocalDateTimeString(new Date(t.Created)))).append($("<td/>").text(t.CreatedBy)).append($("<td/>").text($home.business.getDisplayText($home.business.ProductTypes,t.ProductType))).append($("<td/>").text($home.business.getDisplayText($home.business.ProductUploadTypes,t.UploadType))).append($("<td class='text-right'/>").text(t.Count)).append($("<td/>").text($home.business.getDisplayText($home.business.ProductUploadStatuses,t.Status))).appendTo($("tbody",i)).data(t)});u.searched(n.value.length);$home.ui.wait(!1)},function(){$home.ui.wait(!1);alert("\u67e5\u8be2\u5931\u8d25\u3002")})}function c(){$("form input,form select",f).val("")}var f=$(this.prefix+"-upload-history"),n=$(this.prefix+"-upload-history-from"),t=$(this.prefix+"-upload-history-to"),e=$(this.prefix+"-upload-history-person"),i=$(this.prefix+"-upload-history-result"),o=$(this.prefix+"-upload-history-clear"),r=null,u=new $home.pagination({callback:h,search:$(this.prefix+"-upload-history-search"),previous:$(this.prefix+"-upload-history-prev"),next:$(this.prefix+"-upload-history-next")}),s=this;n.datepicker({maxDate:"+0d"});t.datepicker({maxDate:"+0d"});o.click(c)},n}();$home.pages=function(){return{"dashboard-page":{title:$($("#home-navbar > ul > li > a").get(0)).text(),init:function(){$("#dashboard-page-print").click(function(){$home.navigation.modal("print-sale")})}},"product-management":{title:$($("#home-navbar > ul > li > a").get(2)).text(),init:function(){$("#product-management-diamond-on-sale").click(function(){$home.navigation.navigate("diamond-on-sale")});$("#product-management-diamond-import").click(function(){$home.navigation.modal("diamond-import")});$("#product-management-diamond-import-history").click(function(){$home.navigation.navigate("diamond-import-history")});$("#product-management-diamond-upload").click(function(){$home.navigation.modal("diamond-upload")});$("#product-management-diamond-upload-history").click(function(){$home.navigation.navigate("diamond-upload-history")})}},"diamond-on-sale":{title:"\u88f8\u94bb\u6570\u636e",init:function(){function g(u,d){var yt;if(u){var g="Index ne null",nt=b.val().trim(),tt=f.val().trim(),it=e.val().trim(),rt=o.val().trim(),ut=parseFloat(s.val().trim()),ft=parseFloat(h.val().trim()),et=parseFloat(c.val().trim()),ot=parseFloat(l.val().trim()),st=a.val().trim(),ht=k.val().trim(),ct=v.val().trim(),lt=y.val().trim(),at=p.val().trim(),vt=w.val().trim();nt.length!==0&&(g+=" and Type eq Home.Services.ProductService.DiamondType'"+nt+"'");tt.length!==0&&(g+=" and Shape eq Home.Services.ProductService.DiamondShape'"+tt+"'");it.length!==0&&(g+=" and contains(ReportNumber,'"+it+"')");rt.length!==0&&(g+=" and ReportType eq Home.Services.ProductService.DiamondReport'"+rt+"'");isNaN(ut)||(g+=" and SalePrice ge "+ut);isNaN(ft)||(g+=" and SalePrice le "+ft);isNaN(et)||(g+=" and Caret ge "+et);isNaN(ot)||(g+=" and Caret le "+ot);st.length!==0&&(g+=" and Color eq Home.Services.ProductService.DiamondColor'"+st+"'");ht.length!==0&&(g+=" and contains(ColoredColor,'"+ht+"')");ct.length!==0&&(g+=" and Clarity eq Home.Services.ProductService.DiamondClarity'"+ct+"'");lt.length!==0&&(g+=" and Cut eq Home.Services.ProductService.DiamondCut'"+lt+"'");at.length!==0&&(g+=" and Polish eq Home.Services.ProductService.DiamondPolish'"+at+"'");vt.length!==0&&(g+=" and Symmetry eq Home.Services.ProductService.DiamondSymmetry'"+vt+"'");i="/productservice/Diamonds?$filter="+encodeURIComponent(g)+"&$orderby="+encodeURIComponent("Index")}$home.ui.wait(!0);yt=i+"&$skip="+d+"&$top="+r.option("max");odatajs.oData.read(yt,function(i){$("tbody",t).empty();$.each(i.value,function(i,r){$("<tr/>").append($("<td class='text-left'/>").text(n(r.Index))).append($("<td/>").text($home.business.getDisplayText($home.business.DiamondTypes,r.Type))).append($("<td/>").text(n(r.Shape))).append($("<td/>").text(n(r.ReportNumber))).append($("<td/>").text(n(r.ReportType))).append($("<td class='text-right'/>").text(n(r.Caret))).append($("<td/>").text(r.Color===null||r.Color===undefined||r.Color.length===0?n(r.ColoredColor):n(r.Color))).append($("<td/>").text(n(r.Clarity))).append($("<td/>").text(n(r.Cut))).append($("<td/>").text(n(r.Polish))).append($("<td/>").text(n(r.Symmetry))).append($("<td/>").text(n(r.Fluorescence))).append($("<td class='text-right'/>").text(n(r.Cost))).append($("<td class='text-right'/>").text(n(r.SalePrice))).append($("<td/>").text($home.business.getDisplayText($home.business.ProductStatuses,r.Status))).append($("<td/>").text(n(r.Comment))).appendTo($("tbody",t)).data(r)});r.searched(i.value.length);$home.ui.wait(!1)},function(){$home.ui.wait(!1);alert("\u67e5\u8be2\u5931\u8d25\u3002")})}function nt(){$("form input, form select",u).val("")}function n(n){return n===undefined||n===null?"":n.toString()}var u=$("#diamond-on-sale"),f=$("#diamond-on-sale-shape"),e=$("#diamond-on-sale-report-number"),o=$("#diamond-on-sale-report-type"),s=$("#diamond-on-sale-price-from"),h=$("#diamond-on-sale-price-to"),c=$("#diamond-on-sale-weight-from"),l=$("#diamond-on-sale-weight-to"),a=$("#diamond-on-sale-color"),v=$("#diamond-on-sale-clarity"),y=$("#diamond-on-sale-cut"),p=$("#diamond-on-sale-polish"),w=$("#diamond-on-sale-symmetry"),b=$("#diamond-on-sale-type"),k=$("#diamond-on-sale-colored-color"),d=$("#diamond-on-sale-clear"),t=$("#diamond-on-sale-result"),i=null,r=new $home.pagination({callback:g,search:$("#diamond-on-sale-search"),previous:$("#diamond-on-sale-prev"),next:$("#diamond-on-sale-next")});d.click(nt)}},"diamond-import":{title:"\u5bfc\u5165\u88f8\u94bb\u6570\u636e",init:function(){new $home.private.productImportHelper({prefix:"diamond"}).init()}},"diamond-import-history":{title:"\u5bfc\u5165\u88f8\u94bb\u6570\u636e\u7684\u5386\u53f2",init:function(){new $home.private.productImportHistoryHelper({prefix:"diamond",url:"/productservice/DiamondImports"}).init()}},"diamond-upload":{title:"\u4e0a\u4f20\u88f8\u94bb\u6570\u636e\u5230\u7f51\u7ad9",init:function(){new $home.private.productUploadHelper({prefix:"diamond",type:"Diamond"}).init()}},"diamond-upload-history":{title:"\u4e0a\u4f20\u88f8\u94bb\u6570\u636e\u5230\u7f51\u7ad9\u7684\u5386\u53f2",init:function(){new $home.private.productUploadHistoryHelper({prefix:"diamond",type:"Diamond"}).init()}},"print-sale":{title:"\u9500\u552e\u5f00\u5355",init:function(){function c(t){$("fieldset input, fieldset textarea",n).not(nt).prop("readonly",!t);$("fieldset button, fieldset select",n).prop("disabled",!t);t?(l.prop("disabled",!1),a.prop("disabled",!0).addClass("disabled",!0),v.prop("disabled",!0).addClass("disabled",!0),$("table > tbody > tr > td > a",n).removeClass("disabled")):(l.prop("disabled",!0),a.prop("disabled",!1).removeClass("disabled"),v.prop("disabled",!1).removeClass("disabled"),$("table > tbody > tr > td > a",n).addClass("disabled",!0))}function p(){var t=0;$.each($("table > tbody > tr",n),function(n,i){var r=$(i).data();t+=r.Quantity*r.UnitPrice});$("table > tfoot > tr > th:last",n).prev().text(t.toString())}function ot(){if(!$(this).hasClass("disabled")){var t=$(this).parent().parent(),n=t.data();u.val(n.ProductName);e.val(n.ProductDescription);o.val(n.Quantity);s.val(n.UnitPrice);r.edit(n);t.remove();p();h.focus()}}function st(){if(!$(this).hasClass("disabled")){var n=$(this).parent().parent();n.remove();p();h.focus()}}function ht(){function i(){var n=r.format();return e.val().length>0&&(n+=e.val()),n}if($home.validation.cleanup(b),!($home.validation.validateRequired(u)&&$home.validation.validateRequired(o)&&$home.validation.validateInteger(o)&&$home.validation.validateRequired(s)&&$home.validation.validateInteger(s)&&r.validate())){alert("\u8bf7\u68c0\u67e5\u5546\u54c1\u4fe1\u606f\uff0c\u6709\u672a\u586b\u5199\u7684\u5185\u5bb9\uff0c\u8bf7\u586b\u5199\u5b8c\u6574\u3002");return}var t={ProductName:u.val(),ProductDescription:e.val(),Quantity:parseInt(o.val()),UnitPrice:parseInt(s.val())};r.add(t);$("<tr><\/tr>").append($("<td><\/td>").text(u.val())).append($("<td><\/td>").text(i())).append($("<td class='text-center'><\/td>").text(t.Quantity.toString())).append($("<td class='text-right'><\/td>").text(t.UnitPrice.toString())).append("<td><a href='javascript:void(0)' title='\u4fee\u6539' role='button' home-data-action='edit'><span class='glyphicon glyphicon-pencil' aria-hidden='true'><\/span><\/a><a href='javascript:void(0)' title='\u5220\u9664' role='button' home-data-action='remove'><span class='glyphicon glyphicon-remove' aria-hidden='true'><\/span><\/a><\/td>").data(t).appendTo("table > tbody",n);p();u.val("");e.val("");o.val("");s.val("");r.clear();$home.validation.cleanup(b);h.focus()}function ct(){if($home.validation.cleanup(rt),!$home.validation.validateRequired(g)){alert("\u8bf7\u68c0\u67e5\u7528\u6237\u4fe1\u606f\uff0c\u6709\u672a\u586b\u5199\u7684\u5185\u5bb9\uff0c\u8bf7\u586b\u5199\u5b8c\u6574\u3002");return}if($home.validation.cleanup(ut),!($home.validation.validateRequired(y)&&$home.validation.validateRequired(tt)&&$home.validation.validateRequired(it))){alert("\u8bf7\u68c0\u67e5\u5ba2\u6237\u4fe1\u606f\uff0c\u6709\u672a\u586b\u5199\u7684\u5185\u5bb9\uff0c\u8bf7\u586b\u5199\u5b8c\u6574\u3002");return}if(f.Items=[],$.each($("table > tbody > tr",n),function(n,t){f.Items.push($(t).data())}),f.Items.length===0){alert("\u6ca1\u6709\u6dfb\u52a0\u4efb\u4f55\u5546\u54c1\uff0c\u8bf7\u6dfb\u52a0\u5546\u54c1\u4e4b\u540e\u7ee7\u7eed\u3002");return}c(!1);f.SalesPersonName=$("#print-sale-user-info option:selected").text();f.CustomerName=y.val();f.CustomerContacts=[{Method:"Phone",Value:tt.val()},{Method:et.val(),Value:it.val()}];$home.ui.wait(!0);odatajs.oData.request({requestUri:"/salesservice/Sales",method:"POST",data:f},function(n){nt.val(n.NumberText);a.attr("href","/pages/print-service?id="+n.Id);v.attr("href","/pages/print-receipt?id="+n.Id);c(!1);$home.ui.wait(!1);alert("\u4fdd\u5b58\u6210\u529f\uff0c\u53ef\u4ee5\u5f00\u59cb\u6253\u5370\u3002")},function(){$home.ui.wait(!1);alert("\u4fdd\u5b58\u5931\u8d25\u3002");c(!0)})}function w(){function n(n){$home.navigation.embed(n,k,function(){r.init()})}k.empty();switch(u.val()){case $home.business.ProductNames.Diamond:r=new i;n("print-sale-diamond");break;default:r=new t;r.init()}}var t=function(){},i;t.prototype.init=$.noop;t.prototype.add=$.noop;t.prototype.edit=$.noop;t.prototype.clear=$.noop;t.prototype.format=function(){return""};t.prototype.validate=function(){return!0};i=function(){t.call(this);this.goodCertificate=$("#print-sale-good-certificate");this.goodCaret=$("#print-sale-good-caret");this.goodCut=$("#print-sale-good-cut");this.goodClarity=$("#print-sale-good-clarity");this.goodColor=$("#print-sale-good-color")};$home.utility.oo.extend(t,i);i.prototype.init=$.noop;i.prototype.add=function(n){this.goodCertificate.val().length>0&&(n.Certificate=this.goodCertificate.val());this.goodCaret.val().length>0&&(n.Caret=parseFloat(this.goodCaret.val()));this.goodCut.val().length>0&&(n.C
                    
                
private.js https://home.svn.codeplex.com/svn | JavaScript | 2269 lines
                    
82                    "$filter=" +
                    
83                    encodeURIComponent(query) +
                    
84                    "&$orderby=" +
                    
84                    "&$orderby=" +
                    
85                    encodeURIComponent("Created desc");
                    
86            }
                    
202                    "$filter=" +
                    
203                    encodeURIComponent(query) +
                    
204                    "&$orderby=" +
                    
204                    "&$orderby=" +
                    
205                    encodeURIComponent("Created desc");
                    
206            }
                    
                
ComboBox.js https://openerp.svn.codeplex.com/svn | JavaScript | 941 lines
                    
60			}
                    
61			var tss = encodeURIComponent(searchStr);
                    
62			var realUrl = dojo.string.substituteParams(this.searchUrl, {"searchString": tss});
                    
                
RemoteStore.js https://openerp.svn.codeplex.com/svn | JavaScript | 581 lines
                    
96		result.query = result.query || "";
                    
97		requestKw.url = this._serverQueryUrl + encodeURIComponent(result.query);
                    
98		requestKw.method = 'get';
                    
                
BrowserIO.js https://openerp.svn.codeplex.com/svn | JavaScript | 683 lines
                    
65	//		The encoding to use for the values. Specify a string that starts with
                    
66	//		"utf" (for instance, "utf8"), to use encodeURIComponent() as the encoding
                    
67	//		function. Otherwise, dojo.string.encodeAscii will be used.
                    
76	if(!formFilter) { formFilter = dojo.io.formFilter; }
                    
77	var enc = /utf/i.test(encoding||"") ? encodeURIComponent : dojo.string.encodeAscii;
                    
78	var values = [];
                    
                
mediaelement.js https://replayer.svn.codeplex.com/svn | JavaScript | 1807 lines
                    
44	encodeUrl: function(url) {
                    
45		return encodeURIComponent(url); //.replace(/\?/gi,'%3F').replace(/=/gi,'%3D').replace(/&/gi,'%26');
                    
46	},
                    
                
mediaelement-and-player.min.js https://replayer.svn.codeplex.com/svn | JavaScript | 161 lines
                    
14mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};
                    
15mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(a){var b=document.createElement("div");b.innerHTML='<a href="'+this.escapeHTML(a)+'">x</a>';return b.firstChild.href},getScriptPath:function(a){for(var b=0,c,d="",e="",g,f=document.getElementsByTagName("script"),h=f.length,l=a.length;b<h;b++){g=f[b].src;for(c=0;c<l;c++){e=a[c];if(g.indexOf(e)>
                    
16-1){d=g.substring(0,g.indexOf(e));break}}if(d!=="")break}return d},secondsToTimeCode:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;var e=Math.floor(a/3600)%24,g=Math.floor(a/60)%60,f=Math.floor(a%60);a=Math.floor((a%1*d).toFixed(3));return(b||e>0?(e<10?"0"+e:e)+":":"")+(g<10?"0"+g:g)+":"+(f<10?"0"+f:f)+(c?":"+(a<10?"0"+a:a):"")},timeCodeToSeconds:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;a=a.split(":");b=parseInt(a[0],
                    
                
MicrosoftMvcAjax.debug.js https://RapidDevBookCode.svn.codeplex.com/svn | JavaScript | 399 lines
                    
144        var tagName = element.tagName.toUpperCase();
                    
145        var encodedName = encodeURIComponent(name);
                    
146        var inputElement = element;
                    
149            if (type === 'submit') {
                    
150                return encodedName + '=' + encodeURIComponent(inputElement.value);
                    
151            }
                    
156        else if ((tagName === 'BUTTON') && (name.length) && (inputElement.type === 'submit')) {
                    
157            return encodedName + '=' + encodeURIComponent(inputElement.value);
                    
158        }
                    
179            if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) {
                    
180                formBody.append(encodeURIComponent(name));
                    
181                formBody.append('=');
                    
181                formBody.append('=');
                    
182                formBody.append(encodeURIComponent(inputElement.value));
                    
183                formBody.append('&');
                    
                
CrmRestKit.js https://CrmRestKit.svn.codeplex.com/svn | JavaScript | 685 lines
                    
260                // in case filter is empty
                    
261                filter = (filter) ? "&$filter=" + encodeURIComponent(filter) : '';
                    
262                url = this.getODataPath() + "/" + setName + "?$select=" + columns.join(',') + filter;
                    
288                // in case filter is empty
                    
289                filter = (filter) ? "&$filter=" + encodeURIComponent(filter) : '';
                    
290
                    
298                // in case filter is empty
                    
299                filter = (filter) ? "&$filter=" + encodeURIComponent(filter) : '';
                    
300
                    
                
XrmPageTemplate.js https://CrmRestKit.svn.codeplex.com/svn | JavaScript | 2658 lines
                    
105            }
                    
106            extraqs += encodeURIComponent(strings.join("&"));
                    
107            url += extraqs;
                    
                
CrmRestKit.js https://CrmRestKit.svn.codeplex.com/svn | JavaScript | 506 lines
                    
195            // in case filter is empty
                    
196            filter = (filter) ? "&$filter=" + encodeURIComponent(filter) : '';
                    
197            url = this.getODataPath() + "/" + setName + "?$select=" + columns.join(',') + filter;
                    
222            // in case filter is empty
                    
223            filter = (filter) ? "&$filter=" + encodeURIComponent(filter) : '';
                    
224
                    
333            } else {
                    
334                var e = encodeURIComponent;
                    
335
                    
                
jquery.ucma.presence-1.0.js https://hg01.codeplex.com/lyncwidget | JavaScript | 605 lines
                    
113		if (query != null && query != '') {
                    
114			query = encodeURIComponent(query);
                    
115		}
                    
                
ComboBox.js https://hg01.codeplex.com/codecampserver | JavaScript | 54 lines
                    
2dojo.provide("dojo.widget.ComboBox");dojo.require("dojo.widget.*");dojo.require("dojo.event.*");dojo.require("dojo.io.*");dojo.require("dojo.html.*");dojo.require("dojo.string");dojo.require("dojo.widget.html.stabile");dojo.require("dojo.widget.PopupContainer");dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(options){this.searchUrl=options.dataUrl;this._cache={};this._inFlight=false;this._lastRequest=null;this.allowCache=false;},{_addToCache:function(keyword,data){if(this.allowCache){this._cache[keyword]=data;}},startSearch:function(searchStr,callback){if(this._inFlight){}
                    
3var tss=encodeURIComponent(searchStr);var realUrl=dojo.string.substituteParams(this.searchUrl,{"searchString":tss});var _this=this;var request=this._lastRequest=dojo.io.bind({url:realUrl,method:"get",mimetype:"text/json",load:function(type,data,evt){_this._inFlight=false;if(!dojo.lang.isArray(data)){var arrData=[];for(var key in data){arrData.push([data[key],key]);}
                    
4data=arrData;}
                    
                
jquery.address-1.6.js https://hg01.codeplex.com/nakedobjects | JavaScript | 608 lines
                    
116                var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
                    
117                    _d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()).replace(/\'/g, '\\\'') +
                    
118                    (_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
                    
                
angular.min.js https://NSK.svn.codeplex.com/svn | JavaScript | 291 lines
                    
5*/
                    
6(function(O,U,t){'use strict';function J(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.4.2/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Ea(b){if(null==b||Wa(b))return!1;var a="length"in Object(b)&&b.length;
                    
7return b.nodeType===qa&&a?!0:L(b)||G(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function m(b,a,c){var d,e;if(b)if(z(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(G(b)||Ea(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==m)b.forEach(a,c,b);else if(nc(b))for(d in b)a.call(c,b[d],d,b);else if("function"===typeof b.hasOwnProperty)for(d in b)b.hasOwnProperty(d)&&
                    
16a,c){c=c?-1:1;var d=xc(a,b.getTimezoneOffset());a=b;b=c*(d-b.getTimezoneOffset());a=new Date(a.getTime());a.setMinutes(a.getMinutes()+b);return a}function ua(b){b=y(b).clone();try{b.empty()}catch(a){}var c=y("<div>").append(b).html();try{return b[0].nodeType===Na?M(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+M(b)})}catch(d){return M(c)}}function yc(b){try{return decodeURIComponent(b)}catch(a){}}function zc(b){var a={},c,d;m((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,
                    
17"%20").split("="),d=yc(c[0]),w(d)&&(b=w(c[1])?yc(c[1]):!0,Xa.call(a,d)?G(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Qb(b){var a=[];m(b,function(b,d){G(b)?m(b,function(b){a.push(ma(d,!0)+(!0===b?"":"="+ma(b,!0)))}):a.push(ma(d,!0)+(!0===b?"":"="+ma(b,!0)))});return a.length?a.join("&"):""}function ob(b){return ma(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ma(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,
                    
18"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Yd(b,a){var c,d,e=Oa.length;for(d=0;d<e;++d)if(c=Oa[d]+a,L(c=b.getAttribute(c)))return c;return null}function Zd(b,a){var c,d,e={};m(Oa,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});m(Oa,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Yd(c,"strict-di"),a(c,d?[d]:[],e))}function Ac(b,a,c){H(c)||
                    
                
QUnit.js https://cassinidev.svn.codeplex.com/svn | JavaScript | 1044 lines
                    
203						if ( window.location ) {
                    
204							window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(text);
                    
205						}
                    
                
dllearner-module.js https://code.google.com/p/ontowiki/ | JavaScript | 198 lines
                    
86			//alert($jq("#radio"+i).attr("name"));
                    
87			//pos[i] = encodeURIComponent ($jq("#radio"+i).attr("name"));
                    
88			p += encodeURIComponent ($jq("#radio"+i).attr("name"))+"/";
                    
91			//alert($jq("#radio"+i).attr("name"));
                    
92			//neg[i] = encodeURIComponent ($jq("#radio"+i).attr("name"));
                    
93			n += encodeURIComponent ($jq("#radio"+i).attr("name"))+"/";
                    
96	}
                    
97	action = encodeURIComponent ($jq(event.currentTarget).attr("name"));
                    
98	// refresh the main
                    
104	// look for the name and encode it for uri
                    
105	action = encodeURIComponent ($jq(event.currentTarget).attr("name"));
                    
106	// refresh the main
                    
115	if ($jq("#radio"+i).attr("checked")){
                    
116	s += encodeURIComponent ($jq("#radio"+i).attr("value"));
                    
117	//alert(s);
                    
                
show_ads.js http://fiuba-7508-sistemas-operativos.googlecode.com/svn/trunk/ | JavaScript | 16 lines
                    
1(function(){var g=!0,h=null,i=!1,j=(new Date).getTime();var aa=this,ba=function(a,b){var c=a.split("."),d=aa;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&void 0!==b?d[e]=b:d=d[e]?d[e]:d[e]={}},ca=function(a,b,c){return a.call.apply(a.bind,arguments)},da=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,
                    
2arguments)}},k=function(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return k.apply(h,arguments)};var ea=/&/g,fa=/</g,ga=/>/g,ha=/\"/g,l={"\x00":"\\0","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"},m={"'":"\\'"};var ia=document,o=window;var r=function(a){return"true"==a?g:"false"==a?i:i},ja=/^([\w-]+\.)*([\w-]{2,})(\:[0-9]+)?$/,s=function(a){return!a?"pagead2.googlesyndication.com":(a=a.match(ja))?a[0]:"pagead2.googlesyndication.com"};var v=parseFloat("0"),ka=isNaN(v)||1<v||0>v?0:v;var la=r("true"),ma=r("false"),na=r("false"),pa=r("false");var qa=function(){return s("")};s("");var w=function(a){return!!a&&"function"==typeof a&&!!a.call},ra=function(a,b){if(!(2>arguments.length))for(var c=1,d=arguments.length;c<d;++c)a.push(arguments[c])};function y(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)}function sa(a,b){a.addEventListener?a.addEventListener("load",b,i):a.attachEvent&&a.attachEvent("onload",b)};ba("google_protectAndRun",function(a,b,c){a=k(b,aa,a);b=window.onerror;window.onerror=a;try{c()}catch(d){var c=d.toString(),e="";d.fileName&&(e=d.fileName);var f=-1;d.lineNumber&&(f=d.lineNumber);if(!a(c,e,f))throw d;}window.onerror=b});
                    
3ba("google_handleError",function(a,b,c,d){0.01>Math.random()&&(a=["http://",qa(),"/pagead/gen_204","?id=jserror","&jscb=",la?1:0,"&jscd=",ma?1:0,"&context=",y(a),"&msg=",y(b),"&file=",y(c),"&line=",y(d.toString()),"&url=",y(ia.URL.substring(0,512)),"&ref=",y(ia.referrer.substring(0,512))],a.push(["&client=",y(o.google_ad_client),"&format=",y(o.google_ad_format),"&slotname=",y(o.google_ad_slot),"&output=",y(o.google_ad_output),"&ad_type=",y(o.google_ad_type)].join("")),a=a.join(""),o.google_image_requests||
                    
                
plugin.js git://github.com/ryancramerdesign/ProcessWire.git | JavaScript | 344 lines
                    
153		if(imgHeight) queryString += "&height=" + imgHeight; 
                    
154		if(imgClass && imgClass.length) queryString += "&class=" + encodeURIComponent(imgClass); 
                    
155		queryString += '&hidpi=' + (hidpi ? '1' : '0'); 
                    
156		if(imgDescription && imgDescription.length) {
                    
157			queryString += "&description=" + encodeURIComponent(imgDescription);
                    
158		}
                    
159		if($figureCaption) queryString += "&caption=1";
                    
160		if(imgLink && imgLink.length) queryString += "&link=" + encodeURIComponent(imgLink);
                    
161		queryString += ("&winwidth=" + ($(window).width() - 30));
                    
                
PagesView.js http://vosao.googlecode.com/svn/trunk/ | JavaScript | 345 lines
                    
76	function renderPage(vo) {
                    
77		var pageUrl = encodeURIComponent(vo.entity.friendlyURL);
                    
78		var title = showTitle ? vo.entity.title : vo.entity.pageFriendlyURL;
                    
                
ajax.js git://github.com/clientside/amplesdk.git | JavaScript | 238 lines
                    
148			else
                    
149				aValue[aValue.length]	= fEncodeURIComponent(sPrefix) + '=' + fEncodeURIComponent(vValue);
                    
150		})('', vValue);
                    
                
login.js http://atomojo.googlecode.com/svn/trunk/ | JavaScript | 293 lines
                    
16         req.open("GET", "data:" + (contentType || "application/xml") +
                    
17                         ";charset=utf-8," + encodeURIComponent(str), false);
                    
18         if (req.overrideMimeType) {
                    
                
util.js http://nostrive.googlecode.com/svn/trunk/ | JavaScript | 306 lines
                    
31                    for (var i = 0; i < params[key].length; i++) {
                    
32                        pairs.push(encodeURIComponent(key) + "=" +
                    
33                            encodeURIComponent(params[key]));
                    
35                } else {
                    
36                    pairs.push(encodeURIComponent(key) + "=" +
                    
37                        encodeURIComponent(params[key]));
                    
                
mxAutocompleteMS.js http://mxajax.googlecode.com/svn/trunk/ | JavaScript | 174 lines
                    
15		this.oParam = (this.paramArgs != null) ? this.paramArgs : this.paramFunction(this.id);
                    
16    	entry = encodeURIComponent(this.options.paramName) + '=' + encodeURIComponent(this.getToken());
                    
17		this.oParam.setDefaultParam(entry);
                    
                
helpers.js https://bitbucket.org/scope/dragonfly-stp-1/ | JavaScript | 359 lines
                    
214    document.cookie = (
                    
215      key + "=" + encodeURIComponent(value) +
                    
216      "; expires=" + 
                    
                
lang.js git://github.com/appcelerator/titanium_mobile.git | JavaScript | 222 lines
                    
197		urlEncode: function (obj) {
                    
198			var enc = encodeURIComponent,
                    
199				pairs = [],
                    
                
angular.js git://github.com/chromium/chromium.git | JavaScript | 26833 lines
                    
112    for (i = 0, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
                    
113      message += paramPrefix + 'p' + i + '=' + encodeURIComponent(templateArgs[i]);
                    
114    }
                    
                
util.js https://repo.or.cz/zzandy.git | JavaScript | 518 lines
                    
39    for( var i in obj ) if( typeof obj[i] != 'function' )
                    
40        res.push(encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]));
                    
41    return res.join('&');
                    
                
evaluator.js https://github.com/dyoo/WeScheme.git | JavaScript | 562 lines
                    
117        this.dynamicModuleLoader = function(aName, onSuccess, onFail) {
                    
118            loadScript(that.rootLibraryPath + "/" + aName + ".js?__gensym="+encodeURIComponent('' + Math.random()),
                    
119                       onSuccess,
                    
254	    if (hasOwnProperty.call(hash, key)) {
                    
255		chunks.push(encodeURIComponent(key) +"="+ encodeURIComponent(hash[key]));
                    
256	    }
                    
                
application.js https://github.com/webpulser/rucksack.git | JavaScript | 1371 lines
                    
166  settings.data = settings.data ? (settings.data + '&') : "";
                    
167  settings.data += "authenticity_token=" + encodeURIComponent(AUTH_TOKEN);
                    
168});
                    
                
core.js https://github.com/jamslevy/baseinacase.git | JavaScript | 1048 lines
                    
85    else
                    
86        return ('/' + encodeURIComponent(id));
                    
87};
                    
                
cookie-min.js git://github.com/kernow/js_state_machine.git | JavaScript | 7 lines
                    
6*/
                    
7YUI.add("cookie",function(B){var J=B.Lang,H=B.Object,F=null,C=J.isString,K=J.isObject,E=J.isUndefined,D=J.isFunction,G=encodeURIComponent,A=decodeURIComponent;function I(L){throw new TypeError(L);}B.Cookie={_createCookieString:function(M,O,N,L){var P=G(M)+"="+(N?G(O):O);if(K(L)){if(L.expires instanceof Date){P+="; expires="+L.expires.toGMTString();}if(C(L.path)&&L.path!==""){P+="; path="+L.path;}if(C(L.domain)&&L.domain!==""){P+="; domain="+L.domain;}if(L.secure===true){P+="; secure";}}return P;},_createCookieHashString:function(L){if(!K(L)){I("Cookie._createCookieHashString(): Argument must be an object.");}var M=[];H.each(L,function(O,N){if(!D(O)&&!E(O)){M.push(G(N)+"="+G(String(O)));}});return M.join("&");},_parseCookieHash:function(P){var O=P.split("&"),Q=F,N={};if(P.length){for(var M=0,L=O.length;M<L;M++){Q=O[M].split("=");N[A(Q[0])]=A(Q[1]);}}return N;},_parseCookieString:function(S,U){var T={};if(C(S)&&S.length>0){var L=(U===false?function(V){return V;}:A);if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(S)){var Q=S.split(/;\s/g),R=F,M=F,O=F;for(var N=0,P=Q.length;N<P;N++){O=Q[N].match(/([^=]+)=/i);if(O instanceof Array){R=A(O[1]);M=L(Q[N].substring(O[1].length+1));}else{R=A(Q[N]);M=R;}T[R]=M;}}}return T;},get:function(L,M){var N=this._parseCookieString(document.cookie);if(!C(L)||L===""){I("Cookie.get(): Cookie name must be a non-empty string.");}if(E(N[L])){return F;}if(!D(M)){return N[L];}else{return M(N[L]);}},getSub:function(L,N,M){var O=this.getSubs(L);if(O!==F){if(!C(N)||N===""){I("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E(O[N])){return F;}if(!D(M)){return O[N];}else{return M(O[N]);}}else{return F;}},getSubs:function(L){if(!C(L)||L===""){I("Cookie.getSubs(): Cookie name must be a non-empty string.");}var M=this._parseCookieString(document.cookie,false);if(C(M[L])){return this._parseCookieHash(M[L]);}return F;},remove:function(M,L){if(!C(M)||M===""){I("Cookie.remove(): Cookie name must be a non-empty string.");}L=L||{};L.expires=new Date(0);return this.set(M,"",L);},removeSub:function(M,O,L){if(!C(M)||M===""){I("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!C(O)||O===""){I("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var N=this.getSubs(M);if(K(N)&&H.owns(N,O)){delete N[O];return this.setSubs(M,N,L);}else{return"";}},set:function(M,N,L){if(!C(M)){I("Cookie.set(): Cookie name must be a string.");}if(E(N)){I("Cookie.set(): Value cannot be undefined.");}var O=this._createCookieString(M,N,true,L);document.cookie=O;return O;},setSub:function(M,O,N,L){if(!C(M)||M===""){I("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!C(O)||O===""){I("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(E(N)){I("Cookie.setSub(): Subcookie value cannot be undefined.");}var P=this.getSubs(M);if(!K(P)){P={};}P[O]=N;return this.setSubs(M,P,L);},setSubs:function(M,N,L){if(!C(M)){I("Cookie.setSubs(): Cookie name must be a string.");}if(!K(N)){I("Cookie.setSubs(): Cookie value must be an object.");}var O=this._createCookieString(M,this._createCookieHashString(N),false,L);document.cookie=O;return O;}};},"3.0.0");
                    
                
jquery.cookie.js https://hg.codeplex.com/isharepoint | JavaScript | 91 lines
                    
77		return (document.cookie = [
                    
78			encodeURIComponent(key), '=',
                    
79			options.raw ? value : encodeURIComponent(value),
                    
89	var result, decode = options.raw ? function(s) { return s; } : decodeURIComponent;
                    
90	return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
                    
91};
                    
                
url.js git://github.com/moodle/moodle.git | JavaScript | 111 lines
                    
49            } else {
                    
50                url += '?file=' + encodeURIComponent(slashArg);
                    
51            }
                    
                
properties.js git://github.com/appcelerator/titanium_mobile.git | JavaScript | 231 lines
                    
21		{name: "test_userDefaultProperties_B"},
                    
22		{name: "test_encodeURIComponent"},
                    
23		{name: "test_caseWrong"},
                    
150	//TIMOB-7743
                    
151	this.test_encodeURIComponent = function(testRun) {
                    
152		valueOf(testRun, encodeURIComponent("üöäß &?/ tes tetst et st e\ntest etes te stet")).shouldBe('%C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet');
                    
                
edit.js git://github.com/alkacon/opencms-core.git | JavaScript | 192 lines
                    
58	_form.edit1.blur();
                    
59	_form.content.value = encodeURIComponent(_form.edit1.value);
                    
60
                    
                
ga.js https://viBook.svn.codeplex.com/svn | JavaScript | 43 lines
                    
1(function(){var k=void 0,aa=encodeURIComponent,l=String,o=Math,ba="push",ca="cookie",p="charAt",q="indexOf",da="getTime",r="toString",s="window",v="length",w="document",x="split",y="location",ea="protocol",z="href",A="substring",C="join",D="toLowerCase";var fa="_gat",ga="_gaq",ha="4.9.5",ia="_gaUserPrefs",ja="ioo",E="&",F="=",H="__utma=",ka="__utmb=",la="__utmc=",ma="__utmk=",I="__utmv=",J="__utmz=",na="__utmx=",oa="GASO=";var pa=function(){var d=this,f=[],b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";d.set=function(b){f[b]=!0};d.Sc=function(){for(var d=[],e=0;e<f[v];e++)f[e]&&(d[o.floor(e/6)]^=1<<e%6);for(e=0;e<d[v];e++)d[e]=b[p](d[e]||0);return d[C]("")+"~"}},qa=new pa;function K(d){qa.set(d)};var ra=function(d,f){var b=this;b.window=d;b.document=f;b.setTimeout=function(b,e){setTimeout(b,e)};b.Jb=function(b){return navigator.userAgent[q](b)>=0};b.Xc=function(){return b.Jb("Firefox")&&![].reduce};b.Vc=function(){return L[s][ia]};b.Gc=function(){return L[s].external};b.Hc=function(){return L[s].performance||L[s].webkitPerformance};b.Ic=function(){return L[s].top==L[s]};b.Ya=function(b){var e=L[s]&&L[s].gaGlobal;if(b&&!e)e={},L[s].gaGlobal=e;return e};b.ec=function(b){L[w][y].href=b};b.qb=
                    
2function(d){if(!d||!b.Jb("Firefox"))return d;for(var d=d.replace(/\n|\r/g," "),e=0,f=d[v];e<f;++e){var g=d.charCodeAt(e)&255;if(g==10||g==13)d=d[A](0,e)+"?"+d[A](e+1)}return d}},L=new ra(window,document);var sa=function(d){return function(f,b,h){d[f]=function(){K(b);return h.apply(d,arguments)};return h}},ta=function(d,f,b,h){d.addEventListener?d.addEventListener(f,b,!!h):d.attachEvent&&d.attachEvent("on"+f,b)},ua=function(d){return Object.prototype[r].call(Object(d))=="[object Array]"},M=function(d){return k==d||"-"==d||""==d},N=function(d,f,b){var h="-",e;!M(d)&&!M(f)&&!M(b)&&(e=d[q](f),e>-1&&(b=d[q](b,e),b<0&&(b=d[v]),h=d[A](e+f[q](F)+1,b)));return h},xa=function(d){var f=!1,b=0,h,e;if(!M(d)){f=
                    
                
angular.min.js https://iHouse.svn.codeplex.com/svn | JavaScript | 252 lines
                    
5*/
                    
6(function(Q,W,t){'use strict';function R(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.15/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Sa(b){if(null==b||Ta(b))return!1;var a=b.length;return b.nodeType===
                    
7qa&&a?!0:C(b)||H(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function r(b,a,c){var d,e;if(b)if(G(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(H(b)||Sa(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==r)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d,b);return b}function Ed(b,a,c){for(var d=Object.keys(b).sort(),e=0;e<d.length;e++)a.call(c,
                    
14"$"===b.charAt(0)&&"$"===b.charAt(1)?c=t:Ta(a)?c="$WINDOW":a&&W===a?c="$DOCUMENT":Va(a)&&(c="$SCOPE");return c}function $a(b,a){if("undefined"===typeof b)return t;Y(a)||(a=a?2:null);return JSON.stringify(b,Hd,a)}function qc(b){return C(b)?JSON.parse(b):b}function wa(b){b=A(b).clone();try{b.empty()}catch(a){}var c=A("<div>").append(b).html();try{return b[0].nodeType===pb?z(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+z(b)})}catch(d){return z(c)}}function rc(b){try{return decodeURIComponent(b)}catch(a){}}
                    
15function sc(b){var a={},c,d;r((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=rc(c[0]),y(d)&&(b=y(c[1])?rc(c[1]):!0,tc.call(a,d)?H(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Pb(b){var a=[];r(b,function(b,d){H(b)?r(b,function(b){a.push(Ea(d,!0)+(!0===b?"":"="+Ea(b,!0)))}):a.push(Ea(d,!0)+(!0===b?"":"="+Ea(b,!0)))});return a.length?a.join("&"):""}function qb(b){return Ea(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ea(b,a){return encodeURIComponent(b).replace(/%40/gi,
                    
16"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Id(b,a){var c,d,e=rb.length;b=A(b);for(d=0;d<e;++d)if(c=rb[d]+a,C(c=b.attr(c)))return c;return null}function Jd(b,a){var c,d,e={};r(rb,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});r(rb,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Id(c,"strict-di"),
                    
                
plugin.js https://NBgeili.svn.codeplex.com/svn | JavaScript | 534 lines
                    
133			for ( var i in params )
                    
134				queryString.push( i + "=" + encodeURIComponent( params[ i ] ) );
                    
135		}
                    
                
WebExplorerMain.js https://NBgeili.svn.codeplex.com/svn | JavaScript | 577 lines
                    
18    window.onbeforeunload = function () { }
                    
19    window.location = defaultURL + "?action=DOWNLOAD&value1=" + encodeURIComponent(currentNode.path + fName);
                    
20    window.onbeforeunload = function () {
                    
118    getEditorContent();
                    
119    var url = defaultURL + "?action=" + action + "&value1=" + encodeURIComponent(currentNode.path + fileName);
                    
120    return executeHttpRequest("POST", url, "content=" + encodeURIComponent(currentContent));
                    
173loadFileContent = function (fName) {
                    
174    var url = defaultURL + "?action=GETEDITFILE&value1=" + encodeURIComponent(currentNode.path + fName);
                    
175    var content = executeHttpRequest("GET", url, null);
                    
363    dialog.OK = function () {
                    
364        var url = defaultURL + "?action=" + cutCopyOperate + "&value1=" + encodeURIComponent(currentNode.path) + "&value2=" + encodeURIComponent(cutCopyFiles.join("|"));
                    
365        var result = executeHttpRequest("GET", url, null);
                    
458
                    
459        var url = defaultURL + "?action=RENAME&value1=" + encodeURIComponent(currentNode.path + fName) + "&value2=" + encodeURIComponent(currentNode.path + txtNewName.value);
                    
460        var result = executeHttpRequest("GET", url, null);
                    
                
AjaxControl.debug.js https://ajaxcontrol.svn.codeplex.com/svn | JavaScript | 693 lines
                    
221            // Gather the postback data for the __EVENTTARGET and EVENTARGUMENT form inputs.
                    
222            callbackData.push("__EVENTTARGET=" + encodeURIComponent(document.forms[0].__EVENTTARGET ? document.forms[0].__EVENTTARGET.value : "") + "&");
                    
223            callbackData.push("__EVENTARGUMENT=" + encodeURIComponent(document.forms[0].__EVENTARGUMENT ? document.forms[0].__EVENTARGUMENT.value : "") + "&");
                    
257                    {
                    
258                        callbackData.push(element.name + "=" + encodeURIComponent(element.value) + "&");
                    
259                    }
                    
266                        {
                    
267                            callbackData.push(element.name + "=" + encodeURIComponent(element.options[index].value) + "&");
                    
268                        }
                    
272                {
                    
273                    callbackData.push(element.name + "=" + encodeURIComponent(element.value) + "&");
                    
274                }
                    
346            
                    
347            callbackData += "__CALLBACKID=" + encodeURIComponent(callbackID) + "&__CALLBACKPARAM=" + encodeURIComponent(callbackParam);
                    
348            ajaxRequest.send(callbackData);
                    
                
AjaxControl.debug.js https://ajaxcontrol.svn.codeplex.com/svn | JavaScript | 688 lines
                    
221            // Gather the postback data for the __EVENTTARGET and EVENTARGUMENT form inputs.
                    
222            callbackData += "__EVENTTARGET=" + encodeURIComponent(document.forms[0].__EVENTTARGET ? document.forms[0].__EVENTTARGET.value : "") + "&";
                    
223            callbackData += "__EVENTARGUMENT=" + encodeURIComponent(document.forms[0].__EVENTARGUMENT ? document.forms[0].__EVENTARGUMENT.value : "") + "&";
                    
257                    {
                    
258                        callbackData += element.name + "=" + encodeURIComponent(element.value) + "&";
                    
259                    }
                    
263                    var selectedOption = element.options[element.selectedIndex];
                    
264                    callbackData += element.name + "=" + encodeURIComponent(selectedOption.value) + "&";
                    
265                }
                    
267                {
                    
268                    callbackData += element.name + "=" + encodeURIComponent(element.value) + "&";
                    
269                }
                    
341            
                    
342            callbackData += "__CALLBACKID=" + encodeURIComponent(callbackID) + "&__CALLBACKPARAM=" + encodeURIComponent(callbackParam);
                    
343            ajaxRequest.send(callbackData);
                    
                
promptengine_prompts.js https://ajaxcontrol.svn.codeplex.com/svn | JavaScript | 1111 lines
                    
14// GLOBAL VAR
                    
15var isJava = false;  // do encodeURIComponent for Java only
                    
16
                    
89    {
                    
90        return encodeURIComponent(prompt);
                    
91    }
                    
                
Controls.js https://ajaxcontrol.svn.codeplex.com/svn | JavaScript | 1285 lines
                    
99        if (parameter) {
                    
100            var key = encodeURIComponent(parameter[0]);
                    
101            if (key.length === 0) {
                    
109            return parameter[1].map(function (value) {
                    
110                return key + '=' + encodeURIComponent(value);
                    
111            }).join('&');
                    
                
IOAdapters.js https://ajaxcontrol.svn.codeplex.com/svn | JavaScript | 598 lines
                    
134        
                    
135        this._form[rp.STATE].value = encodeURIComponent(toJSON(pageState));  
                    
136        this._form[rp.TARGET].value = encodeURIComponent(viewerName);
                    
136        this._form[rp.TARGET].value = encodeURIComponent(viewerName);
                    
137        this._form[rp.ARGUMENT].value = encodeURIComponent(toJSON(eventArgs));
                    
138        
                    
225        var postData = {};
                    
226        postData[rp.STATE] = encodeURIComponent(state);
                    
227        postData[rp.TARGET] = encodeURIComponent(viewerName);
                    
227        postData[rp.TARGET] = encodeURIComponent(viewerName);
                    
228        postData[rp.ARGUMENT] = encodeURIComponent('"axprint="');
                    
229        if(document.getElementById('com.sun.faces.VIEW')) {
                    
229        if(document.getElementById('com.sun.faces.VIEW')) {
                    
230            postData['com.sun.faces.VIEW'] = encodeURIComponent(document.getElementById('com.sun.faces.VIEW').value);
                    
231        }
                    
                
angular.min.js https://radical.svn.codeplex.com/svn | JavaScript | 202 lines
                    
5*/
                    
6(function(X,O,r){'use strict';function A(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.3/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[c]?"undefined":"string"!=typeof arguments[c]?JSON.stringify(arguments[c]):arguments[c]);return Error(a)}}function pb(b){if(null==b||ya(b))return!1;var a=
                    
7b.length;return 1===b.nodeType&&a?!0:w(b)||K(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function q(b,a,c){var d;if(b)if(I(b))for(d in b)"prototype"!=d&&("length"!=d&&"name"!=d&&b.hasOwnProperty(d))&&a.call(c,b[d],d);else if(b.forEach&&b.forEach!==q)b.forEach(a,c);else if(pb(b))for(d=0;d<b.length;d++)a.call(c,b[d],d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function Ob(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function Mc(b,a,c){for(var d=Ob(b),
                    
14a.$watch)&&(c="$SCOPE");return c}function oa(b,a){return"undefined"===typeof b?r:JSON.stringify(b,Qc,a?"  ":null)}function Tb(b){return w(b)?JSON.parse(b):b}function Na(b){b&&0!==b.length?(b=t(""+b),b=!("f"==b||"0"==b||"false"==b||"no"==b||"n"==b||"[]"==b)):b=!1;return b}function ha(b){b=x(b).clone();try{b.html("")}catch(a){}var c=x("<div>").append(b).html();try{return 3===b[0].nodeType?t(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+t(b)})}catch(d){return t(c)}}function Ub(b){try{return decodeURIComponent(b)}catch(a){}}
                    
15function Vb(b){var a={},c,d;q((b||"").split("&"),function(b){b&&(c=b.split("="),d=Ub(c[0]),B(d)&&(b=B(c[1])?Ub(c[1]):!0,a[d]?K(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Wb(b){var a=[];q(b,function(b,d){K(b)?q(b,function(b){a.push(ua(d,!0)+(!0===b?"":"="+ua(b,!0)))}):a.push(ua(d,!0)+(!0===b?"":"="+ua(b,!0)))});return a.length?a.join("&"):""}function sb(b){return ua(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ua(b,a){return encodeURIComponent(b).replace(/%40/gi,
                    
16"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,a?"%20":"+")}function Rc(b,a){function c(a){a&&d.push(a)}var d=[b],e,g,f=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;q(f,function(a){f[a]=!0;c(O.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(q(b.querySelectorAll("."+a),c),q(b.querySelectorAll("."+a+"\\:"),c),q(b.querySelectorAll("["+a+"]"),c))});q(d,function(a){if(!e){var b=h.exec(" "+a.className+" ");b?(e=a,g=
                    
                
angular.js https://radical.svn.codeplex.com/svn | JavaScript | 20282 lines
                    
74      message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' +
                    
75        encodeURIComponent(stringify(arguments[i]));
                    
76    }
                    
                
utils.js https://recentitems.svn.codeplex.com/svn | JavaScript | 680 lines
                    
88		// grab the file's location in a link
                    
89		var linkSrc = "javascript:executeCommand(\""+encodeURIComponent(mostRecentFile.path)+"\");";	
                    
90
                    
106			{
                    
107				img.src="gimage:///"+encodeURIComponent(System.Gadget.path+iconPath["network"]);//+" ?width="+ICON_HEIGHT;
                    
108			}
                    
110			{	// is local folder
                    
111				img.src="gimage:///"+encodeURIComponent(System.Gadget.path+iconPath["folder"]);//+" ?width="+ICON_HEIGHT;
                    
112			}
                    
118			{
                    
119				img.src="gimage:///"+encodeURIComponent(System.Gadget.path+iconPath[extension]);//+" ?width="+ICON_HEIGHT;
                    
120			}
                    
122			{
                    
123				img.src="gimage:///"+encodeURIComponent(mostRecentFile.path);//+" ?width="+ICON_HEIGHT;
                    
124			}
                    
                
iCom_School.js https://Kwan.svn.codeplex.com/svn | JavaScript | 648 lines
                    
27			var _kwd = '_' + kwd;
                    
28			var uKwd = window.encodeURIComponent ? encodeURIComponent( kwd ) : escape( kwd );
                    
29			var lang_s = this.lang;
                    
                
iCom.js https://Kwan.svn.codeplex.com/svn | JavaScript | 607 lines
                    
27			var _kwd = '_' + kwd;
                    
28			var uKwd = window.encodeURIComponent ? encodeURIComponent( kwd ) : escape( kwd );
                    
29			if ( this.dataArr[_kwd] ) {//已缓存过,直接调用缓存记录,不再重新发送http请求
                    
                
community.js https://apex.svn.codeplex.com/svn | JavaScript | 638 lines
                    
123    // Fire off the Ajax request for community content
                    
124    ic_ajax.sendRequest(communityBaseUrl + "ic_community.aspx?action=getcontent&language=" + communityPhraseLanguage + "&itemid=" + encodeURIComponent(communityItemId) + "&getprivate=" + (ic_communityShowPrivate?"true":"false") + "&getpublic=" + (ic_communityShowPublic?"true":"false") + "&projectkey=" + communityProjectKey)
                    
125}
                    
129    // Fire off the request to add a new item
                    
130    ic_ajax.sendRequest(communityBaseUrl + "ic_community.aspx?action=createitem&language=" + communityPhraseLanguage + "&contenttype=" + contentType + "&itemid=" + encodeURIComponent(communityItemId) + "&isprivate=true&returnurl=" + location.href + "&projectkey=" + communityProjectKey);
                    
131}
                    
135    // Fire off the request to add a new item
                    
136    ic_ajax.sendRequest(communityBaseUrl + "ic_community.aspx?action=createitem&language=" + communityPhraseLanguage + "&contenttype=" + contentType + "&itemid=" + encodeURIComponent(communityItemId) + "&isprivate=false&returnurl=" + location.href + "&projectkey=" + communityProjectKey);
                    
137}
                    
141    var txt = button.parentNode.getElementsByTagName("TEXTAREA").item(0);
                    
142    ic_ajax.sendRequest(communityBaseUrl + "ic_community.aspx?action=postnewitem&language=" + communityPhraseLanguage + "&itemid=" + encodeURIComponent(communityItemId) + "&contenttype=" + contentType + "&isprivate=true&projectkey=" + communityProjectKey,"POST",txt.value);
                    
143}
                    
147    var txt = button.parentNode.getElementsByTagName("TEXTAREA").item(0);
                    
148    ic_ajax.sendRequest(communityBaseUrl + "ic_community.aspx?action=postnewitem&language=" + communityPhraseLanguage + "&itemid=" + encodeURIComponent(communityItemId) + "&contenttype=" + contentType + "&isprivate=false&projectkey=" + communityProjectKey,"POST",txt.value);
                    
149}
                    
                
game.js http://tmlife-storage.googlecode.com/svn/trunk/ | JavaScript | 270 lines
                    
83    tweet_label.addEventListener(enchant.Event.TOUCH_START, function(){
                    
84        var EUC = encodeURIComponent;
                    
85        var twitter_url = "http://twitter.com/?status=";
                    
                
jasmine-html.js git://github.com/lucmoreau/ProvToolbox.git | JavaScript | 190 lines
                    
59    var suiteDiv = this.createDom('div', { className: 'suite' },
                    
60        this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
                    
61        this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));
                    
131  var specDiv = this.createDom('div', { className: 'spec '  + status },
                    
132      this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),
                    
133      this.createDom('a', {
                    
134        className: 'description',
                    
135        href: '?spec=' + encodeURIComponent(spec.getFullName()),
                    
136        title: spec.getFullName()
                    
                
common.js git://github.com/jyr/MNPP.git | JavaScript | 457 lines
                    
158 * @uses    collation_connection
                    
159 * @uses    encodeURIComponent()
                    
160 * @param    string    url    name of page to be loaded
                    
172        '&token=' + encodeURIComponent(token) +
                    
173        '&db=' + encodeURIComponent(db) +
                    
174        '&table=' + encodeURIComponent(table) +
                    
175        '&lang=' + encodeURIComponent(lang) +
                    
176        '&collation_connection=' + encodeURIComponent(collation_connection),
                    
177        'main');
                    
192function refreshNavigation() {
                    
193    goTo('navigation.php?server=' + encodeURIComponent(server) +
                    
194        '&token=' + encodeURIComponent(token)  +
                    
361    if ( ! url ) {
                    
362        url = 'querywindow.php?' + common_query + '&db=' + encodeURIComponent(db) + '&table=' + encodeURIComponent(table);
                    
363    }
                    
                
comments.js git://github.com/facebook/connect-js.git | JavaScript | 121 lines
                    
64      if (index > 0) {
                    
65        attr.xid = encodeURIComponent(document.URL.substring(0, index));
                    
66      }
                    
67      else {
                    
68        attr.xid = encodeURIComponent(document.URL);
                    
69      }
                    
                
autofill_and_password_manager_internals.js git://github.com/chromium/chromium.git | JavaScript | 246 lines
                    
41function setUrlHashParam(key, value) {
                    
42  key = encodeURIComponent(key);
                    
43  value = encodeURIComponent(value);
                    
55function getUrlHashParam(key) {
                    
56  key = encodeURIComponent(key);
                    
57  const match = window.location.hash.match(makeKeyValueRegExp(key));
                    
                
fileuploader.js http://fzcs-sms.googlecode.com/svn/trunk/ | JavaScript | 1281 lines
                    
212                        : (Object.prototype.toString.call(nextObj) === '[object Function]')
                    
213                        ? encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj())
                    
214                        : encodeURIComponent(nextTemp) + '=' + encodeURIComponent(nextObj)
                    
233    } else {
                    
234        uristrings.push(encodeURIComponent(temp) + '=' + encodeURIComponent(obj));
                    
235    }
                    
                
dhtmlxdataprocessor.js http://pdms.googlecode.com/svn/trunk/ | JavaScript | 461 lines
                    
36        if (this._utf)
                    
37            return encodeURIComponent(data);
                    
38        else
                    
                
player_ie.js http://pefladdons.googlecode.com/svn/trunk/ | JavaScript | 918 lines
                    
113	if (!name || !value) return false;
                    
114	document.cookie = name + '=' + encodeURIComponent(value) + '; expires='+ exdate.toUTCString() + '; path=/'
                    
115	return true
                    
                
 

Source

Language