Created
May 19, 2017 23:19
-
-
Save foxnewsnetwork/4bd7dfbcdb32457663ec792c817185b0 to your computer and use it in GitHub Desktop.
// source http://jsbin.com
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"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember-template-compiler.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember.debug.js"></script> | |
<style id="jsbin-css"> | |
/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
.xxx { | |
height: 1080px; | |
width: 1920px; | |
overflow: scroll; | |
} | |
li { | |
display: inline-block; | |
} | |
</style> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<h2>Welcome to Ember.js</h2> | |
<div class='xxx'> | |
{{outlet}} | |
</div> | |
</script> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<ul> | |
{{#each model as |item|}} | |
<li><img src={{item}}></li> | |
{{/each}} | |
</ul> | |
</script> | |
<script id="jsbin-javascript"> | |
App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
function pee(s) { | |
return 'https://placeholdit.imgix.net/~text?txtsize=33&txt=' + s + '&w=200&h=200'; | |
} | |
var colors = [ | |
'red', 'green', 'blue', 'yellow', 'black', 'white', 'cyan', 'asian' | |
]; | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
let ccs = []; | |
for (var i = 0; i < 666; i++) { | |
ccs.push(pee(colors[i % colors.length])) | |
} | |
return ccs; | |
} | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ember Starter Kit</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"><\/script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember-template-compiler.js"><\/script> | |
<script src="http://builds.emberjs.com/tags/v1.11.3/ember.debug.js"><\/script> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<h2>Welcome to Ember.js</h2> | |
<div class='xxx'> | |
{{outlet}} | |
</div> | |
<\/script> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<ul> | |
{{#each model as |item|}} | |
<li><img src={{item}}></li> | |
{{/each}} | |
</ul> | |
<\/script> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-css" type="text/css">/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
.xxx { | |
height: 1080px; | |
width: 1920px; | |
overflow: scroll; | |
} | |
li { | |
display: inline-block; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
function pee(s) { | |
return 'https://placeholdit.imgix.net/~text?txtsize=33&txt=' + s + '&w=200&h=200'; | |
} | |
var colors = [ | |
'red', 'green', 'blue', 'yellow', 'black', 'white', 'cyan', 'asian' | |
]; | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
let ccs = []; | |
for (var i = 0; i < 666; i++) { | |
ccs.push(pee(colors[i % colors.length])) | |
} | |
return ccs; | |
} | |
}); | |
</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
/* Put your CSS here */ | |
html, body { | |
margin: 20px; | |
} | |
.xxx { | |
height: 1080px; | |
width: 1920px; | |
overflow: scroll; | |
} | |
li { | |
display: inline-block; | |
} |
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
App = Ember.Application.create(); | |
App.Router.map(function() { | |
// put your routes here | |
}); | |
function pee(s) { | |
return 'https://placeholdit.imgix.net/~text?txtsize=33&txt=' + s + '&w=200&h=200'; | |
} | |
var colors = [ | |
'red', 'green', 'blue', 'yellow', 'black', 'white', 'cyan', 'asian' | |
]; | |
App.IndexRoute = Ember.Route.extend({ | |
model: function() { | |
let ccs = []; | |
for (var i = 0; i < 666; i++) { | |
ccs.push(pee(colors[i % colors.length])) | |
} | |
return ccs; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment