summaryrefslogtreecommitdiff
path: root/doc/site.js
blob: e805969f0839e101f4adcb1f87ce0f63ad628bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
switch(window.location.protocol) {
    case 'http:':
    case 'https:':
        // remote file
        document.getElementById("searchSite").style.display = "block";
        break;
    case 'file:':
        // local file
        document.getElementById("searchSite").style.display = "none";
        break;
    default:

    break;
}