add utf8 header

This commit is contained in:
raphael 2020-03-19 13:46:43 +01:00
parent 52333d0615
commit 62c77dac83
1 changed files with 5 additions and 6 deletions

View File

@ -3,10 +3,7 @@
<head> <head>
<title>Whiteboard</title> <title>Whiteboard</title>
<meta charset="utf-8" />
<!--- Set width for Mobile Devices -!-->
<!--- JS References -!--> <!--- JS References -!-->
<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
@ -23,10 +20,11 @@
<link rel="stylesheet" href="./css/jquery-ui.min.css"> <link rel="stylesheet" href="./css/jquery-ui.min.css">
<link href="./css/main.css" rel="stylesheet"> <link href="./css/main.css" rel="stylesheet">
<!--- Set width for Mobile Devices -!-->
<script> <script>
//Set correct width height on mobile browsers //Set correct width height on mobile browsers
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
if(isChrome) { if (isChrome) {
$('head').append('<meta name="viewport" content="width=device-width, initial-scale=0.52, maximum-scale=1" />'); $('head').append('<meta name="viewport" content="width=device-width, initial-scale=0.52, maximum-scale=1" />');
} else { } else {
$('head').append('<meta name="viewport" content="width=1400" />'); $('head').append('<meta name="viewport" content="width=1400" />');
@ -34,7 +32,8 @@
</script> </script>
</head> </head>
<body style="position: relative; margin: 0px; height: 100vh; height: calc(var(--vh, 1vh) * 100); width: 100%; overflow: hidden;"> <body
style="position: relative; margin: 0px; height: 100vh; height: calc(var(--vh, 1vh) * 100); width: 100%; overflow: hidden;">
<!---Whiteboard container -!--> <!---Whiteboard container -!-->
<div style="height: 100vh; height: calc(var(--vh, 1vh) * 100); width: 100%;" id="whiteboardContainer"></div> <div style="height: 100vh; height: calc(var(--vh, 1vh) * 100); width: 100%;" id="whiteboardContainer"></div>