summaryrefslogtreecommitdiff
path: root/docs/pybullet_quickstart_guide/cs371-common.js
blob: c3472685e8f1589fa1aa6443ef38a7f254841a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

// Common code for styling all CS371 web pages

if (location.href.indexOf('?') == -1) {
    // Force a reload by making a bogus query.
    var i = ((location.href.indexOf('#') + 1) || (location.href.length + 1)) - 1;
    location = location.href.substring(0, i) + '?' + location.href.substring(i);
}

markdeepOptions = {tocStyle: 'short'};

document.write("<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100,100italic,300italic,400italic,700' rel='stylesheet' type='text/css'>" +
               "<link rel='stylesheet' type='text/css' href='cs371.css'>");

// Conceal list items that use a '+', except when viewed locally
if (/^file:\/{3}/i.test(window.location.href)) {
    document.write('<style>li.plus { color: #D88; }</style>');
} else {
    document.write('<style>li.plus { display: none; }</style>');
}

document.write('<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>');