1.0.13 • Published 7 months ago

page-synchronizer v1.0.13

Weekly downloads
-
License
Apache 2.0 Licens...
Repository
-
Last release
7 months ago

A simple scroll position synchronizer

Introduction

Let us say that you have a simple static page that you want to view together with your friends, and take people to a particular scroll position in real time.

You add the following a few lines to the page and then viewing the page becomes collaborative.

<script src="https://unpkg.com/@croquet/croquet"></script>
<script src="https://unpkg.com/page-synchronizer@1.0.13"></script>
<script type="text/javascript">
if (window.location.search !== "") {
    SimplePageView.start({
        apiKey: "<your apiKey from https://croquet.io/keys>",
    })
}
</script>

Please obtain a Croquet apiKey from Croquet Developer Portal and use a key in above snippets.

A demonstration

You can try it on a page. You can create a new session by providing different ?q= value, or you can remove the if test in the snippet and get everybody into the same session.

1.0.9

7 months ago

1.0.8

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.7

8 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago