mirror of
https://github.com/NohamR/Manuel.git
synced 2025-05-24 14:22:29 +00:00
fix img
This commit is contained in:
parent
c6f11aa0a2
commit
2a69662e18
27
index.html
27
index.html
@ -13,9 +13,15 @@
|
|||||||
|
|
||||||
<div id="firstbutton">
|
<div id="firstbutton">
|
||||||
<div class="changeTheme">
|
<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>
|
||||||
|
|
||||||
|
<!-- <div class="changeTheme">
|
||||||
|
<img src="assets/img/blackandwhite.png" alt="blackandwhite"
|
||||||
|
style="max-width: 50px; max-height: 50px; margin: 10px;" onclick="capture()">
|
||||||
|
</div> -->
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="code">Entrez le code :</label>
|
<label for="code">Entrez le code :</label>
|
||||||
<input type="text" id="code" name="code" value="9782017102106">
|
<input type="text" id="code" name="code" value="9782017102106">
|
||||||
@ -320,6 +326,25 @@ sesamth
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user