added old js code
This commit is contained in:
@@ -180,11 +180,21 @@ function initUI() {
|
|||||||
//getting server hostname
|
//getting server hostname
|
||||||
getServerIPandHostname()
|
getServerIPandHostname()
|
||||||
|
|
||||||
// LaplaceVar.ui.joinForm.onsubmit = async e => {
|
LaplaceVar.ui.joinForm.onsubmit = async e => {
|
||||||
// e.preventDefault();
|
e.preventDefault();
|
||||||
|
LaplaceVar.roomID = LaplaceVar.ui.inputRoomID.value;
|
||||||
// await doJoin(LaplaceVar.roomID,LaplaceVar.barrierIP);
|
LaplaceVar.barrierIP = LaplaceVar.ui.barrierIP.value;
|
||||||
// };
|
// check if the following action is executed
|
||||||
|
console.log("here")
|
||||||
|
// Check if the ip address for barrier is given
|
||||||
|
if(LaplaceVar.barrierIP == "") {
|
||||||
|
window.history.pushState('', '', getJoinUrl(LaplaceVar.roomID));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
window.history.pushState('', '', getJoinUrl(LaplaceVar.roomID,LaplaceVar.barrierIP));
|
||||||
|
}
|
||||||
|
await doJoin(LaplaceVar.roomID,LaplaceVar.barrierIP);
|
||||||
|
};
|
||||||
|
|
||||||
LaplaceVar.ui.btnStream.onclick = async () => {
|
LaplaceVar.ui.btnStream.onclick = async () => {
|
||||||
window.history.pushState('', '', getStreamUrl());
|
window.history.pushState('', '', getStreamUrl());
|
||||||
@@ -240,16 +250,6 @@ function initUI() {
|
|||||||
|
|
||||||
LaplaceVar.barrierIP = urlParams.get('barrierip')
|
LaplaceVar.barrierIP = urlParams.get('barrierip')
|
||||||
|
|
||||||
LaplaceVar.roomID = LaplaceVar.ui.inputRoomID.value;
|
|
||||||
LaplaceVar.barrierIP = LaplaceVar.ui.barrierIP.value;
|
|
||||||
// Check if the ip address for barrier is given
|
|
||||||
if(LaplaceVar.barrierIP == "") {
|
|
||||||
window.history.pushState('', '', getJoinUrl(LaplaceVar.roomID));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
window.history.pushState('', '', getJoinUrl(LaplaceVar.roomID,LaplaceVar.barrierIP));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
print("Logs:");
|
print("Logs:");
|
||||||
print("[+] Page loaded");
|
print("[+] Page loaded");
|
||||||
|
|||||||
Reference in New Issue
Block a user