Skip to content

Commit c4ad5dc

Browse files
committed
Use full version number in CDN link
1 parent 60891d3 commit c4ad5dc

10 files changed

+16
-10
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,16 @@ This file has about 80 lines of code total.
7171

7272
This is the same app, but using a Multisynq Model for the asteroids.
7373

74-
A session name and password is automatically appended to the URL.
74+
When you ttry it, a session name and password are automatically appended to the URL.
7575
If you open that session URL in another window or on another device,
7676
the asteroids will float exactly the same in both.
7777

78+
The HTML imports the Multisynq client via a CDN. That way we don't need a bundler:
79+
80+
```html
81+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/[email protected]/bundled/multisynq-client.min.js"></script>
82+
```
83+
7884
The app is devided into two parts: The "model" is the part that is synchronized
7985
by Multisynq for all users. It is like a shared computer that all users directly
8086
interact with. The other part is the "view", which displays the model to the user

step1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step3.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step4.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step5.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step6.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step7.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
max-height: 100%;
1717
}
1818
</style>
19-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
19+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2020
</head>
2121
<body>
2222
<canvas id="canvas" width="1000" height="1000"></canvas>

step8.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
border: none; color: #000; text-align: center; font-size: 1.2em;
2222
}
2323
</style>
24-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
2525
</head>
2626
<body>
2727
<canvas id="canvas" width="1000" height="1000"></canvas>

step9.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
}
4949
</style>
50-
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1/bundled/multisynq-client.min.js"></script>
50+
<script src="https://cdn.jsdelivr.net/npm/@multisynq/client@1.0.1/bundled/multisynq-client.min.js"></script>
5151
</head>
5252
<body>
5353
<canvas id="canvas" width="1000" height="1000"></canvas>

0 commit comments

Comments
 (0)