From 3206e403d88cda41d58087b36ecda171a3325285 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 14 Dec 2024 21:38:14 +0100 Subject: [PATCH] [call-me] - improvements --- package.json | 2 +- public/client.js | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 297bd3c..8764f37 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "call-me", - "version": "1.0.30", + "version": "1.0.31", "description": "Your Go-To for Instant Video Calls", "author": "Miroslav Pejic - miroslav.pejic.85@gmail.com", "license": "AGPLv3", diff --git a/public/client.js b/public/client.js index dac0cfb..dc76f52 100755 --- a/public/client.js +++ b/public/client.js @@ -10,22 +10,22 @@ const socket = io(); const config = { iceServers: [{ urls: 'stun:stun.l.google.com:19302' }] }; // DOM elements -const attribution = document.querySelector('#attribution'); -const randomImage = document.querySelector('#randomImage'); -const sessionTime = document.querySelector('#sessionTime'); -const githubDiv = document.querySelector('#githubDiv'); -const signInPage = document.querySelector('#signInPage'); -const usernameIn = document.querySelector('#usernameIn'); -const signInBtn = document.querySelector('#signInBtn'); -const roomPage = document.querySelector('#roomPage'); -const callUsernameIn = document.querySelector('#callUsernameIn'); -const callBtn = document.querySelector('#callBtn'); -const hideBtn = document.querySelector('#hideBtn'); -const hangUpBtn = document.querySelector('#hangUpBtn'); -const localVideoContainer = document.querySelector('#localVideoContainer'); -const localVideo = document.querySelector('#localVideo'); -const localUsername = document.querySelector('#localUsername'); -const remoteVideo = document.querySelector('#remoteVideo'); +const attribution = document.getElementById('attribution'); +const randomImage = document.getElementById('randomImage'); +const sessionTime = document.getElementById('sessionTime'); +const githubDiv = document.getElementById('githubDiv'); +const signInPage = document.getElementById('signInPage'); +const usernameIn = document.getElementById('usernameIn'); +const signInBtn = document.getElementById('signInBtn'); +const roomPage = document.getElementById('roomPage'); +const callUsernameIn = document.getElementById('callUsernameIn'); +const callBtn = document.getElementById('callBtn'); +const hideBtn = document.getElementById('hideBtn'); +const hangUpBtn = document.getElementById('hangUpBtn'); +const localVideoContainer = document.getElementById('localVideoContainer'); +const localVideo = document.getElementById('localVideo'); +const localUsername = document.getElementById('localUsername'); +const remoteVideo = document.getElementById('remoteVideo'); // User and connection information let userName;