MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / getCookie

Function getCookie

public/src/js/script.js:361–370  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

359}
360
361function getCookie(name) {
362 var nameEQ = name + "=";
363 var ca = document.cookie.split(";");
364 for (var i = 0; i < ca.length; i++) {
365 var c = ca[i];
366 while (c.charAt(0) == " ") c = c.substring(1, c.length);
367 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
368 }
369 return null;
370}
371//check if the language is set to chinese and determine traditional or simplified chinese by getting cookie
372if (getCookie("language") != null) {
373 linkLanguage = getCookie("language");

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected