23 lines
634 B
HTML
23 lines
634 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>component-400</title>
|
|
|
|
<link href="/build.css" media="all" rel="stylesheet" type="text/css" />
|
|
<script src="/build.js"></script>
|
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="target"></div>
|
|
<script>
|
|
$.getJSON('/data.json', function(data) {
|
|
require('component-400/app').call(null, data, '#target', function(err, selected) {
|
|
if (err) throw err;
|
|
console.log(selected);
|
|
});
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |