File tree Expand file tree Collapse file tree 10 files changed +16
-10
lines changed
Expand file tree Collapse file tree 10 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,16 @@ This file has about 80 lines of code total.
7171
7272This 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.
7575If you open that session URL in another window or on another device,
7676the 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+
7884The app is devided into two parts: The "model" is the part that is synchronized
7985by Multisynq for all users. It is like a shared computer that all users directly
8086interact with. The other part is the "view", which displays the model to the user
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments