Skip to content

Commit

Permalink
Fix for mobiles with "viewport" <meta> tag and a <html> lang tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed Dec 5, 2021
1 parent a1249b5 commit 80c79cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions demo/my-map.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!doctype html> <title> my-map Web Component </title>
<!doctype html><html lang="en"><title> my-map Web Component </title>

<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width,initial-scale=1">

<h1> my-map Web Component </h1>

Expand All @@ -15,14 +16,13 @@ <h1> my-map Web Component </h1>


<script type="module" src="../index.js"></script>

<!-- <script type="module" src="../src/components/my-map.js"></script> -->



<pre>


NDF, 27-Nov-2021.

</pre>
</html>
5 changes: 4 additions & 1 deletion demo/my-page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!doctype html> <title> my-page </title>
<!doctype html><html lang="en"><title> my-page </title>

<meta name="robots" content="noindex">

<style>
:root {
Expand Down Expand Up @@ -66,3 +68,4 @@ <h1> Demo </h1>

NDF, 27-Nov-2021.
</pre>
</html>
5 changes: 4 additions & 1 deletion demo/my-star-rating.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!doctype html> <title> My radio star rating </title>
<!doctype html><html lang="en"><title> My radio star rating </title>

<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<style>
:root {
Expand Down Expand Up @@ -51,3 +52,5 @@ <h1> My radio star rating </h1>


<script type="module" src="../index.js"></script>

</html>
6 changes: 5 additions & 1 deletion demo/translate.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<!doctype html><html lang="en"><meta charset="utf-8"> <title> Translation test </title>
<!doctype html><html lang="en"><title> Translation test </title>

<meta charset="utf-8">
<meta name="robots" content="noindex">
<meta name="viewport" content="width=device-width,initial-scale=1">

<style>
body { margin: 1rem auto; max-width: 36rem; padding: 0 .3rem; }
Expand Down

0 comments on commit 80c79cd

Please sign in to comment.