minor fixes
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
main
|
||||
chatserver
|
||||
.idea
|
||||
.idea/*
|
||||
|
@ -15,3 +15,7 @@
|
||||
##### FAR FUTURE
|
||||
* Add screen sharing
|
||||
* Add webcam capability
|
||||
* Rooms (with room codes)
|
||||
|
||||
##### WORKING ON
|
||||
* Trying to get the SVGs to load
|
||||
|
2
main.go
@ -458,7 +458,7 @@ func handleUsernameCheck(hub *Hub, w http.ResponseWriter, r *http.Request) {
|
||||
func main() {
|
||||
|
||||
var ip = flag.String("ip", "", "Server address in the format ip:port (e.g., 192.168.1.1)")
|
||||
var port = flag.Int("port", 8080, "Server port")
|
||||
var port = flag.Int("port", 8081, "Server port")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
|
3243
static/app.js
2126
static/styles.css
3
static/svg/connect.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg class="connect-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="phone" d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 526 B |
4
static/svg/disconnect.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<svg class="disconnect-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="phone" d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/>
|
||||
<line class="slash" x1="0" y1="22" x2="22" y2="0"/>
|
||||
</svg>
|
After Width: | Height: | Size: 585 B |
6
static/svg/headphones-muted.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<svg class="headphones-muted-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="headphones" d="M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5z"/>
|
||||
<path class="headphones" d="M21 14h-3a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-5z"/>
|
||||
<path class="headband" d="M3 14v-2a9 9 0 0 1 18 0v2"/>
|
||||
<line class="slash" x1="2" y1="2" x2="22" y2="22"/>
|
||||
</svg>
|
After Width: | Height: | Size: 522 B |
5
static/svg/headphones-unmuted.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg class="headphones-unmuted-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="headphones" d="M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5z"/>
|
||||
<path class="headphones" d="M21 14h-3a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-5z"/>
|
||||
<path class="headband" d="M3 14v-2a9 9 0 0 1 18 0v2"/>
|
||||
</svg>
|
After Width: | Height: | Size: 467 B |
7
static/svg/mic-muted.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<svg class="mic-muted-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="mic" d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/>
|
||||
<path class="stand" d="M19 10v2a7 7 0 0 1-14 0v-2"/>
|
||||
<line class="stand" x1="12" y1="19" x2="12" y2="23"/>
|
||||
<line class="stand" x1="8" y1="23" x2="16" y2="23"/>
|
||||
<line class="slash" x1="2" y1="2" x2="22" y2="22"/>
|
||||
</svg>
|
After Width: | Height: | Size: 521 B |
6
static/svg/mic-unmuted.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<svg class="mic-unmuted-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="mic" d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/>
|
||||
<path class="stand" d="M19 10v2a7 7 0 0 1-14 0v-2"/>
|
||||
<line class="stand" x1="12" y1="19" x2="12" y2="23"/>
|
||||
<line class="stand" x1="8" y1="23" x2="16" y2="23"/>
|
||||
</svg>
|
After Width: | Height: | Size: 467 B |
3
static/svg/settings.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg class="settings-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path class="gear" fill-rule="evenodd" d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.0 KiB |