diff options
| author | s1nical <[email protected]> | 2019-08-07 22:11:38 -0700 |
|---|---|---|
| committer | s1nical <[email protected]> | 2019-08-07 22:11:38 -0700 |
| commit | 9244badf2a6dfefa88dedf1624565b496b413077 (patch) | |
| tree | be0e6e53813fd3e9afac3fd8f648722fe86a500f /mobile | |
| parent | Update index.html (diff) | |
| download | s1n.pw-admin-9244badf2a6dfefa88dedf1624565b496b413077.tar.xz s1n.pw-admin-9244badf2a6dfefa88dedf1624565b496b413077.zip | |
try fix rdm
Diffstat (limited to 'mobile')
| -rw-r--r-- | mobile/index.html | 3 | ||||
| -rw-r--r-- | mobile/js/app.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mobile/index.html b/mobile/index.html index 39902ed..f75b0c0 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -60,9 +60,6 @@ <body> <script src="js/app.js"></script> - <!-- Request Desktop Site --> - <button onclick="requestDesktopSite()">Request Desktop Site</button> - <!-- Core Site Function, Site Primer/ Base --> <main> <div class="links"> diff --git a/mobile/js/app.js b/mobile/js/app.js index 55e4952..98b3051 100644 --- a/mobile/js/app.js +++ b/mobile/js/app.js @@ -10,7 +10,11 @@ if( screen.width > 480 ) { // ALLOWS MOBILR TO UTILIZE "Request Desktop Site" FEATURE function requestDesktopSite() { - document.getElementsByTagName('meta')['viewport'].content='width= 1440px;'; + if(document.getElementsByTagName('meta')['viewport'].content=='width= 1440px;'){ + document.getElementsByTagName('meta')['viewport'].content='width= 400px;'; + }else{ + document.getElementsByTagName('meta')['viewport'].content='width= 1440px;'; + } } // BACKGROUND SPARKLES |