diff --git a/Webservice/mobileHandler.js b/Webservice/mobileHandler.js new file mode 100644 index 0000000..da840d4 --- /dev/null +++ b/Webservice/mobileHandler.js @@ -0,0 +1,11 @@ +function isMobile() { + + var mobileDeviceIndicator = 0; + if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { + mobileDeviceIndicator = 1; + } + /* + var hasTouchscreen = 'ontouchstart' in window; + alert(hasTouchscreen ? 'has touchscreen' : 'doesn\'t have touchscreen');*/ +} + diff --git a/public/css/mobile.css b/public/css/mobile.css new file mode 100644 index 0000000..cdd1849 --- /dev/null +++ b/public/css/mobile.css @@ -0,0 +1,35 @@ +html { + width: 100%; + height: 100%; + font-family: Arial, sans-serif +} + +body { + width: 100%; + height: 100%; + padding: 0; + margin: 0; + overflow: hidden; +} + +main { + display: grid; + grid-template-rows: 80% 20%; + height: calc(100% - 3em - 10px); +} + +.material-icon { + font-family: Material Icons, sans-serif !important; + font-weight: 400; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + -webkit-font-feature-settings: "liga"; + -webkit-font-smoothing: antialiased; +} \ No newline at end of file