Skip to content

Commit 941af3d

Browse files
committed
replacing cdn link to use jsdeliver closes processing/p5.js#4091
1 parent 17df68b commit 941af3d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/templates/pages/download/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ slug: download/
7979
</li>
8080

8181
<li>
82-
<a class='support_link' href="http://cdnjs.com/libraries/p5.js" target="_blank">
82+
<a class='support_link' href="https://cdn.jsdelivr.net/npm/p5" target="_blank">
8383
<div class="download_box half_box last_box">
8484
<span class="download_name">CDN</span>
8585
<p>{{#i18n "link"}}{{/i18n}}

src/templates/pages/get-started/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ slug: get-started/
2929
<pre><code class="language-markup">&lt;script src="../p5.min.js">&lt;/script></code></pre>
3030

3131
<p>{{#i18n "download5"}}{{/i18n}}
32-
<a target="_blank" href="http://cdnjs.com/libraries/p5.js">
32+
<a target="_blank" href="https://cdn.jsdelivr.net/npm/p5/lib/">
3333
p5.js CDN</a>{{#i18n "download6"}}{{/i18n}}
3434
</p>
3535

36-
<pre class='p5-replace'><code class="language-markup">&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/[p5_version]/p5.js">&lt;/script></code></pre>
36+
<pre class='p5-replace'><code class="language-markup">&lt;script src="https://cdn.jsdelivr.net/npm/p5@[p5_version]/lib/p5.js">&lt;/script></code></pre>
3737

3838
<p>{{#i18n "download7"}}{{/i18n}}</p>
3939

4040
<pre class='p5-replace'><code class="language-markup">&lt;html>
4141
&lt;head>
42-
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/[p5_version]/p5.js">&lt;/script>
42+
&lt;script src="https://cdn.jsdelivr.net/npm/p5@[p5_version]/lib/p5.js">&lt;/script>
4343
&lt;script src="sketch.js">&lt;/script>
4444
&lt;/head>
4545
&lt;body>

src/templates/pages/learn/tdd.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ slug: learn/
9292
&lt;head&gt;
9393
&lt;meta charset="UTF-8"&gt;
9494
&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
95-
&lt;script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.20/p5.js"&gt;&lt;/script&gt;
95+
&lt;script src="script src="https://cdn.jsdelivr.net/npm/p5@0.4.20/lib/p5.js"&gt;&lt;/script&gt;
9696
&lt;script src="sketch.js"&gt;&lt;/script>&gt;
9797
&lt;style&gt; body {padding: 0; margin: 0;} &lt;/style&gt;
9898
&lt;/head&gt;

0 commit comments

Comments
 (0)