Last active
July 4, 2017 17:53
-
-
Save Bajena/24e901e130bbd9fd6342bb7220f1a9ec to your computer and use it in GitHub Desktop.
Materiał do 4. posta na bloga - breakpoints
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Breakpoints demo</title> | |
<script src="http://code.jquery.com/jquery-latest.js" | |
type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="numbers" /> | |
<script> | |
(function() { | |
function getRandomInt(min, max) { | |
min = Math.ceil(min); | |
max = Math.floor(max); | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
for(var i = 0;i < 100;i++) { | |
var x = getRandomInt(0, 100); | |
$('#numbers').append(x).append("<br/>"); | |
if (x === 0) { | |
throw "ZERO!"; | |
} | |
} | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment