Commit Graph

47 Commits

Author SHA1 Message Date
Alex Dunn 677a9fd9cb allow customization of <title> 2020-06-03 12:24:07 -07:00
Akshay Shekher 95c0663684 Made video muted by default and added overlay to ask the user to unmute 2020-05-10 10:51:34 -07:00
Louis Jencka 3c55a8a1f3 Use system wasm_exec.js
The wasm_exec.js included in the repo didn't work in go1.14.1 - always
using the local go-provided wasm_exec.js should avoid this problem.
2020-03-29 20:47:42 -06:00
joeyak 3ac5af4548 Removed dependency of dennwc\dom\js
This removes the dependency of dennwc\dom\js which allows building with
Go 1.13.
2019-09-22 14:31:04 -04:00
Alastair Bridgewater 42bcead627 Hide suggestion menu explicitly
* On some systems (currently hypothesized to be Firefox with
GTK+ using a system theme that has always-visible scrollbars with
a minimum size on their long axis), the suggestion menu starts off
visible and obscuring the chat message entry area, then moves to
obscuring the chat history area once it has been invoked.  At no
time does it become invisible.

  * Fix, by hiding the suggestion menu by default and explicitly
managing its visibility as it is updated.
2019-09-16 14:17:31 -04:00
joeyak d153c2b4f0 Fix cookies not staying across browser sessions 2019-05-07 19:42:43 -04:00
Zorchenhimer 332dfdc9cf Fix connecting to websocket with SSL
Request a secure web socket (wss://) when connecting to the site with
https.  Fixes #61.
2019-04-13 13:47:38 -04:00
joeyak ad2579d59a Adding some hardening to user joining
Client sends the server a object to join instead of a message
server can send a message to notify the user

closes #57
2019-04-13 13:12:08 -04:00
joeyak ccecc64763 Add loading files message
closes #72
2019-04-11 21:20:32 -04:00
joeyak 293c818eb2 Remove debug log I left in and fix konami code 2019-04-11 20:00:02 -04:00
joeyak 24ba706827 Suggestions div changes
Added scrolling and more than 10 elements in div
if the user changes the current element, the div will scroll with it
added debug div to show the keys
closes #76
2019-03-31 21:17:19 -04:00
joeyak bea491e1c0 Remove debug log 2019-03-31 15:23:37 -04:00
joeyak e5f1598cd0 Add color dropdown
issue #69
2019-03-30 17:01:44 -04:00
joeyak 5aa41cc80c Hide color div when clicking color button
closes #69
2019-03-30 16:08:41 -04:00
Zorchenhimer 8801269969 Fix canceling the Auth popup dialog
Don't try to auth if the user cancels out of the auth popup.
2019-03-30 15:14:30 -04:00
joeyak a2cc5115aa Fix timeout not being set and scrolling not catching up with chat 2019-03-28 22:06:57 -04:00
joeyak b281ebe408 Add remote easter egg 2019-03-28 21:55:28 -04:00
joeyak ee2e92a9a5 Adding timestamps
resolves #66
2019-03-28 20:54:29 -04:00
joeyak 8e4ac4d600 Add color cookies
closes #6
2019-03-28 20:01:48 -04:00
Zorchenhimer 64a6b2943c Fix #70, name change on cancel
Don't send the /nick command if a user clicks on the "nick" button and
cancels out of the prompt.
2019-03-28 15:19:43 -04:00
joeyak 4864669df6 Add color checking and removed autoreconnect
closes issue #44
2019-03-23 15:37:48 -04:00
Zorchenhimer f36a51bf2b Fix clearing the title
If no title is given with the /playing command, clear the title.
2019-03-23 14:53:29 -04:00
joeyak a480c51454 Added reconnecting when websocket connection closes or errors
resolves #38
2019-03-22 23:32:52 -04:00
joeyak bdfa75f8bc Added nick button and some cleanup
resolves #55
2019-03-21 23:01:21 -04:00
joeyak 53e103302a Make messages div scroll all the way to the bottom
resolves #18
2019-03-21 21:20:29 -04:00
joeyak 53410bea40 Fixing scrollbar showing up again when notify box is mroe than one line 2019-03-20 00:08:08 -04:00
joeyak 1cfa040f7b Added color names as possible arguements for /color
Did some linting fixing too.
Closes #45
2019-03-19 22:56:01 -04:00
joeyak 7ce4c04942 Fixed autocomplete and positioning of suggestions
closes #41
2019-03-19 15:15:11 -04:00
Zorchenhimer 0b05a7aea6 Add the /purge command
This is a moderator command that clears chat for everybody.

Resolves #5
2019-03-17 22:30:00 -04:00
joeyak 7dca3be538 UI Changes
Changed UI to scale better
Moved info box into a hidden div that shows when the notifyBox is hovered
Added a color button that sends the /color command
Split client.js into separate files that the video and chat call separatly
The reload player button only shows up in chat when there is a video
added references to other code so code complete can work in js files

Fixes #40
2019-03-17 01:55:50 -04:00
joeyak 1b8dd76a45 Add help button 2019-03-16 17:59:10 -04:00
joeyak ff1590d972 Added command buttons section
closes #39
2019-03-16 17:57:58 -04:00
Zorchenhimer 224fdd96c8 Don't use different port for websocket
Use the same port for the websocket that is being used for everything
else.
2019-03-16 16:53:22 -04:00
joeyak c4507cc496 Ignore those evil backspaces 2019-03-16 16:01:54 -04:00
joeyak 30d480d878 Change heartbeat to be send only when in chat 2019-03-16 15:47:48 -04:00
joeyak ad4186a279 Added completion on tab for autocompleting name
closes  #7
2019-03-16 11:56:43 -04:00
joeyak 57e1f3863a Added popup box and arrow controls
When typing @ a div will show up with all the chat names that match.
When up or down arrow keys are pressed, the highlight changes.
Tab handling is currently incomplete but the event is prevented.

issue #7
2019-03-16 11:40:39 -04:00
Zorchenhimer 447768f8dc Fix setPlaying() not clearing
Some div's were moved and renamed, but this function wasn't updated.
2019-03-13 14:56:33 -04:00
joeyak d77078edc3 divs in #messages are removed after set count maxes out. Default is 300
closes #20
2019-03-13 00:02:36 -04:00
joeyak 7f2c17f041 Add minor cleanups 2019-03-12 22:55:35 -04:00
joeyak 7ee1c1ffb8 Changing css to go from floats and widths to css grid
close #11
close #23
2019-03-12 18:16:35 -04:00
joeyak 272272e29c Changed index to use templates so chat and video only versions can be made
close #1
2019-03-12 01:58:03 -04:00
joeyak 5544ac817f Converted to code to using webassembly 2019-03-11 23:15:42 -04:00
joeyak ae292ccb88 removed unneeded function - escaped server side 2019-03-10 19:13:28 -04:00
joeyak 08dbf73d99 fix ws connection when having the port in the url 2019-03-10 18:45:52 -04:00
joeyak c60406cb2c Remove sourcemapping since map isnt there
Also fixed a log that was still in the js file
2019-03-10 18:13:53 -04:00
joeyak ecf64dff8a Cleaning up files and some organization 2019-03-10 16:45:10 -04:00