100+ results results for 'encodeURIComponent' (844 ms)
78 message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' + 79 encodeURIComponent(stringify(arguments[i])); 80 }jarvis.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
119 // if you happen to find a TTS API that sounds like jarvis, inform me ASAP 120 document.getElementById("_jarvis").src = 'http://api.voicerss.org/?key='+this.voicerssKey+'&language='+this.lang+'&src='+encodeURIComponent(t); 121 }io-form-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 88 lines
22 var f = (typeof o.id === 'object') ? o.id : Y.config.doc.getElementById(o.id), 23 eUC = encodeURIComponent, 24 data = [], 36 if ((useDf) ? n : (n && !d)) { 37 n = encodeURIComponent(n) + '='; 38 v = encodeURIComponent(e.value);2012-14-189.html https://gitlab.com/bernagg/TI | HTML | 173 lines
42 43<form id="search-form" method="get" action="http://socialnetworks.on-myweb.com/" onsubmit="location.href=this.action+'search/'+encodeURIComponent(this.s.value).replace(/%20/g, '+'); return false;"> 44 <input type="text" id="s" name="s" value="" size="15" />angular-loader.js https://gitlab.com/Mirros/cdnjs | JavaScript | 405 lines
61 message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' + 62 encodeURIComponent(toDebugString(arguments[i])); 63 }back.js.uncompressed.js https://gitlab.com/Mirros/cdnjs | JavaScript | 397 lines
21 if(!h){ h = ""; } 22 window.location.hash = encodeURIComponent(h); 23 historyCounter = history.length;web_socket.js https://gitlab.com/Mirros/cdnjs | JavaScript | 391 lines
79 } 80 // We use encodeURIComponent() here, because FABridge doesn't work if 81 // the argument includes some characters. We don't use escape() here 83 // https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Functions#escape_and_unescape_Functions 84 // But it looks decodeURIComponent(encodeURIComponent(s)) doesn't 85 // preserve all Unicode characters either e.g. "\uffff" in Firefox. 87 // additional testing. 88 var result = WebSocket.__flash.send(this.__id, encodeURIComponent(data)); 89 if (result < 0) { // successdust-core.js https://gitlab.com/Mirros/cdnjs | JavaScript | 577 lines
108 u: encodeURI, 109 uc: encodeURIComponent 110}dust-core-1.2.3.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 622 lines
126 u: encodeURI, 127 uc: encodeURIComponent, 128 js: function(value) { if (!JSON) { return value; } return JSON.stringify(value); },jasmine-html.js https://gitlab.com/Mirros/cdnjs | 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()autocomplete-sources-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 394 lines
65 maxResults: maxResults > 0 ? maxResults : 1000, 66 query : encodeURIComponent(query) 67 }); 357 maxResults: maxResults > 0 ? maxResults : 1000, 358 query : encodeURIComponent(query) 359 });socialite.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 457 lines
25 sto = window.setTimeout, 26 euc = encodeURIComponent, 27 gcn = typeof document.getElementsByClassName === 'function';Misc.php https://gitlab.com/endomorphosis/falkenstein | PHP | 401 lines
47 /** 48 * Simulate the encodeURIComponent() function available in JavaScript 49 * @static 53 */ 54 function encodeURIComponent($str) 55 {offline-exporting.src.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 277 lines
94 } 95 return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svg); 96 },querystring-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 270 lines
174 * (en|de)codeURIComponent functions. 175 * Default: encodeURIComponent 176 * @module querystring 180 **/ 181QueryString.escape = encodeURIComponent; 182satellizer.js https://gitlab.com/Mirros/cdnjs | JavaScript | 467 lines
285 var paramValue = defaults[camelizedName]; 286 keyValuePairs.push([paramName, encodeURIComponent(paramValue)]); 287 }); 327 angular.forEach(obj, function(value, key) { 328 str.push(encodeURIComponent(key) + '=' + encodeURIComponent(value)); 329 });angular-cookies.js https://gitlab.com/Mirros/cdnjs | JavaScript | 320 lines
287 288 var str = encodeURIComponent(name) + '=' + encodeURIComponent(value); 289 str += path ? ';path=' + path : '';core-min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 13 lines
932-8*(b%4);a.length=h.ceil(b/4)},clone:function(){var a=f.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],d=0;d<a;d+=4)b.push(4294967296*h.random()|0);return new j.init(b,a)}}),m=k.enc={},s=m.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var d=[],c=0;c<a;c++){var e=b[c>>>2]>>>24-8*(c%4)&255;d.push((e>>>4).toString(16));d.push((e&15).toString(16))}return d.join("")},parse:function(a){for(var b=a.length,d=[],c=0;c<b;c+=2)d[c>>>3]|=parseInt(a.substr(c, 102),16)<<24-4*(c%8);return new j.init(d,b/2)}},p=m.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var d=[],c=0;c<a;c++)d.push(String.fromCharCode(b[c>>>2]>>>24-8*(c%4)&255));return d.join("")},parse:function(a){for(var b=a.length,d=[],c=0;c<b;c++)d[c>>>2]|=(a.charCodeAt(c)&255)<<24-8*(c%4);return new j.init(d,b)}},t=m.Utf8={stringify:function(a){try{return decodeURIComponent(escape(p.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return p.parse(unescape(encodeURIComponent(a)))}}, 11q=l.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new j.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=t.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,d=b.words,c=b.sigBytes,e=this.blockSize,f=c/(4*e),f=a?h.ceil(f):h.max((f|0)-this._minBufferSize,0);a=f*e;c=h.min(4*a,c);if(a){for(var g=0;g<a;g+=e)this._doProcessBlock(d,g);g=d.splice(0,a);b.sigBytes-=c}return new j.init(g,c)},clone:function(){var a=f.clone.call(this);js.cookie.js https://gitlab.com/Mirros/cdnjs | JavaScript | 139 lines
57 58 value = encodeURIComponent(String(value)); 59 value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent); 60 61 key = encodeURIComponent(String(key)); 62 key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);connection-min.js https://gitlab.com/18runt88/2in3 | JavaScript | 130 lines
8YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function() 9{if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,'click',function(e){var obj=YAHOO.util.Event.getTarget(e);if(obj.type=='submit'){YAHOO.util.Connect._submitElementValue=encodeURIComponent(obj.name)+"="+encodeURIComponent(obj.value);}});return true;} 10return false;})(),startEvent:new YAHOO.util.CustomEvent('start'),completeEvent:new YAHOO.util.CustomEvent('complete'),successEvent:new YAHOO.util.CustomEvent('success'),failureEvent:new YAHOO.util.CustomEvent('failure'),uploadEvent:new YAHOO.util.CustomEvent('upload'),abortEvent:new YAHOO.util.CustomEvent('abort'),_customEvents:{onStart:['startEvent','start'],onComplete:['completeEvent','complete'],onSuccess:['successEvent','success'],onFailure:['failureEvent','failure'],onUpload:['uploadEvent','upload'],onAbort:['abortEvent','abort']},setProgId:function(id) 81{switch(oElement.type) 82{case'select-one':case'select-multiple':for(var j=0;j<oElement.options.length;j++){if(oElement.options[j].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';} 83else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}} 83else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}} 84break;case'radio':case'checkbox':if(oElement.checked){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';} 85break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+'&';} 85break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+'&';} 86else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';} 87hasSubmit=true;} 87hasSubmit=true;} 88break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}}} 89this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(secureUri){var frameId='yuiIO'+this._transaction_id;var io;if(window.ActiveXObject){io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof secureUri=='boolean'){io.src='javascript:false';}bootstrap-table-cookie.js https://gitlab.com/Mirros/cdnjs | JavaScript | 331 lines
70 71 document.cookie = encodeURIComponent(cookieName) + '=' + encodeURIComponent(cookieValue) + calculateExpiration(that.options.cookieExpire) + (that.options.cookieDomain ? '; domain=' + that.options.cookieDomain : '') + (that.options.cookiePath ? '; path=' + that.options.cookiePath : '') + (that.cookieSecure ? '; secure' : ''); 72 return true; 85 86 return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null; 87 }; 92 } 93 return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie); 94 }; 100 } 101 document.cookie = encodeURIComponent(cookieName) + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : ''); 102 return true;panel.js https://gitlab.com/Guy1394/gaia | JavaScript | 98 lines
85 // each char might be longer than 1 byte. 86 // Use encodeURIComponent() to encode ssid, then calculate correct 87 // length.yql-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 265 lines
28}; 29_yuitest_coverage["build/yql/yql.js"].code=["YUI.add('yql', function (Y, NAME) {","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @module yql"," */","/**"," * Utility Class used under the hood my the YQL class"," * @class YQLRequest"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function/Object} callback The callback to execute after the query (Falls through to JSONP)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","var YQLRequest = function (sql, callback, params, opts) {",""," if (!params) {"," params = {};"," }"," params.q = sql;"," //Allow format override.. JSON-P-X"," if (!params.format) {"," params.format = Y.YQLRequest.FORMAT;"," }"," if (!params.env) {"," params.env = Y.YQLRequest.ENV;"," }",""," this._context = this;",""," if (opts && opts.context) {"," this._context = opts.context;"," delete opts.context;"," }",""," if (params && params.context) {"," this._context = params.context;"," delete params.context;"," }",""," this._params = params;"," this._opts = opts;"," this._callback = callback;","","};","","YQLRequest.prototype = {"," /**"," * @private"," * @property _jsonp"," * @description Reference to the JSONP instance used to make the queries"," */"," _jsonp: null,"," /**"," * @private"," * @property _opts"," * @description Holder for the opts argument"," */"," _opts: null,"," /**"," * @private"," * @property _callback"," * @description Holder for the callback argument"," */"," _callback: null,"," /**"," * @private"," * @property _params"," * @description Holder for the params argument"," */"," _params: null,"," /**"," * @private"," * @property _context"," * @description The context to execute the callback in"," */"," _context: null,"," /**"," * @private"," * @method _internal"," * @description Internal Callback Handler"," */"," _internal: function () {"," this._callback.apply(this._context, arguments);"," },"," /**"," * @method send"," * @description The method that executes the YQL Request."," * @chainable"," * @return {YQLRequest}"," */"," send: function () {"," var qs = [], url = ((this._opts && this._opts.proto) ? this._opts.proto : Y.YQLRequest.PROTO), o;",""," Y.each(this._params, function (v, k) {"," qs.push(k + '=' + encodeURIComponent(v));"," });",""," qs = qs.join('&');",""," url += ((this._opts && this._opts.base) ? this._opts.base : Y.YQLRequest.BASE_URL) + qs;",""," o = (!Y.Lang.isFunction(this._callback)) ? this._callback : { on: { success: this._callback } };",""," o.on = o.on || {};"," this._callback = o.on.success;",""," o.on.success = Y.bind(this._internal, this);",""," this._send(url, o);"," return this;"," },"," /**"," * Private method to send the request, overwritten in plugins"," * @method _send"," * @private"," * @param {String} url The URL to request"," * @param {Object} o The config object"," */"," _send: function(url, o) {"," if (o.allowCache !== false) {"," o.allowCache = true;"," }"," if (!this._jsonp) {"," this._jsonp = Y.jsonp(url, o);"," } else {"," this._jsonp.url = url;"," if (o.on && o.on.success) {"," this._jsonp._config.on.success = o.on.success;"," }"," this._jsonp.send();"," }"," }","};","","/**","* @static","* @property FORMAT","* @description Default format to use: json","*/","YQLRequest.FORMAT = 'json';","/**","* @static","* @property PROTO","* @description Default protocol to use: http","*/","YQLRequest.PROTO = 'http';","/**","* @static","* @property BASE_URL","* @description The base URL to query: query.yahooapis.com/v1/public/yql?","*/","YQLRequest.BASE_URL = ':/' + '/query.yahooapis.com/v1/public/yql?';","/**","* @static","* @property ENV","* @description The environment file to load: http://datatables.org/alltables.env","*/","YQLRequest.ENV = 'http:/' + '/datatables.org/alltables.env';","","Y.YQLRequest = YQLRequest;","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @class YQL"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function} callback The callback to execute after the query (optional)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","Y.YQL = function (sql, callback, params, opts) {"," return new Y.YQLRequest(sql, callback, params, opts).send();","};","","","}, '@VERSION@', {\"requires\": [\"jsonp\", \"jsonp-url\"]});"]; 30_yuitest_coverage["build/yql/yql.js"].lines = {"1":0,"16":0,"18":0,"19":0,"21":0,"23":0,"24":0,"26":0,"27":0,"30":0,"32":0,"33":0,"34":0,"37":0,"38":0,"39":0,"42":0,"43":0,"44":0,"48":0,"85":0,"94":0,"96":0,"97":0,"100":0,"102":0,"104":0,"106":0,"107":0,"109":0,"111":0,"112":0,"122":0,"123":0,"125":0,"126":0,"128":0,"129":0,"130":0,"132":0,"142":0,"148":0,"154":0,"160":0,"162":0,"173":0,"174":0}; 158_yuitest_coverline("build/yql/yql.js", 97); 159qs.push(k + '=' + encodeURIComponent(v)); 160 });index.html https://gitlab.com/Mirros/jsdelivr | HTML | 214 lines
96 if (config.data.hasOwnProperty(key)) { 97 pairs.push(encodeURIComponent(key) + "=" + encodeURIComponent(config.data[key])); 98 }parallax.js https://gitlab.com/Mirros/cdnjs | JavaScript | 343 lines
101 this.$element.css({ 102 backgroundImage: 'url(' + encodeURIComponent(this.imageSrc) + ')', 103 backgroundSize: 'cover',hasher.js https://gitlab.com/Mirros/cdnjs | JavaScript | 419 lines
176 function _encodePath(path){ 177 //used encodeURI instead of encodeURIComponent to preserve '?', '/', 178 //'#'. Fixes Safari bug [issue #8]url.js https://gitlab.com/Mirros/cdnjs | JavaScript | 327 lines
138 pairs.forEach(function (pair) { 139 var name = encodeURIComponent(pair.name); 140 var value = encodeURIComponent(pair.value);oauth.js https://gitlab.com/Mirros/cdnjs | JavaScript | 308 lines
64 * client_id : "<%=consumerKey%>", 65 * redirect_uri : encodeURIComponent("/sdk/callback.html") 66 * }});angular.js https://gitlab.com/heruujoko/dynaform | JavaScript | 1683 lines
64 message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' + 65 encodeURIComponent(toDebugString(templateArgs[i])); 66 }quo.debug.js https://gitlab.com/albertkeba/directory | JavaScript | 1357 lines
189 } 190 serialize += "" + (encodeURIComponent(parameter)) + "=" + (encodeURIComponent(parameters[parameter])); 191 }challenge.js https://gitlab.com/Aaeinstein54/FreeCodeCamp | JavaScript | 630 lines
153 if (solution) { 154 redirectUrl += `?solution=${encodeURIComponent(solution)}`; 155 }2012-94-014.html https://gitlab.com/bernagg/TI | HTML | 593 lines
65 keyword_search = $("#input_search_keyword").val(); 66 top.location.href = 'http://' + wiki_domain + "/search/" + encodeURIComponent(keyword_search); }, 67 73 if(keyword.indexOf('Question')!=-1) { 74 top.location.href = 'http://' + ask_domain + "/question-" + subject_id + "-" + encodeURIComponent(keywords); 75 } 79 keywords = keywords + '_' + subject_id; 80 top.location.href = 'http://' + wiki_domain + "/knowhow:" + encodeURIComponent(keywords); 81 } 82 else 83 top.location.href = 'http://' + wiki_domain + "/Software:" + encodeURIComponent(keywords); 84 } 93 keyword_search = keyword_search.replace('Search for ',''); 94 top.location.href = 'http://' + qs_domain + "/search/" + encodeURIComponent(keyword_search); }, 95 onSelect: function() {2012-92-058.html https://gitlab.com/bernagg/TI | HTML | 343 lines
22 23var w=window,d=document,top_loc=top.location,self_loc=self.location,referrer=d.referrer,flickr_regex=/^[A-Za-z]+:\/{2,3}(?:[0-9\-A-Za-z]+\.)*flickr\.(?:(?:com)|(?:net))(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,self_is_offline=(self_loc.protocol&&self_loc.protocol.indexOf('http')<0),self_is_flickr=flickr_regex.test(self_loc),self_url=self_is_flickr?self_loc.href:root_url+'/',photo_page_re_result=self_is_flickr&&/\/photos\/[^\/]+\/(\d+)/i.exec(self_loc.pathname),photo_id=photo_page_re_result&&parseInt(photo_page_re_result[1],10),frame_whitelist_regex=/^[A-Za-z]+:\/{2,3}(?:[0-9\-A-Za-z]+\.)*(?:(?:flickr\.(?:(?:com)|(?:net)))|(?:yahoo\.(?:(?:com)|(?:net)|(?:(?:com?\.)?[A-Za-z]{2})))|(?:creativecommons\.org)|(?:eyewonderlabs\.com)|(?:stumbleupon\.com)|(?:su\.pr)|(?:bing\.com)|(?:google\.(?:(?:com)|(?:(?:com?\.)?[A-Za-z]{2}))))(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,self_whitelist_regex=/^[A-Za-z]+:\/{2,3}(?:[0-9\-A-Za-z]+\.)*(?:(?:flickr\.(?:(?:com)|(?:net)))|(?:yahoo\.(?:(?:com)|(?:net)|(?:(?:com?\.)?[A-Za-z]{2})))|(?:translate\.google\.com)|(?:translate\.googleusercontent\.com)|(?:web\.archive\.org))(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,image_search_regex=/^[A-Za-z]+:\/{2,3}(?:[0-9\-A-Za-z]+\.)*(?:(?:(?:google)|(?:bing))\.(?:(?:com)|(?:(?:com?\.)?[A-Za-z]{2})))(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,referrer_is_flickr=flickr_regex.test(referrer),referrer_is_whitelisted=frame_whitelist_regex.test(referrer),referrer_is_imag_search=image_search_regex.test(referrer),faq_url=root_url+'/frame_redir.gne?source='+encodeURIComponent(referrer)+'&dest='+encodeURIComponent(root_url+'/help/blogging/#1392237'),redir_url=root_url+'/frame_redir.gne?source='+encodeURIComponent(referrer)+'&dest='+encodeURIComponent(self_url),should_bust,should_wipe,base;function redirect(){w.onerror=function(){return true;};if(typeof top_loc.replace==='function'){top_loc.replace(redir_url);}else{top_loc.href=redir_url;}} function wipe(){var logo_w,font_size,win_width,html,msg;w.onerror=function(){return true;};logo_w=162;font_size='12px';setInterval(function(){if(d&&d.body){if(d.body.lastChild&&d.body.lastChild.className&&d.body.lastChild.className==='wipe-msg'){}else{msg=wipe_msg.replace('{url}',redir_url).replace('{faq}',faq_url);if(typeof w.innerWidth==='number'){win_width=w.innerWidth;}else if(d.body.clientWidth){win_width=d.body.clientWidth;} if(win_width&&win_width<162){logo_w=win_width;font_size='10px';} html='<div class="wipe-msg" style="font-size:'+font_size+';text-align:left;"><div style="margin-bottom:3px;"><img alt="Flickr" width="'+logo_w+'" src="http://l.yimg.com/g/images/logo_home.png"></div><div style="padding-left:5px;line-height:1.2em;">'+msg+'</div></div>';d.body.style.margin='0';d.body.innerHTML=html;}}},200);} function get_frame_depth(){var win=self,frame_depth=0;while(win!==win.parent){frame_depth+=1;win=win.parent;} return frame_depth;} function debug(){if(is_debug){console.log(arguments);}} if(self_is_flickr&&self_loc===top_loc){}else if(self_is_offline){}else if(!self_is_flickr&&!self_whitelist_regex.test(self_loc)){should_wipe=true;}else if(bust_image_search&&photo_id&&referrer_is_image_search){should_bust=true;}else if(referrer&&!referrer_is_whitelisted){should_wipe=true;}else if(!referrer_is_flickr&&get_frame_depth()>1){should_wipe=true;} if(is_debug){debug({self_is_flickr:self_is_flickr,top_loc:top_loc,self_loc:self_loc,referrer:referrer,self_is_offline:self_is_offline,self_is_flickr:self_is_flickr,self_url:self_url,photo_page_re_result:photo_page_re_result,photo_id:photo_id,referrer_is_flickr:referrer_is_flickr,referrer_is_whitelisted:referrer_is_whitelisted,referrer_is_image_search:referrer_is_image_search,faq_url:faq_url,redir_url:redir_url,should_bust:should_bust,should_wipe:should_wipe,base:base});}else{if(should_bust){setTimeout(function(){w.onbeforeunload=w.onunload=null;redirect();},1000);setTimeout(wipe,2000);redirect();}else if(should_wipe){wipe();}else if(referrer_is_whitelisted&&!referrer_is_flickr){base=document.createElement('base');base.target='_top';document.getElementsByTagName('head')[0].appendChild(base);}} 242012-88-046.html https://gitlab.com/bernagg/TI | HTML | 975 lines
45 if(keyword2.indexOf("Topic")!=-1) 46 top.location.href = "/questions/topic/" + encodeURIComponent(keywords); 47 else if(keyword2.indexOf("Software")!=-1) 47 else if(keyword2.indexOf("Software")!=-1) 48 top.location.href = "/questins/software/" + encodeURIComponent(keywords); 49 else 49 else 50 top.location.href = "/question/" + encodeURIComponent(keyword3) + "/" + encodeURIComponent(keywords); 51 }2012-84-069.html https://gitlab.com/bernagg/TI | HTML | 449 lines
28 var secure = options.secure ? '; secure' : ''; 29 document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); 30 } else {2012-83-173.html https://gitlab.com/bernagg/TI | HTML | 642 lines
45 if(keyword2.indexOf("Topic")!=-1) 46 top.location.href = "/questions/topic/" + encodeURIComponent(keywords); 47 else if(keyword2.indexOf("Software")!=-1) 47 else if(keyword2.indexOf("Software")!=-1) 48 top.location.href = "/questions/software/" + encodeURIComponent(keywords); 49 else 49 else 50 top.location.href = "/question/" + encodeURIComponent(keyword3) + "/" + encodeURIComponent(keywords); 51 }2012-83-060.html https://gitlab.com/bernagg/TI | HTML | 549 lines
50 var what = form.what.value; 51 self.location = GROUP_HOST + "/group/"+ 'abcict' + "/content/tag/" + encodeURIComponent(what); 52 }2012-82-063.html https://gitlab.com/bernagg/TI | HTML | 1181 lines
61 62 Squarespace.Constants.SS_AUTHKEY = encodeURIComponent(""); 63 Squarespace.Constants.WEBSITE_TITLE = "EA WorldView";2012-76-149.html https://gitlab.com/bernagg/TI | HTML | 515 lines
41 var obj = document.getElementById(siteName); 42 var current_url = encodeURIComponent(window.location.href); 43 regEx =/current_url/g; 45 var title = infotitle; 46 title = encodeURIComponent(title); 47 regEx =/#infoTitle#/g;2012-52-081.html https://gitlab.com/bernagg/TI | HTML | 1570 lines
28use_existing_jquery=false, 29f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random());var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init(); 30</script>2012-44-059.html https://gitlab.com/bernagg/TI | HTML | 389 lines
61 l.src = h + (__lc_serv = p['server']) + '/licence/'+license+'/script.cgi?lang='+lang+a+'groups='+skill; 62 l.src += (params == '') ? '' : a+'params='+encodeURIComponent(encodeURIComponent(params)); s.parentNode.insertBefore(l, s); 63 } else setTimeout(__lc_load, 1000); if(typeof __lc_serv != 'string'){ s.parentNode.insertBefore(l, s);}2012-37-133.html https://gitlab.com/bernagg/TI | HTML | 593 lines
65 keyword_search = $("#input_search_keyword").val(); 66 top.location.href = 'http://' + wiki_domain + "/search/" + encodeURIComponent(keyword_search); }, 67 73 if(keyword.indexOf('Question')!=-1) { 74 top.location.href = 'http://' + ask_domain + "/question-" + subject_id + "-" + encodeURIComponent(keywords); 75 } 79 keywords = keywords + '_' + subject_id; 80 top.location.href = 'http://' + wiki_domain + "/knowhow:" + encodeURIComponent(keywords); 81 } 82 else 83 top.location.href = 'http://' + wiki_domain + "/Software:" + encodeURIComponent(keywods); 84 } 93 keyword_search = keyword_search.replace('Search for ',''); 94 top.location.href = 'http://' + qs_domain + "/search/" + encodeURIComponent(keyword_search); }, 95 onSelect: function() {2012-36-111.html https://gitlab.com/bernagg/TI | HTML | 597 lines
65 keyword_search = $("#input_search_keyword").val(); 66 top.location.href = 'http://' + wiki_domain + "/search/" + encodeURIComponent(keyword_search); }, 67 73 if(keyword.indexOf('Question')!=-1) { 74 top.location.href = 'http://' + ask_domain + "/question-" + subject_id + "-" + encodeURIComponent(keywords); 75 } 79 keywords = keywords + '_' + subject_id; 80 top.location.href = 'http://' + wiki_domain + "/knowhow:" + encodeURIComponent(keywords); 81 } 82 else 83 top.location.href = 'http://' + wiki_doman + "/Software:" + encodeURIComponent(keywords); 84 } 93 keyword_search = keyword_search.replace('Search for ',''); 94 top.location.href = 'http://' + qs_domain + "/search/" + encodeURIComponent(keyword_search); }, 95 onSelect: function() {2012-27-191.html https://gitlab.com/bernagg/TI | HTML | 1791 lines
192 193var urlencode = window.encodeURIComponent ? 194 function ( str ) { return window.encodeURIComponent(str).replace(/%20/g,'+') } :2012-02-166.html https://gitlab.com/bernagg/TI | HTML | 583 lines
27var _vis_opt_protocol = (('https:' == document.location.protocol) ? 'https://' : 'http://'); 28document.write('<s' + 'cript src="' + _vis_opt_protocol + 'dev.visualwebsiteoptimizer.com/deploy/js_visitor_settings.php?v=1&a='+_vis_opt_account_id+'&url='+encodeURIComponent(document.URL)+'&random='+Math.random()+'" type="text/javascript">' + '<\/s' + 'cript>'); 29</script>2011-98-017.html https://gitlab.com/bernagg/TI | HTML | 923 lines
37 38 Squarespace.Constants.SS_AUTHKEY = encodeURIComponent(""); 39 Squarespace.Constants.WEBSITE_TITLE = "Music Think Tank";2011-94-102.html https://gitlab.com/bernagg/TI | HTML | 148 lines
2var loadTimer = window.jstiming.load; loadTimer.name = 'permalink';var OZ_pathPrefix = ''; var OZ_jsVersion = '1o2wQL7Ox5s.es.'; var OZ_windowName = 'oz'; var OZ_lang = 'es';var e=this;var f=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");var g,h=function(b){var a=b.match(f),b=a[7]||"";if(!b)return null;for(var c=["","buzz","about","contact","sidewiki"],d=0;d<c.length;d++)if(b==c[d])return null;if(!window.history||!window.history.pushState)return null;c=a[4]||"";d=a[6]||"";a=(a[1]||"")+"://"+(a[3]||"");c&&(a+=":"+c);a+=e.OZ_pathPrefix+"/"+b;d&&(a+="?"+d);return a},i="OZ_prog".split("."),j=e;!(i[0]in j)&&j.execScript&&j.execScript("var "+i[0]);for(var k;i.length&&(k=i.shift());)!i.length?j[k]=0:j=j[k]?j[k]:j[k]={}; 3var l=function(){if(!window._jsl&&0<=g){var b=document.getElementById("js").src;(new Image).src="/_/resourcefailure?type=js&url="+encodeURIComponent(b)+"&hl="+encodeURIComponent(window.OZ_lang)}else g=0,window.setTimeout(l,3E4)},m=(window!=top?"about:blank":null)||h(top.location.href);if(m)window.location=m;var n=e.OZ_pathPrefix,o=top.location.href.match(f),p=o[5]||"",q=o[7]||""; 4if(q&&(n&&p.indexOf(n)==0&&(p=p.substring(n.length)),p.indexOf("/")==0&&(p=p.substring(1)),p!=q)){var r=document.createElement("style");r.type="text/css";r.styleSheet?r.styleSheet.cssText=".maybe-hide {visibility:hidden}":r.innerHTML=".maybe-hide {visibility:hidden}";document.getElementsByTagName("head")[0].appendChild(r)} 4if(q&&(n&&p.indexOf(n)==0&&(p=p.substring(n.length)),p.indexOf("/")==0&&(p=p.substring(1)),p!=q)){var r=document.createElement("style");r.type="text/css";r.styleSheet?r.styleSheet.cssText=".maybe-hide {visibility:hidden}":r.innerHTML=".maybe-hide {visibility:hidden}";document.getElementsByTagName("head")[0].appendChild(r)} 5window.setTimeout(function(){for(var b=!1,a=0;a<document.styleSheets.length;a++){var c=document.styleSheets[a],d=c.href;if(d&&d.indexOf("/_/ss/")>-1){try{if(c.cssRules&&c.cssRules.length>0||c.rules&&c.rules.length>0)b=!0}catch(s){}break}}if(!b)b=document.getElementById("ss").href,(new Image).src="/_/resourcefailure?type=css&url="+encodeURIComponent(b)+"&hl="+encodeURIComponent(window.OZ_lang);l()},3E4); 6</script><title>Buzz de Reynold Xin</title><script>loadTimer.tick('vl');</script><style>2011-86-041.html https://gitlab.com/bernagg/TI | HTML | 691 lines
30 31 try { document.cookie = "dnzabref="+encodeURIComponent(document.referrer)+"; path=/"; } catch (err) {} 32 var newUrl = addParamToUrl(window.location.href,"v=" + 'B');2011-75-023.html https://gitlab.com/bernagg/TI | HTML | 822 lines
4 cnnad_newTileIDGroup(new Array('728x90_top', '336x850_rgt')); 5</script> <meta name="TITLE" content="Can crowdsourcing reconnect with the crowd? - CNN.com"><meta property="og:title" content ="Can crowdsourcing reconnect with the crowd?" /> <meta name="description" content="Crowdsourcing used to be an internet buzz word, frequently used by business visionaries to describe a shiny new economic model. Nowadays, amid claims of exploitation and shoddy standards, the financial luster has gone."><meta name="KEYWORDS" content=""><meta name="AUTHOR" content="By� Barry Neild, for CNN"><meta name="SECTION" content="BUSINESS"><meta name="SUBSECTION" content=""><script type="text/javascript">var cnnIsIntl = (location.hostname.indexOf('edition.') > -1) ? true : false;var clickID = (cnnIsIntl) ? 212106 : 211911;var cnnShareTitle = encodeURIComponent("Can crowdsourcing reconnect with the crowd?");var cnnShareDesc = encodeURIComponent("Crowdsourcing used to be an internet buzz word, frequently used by business visionaries to describe a shiny new economic model. Nowadays, amid claims of exploitation and shoddy standards, the financial luster has gone.");var disqus_category_id = 208448;var disqus_identifier = "/2010/BUSINESS/11/12/crowdsourcing.business/index.html";var disqus_title = "Can crowdsourcing reconnect with the crowd?"; var cnnFirstPub = new Date('Friday Nov 12 09:05:36 EST 2010');</script><link rel="canonical" href="http://edition.cnn.com/2010/BUSINESS/11/12/crowdsourcing.business/index.html" /> <meta property="fb:admins" content="690014395"/> 6<meta property="fb:app_id" content="80401312489"/>2011-67-112.html https://gitlab.com/bernagg/TI | HTML | 687 lines
35 location.href='http://del.icio.us/post?v=2&url=' 36 + encodeURIComponent(loc) 37 +'&title=' 37 +'&title=' 38 +encodeURIComponent(document.title); 39 //Return false so the link won't be activated.2011-62-014.html https://gitlab.com/bernagg/TI | HTML | 455 lines
54 ) ) { 55 parent.location = "/user/Login.jtp?nextUrl="+encodeURIComponent(parent.location); 56 } 97 ) ) { 98 parent.location = "/user/Login.jtp?nextUrl="+encodeURIComponent(self.location); 99 } 140 var link = this.get('nabble.alertlink'); 141 link.href = "/alerts/EmailAlerts.jtp?id="+alertId+"&from=modify&back="+encodeURIComponent(self.location); 142 link.innerHTML = 'Edit alert';2011-48-003.html https://gitlab.com/bernagg/TI | HTML | 965 lines
37 38 Squarespace.Constants.SS_AUTHKEY = encodeURIComponent(""); 39 Squarespace.Constants.WEBSITE_TITLE = "Off The Grid PR";2011-42-077.html https://gitlab.com/bernagg/TI | HTML | 406 lines
15 16 var facebookurl = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(url)+ "&t=" + encodeURIComponent(title); 17 var diggurl = "http://digg.com/submit?phase=2&url=" + url + "&title=" + title + "&bodytext=" + desc.content;2011-07-030.html https://gitlab.com/bernagg/TI | HTML | 584 lines
71 <form action="/search.php" method="get" name="thisform-search" id="thisform-search" 72 onsubmit='document.location.href="http://siyudis.com/search/"+encodeURIComponent(this.search.value); return false;' > 73util.js https://gitlab.com/Mirros/libs | JavaScript | 929 lines
86} 87var urlEncode = encodeURIComponent; 88var urlDecode = decodeURIComponent;ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1480 lines
14 */ 15 var _window = window, _document = _window.document, _navigator = _window.navigator, _setTimeout = _window.setTimeout, _clearTimeout = _window.clearTimeout, _setInterval = _window.setInterval, _clearInterval = _window.clearInterval, _getComputedStyle = _window.getComputedStyle, _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, _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) {ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1537 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) {ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1537 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; 16 /**ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1521 lines
14 */ 15 var _window = window, _document = _window.document, _navigator = _window.navigator, _setTimeout = _window.setTimeout, _encodeURIComponent = _window.encodeURIComponent, _ActiveXObject = _window.ActiveXObject, _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; 16 /**ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1556 lines
14 */ 15 var _window = window, _document = _window.document, _navigator = _window.navigator, _setTimeout = _window.setTimeout, _parseInt = _window.Number.parseInt || _window.parseInt, _parseFloat = _window.Number.parseFloat || _window.parseFloat, _isNaN = _window.Number.isNaN || _window.isNaN, _encodeURIComponent = _window.encodeURIComponent, _Math = _window.Math, _Date = _window.Date, _ActiveXObject = _window.ActiveXObject, _slice = _window.Array.prototype.slice, _keys = _window.Object.keys, _hasOwn = _window.Object.prototype.hasOwnProperty, _defineProperty = function() { 16 if (typeof _window.Object.defineProperty === "function" && function() {ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 469 lines
184 if (origins.length) { 185 str.push("trustedOrigins=" + encodeURIComponent(origins.join(","))); 186 } 187 if (typeof options.amdModuleId === "string" && options.amdModuleId) { 188 str.push("amdModuleId=" + encodeURIComponent(options.amdModuleId)); 189 } 190 if (typeof options.cjsModuleId === "string" && options.cjsModuleId) { 191 str.push("cjsModuleId=" + encodeURIComponent(options.cjsModuleId)); 192 }ZeroClipboard.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 432 lines
172 } 173 str.push("trustedDomain=" + encodeURIComponent(domains.join(","))); 174 } 175 if (typeof options.amdModuleId === "string" && options.amdModuleId) { 176 str.push("amdModuleId=" + encodeURIComponent(options.amdModuleId)); 177 } 178 if (typeof options.cjsModuleId === "string" && options.cjsModuleId) { 179 str.push("cjsModuleId=" + encodeURIComponent(options.cjsModuleId)); 180 }lazy-model-list-debug.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 525 lines
173 if (this.attrAdded(name)) { 174 return encodeURIComponent(AttrProto.get.apply(this, arguments)); 175 } 177 return YArray.map(this._items, function (item) { 178 return encodeURIComponent(item[name]); 179 });cookie.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 515 lines
24 isFunction = L.isFunction, 25 encode = encodeURIComponent, 26 decode = decodeURIComponent,widget.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1275 lines
118 119 attrs += name+'="'+encodeURIComponent(value)+'" '; 120 } 140 if(!value || value == "Array") continue; 141 attrs += name+'="'+encodeURIComponent(value)+'" '; 142 } 168 169 attrs += name+'="'+encodeURIComponent(value)+'" '; 170 }treesaver.debug.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1596 lines
169 case "$": 170 return encodeURIComponent(that.find(name, context)); 171 default: // escape the valuesocialite.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 706 lines
15 rstate = /^($|loaded|complete)/, 16 euc = window.encodeURIComponent; 17sammy.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1347 lines
28 _decode = function( str ) { return decodeURIComponent((str || '').replace(/\+/g, ' ')); }, 29 _encode = encodeURIComponent, 30 _escapeHTML = function(s) {portal.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1783 lines
111 value = portal.support.isFunction(value) ? value() : (value == null ? "" : value); 112 s.push(encodeURIComponent(key) + "=" + encodeURIComponent(value)); 113 }piwik.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1469 lines
18 * - IE4 - try..catch and for..in introduced in IE5 19 * - IE5 - named anonymous functions, array.push, encodeURIComponent, decodeURIComponent, and getElementsByTagName introduced in IE5.5 20 * - Firefox 1.0 and Netscape 8.x - FF1.5 adds array.indexOf, among other things 392/*global ActiveXObject */ 393/*members encodeURIComponent, decodeURIComponent, getElementsByTagName, 394 shift, unshift,oauth.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 644 lines
153 var url = config.oauthd_base + '/auth/' + provider + "?k=" + config.key; 154 url += '&d=' + encodeURIComponent(getAbsUrl('/')); 155 if (opts) 155 if (opts) 156 url += "&opts=" + encodeURIComponent(JSON.stringify(opts)); 157 215 createCookie("oauthio_state", opts.state); 216 var redirect_uri = encodeURIComponent(getAbsUrl(url)); 217 url = config.oauthd_base + '/auth/' + provider + "?k=" + config.key; 244 for (var k in options.oauthio.tokens) 245 options.headers.oauthio += '&' + encodeURIComponent(k) + '=' + encodeURIComponent(options.oauthio.tokens[k]); 246 delete options.oauthio; 258 for (i in (options.oauthio.request.query||{})) 259 qs.push(encodeURIComponent(i) + '=' + encodeURIComponent( 260 replaceParam(options.oauthio.request.query[i], {mediaelement-and-player.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1699 lines
47 encodeUrl: function(url) { 48 return encodeURIComponent(url); //.replace(/\?/gi,'%3F').replace(/=/gi,'%3D').replace(/&/gi,'%26'); 49 },esri-leaflet-basemaps-src.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 586 lines
67 68 data += encodeURIComponent(key) + '=' + encodeURIComponent(value); 69 }leaflet-src.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 2054 lines
132 for (var i in obj) { 133 params.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i])); 134 }nacl_factory.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 500 lines
111 this.yb = function(a) { 112 for(var a = unescape(encodeURIComponent(a)), b = [], f = 0;f < a.length;f++) { 113 b.push(a.charCodeAt(f))jquery.layout.state.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 474 lines
78 if (o.secure) params += ";secure"; 79 document.cookie = name +"="+ (clear ? "" : encodeURIComponent( val )) + params; // write or clear cookie 80 }sharing.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 351 lines
3 if ( jQuery( '#sharing-facebook-' + WPCOM_sharing_counts[ url ] ).length ) 4 jQuery.getScript( 'https://graph.facebook.com/' + encodeURIComponent( url ) + '?callback=WPCOMSharing.update_facebook_count' ); 5 if ( jQuery( '#sharing-twitter-' + WPCOM_sharing_counts[ url ] ).length ) 5 if ( jQuery( '#sharing-twitter-' + WPCOM_sharing_counts[ url ] ).length ) 6 jQuery.getScript( 'http://urls.api.twitter.com/1/urls/count.json?callback=WPCOMSharing.update_twitter_count&url=' + encodeURIComponent( url ) ); 7 if ( jQuery( '#sharing-linkedin-' + WPCOM_sharing_counts[ url ] ).length ) 7 if ( jQuery( '#sharing-linkedin-' + WPCOM_sharing_counts[ url ] ).length ) 8 jQuery.getScript( 'http://www.linkedin.com/countserv/count/share?format=jsonp&callback=WPCOMSharing.update_linkedin_count&url=' + encodeURIComponent( url ) ); 9 },jasmine-html.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 681 lines
213 if (sectionName) { 214 params.push('spec=' + encodeURIComponent(sectionName)); 215 } 408 className: 'description', 409 href: '?spec=' + encodeURIComponent(this.spec.getFullName()), 410 title: this.spec.getFullName()i18next-1.6.0.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1426 lines
187 if(data.hasOwnProperty(dataItem)) { 188 result.push(encodeURIComponent(dataItem) + '=' + encodeURIComponent(data[dataItem])); 189 }history.html4.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 685 lines
88 History.isHashEqual = function(newHash, oldHash){ 89 newHash = encodeURIComponent(newHash).replace(/%25/g, "%"); 90 oldHash = encodeURIComponent(oldHash).replace(/%25/g, "%");elastic.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1574 lines
181 182 parts.push(p + '=' + encodeURIComponent(clientParams[p])); 183 }easyXDM.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1291 lines
23 */ 24(function (window, document, location, setTimeout, decodeURIComponent, encodeURIComponent) { 25/*jslint evil: true, browser: true, immed: true, passfail: true, undef: true, newcap: true*/ 333 if (parameters.hasOwnProperty(key)) { 334 q.push(key + "=" + encodeURIComponent(parameters[key])); 335 }core.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 712 lines
452 parse: function (utf8Str) { 453 return Latin1.parse(unescape(encodeURIComponent(utf8Str))); 454 }plugin.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 656 lines
29 // trigger iframe's 'load' event. 30 src = CKEDITOR.env.air ? 'javascript:void(0)' : CKEDITOR.env.ie ? 'javascript:void(function(){' + encodeURIComponent( src ) + '}())' 31 :link.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1293 lines
301 i > 0 && retval.push( ',' ); 302 retval.push( '\'', paramValue ? escapeSingleQuote( encodeURIComponent( email[ paramName ] ) ) : '', '\'' ); 303 }plugin.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 497 lines
129 for ( var i in params ) 130 queryString.push( i + "=" + encodeURIComponent( params[ i ] ) ); 131 }docprops.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 608 lines
148 var previewSrc = 'javascript:' + 149 'void((function(){' + encodeURIComponent( 150 'document.open();' +bootstrap-tagsinput.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 663 lines
142 var optionExists = ( 143 $('option[value="' + encodeURIComponent(itemValue) + '"]', self.$element).length || 144 $('option[value="' + htmlEncode(itemValue) + '"]', self.$element).lengthbootstrap-tagsinput.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 617 lines
132 // add <option /> if item represents a value not present in one of the <select />'s options 133 if (self.isSelect && !$('option[value="' + encodeURIComponent(itemValue) + '"]',self.$element)[0]) { 134 var $option = $('<option selected>' + htmlEncode(itemText) + '</option>');angular-restful.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 403 lines
33 function encodeUriQuery(val, pctEncodeSpaces) { 34 return encodeURIComponent(val). 35 replace(/%40/gi, '@').mode-luapage.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 1075 lines
60 "SyntaxError|TypeError|URIError|" + 61 "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions 62 "isNaN|parseFloat|parseInt|" +mode-coffee.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 412 lines
38 "Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" + 39 "encodeURIComponent|decodeURI|decodeURIComponent|String|" 40 );ZeroClipboard.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1564 lines
14 */ 15 var _window = window, _document = _window.document, _navigator = _window.navigator, _setTimeout = _window.setTimeout, _parseInt = _window.Number.parseInt || _window.parseInt, _parseFloat = _window.Number.parseFloat || _window.parseFloat, _isNaN = _window.Number.isNaN || _window.isNaN, _encodeURIComponent = _window.encodeURIComponent, _slice = _window.Array.prototype.slice, _keys = _window.Object.keys, _hasOwn = _window.Object.prototype.hasOwnProperty, _defineProperty = _window.Object.defineProperty, _Math = _window.Math, _Date = _window.Date, _ActiveXObject = _window.ActiveXObject; 16 /**cookie-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 685 lines
28}; 29_yuitest_coverage["build/cookie/cookie.js"].code=["YUI.add('cookie', function (Y, NAME) {","","/**"," * Utilities for cookie management"," * @module cookie"," */",""," //shortcuts"," var L = Y.Lang,"," O = Y.Object,"," NULL = null,",""," //shortcuts to functions"," isString = L.isString,"," isObject = L.isObject,"," isUndefined = L.isUndefined,"," isFunction = L.isFunction,"," encode = encodeURIComponent,"," decode = decodeURIComponent,",""," //shortcut to document"," doc = Y.config.doc;",""," /*"," * Throws an error message."," */"," function error(message){"," throw new TypeError(message);"," }",""," /*"," * Checks the validity of a cookie name."," */"," function validateCookieName(name){"," if (!isString(name) || name === \"\"){"," error(\"Cookie name must be a non-empty string.\");"," }"," }",""," /*"," * Checks the validity of a subcookie name."," */"," function validateSubcookieName(subName){"," if (!isString(subName) || subName === \"\"){"," error(\"Subcookie name must be a non-empty string.\");"," }"," }",""," /**"," * Cookie utility."," * @class Cookie"," * @static"," */"," Y.Cookie = {",""," //-------------------------------------------------------------------------"," // Private Methods"," //-------------------------------------------------------------------------",""," /**"," * Creates a cookie string that can be assigned into document.cookie."," * @param {String} name The name of the cookie."," * @param {String} value The value of the cookie."," * @param {Boolean} encodeValue True to encode the value, false to leave as-is."," * @param {Object} options (Optional) Options for the cookie."," * @return {String} The formatted cookie string."," * @method _createCookieString"," * @private"," * @static"," */"," _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {",""," options = options || {};",""," var text /*:String*/ = encode(name) + \"=\" + (encodeValue ? encode(value) : value),"," expires = options.expires,"," path = options.path,"," domain = options.domain;","",""," if (isObject(options)){"," //expiration date"," if (expires instanceof Date){"," text += \"; expires=\" + expires.toUTCString();"," }",""," //path"," if (isString(path) && path !== \"\"){"," text += \"; path=\" + path;"," }",""," //domain"," if (isString(domain) && domain !== \"\"){"," text += \"; domain=\" + domain;"," }",""," //secure"," if (options.secure === true){"," text += \"; secure\";"," }"," }",""," return text;"," },",""," /**"," * Formats a cookie value for an object containing multiple values."," * @param {Object} hash An object of key-value pairs to create a string for."," * @return {String} A string suitable for use as a cookie value."," * @method _createCookieHashString"," * @private"," * @static"," */"," _createCookieHashString : function (hash /*:Object*/) /*:String*/ {"," if (!isObject(hash)){"," error(\"Cookie._createCookieHashString(): Argument must be an object.\");"," }",""," var text /*:Array*/ = [];",""," O.each(hash, function(value, key){"," if (!isFunction(value) && !isUndefined(value)){"," text.push(encode(key) + \"=\" + encode(String(value)));"," }"," });",""," return text.join(\"&\");"," },",""," /**"," * Parses a cookie hash string into an object."," * @param {String} text The cookie hash string to parse (format: n1=v1&n2=v2)."," * @return {Object} An object containing entries for each cookie value."," * @method _parseCookieHash"," * @private"," * @static"," */"," _parseCookieHash : function (text) {",""," var hashParts = text.split(\"&\"),"," hashPart = NULL,"," hash = {};",""," if (text.length){"," for (var i=0, len=hashParts.length; i < len; i++){"," hashPart = hashParts[i].split(\"=\");"," hash[decode(hashPart[0])] = decode(hashPart[1]);"," }"," }",""," return hash;"," },",""," /**"," * Parses a cookie string into an object representing all accessible cookies."," * @param {String} text The cookie string to parse."," * @param {Boolean} shouldDecode (Optional) Indicates if the cookie values should be decoded or not. Default is true."," * @param {Object} options (Optional) Contains settings for loading the cookie."," * @return {Object} An object containing entries for each accessible cookie."," * @method _parseCookieString"," * @private"," * @static"," */"," _parseCookieString : function (text /*:String*/, shouldDecode /*:Boolean*/, options /*:Object*/) /*:Object*/ {",""," var cookies /*:Object*/ = {};",""," if (isString(text) && text.length > 0) {",""," var decodeValue = (shouldDecode === false ? function(s){return s;} : decode),"," cookieParts = text.split(/;\\s/g),"," cookieName = NULL,"," cookieValue = NULL,"," cookieNameValue = NULL;",""," for (var i=0, len=cookieParts.length; i < len; i++){"," //check for normally-formatted cookie (name-value)"," cookieNameValue = cookieParts[i].match(/([^=]+)=/i);"," if (cookieNameValue instanceof Array){"," try {"," cookieName = decode(cookieNameValue[1]);"," cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));"," } catch (ex){"," //intentionally ignore the cookie - the encoding is wrong"," }"," } else {"," //means the cookie does not have an \"=\", so treat it as a boolean flag"," cookieName = decode(cookieParts[i]);"," cookieValue = \"\";"," }"," // don't overwrite an already loaded cookie if set by option"," if (!isUndefined(options) && options.reverseCookieLoading) {"," if (isUndefined(cookies[cookieName])) {"," cookies[cookieName] = cookieValue;"," }"," } else {"," cookies[cookieName] = cookieValue;"," }"," }",""," }",""," return cookies;"," },",""," /**"," * Sets the document object that the cookie utility uses for setting"," * cookies. This method is necessary to ensure that the cookie utility"," * unit tests can pass even when run on a domain instead of locally."," * This method should not be used otherwise; you should use"," * <code>Y.config.doc</code> to change the document that the cookie"," * utility uses for everyday purposes."," * @param {Object} newDoc The object to use as the document."," * @return {void}"," * @method _setDoc"," * @private"," */"," _setDoc: function(newDoc){"," doc = newDoc;"," },",""," //-------------------------------------------------------------------------"," // Public Methods"," //-------------------------------------------------------------------------",""," /**"," * Determines if the cookie with the given name exists. This is useful for"," * Boolean cookies (those that do not follow the name=value convention)."," * @param {String} name The name of the cookie to check."," * @return {Boolean} True if the cookie exists, false if not."," * @method exists"," * @static"," */"," exists: function(name) {",""," validateCookieName(name); //throws error",""," var cookies = this._parseCookieString(doc.cookie, true);",""," return cookies.hasOwnProperty(name);"," },",""," /**"," * Returns the cookie value for the given name."," * @param {String} name The name of the cookie to retrieve."," * @param {Function|Object} options (Optional) An object containing one or more"," * cookie options: raw (true/false), reverseCookieLoading (true/false)"," * and converter (a function)."," * The converter function is run on the value before returning it. The"," * function is not used if the cookie doesn't exist. The function can be"," * passed instead of the options object for backwards compatibility. When"," * raw is set to true, the cookie value is not URI decoded."," * @return {Variant} If no converter is specified, returns a string or null if"," * the cookie doesn't exist. If the converter is specified, returns the value"," * returned from the converter or null if the cookie doesn't exist."," * @method get"," * @static"," */"," get : function (name, options) {",""," validateCookieName(name); //throws error",""," var cookies,"," cookie,"," converter;",""," //if options is a function, then it's the converter"," if (isFunction(options)) {"," converter = options;"," options = {};"," } else if (isObject(options)) {"," converter = options.converter;"," } else {"," options = {};"," }",""," cookies = this._parseCookieString(doc.cookie, !options.raw, options);"," cookie = cookies[name];",""," //should return null, not undefined if the cookie doesn't exist"," if (isUndefined(cookie)) {"," return NULL;"," }",""," if (!isFunction(converter)){"," return cookie;"," } else {"," return converter(cookie);"," }"," },",""," /**"," * Returns the value of a subcookie."," * @param {String} name The name of the cookie to retrieve."," * @param {String} subName The name of the subcookie to retrieve."," * @param {Function} converter (Optional) A function to run on the value before returning"," * it. The function is not used if the cookie doesn't exist."," * @param {Object} options (Optional) Containing one or more settings for cookie parsing."," * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie"," * doesn't exist, null if also returned. If no converter is specified and the"," * subcookie exists, a string is returned. If a converter is specified and the"," * subcookie exists, the value returned from the converter is returned."," * @method getSub"," * @static"," */"," getSub : function (name /*:String*/, subName /*:String*/, converter /*:Function*/, options /*:Object*/) /*:Variant*/ {",""," var hash /*:Variant*/ = this.getSubs(name, options);",""," if (hash !== NULL) {",""," validateSubcookieName(subName); //throws error",""," if (isUndefined(hash[subName])){"," return NULL;"," }",""," if (!isFunction(converter)){"," return hash[subName];"," } else {"," return converter(hash[subName]);"," }"," } else {"," return NULL;"," }",""," },",""," /**"," * Returns an object containing name-value pairs stored in the cookie with the given name."," * @param {String} name The name of the cookie to retrieve."," * @param {Object} options (Optional) Containing one or more settings for cookie parsing."," * @return {Object} An object of name-value pairs if the cookie with the given name"," * exists, null if it does not."," * @method getSubs"," * @static"," */"," getSubs : function (name /*:String*/, options /*:Object*/) {",""," validateCookieName(name); //throws error",""," var cookies = this._parseCookieString(doc.cookie, false, options);"," if (isString(cookies[name])){"," return this._parseCookieHash(cookies[name]);"," }"," return NULL;"," },",""," /**"," * Removes a cookie from the machine by setting its expiration date to"," * sometime in the past."," * @param {String} name The name of the cookie to remove."," * @param {Object} options (Optional) An object containing one or more"," * cookie options: path (a string), domain (a string),"," * and secure (true/false). The expires option will be overwritten"," * by the method."," * @return {String} The created cookie string."," * @method remove"," * @static"," */"," remove : function (name, options) {","","cookie-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 672 lines
28}; 29_yuitest_coverage["build/cookie/cookie.js"].code=["YUI.add('cookie', function (Y, NAME) {","","/**"," * Utilities for cookie management"," * @module cookie"," */",""," //shortcuts"," var L = Y.Lang,"," O = Y.Object,"," NULL = null,"," "," //shortcuts to functions"," isString = L.isString,"," isObject = L.isObject,"," isUndefined = L.isUndefined,"," isFunction = L.isFunction,"," encode = encodeURIComponent,"," decode = decodeURIComponent,"," "," //shortcut to document"," doc = Y.config.doc;"," "," /*"," * Throws an error message."," */"," function error(message){"," throw new TypeError(message);"," } "," "," /*"," * Checks the validity of a cookie name."," */"," function validateCookieName(name){"," if (!isString(name) || name === \"\"){"," error(\"Cookie name must be a non-empty string.\");"," } "," }"," "," /*"," * Checks the validity of a subcookie name."," */ "," function validateSubcookieName(subName){"," if (!isString(subName) || subName === \"\"){"," error(\"Subcookie name must be a non-empty string.\");"," } "," }"," "," /**"," * Cookie utility."," * @class Cookie"," * @static"," */"," Y.Cookie = {"," "," //-------------------------------------------------------------------------"," // Private Methods"," //-------------------------------------------------------------------------"," "," /**"," * Creates a cookie string that can be assigned into document.cookie."," * @param {String} name The name of the cookie."," * @param {String} value The value of the cookie."," * @param {Boolean} encodeValue True to encode the value, false to leave as-is."," * @param {Object} options (Optional) Options for the cookie."," * @return {String} The formatted cookie string."," * @method _createCookieString"," * @private"," * @static"," */"," _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {"," "," options = options || {};"," "," var text /*:String*/ = encode(name) + \"=\" + (encodeValue ? encode(value) : value),"," expires = options.expires,"," path = options.path,"," domain = options.domain;"," "," "," if (isObject(options)){"," //expiration date"," if (expires instanceof Date){"," text += \"; expires=\" + expires.toUTCString();"," }"," "," //path"," if (isString(path) && path !== \"\"){"," text += \"; path=\" + path;"," }"," "," //domain"," if (isString(domain) && domain !== \"\"){"," text += \"; domain=\" + domain;"," }"," "," //secure"," if (options.secure === true){"," text += \"; secure\";"," }"," }"," "," return text;"," },"," "," /**"," * Formats a cookie value for an object containing multiple values."," * @param {Object} hash An object of key-value pairs to create a string for."," * @return {String} A string suitable for use as a cookie value."," * @method _createCookieHashString"," * @private"," * @static"," */"," _createCookieHashString : function (hash /*:Object*/) /*:String*/ {"," if (!isObject(hash)){"," error(\"Cookie._createCookieHashString(): Argument must be an object.\");"," }"," "," var text /*:Array*/ = [];",""," O.each(hash, function(value, key){"," if (!isFunction(value) && !isUndefined(value)){"," text.push(encode(key) + \"=\" + encode(String(value)));"," } "," });"," "," return text.join(\"&\");"," },"," "," /**"," * Parses a cookie hash string into an object."," * @param {String} text The cookie hash string to parse (format: n1=v1&n2=v2)."," * @return {Object} An object containing entries for each cookie value."," * @method _parseCookieHash"," * @private"," * @static"," */"," _parseCookieHash : function (text) {"," "," var hashParts = text.split(\"&\"),"," hashPart = NULL,"," hash = {};"," "," if (text.length){"," for (var i=0, len=hashParts.length; i < len; i++){"," hashPart = hashParts[i].split(\"=\");"," hash[decode(hashPart[0])] = decode(hashPart[1]);"," }"," }"," "," return hash; "," },"," "," /**"," * Parses a cookie string into an object representing all accessible cookies."," * @param {String} text The cookie string to parse."," * @param {Boolean} shouldDecode (Optional) Indicates if the cookie values should be decoded or not. Default is true."," * @return {Object} An object containing entries for each accessible cookie."," * @method _parseCookieString"," * @private"," * @static"," */"," _parseCookieString : function (text /*:String*/, shouldDecode /*:Boolean*/) /*:Object*/ {"," "," var cookies /*:Object*/ = {}; "," "," if (isString(text) && text.length > 0) {"," "," var decodeValue = (shouldDecode === false ? function(s){return s;} : decode), "," cookieParts = text.split(/;\\s/g),"," cookieName = NULL,"," cookieValue = NULL,"," cookieNameValue = NULL;"," "," for (var i=0, len=cookieParts.length; i < len; i++){"," "," //check for normally-formatted cookie (name-value)"," cookieNameValue = cookieParts[i].match(/([^=]+)=/i);"," if (cookieNameValue instanceof Array){"," try {"," cookieName = decode(cookieNameValue[1]);"," cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));"," } catch (ex){"," //intentionally ignore the cookie - the encoding is wrong"," }"," } else {"," //means the cookie does not have an \"=\", so treat it as a boolean flag"," cookieName = decode(cookieParts[i]);"," cookieValue = \"\";"," }"," cookies[cookieName] = cookieValue;"," }",""," }"," "," return cookies;"," }, "," "," /**"," * Sets the document object that the cookie utility uses for setting"," * cookies. This method is necessary to ensure that the cookie utility"," * unit tests can pass even when run on a domain instead of locally."," * This method should not be used otherwise; you should use "," * <code>Y.config.doc</code> to change the document that the cookie"," * utility uses for everyday purposes."," * @param {Object} newDoc The object to use as the document."," * @return {void}"," * @method _setDoc"," * @private"," */ "," _setDoc: function(newDoc){"," doc = newDoc;"," },"," "," //-------------------------------------------------------------------------"," // Public Methods"," //-------------------------------------------------------------------------"," "," /**"," * Determines if the cookie with the given name exists. This is useful for"," * Boolean cookies (those that do not follow the name=value convention)."," * @param {String} name The name of the cookie to check."," * @return {Boolean} True if the cookie exists, false if not."," * @method exists"," * @static"," */"," exists: function(name) {"," "," validateCookieName(name); //throws error"," "," var cookies = this._parseCookieString(doc.cookie, true);"," "," return cookies.hasOwnProperty(name);"," }, "," "," /**"," * Returns the cookie value for the given name."," * @param {String} name The name of the cookie to retrieve."," * @param {Function|Object} options (Optional) An object containing one or more"," * cookie options: raw (true/false) and converter (a function)."," * The converter function is run on the value before returning it. The"," * function is not used if the cookie doesn't exist. The function can be"," * passed instead of the options object for backwards compatibility. When"," * raw is set to true, the cookie value is not URI decoded."," * @return {Variant} If no converter is specified, returns a string or null if"," * the cookie doesn't exist. If the converter is specified, returns the value"," * returned from the converter or null if the cookie doesn't exist."," * @method get"," * @static"," */"," get : function (name, options) {"," "," validateCookieName(name); //throws error "," "," var cookies,"," cookie,"," converter;"," "," //if options is a function, then it's the converter"," if (isFunction(options)) {"," converter = options;"," options = {};"," } else if (isObject(options)) {"," converter = options.converter;"," } else {"," options = {};"," }"," "," cookies = this._parseCookieString(doc.cookie, !options.raw);"," cookie = cookies[name];"," "," //should return null, not undefined if the cookie doesn't exist"," if (isUndefined(cookie)) {"," return NULL;"," }"," "," if (!isFunction(converter)){"," return cookie;"," } else {"," return converter(cookie);"," }"," },"," "," /**"," * Returns the value of a subcookie."," * @param {String} name The name of the cookie to retrieve."," * @param {String} subName The name of the subcookie to retrieve."," * @param {Function} converter (Optional) A function to run on the value before returning"," * it. The function is not used if the cookie doesn't exist."," * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie"," * doesn't exist, null if also returned. If no converter is specified and the"," * subcookie exists, a string is returned. If a converter is specified and the"," * subcookie exists, the value returned from the converter is returned."," * @method getSub"," * @static"," */"," getSub : function (name /*:String*/, subName /*:String*/, converter /*:Function*/) /*:Variant*/ {"," "," var hash /*:Variant*/ = this.getSubs(name); "," "," if (hash !== NULL) {"," "," validateSubcookieName(subName); //throws error"," "," if (isUndefined(hash[subName])){"," return NULL;"," } "," "," if (!isFunction(converter)){"," return hash[subName];"," } else {"," return converter(hash[subName]);"," }"," } else {"," return NULL;"," }"," "," },"," "," /**"," * Returns an object containing name-value pairs stored in the cookie with the given name."," * @param {String} name The name of the cookie to retrieve."," * @return {Object} An object of name-value pairs if the cookie with the given name"," * exists, null if it does not."," * @method getSubs"," * @static"," */"," getSubs : function (name) {"," "," validateCookieName(name); //throws error"," "," var cookies = this._parseCookieString(doc.cookie, false);"," if (isString(cookies[name])){"," return this._parseCookieHash(cookies[name]);"," }"," return NULL;"," },"," "," /**"," * Removes a cookie from the machine by setting its expiration date to"," * sometime in the past."," * @param {String} name The name of the cookie to remove."," * @param {Object} options (Optional) An object containing one or more"," * cookie options: path (a string), domain (a string), "," * and secure (true/false). The expires option will be overwritten"," * by the method."," * @return {String} The created cookie string."," * @method remove"," * @static"," */"," remove : function (name, options) {"," "," validateCookieName(name); //throws error"," "," //set options"," options = Y.merge(options || {}, {","cookie-coverage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 672 lines
28}; 29_yuitest_coverage["/build/cookie/cookie.js"].code=["YUI.add('cookie', function(Y) {","","/**"," * Utilities for cookie management"," * @module cookie"," */",""," //shortcuts"," var L = Y.Lang,"," O = Y.Object,"," NULL = null,"," "," //shortcuts to functions"," isString = L.isString,"," isObject = L.isObject,"," isUndefined = L.isUndefined,"," isFunction = L.isFunction,"," encode = encodeURIComponent,"," decode = decodeURIComponent,"," "," //shortcut to document"," doc = Y.config.doc;"," "," /*"," * Throws an error message."," */"," function error(message){"," throw new TypeError(message);"," } "," "," /*"," * Checks the validity of a cookie name."," */"," function validateCookieName(name){"," if (!isString(name) || name === \"\"){"," error(\"Cookie name must be a non-empty string.\");"," } "," }"," "," /*"," * Checks the validity of a subcookie name."," */ "," function validateSubcookieName(subName){"," if (!isString(subName) || subName === \"\"){"," error(\"Subcookie name must be a non-empty string.\");"," } "," }"," "," /**"," * Cookie utility."," * @class Cookie"," * @static"," */"," Y.Cookie = {"," "," //-------------------------------------------------------------------------"," // Private Methods"," //-------------------------------------------------------------------------"," "," /**"," * Creates a cookie string that can be assigned into document.cookie."," * @param {String} name The name of the cookie."," * @param {String} value The value of the cookie."," * @param {Boolean} encodeValue True to encode the value, false to leave as-is."," * @param {Object} options (Optional) Options for the cookie."," * @return {String} The formatted cookie string."," * @method _createCookieString"," * @private"," * @static"," */"," _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {"," "," options = options || {};"," "," var text /*:String*/ = encode(name) + \"=\" + (encodeValue ? encode(value) : value),"," expires = options.expires,"," path = options.path,"," domain = options.domain;"," "," "," if (isObject(options)){"," //expiration date"," if (expires instanceof Date){"," text += \"; expires=\" + expires.toUTCString();"," }"," "," //path"," if (isString(path) && path !== \"\"){"," text += \"; path=\" + path;"," }"," "," //domain"," if (isString(domain) && domain !== \"\"){"," text += \"; domain=\" + domain;"," }"," "," //secure"," if (options.secure === true){"," text += \"; secure\";"," }"," }"," "," return text;"," },"," "," /**"," * Formats a cookie value for an object containing multiple values."," * @param {Object} hash An object of key-value pairs to create a string for."," * @return {String} A string suitable for use as a cookie value."," * @method _createCookieHashString"," * @private"," * @static"," */"," _createCookieHashString : function (hash /*:Object*/) /*:String*/ {"," if (!isObject(hash)){"," error(\"Cookie._createCookieHashString(): Argument must be an object.\");"," }"," "," var text /*:Array*/ = [];",""," O.each(hash, function(value, key){"," if (!isFunction(value) && !isUndefined(value)){"," text.push(encode(key) + \"=\" + encode(String(value)));"," } "," });"," "," return text.join(\"&\");"," },"," "," /**"," * Parses a cookie hash string into an object."," * @param {String} text The cookie hash string to parse (format: n1=v1&n2=v2)."," * @return {Object} An object containing entries for each cookie value."," * @method _parseCookieHash"," * @private"," * @static"," */"," _parseCookieHash : function (text) {"," "," var hashParts = text.split(\"&\"),"," hashPart = NULL,"," hash = {};"," "," if (text.length){"," for (var i=0, len=hashParts.length; i < len; i++){"," hashPart = hashParts[i].split(\"=\");"," hash[decode(hashPart[0])] = decode(hashPart[1]);"," }"," }"," "," return hash; "," },"," "," /**"," * Parses a cookie string into an object representing all accessible cookies."," * @param {String} text The cookie string to parse."," * @param {Boolean} shouldDecode (Optional) Indicates if the cookie values should be decoded or not. Default is true."," * @return {Object} An object containing entries for each accessible cookie."," * @method _parseCookieString"," * @private"," * @static"," */"," _parseCookieString : function (text /*:String*/, shouldDecode /*:Boolean*/) /*:Object*/ {"," "," var cookies /*:Object*/ = {}; "," "," if (isString(text) && text.length > 0) {"," "," var decodeValue = (shouldDecode === false ? function(s){return s;} : decode), "," cookieParts = text.split(/;\\s/g),"," cookieName = NULL,"," cookieValue = NULL,"," cookieNameValue = NULL;"," "," for (var i=0, len=cookieParts.length; i < len; i++){"," "," //check for normally-formatted cookie (name-value)"," cookieNameValue = cookieParts[i].match(/([^=]+)=/i);"," if (cookieNameValue instanceof Array){"," try {"," cookieName = decode(cookieNameValue[1]);"," cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));"," } catch (ex){"," //intentionally ignore the cookie - the encoding is wrong"," }"," } else {"," //means the cookie does not have an \"=\", so treat it as a boolean flag"," cookieName = decode(cookieParts[i]);"," cookieValue = \"\";"," }"," cookies[cookieName] = cookieValue;"," }",""," }"," "," return cookies;"," }, "," "," /**"," * Sets the document object that the cookie utility uses for setting"," * cookies. This method is necessary to ensure that the cookie utility"," * unit tests can pass even when run on a domain instead of locally."," * This method should not be used otherwise; you should use "," * <code>Y.config.doc</code> to change the document that the cookie"," * utility uses for everyday purposes."," * @param {Object} newDoc The object to use as the document."," * @return {void}"," * @method _setDoc"," * @private"," */ "," _setDoc: function(newDoc){"," doc = newDoc;"," },"," "," //-------------------------------------------------------------------------"," // Public Methods"," //-------------------------------------------------------------------------"," "," /**"," * Determines if the cookie with the given name exists. This is useful for"," * Boolean cookies (those that do not follow the name=value convention)."," * @param {String} name The name of the cookie to check."," * @return {Boolean} True if the cookie exists, false if not."," * @method exists"," * @static"," */"," exists: function(name) {"," "," validateCookieName(name); //throws error"," "," var cookies = this._parseCookieString(doc.cookie, true);"," "," return cookies.hasOwnProperty(name);"," }, "," "," /**"," * Returns the cookie value for the given name."," * @param {String} name The name of the cookie to retrieve."," * @param {Function|Object} options (Optional) An object containing one or more"," * cookie options: raw (true/false) and converter (a function)."," * The converter function is run on the value before returning it. The"," * function is not used if the cookie doesn't exist. The function can be"," * passed instead of the options object for backwards compatibility. When"," * raw is set to true, the cookie value is not URI decoded."," * @return {Variant} If no converter is specified, returns a string or null if"," * the cookie doesn't exist. If the converter is specified, returns the value"," * returned from the converter or null if the cookie doesn't exist."," * @method get"," * @static"," */"," get : function (name, options) {"," "," validateCookieName(name); //throws error "," "," var cookies,"," cookie,"," converter;"," "," //if options is a function, then it's the converter"," if (isFunction(options)) {"," converter = options;"," options = {};"," } else if (isObject(options)) {"," converter = options.converter;"," } else {"," options = {};"," }"," "," cookies = this._parseCookieString(doc.cookie, !options.raw);"," cookie = cookies[name];"," "," //should return null, not undefined if the cookie doesn't exist"," if (isUndefined(cookie)) {"," return NULL;"," }"," "," if (!isFunction(converter)){"," return cookie;"," } else {"," return converter(cookie);"," }"," },"," "," /**"," * Returns the value of a subcookie."," * @param {String} name The name of the cookie to retrieve."," * @param {String} subName The name of the subcookie to retrieve."," * @param {Function} converter (Optional) A function to run on the value before returning"," * it. The function is not used if the cookie doesn't exist."," * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie"," * doesn't exist, null if also returned. If no converter is specified and the"," * subcookie exists, a string is returned. If a converter is specified and the"," * subcookie exists, the value returned from the converter is returned."," * @method getSub"," * @static"," */"," getSub : function (name /*:String*/, subName /*:String*/, converter /*:Function*/) /*:Variant*/ {"," "," var hash /*:Variant*/ = this.getSubs(name); "," "," if (hash !== NULL) {"," "," validateSubcookieName(subName); //throws error"," "," if (isUndefined(hash[subName])){"," return NULL;"," } "," "," if (!isFunction(converter)){"," return hash[subName];"," } else {"," return converter(hash[subName]);"," }"," } else {"," return NULL;"," }"," "," },"," "," /**"," * Returns an object containing name-value pairs stored in the cookie with the given name."," * @param {String} name The name of the cookie to retrieve."," * @return {Object} An object of name-value pairs if the cookie with the given name"," * exists, null if it does not."," * @method getSubs"," * @static"," */"," getSubs : function (name) {"," "," validateCookieName(name); //throws error"," "," var cookies = this._parseCookieString(doc.cookie, false);"," if (isString(cookies[name])){"," return this._parseCookieHash(cookies[name]);"," }"," return NULL;"," },"," "," /**"," * Removes a cookie from the machine by setting its expiration date to"," * sometime in the past."," * @param {String} name The name of the cookie to remove."," * @param {Object} options (Optional) An object containing one or more"," * cookie options: path (a string), domain (a string), "," * and secure (true/false). The expires option will be overwritten"," * by the method."," * @return {String} The created cookie string."," * @method remove"," * @static"," */"," remove : function (name, options) {"," "," validateCookieName(name); //throws error"," "," //set options"," options = Y.merge(options || {}, {","history-hash-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 483 lines
188 /** 189 * Wrapper around <code>encodeURIComponent()</code> that converts spaces to 190 * + chars. 197 encode: function (string) { 198 return encodeURIComponent(string).replace(/%20/g, '+'); 199 },history-deprecated-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 675 lines
30 31 encode = encodeURIComponent, 32 decode = decodeURIComponent,cookie-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 425 lines
18 isFunction = L.isFunction, 19 encode = encodeURIComponent, 20 decode = decodeURIComponent;uploader-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1072 lines
101 { 102 variablePairs[variablePairs.length] = YAHOO.lang.escapeHTML(key || '') +"="+ YAHOO.lang.escapeHTML(encodeURIComponent(variables[key] || '')); 103 }storage-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1245 lines
250 var sType = (Lang.isNull(o) || Lang.isUndefined(o)) ? ('' + o) : typeof o; 251 return 'type=' + sType + '&value=' + encodeURIComponent('' + o); 252 }, 465 getByteSize: function(s) { 466 return encodeURIComponent('' + s).length; 467 },cookie.js https://gitlab.com/Mirros/cdnjs | 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 }cookie-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 429 lines
40 41 var text /*:String*/ = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value); 42 89 if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){ 90 text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key]))); 91 }connection-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1406 lines
239 if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){ 240 YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value); 241 }webcomponents-lite.js https://gitlab.com/Mirros/cdnjs | JavaScript | 1562 lines
98 } 99 return encodeURIComponent(c); 100 } 105 } 106 return encodeURIComponent(c); 107 }vue-resource.js https://gitlab.com/Mirros/cdnjs | JavaScript | 748 lines
211 212 return encodeURIComponent(value). 213 replace(/%40/gi, '@').superagent.js https://gitlab.com/Mirros/cdnjs | JavaScript | 933 lines
248 for (var key in obj) { 249 pairs.push(encodeURIComponent(key) 250 + '=' + encodeURIComponent(obj[key]));