-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (51 loc) · 1.62 KB
/
index.html
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
46
47
48
49
50
51
52
53
54
<html>
<head>
<title>React List</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://fb.me/react-0.10.0.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/rxjs/2.2.26/rx.lite.js"></script>
</head>
<body class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1>React list component</h1>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-3">
<p>
<h2>Search:</h2>
<input id="input" type="text" />
</p>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<p>
<h2>List 1:</h2>
<div id="list1"></div>
</p>
</div>
</div>
<script src="build/ReactList.js"></script>
<script src="src/js/RxWikipedia.js"></script>
<script>
var data = [
{id: "123", name: "Item 1", type: "Type 1"},
{id: "454", name: "Item 2", type: "Type 2"}
];
var component = React.renderComponent(
ItemListBox( {data:data} ),
document.getElementById('list1')
);
rxWikipedia(component);
</script>
</body>
</html>