MCPcopy Create free account
hub / github.com/KDAB/codebrowser / readCookie

Function readCookie

data/codebrowser.js:53–62  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

51 document.cookie = name+"="+value+expires+"; path=/";
52}
53function readCookie(name) {
54 var nameEQ = name + "=";
55 var ca = document.cookie.split(';');
56 for(var i=0;i < ca.length;i++) {
57 var c = ca[i];
58 while (c.charAt(0)==' ') c = c.substring(1,c.length);
59 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
60 }
61 return null;
62}
63
64var style_match = location.search.match(/.*[?&]style=([^#&]+).*/);
65if (style_match) {

Callers 2

codebrowser.jsFile · 0.85
refreshHistoryBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected