Created
February 20, 2017 04:54
-
-
Save justyn-clark/0ed352dfe0921bb48f09ba1f24594dad to your computer and use it in GitHub Desktop.
JS Bin [add your bin description] // source http://jsbin.com/sicaku
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 name="description" content="[add your bin description]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.items { | |
color: blue; | |
font-size: 2rem; | |
text-transform: uppercase; | |
font-weight: bold; | |
} | |
.image-container { | |
width: 100%; | |
max-width: 900px; | |
margin: auto; | |
} | |
.image-container .images { | |
backbground-color: orange; | |
padding: .3rem; | |
} | |
</style> | |
</head> | |
<body> | |
<p id='para'>hello</p> | |
<div class="image-container"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
<img class="images" src="http://placehold.it/200x200"> | |
</div> | |
<script id="jsbin-javascript"> | |
const arr = [1,2,3,4] | |
arr.reverse().push('name'); | |
console.log(arr); | |
const divs = document.createElement('div'); | |
divs.setAttribute('class','items'); | |
const text = document.createTextNode('baby bubuh'); | |
const para = document.getElementById('para'); | |
divs.appendChild(text); | |
document.body.insertBefore(divs, para); | |
const images = document.querySelectorAll('.images'); | |
var i; | |
for (var i = 0; i < images.length; i++) { | |
console.log(images[i].style.padding = ".5rem"); | |
} | |
</script> | |
<script id="jsbin-source-css" type="text/css">.items { | |
color: blue; | |
font-size: 2rem; | |
text-transform: uppercase; | |
font-weight: bold; | |
} | |
.image-container { | |
width: 100%; | |
max-width: 900px; | |
margin: auto; | |
.images { | |
backbground-color: orange; | |
padding: .3rem; | |
} | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">const arr = [1,2,3,4] | |
arr.reverse().push('name'); | |
console.log(arr); | |
const divs = document.createElement('div'); | |
divs.setAttribute('class','items'); | |
const text = document.createTextNode('baby bubuh'); | |
const para = document.getElementById('para'); | |
divs.appendChild(text); | |
document.body.insertBefore(divs, para); | |
const images = document.querySelectorAll('.images'); | |
var i; | |
for (var i = 0; i < images.length; i++) { | |
console.log(images[i].style.padding = ".5rem"); | |
} | |
</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
.items { | |
color: blue; | |
font-size: 2rem; | |
text-transform: uppercase; | |
font-weight: bold; | |
} | |
.image-container { | |
width: 100%; | |
max-width: 900px; | |
margin: auto; | |
} | |
.image-container .images { | |
backbground-color: orange; | |
padding: .3rem; | |
} |
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
const arr = [1,2,3,4] | |
arr.reverse().push('name'); | |
console.log(arr); | |
const divs = document.createElement('div'); | |
divs.setAttribute('class','items'); | |
const text = document.createTextNode('baby bubuh'); | |
const para = document.getElementById('para'); | |
divs.appendChild(text); | |
document.body.insertBefore(divs, para); | |
const images = document.querySelectorAll('.images'); | |
var i; | |
for (var i = 0; i < images.length; i++) { | |
console.log(images[i].style.padding = ".5rem"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment