-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsamples_test.html
More file actions
45 lines (35 loc) · 1.29 KB
/
Copy pathsamples_test.html
File metadata and controls
45 lines (35 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
<head>
<meta charset="UTF-8" />
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="http://fb.me/react-with-addons-0.11.1.js"></script>
<script src="http://fb.me/JSXTransformer-0.11.1.js"></script>
<script type="text/jsx" src="/scripts/sample.jsx"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
<script type="text/jsx">
/** @jsx React.DOM */
function createSampleList() {
$.get("samples", {}, function(data) {
samples = data.loaded_sample;
var sample_list = SampleList({ samples: samples});
React.renderComponent(sample_list, $('#samples_list')[0] );
}, "json");
}
$( document ).ready(function() {
$.fn.editable.defaults.mode = 'inline';
createSampleList();
});
</script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="col-md-3" id="samples_list">
</div>
</div>
</div>
</body>
</html>