/
githubmirror
/
Leaflet
Обзор
Документация
Войти
/
githubmirror
/
Leaflet
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/_layouts/tutorial_frame.html
46 строк
1 KB
Esha Nair
Replace unpkg with jsDelivr in documentation (#9663)
25 апр 2025, 15:42
Не верифицирован
25 апр 2025, 15:42
1dcd7f9
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="en"> <head> <base target="_top"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> {% capture title %}{% if page.title %}{{ page.title }} - {% elsif post.title %}{{ post.title }} - {% endif %}{% endcapture %} <title>{{ title }}Leaflet</title> {% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ layout.root }}{% endif %}{% endcapture %} <link rel="shortcut icon" type="image/x-icon" href="{{ root }}docs/images/favicon.ico" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.css" integrity="{{site.integrity_hash_css}}" crossorigin=""/> <script type="importmap"> { "imports": { "leaflet": "https://cdn.jsdelivr.net/npm/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.js" }, "integrity": { "https://cdn.jsdelivr.net/npm/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.js": "{{site.integrity_hash_uglified}}" } } </script> <style> html, body { height: 100%; margin: 0; } .leaflet-container { height: 400px; width: 600px; max-width: 100%; max-height: 100%; } </style> {% if page.css %}<style>{{ page.css }}</style>{% endif %} </head> <body{% if page.bodyclass %} class="{{ page.bodyclass }}"{% endif %}> {% unless page.customMapContainer == "true" %}<div id='map'></div>{% endunless %} {{ content }} </body> </html>