Skip to content

Instantly share code, notes, and snippets.

@Bajena
Last active July 4, 2017 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bajena/24e901e130bbd9fd6342bb7220f1a9ec to your computer and use it in GitHub Desktop.
Save Bajena/24e901e130bbd9fd6342bb7220f1a9ec to your computer and use it in GitHub Desktop.
Materiał do 4. posta na bloga - breakpoints
<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