14 lines
850 B
HTML
14 lines
850 B
HTML
<div id="cb-channel-switch" style="position:fixed;bottom:0.75rem;right:0.75rem;z-index:1000;padding:.3rem .6rem;font:0.8rem/1.3 sans-serif;border:1px solid var(--border-color,#ccc);border-radius:6px;background:var(--main-background-color,#fff);color:var(--main-color,#000);box-shadow:0 1px 4px rgba(0,0,0,.2)">
|
|
<a id="ch-release" href="#" style="margin:0 .25rem">release</a>|
|
|
<a id="ch-nightly" href="#" style="margin:0 .25rem">nightly</a>
|
|
<script>
|
|
(function () {
|
|
var m = location.pathname.match(/^(.*\/)(release|nightly)\//);
|
|
var base = m ? m[1] : location.pathname.replace(/[^\/]*$/, "");
|
|
document.getElementById("ch-release").href = base + "release/";
|
|
document.getElementById("ch-nightly").href = base + "nightly/";
|
|
if (m) { document.getElementById("ch-" + m[2]).style.fontWeight = "bold"; }
|
|
})();
|
|
</script>
|
|
</div>
|