Merge pull request #4877 from npmcdn-to-unpkg-bot/npmcdn-to-unpkg

Replace npmcdn.com with unpkg.com
This commit is contained in:
Iván Sánchez Ortega 2016-09-04 15:13:20 +02:00 committed by GitHub
commit 4f69672246
14 changed files with 32 additions and 32 deletions

View File

@ -9,8 +9,8 @@
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ layout.root }}{% endif %}{% endcapture %} {% 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="shortcut icon" type="image/x-icon" href="{{ root }}docs/images/favicon.ico" />
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<style> <style>
#map { #map {

View File

@ -34,8 +34,8 @@
<link rel="stylesheet" href="{{ root }}docs/highlight/styles/github-gist.css" /> <link rel="stylesheet" href="{{ root }}docs/highlight/styles/github-gist.css" />
<!-- Leaflet --> <!-- Leaflet -->
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
{% if page.css %}<style>{{ page.css }}</style>{% endif %} {% if page.css %}<style>{{ page.css }}</style>{% endif %}

View File

@ -43,12 +43,12 @@ Next face-to-face session will be during [FOSS4G](http://2016.foss4g.org/) in Bo
As with previous releases, you can use the CDN: As with previous releases, you can use the CDN:
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
A non-minified version of the javascript file is also available as: A non-minified version of the javascript file is also available as:
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet-src.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.2/dist/leaflet-src.js"></script>
The release is also available through NPM (`npm install leaflet@rc`), [GitHub download](https://github.com/Leaflet/Leaflet/archive/v1.0.0-rc.2.zip), and [CDN download](http://cdn.leafletjs.com/leaflet/v1.0.0-rc.2/leaflet.zip). We discourage using Bower. The release is also available through NPM (`npm install leaflet@rc`), [GitHub download](https://github.com/Leaflet/Leaflet/archive/v1.0.0-rc.2.zip), and [CDN download](http://cdn.leafletjs.com/leaflet/v1.0.0-rc.2/leaflet.zip). We discourage using Bower.

View File

@ -36,12 +36,12 @@ And partly in some small village in Iraq under 53° Celsius!
As with previous releases, you can use the CDN: As with previous releases, you can use the CDN:
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
A non-minified version of the javascript file is also available at: A non-minified version of the javascript file is also available at:
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet-src.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet-src.js"></script>
The release is also available through NPM (`npm install leaflet@rc`), [GitHub download](https://github.com/Leaflet/Leaflet/archive/v1.0.0-rc.3.zip), and [CDN download](http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.zip). We discourage using Bower. The release is also available through NPM (`npm install leaflet@rc`), [GitHub download](https://github.com/Leaflet/Leaflet/archive/v1.0.0-rc.3.zip), and [CDN download](http://cdn.leafletjs.com/leaflet/v1.0.0-rc.3/leaflet.zip). We discourage using Bower.

View File

@ -35,13 +35,13 @@ so please read the changelog carefully when upgrading to it.
The latest stable Leaflet release is hosted on a CDN &mdash; to start using The latest stable Leaflet release is hosted on a CDN &mdash; to start using
it straight away, place this in the `head` of your HTML code: it straight away, place this in the `head` of your HTML code:
<link rel="stylesheet" href="https://npmcdn.com/leaflet@0.7.7/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@0.7.7/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@0.7.7/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@0.7.7/dist/leaflet.js"></script>
or or
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
### Using a Downloaded Version of Leaflet ### Using a Downloaded Version of Leaflet

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<style> <style>
#map { #map {
@ -44,7 +44,7 @@
<body> <body>
<div id="map"></div> <div id="map"></div>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script type="text/javascript" src="us-states.js"></script> <script type="text/javascript" src="us-states.js"></script>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 400px"></div> <div id="map" style="width: 600px; height: 400px"></div>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script> <script>
var map = L.map('map').setView([51.5, -0.09], 13); var map = L.map('map').setView([51.5, -0.09], 13);

View File

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 400px"></div> <div id="map" style="width: 600px; height: 400px"></div>
<script src="sample-geojson.js" type="text/javascript"></script> <script src="sample-geojson.js" type="text/javascript"></script>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script> <script>
var map = L.map('map').setView([39.74739, -105], 13); var map = L.map('map').setView([39.74739, -105], 13);

View File

@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 400px"></div> <div id="map" style="width: 600px; height: 400px"></div>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script> <script>
var cities = new L.LayerGroup(); var cities = new L.LayerGroup();

View File

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
</head> </head>
<body> <body>
<div id="map" style="width: 600px; height: 400px"></div> <div id="map" style="width: 600px; height: 400px"></div>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script type="text/javascript" src="eu-countries.js"></script> <script type="text/javascript" src="eu-countries.js"></script>
<script> <script>

View File

@ -54,8 +54,8 @@ If we create a Leaflet map with these two tile layers, any marker or polygon wil
<div id="map" class="map" style="height: 250px"></div> <div id="map" class="map" style="height: 250px"></div>
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script type="text/javascript" src="eu-countries.js"></script> <script type="text/javascript" src="eu-countries.js"></script>
<script> <script>
var map = L.map('map'); var map = L.map('map');

View File

@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<style> <style>
body { body {

View File

@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
</head> </head>
<body> <body>
<div id="mapid" style="width: 600px; height: 400px"></div> <div id="mapid" style="width: 600px; height: 400px"></div>
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
<script> <script>
var mymap = L.map('mapid').setView([51.505, -0.09], 13); var mymap = L.map('mapid').setView([51.505, -0.09], 13);

View File

@ -19,11 +19,11 @@ Before writing any code for the map, you need to do the following preparation st
* Include Leaflet CSS file in the head section of your document: * Include Leaflet CSS file in the head section of your document:
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
* Include Leaflet JavaScript file: * Include Leaflet JavaScript file:
<script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js"></script>
* Put a `div` element with a certain `id` where you want your map to be: * Put a `div` element with a certain `id` where you want your map to be: