diff options
author | hackademix <giorgio@maone.net> | 2019-01-21 22:48:28 +0100 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2019-01-28 12:09:36 +0100 |
commit | 31db0b4ea7a232dd22d96b2dd9a7dbddeaef841a (patch) | |
tree | 780e599413a57b12335261161b0a18116a20cf71 /html | |
parent | ff127defab45ac725ed1e89e9d95cb7d6b98d013 (diff) |
Mobile awareness in UI panels.
Diffstat (limited to 'html')
-rw-r--r-- | html/display_panel/content/display-panel.html | 1 | ||||
-rw-r--r-- | html/mobile.js | 1 | ||||
-rw-r--r-- | html/preferences_panel/preferences_panel.html | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/html/display_panel/content/display-panel.html b/html/display_panel/content/display-panel.html index 80f4cb9..0e4df97 100644 --- a/html/display_panel/content/display-panel.html +++ b/html/display_panel/content/display-panel.html @@ -28,6 +28,7 @@ * */ --> +<script src="/html/mobile.js"></script> </head> <body> diff --git a/html/mobile.js b/html/mobile.js new file mode 100644 index 0000000..67930ae --- /dev/null +++ b/html/mobile.js @@ -0,0 +1 @@ +window.isMobile = !("windows" in browser); diff --git a/html/preferences_panel/preferences_panel.html b/html/preferences_panel/preferences_panel.html index 70d3b86..3a0ad7a 100644 --- a/html/preferences_panel/preferences_panel.html +++ b/html/preferences_panel/preferences_panel.html @@ -29,6 +29,7 @@ LibreJS preferences </title> <link rel="stylesheet" type="text/css" href="./prefs.css"/> + <script src="/html/mobile.js"></script> <script type="text/javascript" src="/common/Storage.js"></script> <script type="text/javascript" src="pref.js"></script> </head> |