tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

tab1.html (734B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset="UTF-8" />
      5    <meta name="viewport" content="width=device-width" />
      6    <title>tab1</title>
      7  </head>
      8  <body>
      9    <h1 id="content">Tab 1</h1>
     10 
     11    <a href="tab2.html" id="tab2">Tab 2</a>
     12 
     13    <a href="tab3.html" id="tab3">Tab 3</a>
     14 
     15    <!-- here we display if the page is in mobile or desktop view mode -->
     16    <p id="viewMode"></p>
     17  </body>
     18  <script>
     19    window.mobileCheck = function () {
     20      let check = false;
     21      (function (a) {
     22        if (a.includes("Android")) check = true;
     23      })(navigator.userAgent);
     24      return check;
     25    };
     26    document.getElementById("viewMode").textContent = mobileCheck()
     27      ? "mobile-site"
     28      : "desktop-site";
     29  </script>
     30 </html>