Skip to content

Commit

Permalink
avoid borkt esm.archive.org
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Dec 30, 2024
1 parent 60e0da1 commit 570d722
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion aaron-swartz-day-2022/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
import lunr from 'https://esm.ext.archive.org/[email protected]'

// date/time hacking
import dayjs from 'https://esm.archive.org/dayjs'
import dayjs from 'https://esm.ext.archive.org/dayjs@1.11.13'

// comments
import './staticman.js'
Expand Down
2 changes: 1 addition & 1 deletion deno/app.htm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="x">🦕</div>
<script type="module">
import $ from 'https://esm.archive.org/jquery'
import $ from 'https://esm.ext.archive.org/jquery@3.7.1'

$('#x').animate({ 'font-size': 400 })
</script>
10 changes: 5 additions & 5 deletions deno/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
- https://esm.sh - optimized for deno
- https://github.com/alephjs/esm.sh/blob/master/HOSTING.md
- https://git.archive.org/www/esm/-/blob/master/Dockerfile
- https://esm.archive.org
- https://esm.ext.archive.org
- ☝🏽 user privacy 👍🏼

---
Expand All @@ -147,7 +147,7 @@
<div id="x">🦕</div>

<script type="module">
import $ from 'https://esm.archive.org/jquery'
import $ from 'https://esm.ext.archive.org/jquery@3.7.1'

$('#x').animate({ 'font-size': 400 })
</script>
Expand All @@ -163,7 +163,7 @@
- https://git.archive.org/www/av/-/blob/deno/www/js/search-results.js

```js
import { LitElement, html, css } from 'https://esm.archive.org/lit'
import { LitElement, html, css } from 'https://esm.ext.archive.org/lit@3.2.1'
```

---
Expand All @@ -186,7 +186,7 @@

```js
import BookReader from \
'https://esm.archive.org/@internetarchive/bookreader/src/BookReader.js'
'https://esm.ext.archive.org/@internetarchive/bookreader@5.0.0-79/BookReader/BookReader.js'
```
from https://www.npmjs.com/package/@internetarchive/bookreader

Expand All @@ -200,7 +200,7 @@
---
## 💡 we could..
- import radio player directly
- `.ts` => `.js` dynamic through https://esm.archive.org
- `.ts` => `.js` dynamic through https://esm.ext.archive.org

---
## handy links
Expand Down
2 changes: 1 addition & 1 deletion dweb-2022/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
import lunr from 'https://esm.ext.archive.org/[email protected]'

// date/time hacking
import dayjs from 'https://esm.archive.org/dayjs'
import dayjs from 'https://esm.ext.archive.org/dayjs@1.11.13'

// comments
import './staticman.js'
Expand Down
2 changes: 1 addition & 1 deletion dweb-2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
import lunr from 'https://esm.ext.archive.org/[email protected]'

// date/time hacking
import dayjs from 'https://esm.archive.org/dayjs'
import dayjs from 'https://esm.ext.archive.org/dayjs@1.11.13'

// comments
import './staticman.js'
Expand Down
2 changes: 1 addition & 1 deletion ux/flip.htm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>
import $ from 'https://esm.ext.archive.org/[email protected]'
import jwplayer from 'https://av.prod.archive.org/js/jwplayer.js'

import Parser from 'https://esm.archive.org/rss-parser'
import Parser from 'https://esm.ext.archive.org/rss-parser@3.13.0'

window.$ = $
window.jQuery = $
Expand Down
7 changes: 3 additions & 4 deletions ux/jw-tab-autoplay.htm
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ <h2>videojs alt player</h2>
poster="images/glogo.png"
data-setup="{}"
></video>

<link href="https://esm.archive.org/video.js/dist/video-js.css" rel="stylesheet"/>
<link href="https://esm.ext.archive.org/[email protected]/dist/video-js.css" rel="stylesheet"/>

<script type="module">
import videojs from 'https://esm.archive.org/video.js/dist/video.js'
import playlist from 'https://esm.archive.org/videojs-playlist/dist/videojs-playlist.js'
import videojs from 'https://esm.ext.archive.org/video.js@8.21.0/dist/video.js'
import playlist from 'https://esm.ext.archive.org/videojs-playlist@5.2.0/dist/videojs-playlist.js'

videojs.registerPlugin('playlist', playlist)

Expand Down
4 changes: 2 additions & 2 deletions ux/slider.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<link rel="stylesheet" href="https://esm.archive.org/jqueryui/jquery-ui.min.css">
<link rel="stylesheet" href="https://esm.archive.org/jqueryui/jquery-ui.theme.min.css">
<link rel="stylesheet" href="https://esm.ext.archive.org/jqueryui@1.11.1/jquery-ui.min.css">
<link rel="stylesheet" href="https://esm.ext.archive.org/jqueryui@1.11.1/jquery-ui.theme.min.css">
<style>
#ui-datepicker-div { display:none; }
#slider { width: 200px; z-index: 0; }
Expand Down
4 changes: 2 additions & 2 deletions ux/tablesorter.htm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<html>
<head>
<title>Collections are special</title>
<link rel="stylesheet" href="https://esm.archive.org/bootstrap@^5.0.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://esm.ext.archive.org/bootstrap@5.3.3/dist/css/bootstrap.min.css">
</head>

<body class="Unity">
Expand Down Expand Up @@ -34,7 +34,7 @@

window.jQuery = $
window.$ = $
await import('https://esm.archive.org/[email protected]')
await import('https://esm.ext.archive.org/tablesorter@2.32.0[email protected]')

$('table.tablesorter').tablesorter({ textExtraction: 'complex' })
</script>
Expand Down

0 comments on commit 570d722

Please sign in to comment.