Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kisahklasik committed Aug 9, 2024
1 parent bafc912 commit d953f12
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<span class="bg"></span>
<article>
<h1>FREE AND SIMPLE PFP GENERATOR</h1>
<input type="file" id="uploader" oninput="checkInput()" accept="image/*">
<input type="file" id="uploader" accept="image/*">
<p><canvas id="c">Your browser does not support the canvas element.</canvas></p
<p>
<button onclick="selectFile()">PILIH FILE</button>
<button id="save" onclick="onOFF()">DOWNLOAD</button>
<button id="save">DOWNLOAD</button>
<button id="shared">SHARE</button>
</p>
<h1>Tutorial:</h1>
Expand Down Expand Up @@ -114,30 +114,6 @@ <h1>Tutorial:</h1>
}
})
});

//function onOFF() {
//var x = document.getElementById("uploader");
//x.disabled = true;
//}

// empty file
//$('#save').bind("click",function() {
//var imgVal = $('#uploader').val();
//if(imgVal=='') {
//alert("Tidak ada file yang dipilih!");
//} else {
//console.log('file fill in');
//}
//});
</script>
<script>
function checkInput() {
var img = document.getElementById('uploader').value;
//var mask = document.getElementById('maskInp').value;
var dl = document.getElementById('save');
dl.disabled = img === '';
//save.disabled = mask === '';
}
</script>
</body>
</html>

0 comments on commit d953f12

Please sign in to comment.