-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathindex.html
214 lines (204 loc) · 7.87 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Map Effects 100</title>
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.10.1/bootstrap-social.min.css" />
<link rel="stylesheet" href="assets/style.css" />
</head>
<body>
<a href="https://github.com/muxlab/map-effects-100"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a>
<div id="title"><h1><a href="https://github.com/muxlab/map-effects-100">Map Effects 100</a></h1></div>
<div id="containerDOM"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react-dom.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.27.3/react-bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
<!--[if lt IE 9]>
<script>
(function(){
var ef = function(){};
window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
}());
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv-printshiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
<![endif]-->
<script type="text/babel">
console.log('%c⚛ Map Effects 100: Hello geohacker! ⚛', 'font-family:monospace;font-size:16px;color:darkblue;');
var infos = [
{
title: '1. Fade-in Highlight Style',
filename: '01_fadein-highlight.html',
imgUrl: 'assets/img/01.png'
},
{
title: '2. Classified Highlight Color',
filename: '02_classified-highlightcolor.html',
imgUrl: 'assets/img/02.png'
},
{
title: '3. Rising Popup',
filename: '03_rising-popup.html',
imgUrl: 'assets/img/03.png'
},
{
title: '4. Interlocking Legend',
filename: '04_interlocking-legend.html',
imgUrl: 'assets/img/04.png'
},
{
title: '5. SVG Marker Animation',
filename: '05_svg-marker-animation.html',
imgUrl: 'assets/img/05.png'
},
{
title: '6. Binding Chart to Map Operations',
filename: '06_binding-chart.html',
imgUrl: 'assets/img/06.png'
},
{
title: '7. Raphael Animation',
filename: '07_raphael-animation.html',
imgUrl: 'assets/img/07.png'
},
{
title: '8. Time Animation Play',
filename: '08_time-animation.html',
imgUrl: 'assets/img/08.png'
},
{
title: '9. Search Nearest with Turf',
filename: '09_nearest-with-turf.html',
imgUrl: 'assets/img/09.png'
},
{
title: '10. Hex Grid with Turf',
filename: '10_hex-grid-with-turf.html',
imgUrl: 'assets/img/10.png'
},
{
title: '11. Container Scroll Driven Map Navigation',
filename: '11_scroll-driven-map-navigation.html',
imgUrl: 'assets/img/11.png'
},
{
title: '12. Map Driven Container Scroll Navigation',
filename: '12_map-driven-scroll-navigation.html',
imgUrl: 'assets/img/12.png'
},
{
title: '13. Social Media Avatar on Map',
filename: '13_avatar-icon.html',
imgUrl: 'assets/img/13.png'
},
{
title: '14. Custom Popup with D3',
filename: '14_custom-popup.html',
imgUrl: 'assets/img/14.png'
},
{
title: '15. SVG Border Line Generation',
filename: '15_svg-border-generation.html',
imgUrl: 'assets/img/15.png'
},
{
title: '16. Responsive Popup with Picture',
filename: '16_responsive-popup.html',
imgUrl: 'assets/img/16.png'
},
{
title: '17. Map on Video',
filename: '17_map-on-video.html',
imgUrl: 'assets/img/17.png'
},
{
title: '18. ZINE for Map',
filename: '18_interactive-zine-for-map.html',
imgUrl: 'assets/img/18.png'
},
{
title: '19. Transforming Marker into Picure Frame',
filename: '19_transforming-marker-into-frame.html',
imgUrl: 'assets/img/19.png'
},
{
title: '20. Bouncing Popup',
filename: '20_bouncing-popup.html',
imgUrl: 'assets/img/20.png'
},
{
title: '21. Blurred Background',
filename: '21_blurred-background.html',
imgUrl: 'assets/img/21.png'
},
{
title: '22. Bootstrap Tooltip',
filename: '22_bootstrap-tooltip.html',
imgUrl: 'assets/img/22.png'
},
{
title: '23. Vignetting Map',
filename: '23_vignetting-map.html',
imgUrl: 'assets/img/23.png'
}
]
// React Bootstrap Components
var Grid = ReactBootstrap.Grid;
var Row = ReactBootstrap.Row;
var Col = ReactBootstrap.Col;
var Button = ReactBootstrap.Button;
// Item Layout
var EffectsLayout = React.createClass({
getInitialState() {
return {
infos : infos
};
},
showDemo(e) {
location.href = e.target.title;
},
showCode(e) {
location.href = e.target.title;
},
render() {
var showDemo = this.showDemo;
var showCode = this.showCode;
var items = this.state.infos.map(function(info) {
return (
<Col xs={12} md={4} key={info.filename}>
<div className={"item"}>
<div className={"title-header"}>
<h3>{info.title}</h3>
<p>{info.filename}</p>
</div>
<div className={"avatar"}><img src={info.imgUrl} alt="" /></div>
<p>
<Button className={"btn btn-demo"} title={"./Leaflet/" + info.filename} onClick={showDemo}>View Demo</Button>
<Button className={"btn-github"} title={"https://github.com/muxlab/map-effects-100/blob/gh-pages/Leaflet/" + info.filename} onClick={showCode}>View Code</Button>
</p>
</div>
</Col>
);
});
//console.log(items);
return (
<Grid>
<Row>
{items}
</Row>
</Grid>
)
}
});
ReactDOM.render(<EffectsLayout />, document.getElementById("containerDOM"));
</script>
<script src="assets/ga.js"></script>
</body>
</html>