diff --git a/Y/Ada-S2/tps.html b/Y/Ada-S2/tps.html index faa96f9..abfd590 100644 --- a/Y/Ada-S2/tps.html +++ b/Y/Ada-S2/tps.html @@ -7,7 +7,6 @@ See http://ocsigen.org/ and http://caml.inria.fr/ for information --> TP Ada S2 - diff --git a/Y/Scripts/yfold.js b/Y/Scripts/yfold.js index f432aca..c762877 100644 --- a/Y/Scripts/yfold.js +++ b/Y/Scripts/yfold.js @@ -94,6 +94,12 @@ function toggleYfold(id) { window.onload = function() { console.log("DOM loaded.") + + var meta = document.createElement('meta') + meta.setAttribute('name', 'viewport') + meta.setAttribute('content', 'width=device-width, initial-scale=1.0') + document.querySelector('head').appendChild(meta) + var snippets = document.getElementsByTagName("code"); for (var snippet of snippets) { if ((snippet.classList.value.includes("page")) || (snippet.classList.value.includes("block"))) { diff --git a/Y/ystyle.css b/Y/ystyle.css index 25534eb..384388f 100644 --- a/Y/ystyle.css +++ b/Y/ystyle.css @@ -4,13 +4,6 @@ src: url('/Y/Poppins-Light.ttf') format('truetype'); } -/* VIEWPORT */ -@viewport { - width: device-width; - initial-scale: 1.0; - zoom: 1; -} - /* règles generéales */ * { margin: 0px;