Skip to content

Commit

Permalink
add utf8 header
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed Mar 19, 2020
1 parent 52333d0 commit 62c77da
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

<head>
<title>Whiteboard</title>

<!--- Set width for Mobile Devices -!-->


<meta charset="utf-8" />

<!--- JS References -!-->
<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
Expand All @@ -23,18 +20,20 @@
<link rel="stylesheet" href="./css/jquery-ui.min.css">
<link href="./css/main.css" rel="stylesheet">

<!--- Set width for Mobile Devices -!-->
<script>
//Set correct width height on mobile browsers
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" />');
} else {
$('head').append('<meta name="viewport" content="width=1400" />');
}
</script>
</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 -!-->
<div style="height: 100vh; height: calc(var(--vh, 1vh) * 100); width: 100%;" id="whiteboardContainer"></div>

Expand Down

0 comments on commit 62c77da

Please sign in to comment.