Shared Realtime Database Introduction

For information on how to set up the database, see: this guide.
(This is an example of a single text value, SET with the database.)
This public space is called:

(This is an example of a single number, incremented with mathematical operations, then SETting the database.)
It is
years old.
(This is an example of a list of messages, PUSHed to as an ever-growing list. Each message is composed out of multiple values: in this case, two text values: 'username' and 'message'.)
Messages:
Username:
Message:

(You can also send an 'event')

Challenges

Mouse coordinates:

Challenge 1: Set the x value of your mouse movement to the 'age', every time you double-click

Challenge 2: Send your mouse movement as a chat message, when you double-click. (Use a separate database key (e.g. 'mousecoords' instead of 'ourchat'))

Challenge 3: Show other mouse pointers on the screen. (use the "mousepointers") div below.


GPS coordinates:

Extra-Challenge 4: Include the GPS coordinates of the person chatting into each text message.

Extra-Challenge 5: Using setInterval, continuously send the GPS coordinates into the browser, and use it to control something else (the location of a mouse pointer, the color of the text, etc).