Created
February 2, 2020 15:23
-
-
Save softauthor/0d5b9abe3b1a1d0b78d98b8e7f46e542 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nukobim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<img src="https://via.placeholder.com/150" /> | |
<img src="https://via.placeholder.com/250" id="signature" /> | |
<img src="https://via.placeholder.com/350" /> | |
<img src="https://via.placeholder.com/350" /> | |
<script id="jsbin-javascript"> | |
var images = document.getElementsByTagName('img'); | |
for (i = 0; i < images.length;i++ ) { | |
if(images[i].getAttribute("id") != "signature") | |
images[i].style.display = "none"; | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var images = document.getElementsByTagName('img'); | |
for (i = 0; i < images.length;i++ ) { | |
if(images[i].getAttribute("id") != "signature") | |
images[i].style.display = "none"; | |
}</script></body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var images = document.getElementsByTagName('img'); | |
for (i = 0; i < images.length;i++ ) { | |
if(images[i].getAttribute("id") != "signature") | |
images[i].style.display = "none"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment