Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

spawnfest/collywobble

Repository files navigation

Collywobble

Collywobble is a LiveView application that syncs state between multiple browsers manipulating a contenteditable div.

col·ly·wob·bles /ˈkälēˌwäb(ə)lz/

  • stomach pain or queasiness. "an attack of collywobbles"
  • intense anxiety or nervousness, especially with stomach queasiness. "such organizations give him the collywobbles"

Demonstration

Usage

This application assumes that asdf is used to install Erlang and Elixir. Setup the application locally using the following commands:

bin/dev/doctor
bin/dev/start
  1. Open two browsers to http://localhost:4000. In one browser, enter a pad id, for example my-note.
  2. Copy the url.
  3. Paste the url into the second browser.
  4. Edit/add text in each browser. Updates should appear in the other browser.
  5. Select text in each browser. Cursor/highlights should appear in the other browser.

Known issues

  • Adding empty lines of text causes the current cursor to jump around.
  • Sometimes the JS for getting the current selection gives back data that doesn't seem to work, either in the current browser or in observing browsers.

Development

bin/dev/doctor
bin/dev/start
bin/dev/update
bin/dev/shipit

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published