forked from caseywebdev/react-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (82 loc) · 1.89 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html>
<head>
<title>ReactList Examples</title>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.0/react.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.0/react-dom.js'></script>
<script src='react-list.js'></script>
<script src='examples/index.js'></script>
<style>
body {
margin: 0;
font-family: 'Helvetica Neue', sans-serif;
}
a {
color: #38afd4;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.banner {
border: 0;
position: absolute;
right: 0;
top: 0;
}
.header {
background: #fff;
color: #ec7720;
font-size: 50px;
padding: 40px;
}
.example {
padding: 25px;
}
.props {
overflow: auto;
}
.component {
border: 10px solid #38afd4;
border-radius: 5px;
height: 300px;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.item {
background: linear-gradient(#fff, #eee);
line-height: 30px;
padding: 0 10px;
}
.axis-x .item {
display: inline-block;
line-height: 300px;
padding: 0;
text-align: center;
width: 150px;
}
.axis-x .component {
white-space: nowrap;
}
.square-item {
background: linear-gradient(#fff, #eee);
display: inline-block;
line-height: 100px;
text-align: center;
width: 100px;
}
.even {
background: linear-gradient(#ddd, #ccc);
}
</style>
</head>
<body>
<div id='main'></div>
<script>
window.ReactDOM.render(
window.React.createFactory(window.index.default)(),
document.getElementById('main')
);
</script>
</body>
</html>