Skip to content

Instantly share code, notes, and snippets.

@foxnewsnetwork
Created May 19, 2017 23:18
Show Gist options
  • Save foxnewsnetwork/f2b45ee7a29bb5e9d82e3aea71839f36 to your computer and use it in GitHub Desktop.
Save foxnewsnetwork/f2b45ee7a29bb5e9d82e3aea71839f36 to your computer and use it in GitHub Desktop.
// source http://jsbin.com
<!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;
}
</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;
}</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>
/* Put your CSS here */
html, body {
margin: 20px;
}
.xxx {
height: 1080px;
width: 1920px;
overflow: scroll;
}
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