This commit is contained in:
Boof 2023-05-30 12:18:04 +02:00 committed by GitHub
parent 7608abb99a
commit b30ab51bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,9 @@
<div>
<input type="file" id="image-input" accept="image/*">
<img id="preview"></img>
<img id="tomotowErSvart"></img>
<button onclick="const img = document.getElementById('preview');
const blackAndWhiteImg = convertToBlackAndWhite(img);
const blackAndWhiteImg = convertToBlackAndWhite(img); document.getElementById('tomotowErSvart').src =blackAndWhiteImg;
">Black and white</button>
</div>
<script>