-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaflet.spin.js
526 lines (457 loc) · 45.7 KB
/
leaflet.spin.js
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
<!DOCTYPE html><html lang="en"class=" is-copy-enabled is-u2f-enabled"><head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#"><meta charset='utf-8'><link crossorigin="anonymous"href="https://assets-cdn.github.com/assets/github-f3d3b5589c669556f5c4deab5b667991ddd976d44c8eaaf29dd86059bdbcdeb0.css"integrity="sha256-89O1WJxmlVb1xN6rW2Z5kd3ZdtRMjqryndhgWb283rA="media="all"rel="stylesheet"/><link crossorigin="anonymous"href="https://assets-cdn.github.com/assets/github2-11604c0d8699009dd51b83a0ae1d8803d4b4a6296cb54624e5a1d0bb631afbbb.css"integrity="sha256-EWBMDYaZAJ3VG4Ogrh2IA9S0pilstUYk5aHQu2Ma+7s="media="all"rel="stylesheet"/><link as="script"href="https://assets-cdn.github.com/assets/frameworks-cd88cfa185f31c4c64e9a8c91cc4e9a48397b1c75fe991a83213b993636997af.js"rel="preload"/><link as="script"href="https://assets-cdn.github.com/assets/github-fb6d86d3abdd91a2a514dc1a43033b720c04ef5d9eb67fcecabb53ad96464e55.js"rel="preload"/><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta http-equiv="Content-Language"content="en"><meta name="viewport"content="width=1020"><title>Leaflet.Spin/leaflet.spin.js at master·makinacorpus/Leaflet.Spin·GitHub</title><link rel="search"type="application/opensearchdescription+xml"href="/opensearch.xml"title="GitHub"><link rel="fluid-icon"href="https://github.com/fluidicon.png"title="GitHub"><link rel="apple-touch-icon"href="/apple-touch-icon.png"><link rel="apple-touch-icon"sizes="57x57"href="/apple-touch-icon-57x57.png"><link rel="apple-touch-icon"sizes="60x60"href="/apple-touch-icon-60x60.png"><link rel="apple-touch-icon"sizes="72x72"href="/apple-touch-icon-72x72.png"><link rel="apple-touch-icon"sizes="76x76"href="/apple-touch-icon-76x76.png"><link rel="apple-touch-icon"sizes="114x114"href="/apple-touch-icon-114x114.png"><link rel="apple-touch-icon"sizes="120x120"href="/apple-touch-icon-120x120.png"><link rel="apple-touch-icon"sizes="144x144"href="/apple-touch-icon-144x144.png"><link rel="apple-touch-icon"sizes="152x152"href="/apple-touch-icon-152x152.png"><link rel="apple-touch-icon"sizes="180x180"href="/apple-touch-icon-180x180.png"><meta property="fb:app_id"content="1401488693436528"><meta content="https://avatars2.githubusercontent.com/u/546696?v=3&s=400"name="twitter:image:src"/><meta content="@github"name="twitter:site"/><meta content="summary"name="twitter:card"/><meta content="makinacorpus/Leaflet.Spin"name="twitter:title"/><meta content="Leaflet.Spin - Show a spinner on the map using Spin.js"name="twitter:description"/><meta content="https://avatars2.githubusercontent.com/u/546696?v=3&s=400"property="og:image"/><meta content="GitHub"property="og:site_name"/><meta content="object"property="og:type"/><meta content="makinacorpus/Leaflet.Spin"property="og:title"/><meta content="https://github.com/makinacorpus/Leaflet.Spin"property="og:url"/><meta content="Leaflet.Spin - Show a spinner on the map using Spin.js"property="og:description"/><meta name="browser-stats-url"content="https://api.github.com/_private/browser/stats"><meta name="browser-errors-url"content="https://api.github.com/_private/browser/errors"><link rel="assets"href="https://assets-cdn.github.com/"><meta name="pjax-timeout"content="1000"><meta name="msapplication-TileImage"content="/windows-tile.png"><meta name="msapplication-TileColor"content="#ffffff"><meta name="selected-link"value="repo_source"data-pjax-transient><meta name="google-site-verification"content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU"><meta name="google-site-verification"content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA"><meta name="google-analytics"content="UA-3769691-2"><meta content="collector.githubapp.com"name="octolytics-host"/><meta content="github"name="octolytics-app-id"/><meta content="D15F35DF:09B4:16A0E31:56B1A38F"name="octolytics-dimension-request_id"/><meta content="/<user-name>/<repo-name>/blob/show"data-pjax-transient="true"name="analytics-location"/><meta class="js-ga-set"name="dimension1"content="Logged Out"><meta name="hostname"content="github.com"><meta name="user-login"content=""><meta name="expected-hostname"content="github.com"><link rel="mask-icon"href="https://assets-cdn.github.com/pinned-octocat.svg"color="#4078c0"><link rel="icon"type="image/x-icon"href="https://assets-cdn.github.com/favicon.ico"><meta content="2988f3c65e76f83872691780fb13f2f7d3dc3545"name="form-nonce"/><meta http-equiv="x-pjax-version"content="34d1c8193b73ad1a367abf0cffc16cbd"><meta name="description"content="Leaflet.Spin - Show a spinner on the map using Spin.js"><meta name="go-import"content="github.com/makinacorpus/Leaflet.Spin git https://github.com/makinacorpus/Leaflet.Spin.git"><meta content="546696"name="octolytics-dimension-user_id"/><meta content="makinacorpus"name="octolytics-dimension-user_login"/><meta content="8557579"name="octolytics-dimension-repository_id"/><meta content="makinacorpus/Leaflet.Spin"name="octolytics-dimension-repository_nwo"/><meta content="true"name="octolytics-dimension-repository_public"/><meta content="false"name="octolytics-dimension-repository_is_fork"/><meta content="8557579"name="octolytics-dimension-repository_network_root_id"/><meta content="makinacorpus/Leaflet.Spin"name="octolytics-dimension-repository_network_root_nwo"/><link href="https://github.com/makinacorpus/Leaflet.Spin/commits/master.atom"rel="alternate"title="Recent Commits to Leaflet.Spin:master"type="application/atom+xml"><link rel="canonical"href="https://github.com/makinacorpus/Leaflet.Spin/blob/master/leaflet.spin.js"data-pjax-transient></head><body class="logged_out env-production windows vis-public page-blob"><a href="#start-of-content"tabindex="1"class="accessibility-aid js-skip-to-content">Skip to content</a><div class="header header-logged-out"role="banner"><div class="container clearfix"><a class="header-logo-wordmark"href="https://github.com/"data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark"><svg aria-hidden="true"class="mega-octicon octicon-logo-github"height="28"role="img"version="1.1"viewBox="0 0 45 16"width="78"><path d="M8.64 5.19H4.88c-0.11 0-0.19 0.08-0.19 0.17v1.84c0 0.09 0.08 0.17 0.19 0.17h1.47v2.3s-0.33 0.11-1.25 0.11c-1.08 0-2.58-0.39-2.58-3.7s1.58-3.73 3.05-3.73c1.27 0 1.81 0.22 2.17 0.33 0.11 0.03 0.2-0.08 0.2-0.17l0.42-1.78c0-0.05-0.02-0.09-0.06-0.14-0.14-0.09-1.02-0.58-3.2-0.58C2.58 0 0 1.06 0 6.2s2.95 5.92 5.44 5.92c2.06 0 3.31-0.89 3.31-0.89 0.05-0.02 0.06-0.09 0.06-0.13V5.36c0-0.09-0.08-0.17-0.19-0.17h0.02zM27.7 0.44h-2.13c-0.09 0-0.17 0.08-0.17 0.17v4.09h-3.31V0.61c0-0.09-0.08-0.17-0.17-0.17h-2.13c-0.09 0-0.17 0.08-0.17 0.17v11.11c0 0.09 0.09 0.17 0.17 0.17h2.13c0.09 0 0.17-0.08 0.17-0.17V6.97h3.31l-0.02 4.75c0 0.09 0.08 0.17 0.17 0.17h2.13c0.09 0 0.17-0.08 0.17-0.17V0.61c0-0.09-0.08-0.17-0.17-0.17h0.02zM11.19 0.69c-0.77 0-1.38 0.61-1.38 1.38s0.61 1.38 1.38 1.38c0.75 0 1.36-0.61 1.36-1.38s-0.61-1.38-1.36-1.38z m1.22 3.55c0-0.09-0.08-0.17-0.17-0.17H10.11c-0.09 0-0.17 0.09-0.17 0.2 0 0 0 6.17 0 7.34 0 0.2 0.13 0.27 0.3 0.27 0 0 0.91 0 1.92 0 0.2 0 0.25-0.09 0.25-0.27 0-0.39 0-7.36 0-7.36v-0.02z m23.52-0.16h-2.09c-0.11 0-0.17 0.08-0.17 0.19v5.44s-0.55 0.39-1.3 0.39-0.97-0.34-0.97-1.09c0-0.73 0-4.75 0-4.75 0-0.09-0.08-0.17-0.17-0.17h-2.14c-0.09 0-0.17 0.08-0.17 0.17 0 0 0 2.91 0 5.11s1.23 2.75 2.92 2.75c1.39 0 2.52-0.77 2.52-0.77s0.05 0.39 0.08 0.45c0.02 0.05 0.09 0.09 0.16 0.09h1.34c0.11 0 0.17-0.08 0.17-0.17l0.02-7.47c0-0.09-0.08-0.17-0.19-0.17z m5.77-0.25c-1.2 0-2.02 0.53-2.02 0.53V0.59c0-0.09-0.08-0.17-0.17-0.17h-2.13c-0.09 0-0.17 0.08-0.17 0.17l-0.02 11.11c0 0.09 0.09 0.17 0.19 0.17h1.48c0.06 0 0.11-0.02 0.14-0.08 0.05-0.06 0.09-0.52 0.09-0.52s0.88 0.83 2.52 0.83c1.94 0 3.05-0.98 3.05-4.41s-1.77-3.88-2.97-3.88z m-0.83 6.27c-0.73-0.02-1.22-0.36-1.22-0.36V6.22s0.48-0.3 1.08-0.34c0.77-0.08 1.5 0.16 1.5 1.97 0 1.91-0.33 2.28-1.36 2.25z m-22.33-0.05c-0.09 0-0.33 0.05-0.58 0.05-0.78 0-1.05-0.36-1.05-0.83s0-3.13 0-3.13h1.59c0.09 0 0.16-0.08 0.16-0.19V4.25c0-0.09-0.08-0.17-0.16-0.17h-1.59V1.97c0-0.08-0.05-0.13-0.14-0.13H14.61c-0.09 0-0.14 0.05-0.14 0.13v2.17s-1.09 0.27-1.16 0.28c-0.08 0.02-0.13 0.09-0.13 0.17v1.36c0 0.11 0.08 0.19 0.17 0.19h1.11s0 1.44 0 3.28c0 2.44 1.7 2.69 2.86 2.69 0.53 0 1.17-0.17 1.27-0.22 0.06-0.02 0.09-0.09 0.09-0.16v-1.5c0-0.11-0.08-0.19-0.17-0.19h0.02z"></path></svg></a><div class="header-actions"role="navigation"><a class="btn btn-primary"href="/join?source=header-repo"data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a><a class="btn"href="/login?return_to=%2Fmakinacorpus%2FLeaflet.Spin%2Fblob%2Fmaster%2Fleaflet.spin.js"data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a></div><div class="site-search repo-scope js-site-search"role="search"><!--</textarea>--><!--'"` --><form accept-charset="UTF-8" action="/makinacorpus/Leaflet.Spin/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/makinacorpus/Leaflet.Spin/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /></div>
<label class="js-chromeless-input-container form-control">
<div class="scope-badge">This repository</div>
<input type="text"
class="js-site-search-focus js-site-search-field is-clearable chromeless-input"
data-hotkey="s"
name="q"
placeholder="Search"
aria-label="Search this repository"
data-global-scope-placeholder="Search GitHub"
data-repo-scope-placeholder="Search"
tabindex="1"
autocapitalize="off">
</label>
</form>
</div>
<ul class="header-nav left" role="navigation">
<li class="header-nav-item">
<a class="header-nav-link" href="/explore" data-ga-click="(Logged out) Header, go to explore, text:explore">Explore</a>
</li>
<li class="header-nav-item">
<a class="header-nav-link" href="/features" data-ga-click="(Logged out) Header, go to features, text:features">Features</a>
</li>
<li class="header-nav-item">
<a class="header-nav-link" href="https://enterprise.github.com/" data-ga-click="(Logged out) Header, go to enterprise, text:enterprise">Enterprise</a>
</li>
<li class="header-nav-item">
<a class="header-nav-link" href="/pricing" data-ga-click="(Logged out) Header, go to pricing, text:pricing">Pricing</a>
</li>
</ul>
</div>
</div>
<div id="start-of-content" class="accessibility-aid"></div>
<div id="js-flash-container">
</div>
<div role="main" class="main-content">
<div itemscope itemtype="http://schema.org/WebPage">
<div id="js-repo-pjax-container" class="context-loader-container js-repo-nav-next" data-pjax-container>
<div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav">
<div class="container repohead-details-container">
<ul class="pagehead-actions">
<li>
<a href="/login?return_to=%2Fmakinacorpus%2FLeaflet.Spin"
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
aria-label="You must be signed in to watch a repository" rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-eye" height="16" role="img" version="1.1" viewBox="0 0 16 16" width="16"><path d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6c4.94 0 7.94-6 7.94-6S13 2 8.06 2z m-0.06 10c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4z m2-4c0 1.11-0.89 2-2 2s-2-0.89-2-2 0.89-2 2-2 2 0.89 2 2z"></path></svg>
Watch
</a>
<a class="social-count" href="/makinacorpus/Leaflet.Spin/watchers">
36
</a>
</li>
<li>
<a href="/login?return_to=%2Fmakinacorpus%2FLeaflet.Spin"
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
aria-label="You must be signed in to star a repository" rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-star" height="16" role="img" version="1.1" viewBox="0 0 14 16" width="14"><path d="M14 6l-4.9-0.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14l4.33-2.33 4.33 2.33L10.4 9.26 14 6z"></path></svg>
Star
</a>
<a class="social-count js-social-count" href="/makinacorpus/Leaflet.Spin/stargazers">
50
</a>
</li>
<li>
<a href="/login?return_to=%2Fmakinacorpus%2FLeaflet.Spin"
class="btn btn-sm btn-with-count tooltipped tooltipped-n"
aria-label="You must be signed in to fork a repository" rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-repo-forked" height="16" role="img" version="1.1" viewBox="0 0 10 16" width="10"><path d="M8 1c-1.11 0-2 0.89-2 2 0 0.73 0.41 1.38 1 1.72v1.28L5 8 3 6v-1.28c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72v1.78l3 3v1.78c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V9.5l3-3V4.72c0.59-0.34 1-0.98 1-1.72 0-1.11-0.89-2-2-2zM2 4.2c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3 10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z m3-10c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
Fork
</a>
<a href="/makinacorpus/Leaflet.Spin/network" class="social-count">
20
</a>
</li>
</ul>
<h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public ">
<svg aria-hidden="true" class="octicon octicon-repo" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M4 9h-1v-1h1v1z m0-3h-1v1h1v-1z m0-2h-1v1h1v-1z m0-2h-1v1h1v-1z m8-1v12c0 0.55-0.45 1-1 1H6v2l-1.5-1.5-1.5 1.5V14H1c-0.55 0-1-0.45-1-1V1C0 0.45 0.45 0 1 0h10c0.55 0 1 0.45 1 1z m-1 10H1v2h2v-1h3v1h5V11z m0-10H2v9h9V1z"></path></svg>
<span class="author"><a href="/makinacorpus" class="url fn" itemprop="url" rel="author"><span itemprop="title">makinacorpus</span></a></span><!--
--><span class="path-divider">/</span><!--
--><strong><a href="/makinacorpus/Leaflet.Spin" data-pjax="#js-repo-pjax-container">Leaflet.Spin</a></strong>
<span class="page-context-loader">
<img alt="" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
</span>
</h1>
</div>
<div class="container">
<nav class="reponav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
role="navigation"
data-pjax="#js-repo-pjax-container">
<a href="/makinacorpus/Leaflet.Spin" aria-label="Code" aria-selected="true" class="js-selected-navigation-item selected reponav-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /makinacorpus/Leaflet.Spin">
<svg aria-hidden="true" class="octicon octicon-code" height="16" role="img" version="1.1" viewBox="0 0 14 16" width="14"><path d="M9.5 3l-1.5 1.5 3.5 3.5L8 11.5l1.5 1.5 4.5-5L9.5 3zM4.5 3L0 8l4.5 5 1.5-1.5L2.5 8l3.5-3.5L4.5 3z"></path></svg>
Code
</a>
<a href="/makinacorpus/Leaflet.Spin/issues" class="js-selected-navigation-item reponav-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /makinacorpus/Leaflet.Spin/issues">
<svg aria-hidden="true" class="octicon octicon-issue-opened" height="16" role="img" version="1.1" viewBox="0 0 14 16" width="14"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v5h2V4z m0 6H6v2h2V10z"></path></svg>
Issues
<span class="counter">3</span>
</a>
<a href="/makinacorpus/Leaflet.Spin/pulls" class="js-selected-navigation-item reponav-item" data-hotkey="g p" data-selected-links="repo_pulls /makinacorpus/Leaflet.Spin/pulls">
<svg aria-hidden="true" class="octicon octicon-git-pull-request" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M11 11.28c0-1.73 0-6.28 0-6.28-0.03-0.78-0.34-1.47-0.94-2.06s-1.28-0.91-2.06-0.94c0 0-1.02 0-1 0V0L4 3l3 3V4h1c0.27 0.02 0.48 0.11 0.69 0.31s0.3 0.42 0.31 0.69v6.28c-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72z m-1 2.92c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2zM4 3c0-1.11-0.89-2-2-2S0 1.89 0 3c0 0.73 0.41 1.38 1 1.72 0 1.55 0 5.56 0 6.56-0.59 0.34-1 0.98-1 1.72 0 1.11 0.89 2 2 2s2-0.89 2-2c0-0.73-0.41-1.38-1-1.72V4.72c0.59-0.34 1-0.98 1-1.72z m-0.8 10c0 0.66-0.55 1.2-1.2 1.2s-1.2-0.55-1.2-1.2 0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2z m-1.2-8.8c-0.66 0-1.2-0.55-1.2-1.2s0.55-1.2 1.2-1.2 1.2 0.55 1.2 1.2-0.55 1.2-1.2 1.2z"></path></svg>
Pull requests
<span class="counter">0</span>
</a>
<a href="/makinacorpus/Leaflet.Spin/pulse" class="js-selected-navigation-item reponav-item" data-selected-links="pulse /makinacorpus/Leaflet.Spin/pulse">
<svg aria-hidden="true" class="octicon octicon-pulse" height="16" role="img" version="1.1" viewBox="0 0 14 16" width="14"><path d="M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0V10h3.6L4.5 8.2l0.9 5.4L9 8.5l1.6 1.5H14V8H11.5z"></path></svg>
Pulse
</a>
<a href="/makinacorpus/Leaflet.Spin/graphs" class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors /makinacorpus/Leaflet.Spin/graphs">
<svg aria-hidden="true" class="octicon octicon-graph" height="16" role="img" version="1.1" viewBox="0 0 16 16" width="16"><path d="M16 14v1H0V0h1v14h15z m-11-1H3V8h2v5z m4 0H7V3h2v10z m4 0H11V6h2v7z"></path></svg>
Graphs
</a>
</nav>
</div>
</div>
<div class="container new-discussion-timeline experiment-repo-nav">
<div class="repository-content">
<a href="/makinacorpus/Leaflet.Spin/blob/40e86dfa503f4064ea121a510654924e9ea57eb5/leaflet.spin.js" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
<!-- blob contrib key: blob_contributors:v21:1e659601c3993d3a0a8bae9db5126dd6 -->
<div class="file-navigation js-zeroclipboard-container">
<div class="select-menu js-menu-container js-select-menu left">
<button class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
title="master"
type="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
<i>Branch:</i>
<span class="js-select-button css-truncate-target">master</span>
</button>
<div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
<div class="select-menu-modal">
<div class="select-menu-header">
<svg aria-label="Close" class="octicon octicon-x js-menu-close" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg>
<span class="select-menu-title">Switch branches/tags</span>
</div>
<div class="select-menu-filters">
<div class="select-menu-text-filter">
<input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
</div>
<div class="select-menu-tabs">
<ul>
<li class="select-menu-tab">
<a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
</li>
<li class="select-menu-tab">
<a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
</li>
</ul>
</div>
</div>
<div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
<div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
<a class="select-menu-item js-navigation-item js-navigation-open "
href="/makinacorpus/Leaflet.Spin/blob/gh-pages/leaflet.spin.js"
data-name="gh-pages"
data-skip-pjax="true"
rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
<span class="select-menu-item-text css-truncate-target" title="gh-pages">
gh-pages
</span>
</a>
<a class="select-menu-item js-navigation-item js-navigation-open selected"
href="/makinacorpus/Leaflet.Spin/blob/master/leaflet.spin.js"
data-name="master"
data-skip-pjax="true"
rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
<span class="select-menu-item-text css-truncate-target" title="master">
master
</span>
</a>
</div>
<div class="select-menu-no-results">Nothing to show</div>
</div>
<div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
<div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
<a class="select-menu-item js-navigation-item js-navigation-open "
href="/makinacorpus/Leaflet.Spin/tree/v0.1.1/leaflet.spin.js"
data-name="v0.1.1"
data-skip-pjax="true"
rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
<span class="select-menu-item-text css-truncate-target" title="v0.1.1">
v0.1.1
</span>
</a>
<a class="select-menu-item js-navigation-item js-navigation-open "
href="/makinacorpus/Leaflet.Spin/tree/v0.1.0/leaflet.spin.js"
data-name="v0.1.0"
data-skip-pjax="true"
rel="nofollow">
<svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M12 5L4 13 0 9l1.5-1.5 2.5 2.5 6.5-6.5 1.5 1.5z"></path></svg>
<span class="select-menu-item-text css-truncate-target" title="v0.1.0">
v0.1.0
</span>
</a>
</div>
<div class="select-menu-no-results">Nothing to show</div>
</div>
</div>
</div>
</div>
<div class="btn-group right">
<a href="/makinacorpus/Leaflet.Spin/find/master"
class="js-show-file-finder btn btn-sm"
data-pjax
data-hotkey="t">
Find file
</a>
<button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button">Copy path</button>
</div>
<div class="breadcrumb js-zeroclipboard-target">
<span class="repo-root js-repo-root"><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/makinacorpus/Leaflet.Spin" class="" data-branch="master" data-pjax="true" itemscope="url"><span itemprop="title">Leaflet.Spin</span></a></span></span><span class="separator">/</span><strong class="final-path">leaflet.spin.js</strong>
</div>
</div>
<div class="commit-tease">
<span class="right">
<a class="commit-tease-sha" href="/makinacorpus/Leaflet.Spin/commit/494c0596be353b83b35de07971680e2d2f441bca" data-pjax>
494c059
</a>
<time datetime="2013-08-06T09:29:05Z" is="relative-time">Aug 6, 2013</time>
</span>
<div>
<img alt="@leplatrem" class="avatar" height="20" src="https://avatars1.githubusercontent.com/u/546692?v=3&s=40" width="20" />
<a href="/leplatrem" class="user-mention" rel="contributor">leplatrem</a>
<a href="/makinacorpus/Leaflet.Spin/commit/494c0596be353b83b35de07971680e2d2f441bca" class="message" data-pjax="true" title="Allow to pass Spin.js options at first spin call (fixes #6)">Allow to pass Spin.js options at first spin call (fixes</a> <a href="https://github.com/makinacorpus/Leaflet.Spin/issues/6" class="issue-link js-issue-link" data-url="https://github.com/makinacorpus/Leaflet.Spin/issues/6" data-id="17482393" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#6</a><a href="/makinacorpus/Leaflet.Spin/commit/494c0596be353b83b35de07971680e2d2f441bca" class="message" data-pjax="true" title="Allow to pass Spin.js options at first spin call (fixes #6)">)</a>
</div>
<div class="commit-tease-contributors">
<a class="muted-link contributors-toggle" href="#blob_contributors_box" rel="facebox">
<strong>1</strong>
contributor
</a>
</div>
<div id="blob_contributors_box" style="display:none">
<h2 class="facebox-header" data-facebox-id="facebox-header">Users who have contributed to this file</h2>
<ul class="facebox-user-list" data-facebox-id="facebox-description">
<li class="facebox-user-list-item">
<img alt="@leplatrem" height="24" src="https://avatars3.githubusercontent.com/u/546692?v=3&s=48" width="24" />
<a href="/leplatrem">leplatrem</a>
</li>
</ul>
</div>
</div>
<div class="file">
<div class="file-header">
<div class="file-actions">
<div class="btn-group">
<a href="/makinacorpus/Leaflet.Spin/raw/master/leaflet.spin.js" class="btn btn-sm " id="raw-url">Raw</a>
<a href="/makinacorpus/Leaflet.Spin/blame/master/leaflet.spin.js" class="btn btn-sm js-update-url-with-hash">Blame</a>
<a href="/makinacorpus/Leaflet.Spin/commits/master/leaflet.spin.js" class="btn btn-sm " rel="nofollow">History</a>
</div>
<a class="btn-octicon tooltipped tooltipped-nw"
href="https://windows.github.com"
aria-label="Open this file in GitHub Desktop"
data-ga-click="Repository, open with desktop, type:windows">
<svg aria-hidden="true" class="octicon octicon-device-desktop" height="16" role="img" version="1.1" viewBox="0 0 16 16" width="16"><path d="M15 2H1c-0.55 0-1 0.45-1 1v9c0 0.55 0.45 1 1 1h5.34c-0.25 0.61-0.86 1.39-2.34 2h8c-1.48-0.61-2.09-1.39-2.34-2h5.34c0.55 0 1-0.45 1-1V3c0-0.55-0.45-1-1-1z m0 9H1V3h14v8z"></path></svg>
</a>
<button type="button" class="btn-octicon disabled tooltipped tooltipped-nw"
aria-label="You must be signed in to make or propose changes">
<svg aria-hidden="true" class="octicon octicon-pencil" height="16" role="img" version="1.1" viewBox="0 0 14 16" width="14"><path d="M0 12v3h3l8-8-3-3L0 12z m3 2H1V12h1v1h1v1z m10.3-9.3l-1.3 1.3-3-3 1.3-1.3c0.39-0.39 1.02-0.39 1.41 0l1.59 1.59c0.39 0.39 0.39 1.02 0 1.41z"></path></svg>
</button>
<button type="button" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
aria-label="You must be signed in to make or propose changes">
<svg aria-hidden="true" class="octicon octicon-trashcan" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path d="M10 2H8c0-0.55-0.45-1-1-1H4c-0.55 0-1 0.45-1 1H1c-0.55 0-1 0.45-1 1v1c0 0.55 0.45 1 1 1v9c0 0.55 0.45 1 1 1h7c0.55 0 1-0.45 1-1V5c0.55 0 1-0.45 1-1v-1c0-0.55-0.45-1-1-1z m-1 12H2V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9z m1-10H1v-1h9v1z"></path></svg>
</button>
</div>
<div class="file-info">
42 lines (39 sloc)
<span class="file-info-divider"></span>
1.25 KB
</div>
</div>
<div class="blob-wrapper data type-javascript">
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tr>
<td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
<td id="LC1" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">L</span>.<span class="pl-smi">SpinMapMixin</span> <span class="pl-k">=</span> {</td>
</tr>
<tr>
<td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
<td id="LC2" class="blob-code blob-code-inner js-file-line"> <span class="pl-en">spin</span><span class="pl-k">:</span> <span class="pl-k">function</span> (<span class="pl-smi">state</span>, <span class="pl-smi">options</span>) {</td>
</tr>
<tr>
<td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
<td id="LC3" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-k">!!</span>state) {</td>
</tr>
<tr>
<td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
<td id="LC4" class="blob-code blob-code-inner js-file-line"> <span class="pl-c">// start spinning !</span></td>
</tr>
<tr>
<td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
<td id="LC5" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-k">!</span><span class="pl-v">this</span>.<span class="pl-smi">_spinner</span>) {</td>
</tr>
<tr>
<td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
<td id="LC6" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinner</span> <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-en">Spinner</span>(options).<span class="pl-en">spin</span>(<span class="pl-v">this</span>.<span class="pl-smi">_container</span>);</td>
</tr>
<tr>
<td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
<td id="LC7" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinning</span> <span class="pl-k">=</span> <span class="pl-c1">0</span>;</td>
</tr>
<tr>
<td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
<td id="LC8" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
<td id="LC9" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinning</span><span class="pl-k">++</span>;</td>
</tr>
<tr>
<td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
<td id="LC10" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
<td id="LC11" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">else</span> {</td>
</tr>
<tr>
<td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
<td id="LC12" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinning</span><span class="pl-k">--</span>;</td>
</tr>
<tr>
<td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
<td id="LC13" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-v">this</span>.<span class="pl-smi">_spinning</span> <span class="pl-k"><=</span> <span class="pl-c1">0</span>) {</td>
</tr>
<tr>
<td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
<td id="LC14" class="blob-code blob-code-inner js-file-line"> <span class="pl-c">// end spinning !</span></td>
</tr>
<tr>
<td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
<td id="LC15" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-v">this</span>.<span class="pl-smi">_spinner</span>) {</td>
</tr>
<tr>
<td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
<td id="LC16" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinner</span>.<span class="pl-c1">stop</span>();</td>
</tr>
<tr>
<td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
<td id="LC17" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-smi">_spinner</span> <span class="pl-k">=</span> <span class="pl-c1">null</span>;</td>
</tr>
<tr>
<td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
<td id="LC18" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
<td id="LC19" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
<td id="LC20" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
<td id="LC21" class="blob-code blob-code-inner js-file-line"> }</td>
</tr>
<tr>
<td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
<td id="LC22" class="blob-code blob-code-inner js-file-line">};</td>
</tr>
<tr>
<td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
<td id="LC23" class="blob-code blob-code-inner js-file-line">
</td>
</tr>
<tr>
<td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
<td id="LC24" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">L</span>.<span class="pl-smi">Map</span>.<span class="pl-en">include</span>(<span class="pl-smi">L</span>.<span class="pl-smi">SpinMapMixin</span>);</td>
</tr>
<tr>
<td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
<td id="LC25" class="blob-code blob-code-inner js-file-line">
</td>
</tr>
<tr>
<td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
<td id="LC26" class="blob-code blob-code-inner js-file-line"><span class="pl-smi">L</span>.<span class="pl-smi">Map</span>.<span class="pl-en">addInitHook</span>(<span class="pl-k">function</span> () {</td>
</tr>
<tr>
<td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
<td id="LC27" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">'</span>layeradd<span class="pl-pds">'</span></span>, <span class="pl-k">function</span> (<span class="pl-smi">e</span>) {</td>
</tr>
<tr>
<td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
<td id="LC28" class="blob-code blob-code-inner js-file-line"> <span class="pl-c">// If added layer is currently loading, spin !</span></td>
</tr>
<tr>
<td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
<td id="LC29" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-smi">loading</span>) <span class="pl-v">this</span>.<span class="pl-en">spin</span>(<span class="pl-c1">true</span>);</td>
</tr>
<tr>
<td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
<td id="LC30" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-k">typeof</span> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-smi">on</span> <span class="pl-k">!=</span> <span class="pl-s"><span class="pl-pds">'</span>function<span class="pl-pds">'</span></span>) <span class="pl-k">return</span>;</td>
</tr>
<tr>
<td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
<td id="LC31" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">'</span>data:loading<span class="pl-pds">'</span></span>, <span class="pl-k">function</span> () { <span class="pl-v">this</span>.<span class="pl-en">spin</span>(<span class="pl-c1">true</span>); }, <span class="pl-v">this</span>);</td>
</tr>
<tr>
<td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
<td id="LC32" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">'</span>data:loaded<span class="pl-pds">'</span></span>, <span class="pl-k">function</span> () { <span class="pl-v">this</span>.<span class="pl-en">spin</span>(<span class="pl-c1">false</span>); }, <span class="pl-v">this</span>);</td>
</tr>
<tr>
<td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
<td id="LC33" class="blob-code blob-code-inner js-file-line"> }, <span class="pl-v">this</span>);</td>
</tr>
<tr>
<td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
<td id="LC34" class="blob-code blob-code-inner js-file-line"> <span class="pl-v">this</span>.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">'</span>layerremove<span class="pl-pds">'</span></span>, <span class="pl-k">function</span> (<span class="pl-smi">e</span>) {</td>
</tr>
<tr>
<td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
<td id="LC35" class="blob-code blob-code-inner js-file-line"> <span class="pl-c">// Clean-up</span></td>
</tr>
<tr>
<td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
<td id="LC36" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-smi">loading</span>) <span class="pl-v">this</span>.<span class="pl-en">spin</span>(<span class="pl-c1">false</span>);</td>
</tr>
<tr>
<td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
<td id="LC37" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-k">typeof</span> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-smi">on</span> <span class="pl-k">!=</span> <span class="pl-s"><span class="pl-pds">'</span>function<span class="pl-pds">'</span></span>) <span class="pl-k">return</span>;</td>
</tr>
<tr>
<td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
<td id="LC38" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-en">off</span>(<span class="pl-s"><span class="pl-pds">'</span>data:loaded<span class="pl-pds">'</span></span>);</td>
</tr>
<tr>
<td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
<td id="LC39" class="blob-code blob-code-inner js-file-line"> <span class="pl-smi">e</span>.<span class="pl-smi">layer</span>.<span class="pl-en">off</span>(<span class="pl-s"><span class="pl-pds">'</span>data:loading<span class="pl-pds">'</span></span>);</td>
</tr>
<tr>
<td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
<td id="LC40" class="blob-code blob-code-inner js-file-line"> }, <span class="pl-v">this</span>);</td>
</tr>
<tr>
<td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
<td id="LC41" class="blob-code blob-code-inner js-file-line">});</td>
</tr>
</table>
</div>
</div>
<a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
<div id="jump-to-line" style="display:none">
<!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /></div>
<input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" aria-label="Jump to line" autofocus>
<button type="submit" class="btn">Go</button>
</form></div>
</div>
<div class="modal-backdrop"></div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="site-footer" role="contentinfo">
<ul class="site-footer-links right">
<li><a href="https:<li><a href="https://developer.github.com"data-ga-click="Footer, go to api, text:api">API</a></li><li><a href="https://training.github.com"data-ga-click="Footer, go to training, text:training">Training</a></li><li><a href="https://shop.github.com"data-ga-click="Footer, go to shop, text:shop">Shop</a></li><li><a href="https://github.com/blog"data-ga-click="Footer, go to blog, text:blog">Blog</a></li><li><a href="https://github.com/about"data-ga-click="Footer, go to about, text:about">About</a></li><li><a href="https://github.com/pricing"data-ga-click="Footer, go to pricing, text:pricing">Pricing</a></li></ul><a href="https://github.com"aria-label="Homepage"><svg aria-hidden="true"class="mega-octicon octicon-mark-github"height="24"role="img"title="GitHub "version="1.1"viewBox="0 0 16 16"width="24"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z"></path></svg></a><ul class="site-footer-links"><li>©2016<span title="0.04422s from github-fe117-cp1-prd.iad.github.net">GitHub</span>,Inc.</li><li><a href="https://github.com/site/terms"data-ga-click="Footer, go to terms, text:terms">Terms</a></li><li><a href="https://github.com/site/privacy"data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li><li><a href="https://github.com/security"data-ga-click="Footer, go to security, text:security">Security</a></li><li><a href="https://github.com/contact"data-ga-click="Footer, go to contact, text:contact">Contact</a></li><li><a href="https://help.github.com"data-ga-click="Footer, go to help, text:help">Help</a></li></ul></div></div><div id="ajax-error-message"class="flash flash-error"><svg aria-hidden="true"class="octicon octicon-alert"height="16"role="img"version="1.1"viewBox="0 0 16 16"width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg><button type="button"class="flash-close js-flash-close js-ajax-error-dismiss"aria-label="Dismiss error"><svg aria-hidden="true"class="octicon octicon-x"height="16"role="img"version="1.1"viewBox="0 0 12 16"width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg></button>Something went wrong with that request.Please try again.</div><script crossorigin="anonymous"integrity="sha256-zYjPoYXzHExk6ajJHMTppIOXscdf6ZGoMhO5k2Npl68="src="https://assets-cdn.github.com/assets/frameworks-cd88cfa185f31c4c64e9a8c91cc4e9a48397b1c75fe991a83213b993636997af.js"></script><script async="async"crossorigin="anonymous"integrity="sha256-+22G06vdkaKlFNwaQwM7cgwE712etn/OyrtTrZZGTlU="src="https://assets-cdn.github.com/assets/github-fb6d86d3abdd91a2a514dc1a43033b720c04ef5d9eb67fcecabb53ad96464e55.js"></script><div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner hidden"><svg aria-hidden="true"class="octicon octicon-alert"height="16"role="img"version="1.1"viewBox="0 0 16 16"width="16"><path d="M15.72 12.5l-6.85-11.98C8.69 0.21 8.36 0.02 8 0.02s-0.69 0.19-0.87 0.5l-6.85 11.98c-0.18 0.31-0.18 0.69 0 1C0.47 13.81 0.8 14 1.15 14h13.7c0.36 0 0.69-0.19 0.86-0.5S15.89 12.81 15.72 12.5zM9 12H7V10h2V12zM9 9H7V5h2V9z"></path></svg><span class="signed-in-tab-flash">You signed in with another tab or window.<a href="">Reload</a>to refresh your session.</span><span class="signed-out-tab-flash">You signed out in another tab or window.<a href="">Reload</a>to refresh your session.</span></div><div class="facebox"id="facebox"style="display:none;"><div class="facebox-popup"><div class="facebox-content"role="dialog"aria-labelledby="facebox-header"aria-describedby="facebox-description"></div><button type="button"class="facebox-close js-facebox-close"aria-label="Close modal"><svg aria-hidden="true"class="octicon octicon-x"height="16"role="img"version="1.1"viewBox="0 0 12 16"width="12"><path d="M7.48 8l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75-1.48-1.48 3.75-3.75L0.77 4.25l1.48-1.48 3.75 3.75 3.75-3.75 1.48 1.48-3.75 3.75z"></path></svg></button></div></div></body></html>