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

Function switchStylestyle

data/codebrowser.js:30–38  ·  view source on GitHub ↗
(styleName)

Source from the content-addressed store, hash-verified

28var setStyle = "";
29document.write("<link rel='alternate stylesheet' title='Solarized' href='" + data_path + "/solarized.css' />");
30function switchStylestyle(styleName) {
31 setStyle = styleName;
32 $('link[rel*=style][title]').each(function(i) {
33 this.disabled = true;
34 if (this.getAttribute('title').toLowerCase() == styleName.toLowerCase()) {
35 this.disabled = false;
36 }
37 });
38}
39function switchStylestyleAndSetCookie(styleName)
40{
41 switchStylestyle(styleName);

Callers 2

codebrowser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected