mirror of
https://github.com/NohamR/Manuel.git
synced 2025-05-24 00:49:10 +00:00
fix img
This commit is contained in:
parent
c6f11aa0a2
commit
2a69662e18
31
index.html
31
index.html
@ -13,9 +13,15 @@
|
||||
|
||||
<div id="firstbutton">
|
||||
<div class="changeTheme">
|
||||
<img src="assets/img/blackandwhite.png" alt="blackandwhite" style="max-width: 50px; max-height: 50px; margin: 10px;">
|
||||
<img src="assets/img/blackandwhite.png" alt="blackandwhite"
|
||||
style="max-width: 50px; max-height: 50px; margin: 10px;">
|
||||
</div>
|
||||
|
||||
<!-- <div class="changeTheme">
|
||||
<img src="assets/img/blackandwhite.png" alt="blackandwhite"
|
||||
style="max-width: 50px; max-height: 50px; margin: 10px;" onclick="capture()">
|
||||
</div> -->
|
||||
|
||||
<div>
|
||||
<label for="code">Entrez le code :</label>
|
||||
<input type="text" id="code" name="code" value="9782017102106">
|
||||
@ -36,7 +42,7 @@
|
||||
<option value="hatier">Hatier</option>
|
||||
<option value="belin">Belin</option>
|
||||
<option value="LLS">LLS</option>
|
||||
sesamth
|
||||
sesamth
|
||||
</select>
|
||||
<p id="editionesthcoisieest"></p>
|
||||
</div>
|
||||
@ -242,7 +248,7 @@ sesamth
|
||||
var editionchoisie = document.getElementsByName("edition")[0].value;
|
||||
console.log('nbpage', nbpage);
|
||||
nbtochange = nbpage - page1;
|
||||
console.log('nbtochange' ,nbtochange);
|
||||
console.log('nbtochange', nbtochange);
|
||||
changerPage(nbtochange, editionchoisie);
|
||||
}
|
||||
</script>
|
||||
@ -320,6 +326,25 @@ sesamth
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<!-- <script>
|
||||
function capture() {
|
||||
const canvas = document.createElement("canvas");
|
||||
const context = canvas.getContext("2d");
|
||||
const video = document.createElement("video");
|
||||
|
||||
try {
|
||||
const captureStream = navigator.mediaDevices.getDisplayMedia();
|
||||
video.srcObject = captureStream;
|
||||
context.drawImage(video, 0, 0, window.width, window.height);
|
||||
const frame = canvas.toDataURL("image/png");
|
||||
captureStream.getTracks().forEach(track => track.stop());
|
||||
window.location.href = frame;
|
||||
} catch (err) {
|
||||
console.error("Error: " + err);
|
||||
}
|
||||
};
|
||||
|
||||
capture();</script> -->
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user