+ You don't need an app to use HeyStranger on your phone or tablet! The site works well on mobile devices.
+
+
HeyStranger is a great way to meet new people. When you use HeyStranger, we randomly select another person and chat with you one-on-one. To ensure your security, chats are anonymous unless you tell someone who you are (not recommended!) and you can end the chat at any time. Predators have been known to use HeyStranger, so be careful.
+
You can add your interests if you want and HeyStranger will find people who share your interests rather than completely random people.
+
+ Your use of HeyStranger constitutes your acceptance of these .Terms and Conditions.
+
+
+
+
What do you talk about?
+
+
+
+
+
+
+
Start Chat
+
+
+
+
Or
+
+
+
+
+
+ This Services Agreement (“Agreement” or “Terms”) constitutes a legal contract between you and HeyStranger.live, LLC (“HeyStranger”, “us” or “our”). By accessing or using the HeyStranger website currently located at HeyStranger.live (the “Site”) or any applications or other services provided or operated by HeyStranger (collectively, the “Services”), you may indicate your acceptance of such services by clicking on the following icon: check box By using the or button you confirm that you have read, understood and agree to be bound by these terms. If you do not agree to these Terms, please do not access or use the Services.
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/chat.js b/js/chat.js
new file mode 100644
index 0000000..6fc6099
--- /dev/null
+++ b/js/chat.js
@@ -0,0 +1,141 @@
+/*****************************************
+ * REfacted in another way
+ ****************************************/
+import { MessageBox, chatBody, SendMessage } from "./elements.js";
+
+const escMainText = document.getElementById("esc-main-text");
+
+const handelDataChannel = (dataChannel, partnerIntrests) => {
+ document.getElementById(MessageBox).disabled = true;
+ console.log("handeling data channel:", dataChannel, partnerIntrests)
+ dataChannel.onopen = () => {
+ document.getElementById(MessageBox).disabled = false;
+ if (chatBody) {
+ var urlParams = new URLSearchParams(window.location.search);
+ var arrayParam = urlParams.get('tags');
+ let yourslikes = JSON.parse(decodeURIComponent(arrayParam));
+ chatBody.innerHTML ="";
+ // chatBody.innerHTML = "You're now chatting with a random stranger. Say hi!";
+ // chatBody.innerHTML += `
`;
+ clonedChatInput.value = "";
+ chatBody.scrollTop = chatBody.scrollHeight;
+ clonedChatInput.focus();
+ }
+ });
+ }
+
+ let typingTimeout; // Variable to store typing timeout
+
+ // Function to send typing indicator when user starts typing
+ function startTyping() {
+ if (!typingTimeout) {
+ dataChannel.send(JSON.stringify({ type: 'typing', isTyping: true }));
+ } else {
+ clearTimeout(typingTimeout);
+ }
+
+ // Set timeout to send typing indicator after a delay when user stops typing
+ typingTimeout = setTimeout(() => {
+ dataChannel.send(JSON.stringify({ type: 'typing', isTyping: false }));
+ typingTimeout = null;
+ }, 1000); // Adjust the delay as needed
+ }
+ clonedChatInput.addEventListener('input', () => {
+ startTyping();
+ });
+}
+
+export { handelDataChannel }
\ No newline at end of file
diff --git a/js/elements.js b/js/elements.js
new file mode 100644
index 0000000..96020c2
--- /dev/null
+++ b/js/elements.js
@@ -0,0 +1,48 @@
+/***************************************************************************** *
+ * STRUCTURE WILL BE DEFINED HERE
+ * 1. get all the nessasery document to changess
+ * (i) local-video , remote-video
+ * (ii) chat body
+ * (III) All Chats
+ *
+******************************************************************************* */
+
+// All Impotant Element;
+
+let STRUCTURE = {
+ RemoteVideo : "remote-video", // Remote Video
+ LocalVideo : "local-video", // Local Video
+ MuteVideo : "video-button", // Mute/Unmute Video
+ MuteAudio : "mute-button", // Mute/Unmute Audio
+ Chats : {
+ ChatBody : "chat", // Chat Body
+ ConnectDisconnect: "esc-btn", // Connect/Disconnect button
+ SendMessage : "send-btn", // Send button
+ MessageBox : "message-input", // Input for Message
+ TypingIndicator: "is-typing" // typing Indicator
+ },
+ Info :{
+ TotalUsers:"total-users" // Total Users Info
+ }
+
+}
+let COMPONENT = {
+ remoteVideo: document.getElementById(STRUCTURE.RemoteVideo),
+ localVideo: document.getElementById(STRUCTURE.LocalVideo),
+ muteVideoButton: document.getElementById(STRUCTURE.MuteVideo),
+ muteAudioButton: document.getElementById(STRUCTURE.MuteAudio),
+ chatBody: document.getElementById(STRUCTURE.Chats.ChatBody),
+ connectDisconnectButton: document.getElementById(STRUCTURE.Chats.ConnectDisconnect),
+ sendMessageButton: document.getElementById(STRUCTURE.Chats.SendMessage),
+ messageBox: document.getElementById(STRUCTURE.Chats.MessageBox),
+ typingIndicator : document.getElementById(STRUCTURE.Chats.TypingIndicator),
+ totalUsers : document.getElementById(STRUCTURE.Info.TotalUsers)
+};
+
+export const { MessageBox: MessageBox,SendMessage } = STRUCTURE.Chats;
+export const { remoteVideo, localVideo, muteVideoButton, muteAudioButton, chatBody, connectDisconnectButton, sendMessageButton, messageBox , typingIndicator ,totalUsers} = COMPONENT;
+
+
+
+
+
diff --git a/js/likes.js b/js/likes.js
new file mode 100644
index 0000000..cf601ec
--- /dev/null
+++ b/js/likes.js
@@ -0,0 +1,46 @@
+/*************************************************
+ * Not Refactered
+ * this is not the part of chat page
+ **************************************************/
+
+const handelLikes = async (likes) => {
+ document.addEventListener('DOMContentLoaded', function () {
+ const tagInputField = document.querySelector('.tag-input-field');
+ const tagsList = document.querySelector('.tags-list');
+ if(!tagInputField || !tagsList){
+ console.log("No tag input field found");
+ return ;
+ }
+ tagInputField.addEventListener('keydown', function (event) {
+ const tagText = event.target.value.trim();
+
+ if (event.key === 'Enter' && tagText !== '') {
+ if (!likes.includes(tagText)) {
+ const tag = document.createElement('div');
+ tag.className = 'tag';
+ tag.innerHTML = `
+ ${tagText}
+ ×
+ `;
+ likes.push(tagText);
+ tagsList.appendChild(tag);
+ event.target.value = '';
+ }else{
+ alert("already exists");
+ }
+ }
+ });
+
+ tagsList.addEventListener('click', function(event) {
+ if (event.target.classList.contains('tag-close-btn')) {
+ const tagText = event.target.previousElementSibling.textContent.trim();
+ const index = likes.indexOf(tagText);
+ if (index !== -1) {
+ likes.splice(index, 1);
+ }
+ event.target.parentElement.remove();
+ }
+ });
+ });
+}
+export default handelLikes;
\ No newline at end of file
diff --git a/js/main.js b/js/main.js
new file mode 100644
index 0000000..904ac33
--- /dev/null
+++ b/js/main.js
@@ -0,0 +1,326 @@
+/*************************************************
+ * Refactered
+ * There is no commonets
+ **************************************************/
+
+import { socket as Socket, getPartner, SendOffer, SendAnswer, SendCandidate, SendHangUP } from "./socket.js"
+import { handelDataChannel } from "./chat.js"
+import { updateWaitForPartner } from "./ui.js"
+import { getStream, HandleRemoteStream } from "./stream.js";
+import handelLikes from "./likes.js";
+import { connectDisconnectButton as EscBtn, } from "./elements.js";
+
+let partnerID;
+let pc;
+let dataChannel;
+let localStream;
+let socket;
+let likes = [];
+let partnerIntrests;
+const configuration = {
+ iceServers: [
+ {
+ urls: 'stun:stun.l.google.com:19302'
+ }
+ ]
+}
+//
+var urlParams = new URLSearchParams(window.location.search);
+var mode = urlParams.get('mode');
+var arrayParam = urlParams.get('tags');
+likes = JSON.parse(decodeURIComponent(arrayParam));
+
+// WebRTC Functions
+const StartCall = async (intrests) => {
+ socket = Socket;
+ socket.removeAllListeners();
+ // Get the local stream
+ // try {
+ // localStream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true });
+ // } catch (e) {
+ // console.error("Error Getting User Media", e);
+ // alert("Please allow the camera and microphone access for video call access");
+ // let check = confirm("If you continue with chat only mode, you will not be able to make video calls. Do you want to continue?");
+ // if (!check) {
+ // return;
+ // }
+ // }
+ if (mode === "video") {
+ localStream = await getStream();
+ if (!localStream) {
+ let check = confirm("If you continue with chat only mode, you will not be able to make video calls. Do you want to continue?");
+ if (!check) {
+ return;
+ }
+ }
+ }
+
+
+ // let responce = await getPartner(intrests);
+
+ // if(!responce){
+ // console.log("No Partner Found, Please Try Again Later",responce);
+ // return;
+ // }else{
+ // console.log("Partner Found",responce);
+ // }
+ getPartner(intrests).then((responce) => {
+ if (!responce) {
+ console.log("No Partner Found, Please Try Again Later", responce);
+ // EscBtn.disabled = false;
+ return;
+ }
+ else {
+ const WaitingPartner = (message, id) => {
+ if (!id) {
+ console.error("No Partner ID Found");
+ return;
+ }
+ partnerIntrests = message?.intrests;
+ partnerID = id;
+ window.partnerID = id;
+ EscBtn.disabled = false;
+ InitaliseAnswerer();
+ }
+ console.log("Partner Status:", responce);
+ let waitTimeout ;
+ if (responce.action === "intiate") {
+ partnerIntrests = responce.intrests;
+ partnerID = responce.partner_id;
+ window.partnerID = responce.partner_id;
+ EscBtn.disabled = false;
+ InitaliseOffer();
+ } else {
+ const escMainText = document.getElementById("esc-main-text");
+ escMainText.innerHTML = "Waiting...";
+ EscBtn.disabled = true;
+ socket.on("handshake", WaitingPartner);
+ waitTimeout = setTimeout(() => {
+ socket.removeListener('handshake', WaitingPartner);
+ const escMainText = document.getElementById("esc-main-text");
+ escMainText.innerHTML = "Matching not found, Click to retry...";
+ EscBtn.disabled = false;
+ }, responce.time);
+ }
+ socket.onAny(()=>{
+ if(waitTimeout){
+ clearTimeout(waitTimeout);
+ }
+ });
+ }
+ });
+ // Update the UI
+ updateWaitForPartner("Waiting for partner");
+ // Start Listening on handshake
+ // socket.on("handshake", (message, id) => {
+ // if (!id) {
+ // console.error("No Partner ID Found");
+ // return;
+ // }
+ // console.log("Your Intrests", message?.intrests);
+ // partnerIntrests = message?.intrests;
+ // partnerID = id;
+ // window.partnerID = id;
+
+ // EscBtn.disabled = false;
+ // // if the message is offer then start the call
+ // if (message.type == "offer") {
+ // //console.log("Offer Recieved")
+ // InitaliseOffer();
+ // return true;
+ // }
+
+ // else if (message.type == "answer") {
+ // //console.log("Answer Recieved")
+ // InitaliseAnswerer();
+ // }
+ // });
+ socket.on("hangup", () => {
+ //console.log("hangup receved");
+ HangUp();
+ });
+}
+const InitaliseOffer = async () => {
+ pc = new RTCPeerConnection(configuration);
+ if (localStream) {
+ localStream.getTracks().forEach(track => pc.addTrack(track, localStream));
+ }
+ handlePC(pc);
+ ListenForIceCandidate(socket, pc);
+ // only offer can create the data cahnnel
+ dataChannel = pc.createDataChannel("chat");
+ handelDataChannel(dataChannel, partnerIntrests);
+
+ // Offer Creation
+ const offer = await pc.createOffer();
+ await pc.setLocalDescription(offer);
+ //console.log('Offer Created:', offer);
+ SendOffer(offer, partnerID);
+
+ ListenForAnswer(socket, pc);
+}
+const InitaliseAnswerer = () => {
+ pc = new RTCPeerConnection(configuration);
+ if (localStream) {
+ localStream.getTracks().forEach(track => pc.addTrack(track, localStream));
+ }
+ handlePC(pc);
+ // Answerer Will not create the data channel
+ ListenForIceCandidate(socket, pc);
+ ListenForOffer(socket, pc);
+}
+
+const handlePC = (pc) => {
+ pc.onicecandidate = (e) => {
+ if (e.candidate) {
+ // console.log('New Ice Candidate:', JSON.stringify(e.candidate));
+ SendCandidate(e.candidate, partnerID);
+ }
+ };
+
+
+ // Handel Status
+ HandelStatus(pc);
+
+ pc.ontrack = (e) => {
+ //console.log('New Track:', e.streams[0]);
+ HandleRemoteStream(e.streams[0]);
+ };
+ pc.onnegotiationneeded = async () => {
+ console.log('Negotiation Needed');
+ };
+ pc.ondatachannel = (e) => {
+ //console.log('New Data Channel:', e.channel);
+ handelDataChannel(e.channel, partnerIntrests);
+ };
+}
+
+const HandelStatus = (pc) => {
+
+ // webrtc status updaters
+ function updateState(stateName, newValue) {
+ try {
+ document.getElementById(stateName).textContent = newValue;
+ } catch (e) {
+ //console.log(e);
+ }
+ }
+ // Event listeners for state changes
+ pc.addEventListener('connectionstatechange', () => {
+ updateState('connection-state', pc.connectionState);
+ if (pc.connectionState === "connected") {
+ updateWaitForPartner(`Connected with parnter (${partnerID})`);
+ }
+ else if (pc.connectionState === "disconnected") {
+ updateWaitForPartner(`Disconnected with parnter (${partnerID})`);
+ partnerID = null;
+ HangUp();
+ }
+ });
+ pc.addEventListener('iceconnectionstatechange', () => {
+ updateState('ice-connection-state', pc.iceConnectionState);
+ });
+ pc.addEventListener('icegatheringstatechange', () => {
+ updateState('ice-gathering-state', pc.iceGatheringState);
+ });
+ pc.addEventListener('signalingstatechange', () => {
+ updateState('signaling-state', pc.signalingState);
+ });
+ updateState('connection-state', pc.connectionState);
+ updateState('ice-connection-state', pc.iceConnectionState);
+ updateState('ice-gathering-state', pc.iceGatheringState);
+ updateState('signaling-state', pc.signalingState);
+}
+
+//Socket Event Listening
+const ListenForAnswer = (socket, pc) => {
+ socket.on("answer", async (answer) => {
+ try {
+ await pc.setRemoteDescription(answer);
+ } catch (error) {
+ console.error("Error setting remote description:", error);
+ }
+ });
+ window.dataChannel = dataChannel;
+ window.pc = pc;
+
+}
+const ListenForOffer = (socket, pc) => {
+ socket.on("offer", async (offer) => {
+ await pc.setRemoteDescription(offer);
+ const answer = await pc.createAnswer();
+ await pc.setLocalDescription(answer);
+ SendAnswer(answer, partnerID);
+ window.pc = pc;
+ });
+}
+const ListenForIceCandidate = (socket, pc) => {
+ socket.on("candidate", async (candidate) => {
+ try {
+ await pc.addIceCandidate(candidate);
+ } catch (e) {
+ console.error("Error Adding Ice Candidate", e);
+ }
+ });
+}
+
+const HangUp = () => {
+ console.log("Hangup Called");
+ // if (startCallBtn) {
+ // startCallBtn.disabled = false;
+ // }
+ // handUpBtn.disabled = true;
+
+ if (pc) {
+ pc.close();
+ }
+ if (dataChannel) {
+ dataChannel.close();
+ }
+ if (localStream) {
+ localStream.getTracks().forEach(track => track.stop());
+ }
+ partnerID = null;
+ dataChannel = null;
+ localStream = null;
+ pc = null;
+ window.pc = null
+ socket = null;
+ // webrtc status updaters
+ function updateState(stateName, newValue) {
+ try {
+ document.getElementById(stateName).textContent = newValue;
+ } catch (e) {
+ // console.log(e);
+ }
+ }
+ updateState('connection-state', "------------");
+ updateState('ice-connection-state', "------------");
+ updateState('ice-gathering-state', "------------");
+ updateState('signaling-state', "------------");
+ // Waiting for partner Status
+ updateWaitForPartner("----------");
+
+}
+const SendHungUpFunction = () => {
+ try {
+ //console.log("Hangup Clicked");
+ if (window.partnerID !== null) {
+ SendHangUP("bye", partnerID);
+ HangUp();
+ //console.log("Hangup Sent");
+ }
+ else {
+ console.log("No Partner ID Found");
+ }
+ }
+ catch (e) {
+ // console.log(e);
+ }
+}
+if (handelLikes) {
+ handelLikes(likes);
+ window.likes = likes;
+}
+
+export { StartCall, HangUp, SendHungUpFunction, likes, partnerID, Socket }
diff --git a/js/socket.js b/js/socket.js
new file mode 100644
index 0000000..44cf21c
--- /dev/null
+++ b/js/socket.js
@@ -0,0 +1,123 @@
+/*************************************************
+ * Refactered
+ * There is no commonets
+ **************************************************/
+
+let server = "http://localhost:3000";
+const socket = io(server);
+
+// socket.emit('offer', offer, id, (response) => {
+// if (response.status === 'ok') {
+// console.log('Offer Sent Successfully');
+// } else {
+// console.error('Error Sending Offer');
+// }
+// });
+
+
+const UpdateSocketStatus = (status) => {
+ const socketStatus = document.getElementById("socket-status");
+ if (socketStatus) {
+ if (status == "Connected") {
+ socketStatus.textContent = `${status} to server , ID is:(${socket.id})`;
+ }
+ else {
+ socketStatus.textContent = `${status} to server`;
+ }
+
+ }
+};
+socket.on("connect", () => {
+ console.log("Connected to server");
+ UpdateSocketStatus("Connected");
+});
+socket.on("disconnect", () => {
+ console.log("Disconnected from server");
+ UpdateSocketStatus("Disconnected");
+});
+socket.on("reconnect", () => {
+ console.log("Reconnected to server");
+ UpdateSocketStatus("Reconnected");
+});
+socket.on("error", (error) => {
+ console.error("Error:", error);
+ UpdateSocketStatus("Error");
+});
+
+
+const getPartner = (interests) => {
+ return new Promise((resolve, reject) => {
+ socket.emit('getPartner', interests, (response) => {
+ resolve(response);
+ });
+
+ // Handle timeout if acknowledgment is not received within 5 seconds
+ setTimeout(() => {
+ reject(new Error('Timeout: Acknowledgment not received within 5 seconds'));
+ }, 5000);
+ });
+};
+// Function to send 'candidate' event with acknowledgment and handle timeout
+const SendCandidate = (candidate, id) => {
+ return new Promise((resolve, reject) => {
+ socket.emit('candidate', candidate, id, (response) => {
+ resolve(response); // Resolve with response from server
+ });
+
+ // Handle timeout if acknowledgment is not received within 1.5 seconds (1500ms)
+ setTimeout(() => {
+ reject(new Error('Timeout: Acknowledgment not received within 1500ms'));
+ }, 1500);
+ });
+};
+
+// Function to send 'offer' event with acknowledgment and handle timeout
+const SendOffer = (offer, id) => {
+ return new Promise((resolve, reject) => {
+ socket.emit('offer', offer, id, (response) => {
+ resolve(response); // Resolve with response from server
+ });
+
+ // Handle timeout if acknowledgment is not received within 1.5 seconds (1500ms)
+ setTimeout(() => {
+ reject(new Error('Timeout: Acknowledgment not received within 1500ms'));
+ }, 1500);
+ });
+};
+
+// Function to send 'answer' event with acknowledgment and handle timeout
+const SendAnswer = (answer, id) => {
+ return new Promise((resolve, reject) => {
+ socket.emit('answer', answer, id, (response) => {
+ resolve(response); // Resolve with response from server
+ });
+
+ // Handle timeout if acknowledgment is not received within 1.5 seconds (1500ms)
+ setTimeout(() => {
+ reject(new Error('Timeout: Acknowledgment not received within 1500ms'));
+ }, 1500);
+ });
+};
+
+// Function to send 'hangup' event with acknowledgment and handle timeout
+const SendHangUP = (message, id) => {
+ return new Promise((resolve, reject) => {
+ socket.emit('hangup', message, id, (response) => {
+ resolve(response); // Resolve with response from server
+ });
+
+ // Handle timeout if acknowledgment is not received within 1.5 seconds (1500ms)
+ setTimeout(() => {
+ reject(new Error('Timeout: Acknowledgment not received within 1500ms'));
+ }, 1500);
+ });
+};
+
+export {
+ socket,
+ getPartner,
+ SendCandidate,
+ SendOffer,
+ SendAnswer,
+ SendHangUP
+}
\ No newline at end of file
diff --git a/js/stream.js b/js/stream.js
new file mode 100644
index 0000000..4f952c8
--- /dev/null
+++ b/js/stream.js
@@ -0,0 +1,96 @@
+/*************************************************
+ *
+ * Refacered Components if Components not found then there is no error
+ *************************************************/
+
+
+import {localVideo, remoteVideo,muteAudioButton,muteVideoButton} from "./elements.js";
+
+const getStream = async () => {
+ let localStream;
+ const configuration = {
+ video: {
+ width: { exact: 320 },
+ height: { exact: 240 },
+ frameRate: { ideal: 30 },
+ facingMode: 'user', // or 'user' for front-facing camera
+ aspectRatio: 4/3, // Example aspect ratio constraint
+ // Add more video constraints as needed
+ },
+ audio: {
+ echoCancellation: true,
+ noiseSuppression: true,
+ autoGainControl: true, // Enable automatic gain control
+ sampleRate: { ideal: 48000 }, // Ideal sample rate (Hz)
+ channelCount: { ideal: 2 }, // Ideal number of audio channels (stereo)
+ latency: { max: 0.02 }, // Maximum acceptable latency (seconds)
+ // Add more audio constraints as needed
+ },
+ };
+ try{
+ localStream = await navigator.mediaDevices.getUserMedia(configuration);
+ } catch (e) {
+ console.error("Error Getting User Media", e);
+ alert("Please allow the camera and microphone access for video call access");
+ return null;
+ }
+ // const localVideo = localVideo;
+ let isAudioMuted = true;
+ let isVideoMuted = false;
+
+ // Video Audio Mutting/Unmutting
+ if (localStream) {
+ localVideo?.style && (localVideo.style.transform = 'scaleX(-1)');
+ // const muteAudioButton = document.getElementById("mute-audio");
+ // const muteVideoButton = document.getElementById("mute-video");
+ if (muteAudioButton) {
+ const audioTracks = localStream.getAudioTracks();
+ audioTracks.forEach(track => {
+ track.enabled = false;
+ });
+ muteAudioButton.addEventListener("click", () => {
+
+ if (!localStream) return;
+
+
+ if (audioTracks.length === 0) return;
+
+ isAudioMuted = !isAudioMuted;
+ audioTracks.forEach(track => {
+ track.enabled = !isAudioMuted;
+ });
+
+ muteAudioButton.innerHTML = isAudioMuted ? 'mic_off' : 'mic';
+ });
+ }
+ if (muteVideoButton) {
+ muteVideoButton.addEventListener("click", () => {
+ if (!localStream) return;
+ const videoTracks = localStream.getVideoTracks();
+ if (videoTracks.length === 0) return;
+ isVideoMuted = !isVideoMuted;
+ videoTracks.forEach(track => {
+ track.enabled = !isVideoMuted;
+ });
+ muteVideoButton.innerHTML = isVideoMuted ? 'videocam_off' : 'videocam';
+ });
+ }
+ }
+ // Local video stream
+ if (localVideo) {
+ localVideo.srcObject = localStream;
+ }
+ return localStream;
+}
+const HandleRemoteStream = (stream) => {
+ // const remoteVideo = document.getElementById("remote-video");
+ if (remoteVideo) {
+ remoteVideo.style.transform = 'scaleX(-1)';
+ remoteVideo.srcObject = stream;
+ remoteVideo.onloadedmetadata = () => {
+ remoteVideo.play();
+ }
+ }
+}
+
+export { getStream, HandleRemoteStream }
\ No newline at end of file
diff --git a/js/ui.js b/js/ui.js
new file mode 100644
index 0000000..14e32d2
--- /dev/null
+++ b/js/ui.js
@@ -0,0 +1,87 @@
+/*************************************************
+ * Refactered
+ * There is no commonets
+ **************************************************/
+
+import { chatBody,connectDisconnectButton as EscBtn ,totalUsers} from "./elements.js";
+
+import { StartCall, SendHungUpFunction, likes, partnerID, Socket } from "./main.js";
+
+const escMainText = document.getElementById("esc-main-text");
+
+// Wait For Partner WEBRTC (For Testing Only)
+const waitForPrtner = document.getElementById("wait-for-partner");
+const updateWaitForPartner = (status) => {
+ if (waitForPrtner) {
+ waitForPrtner.textContent = status;
+ }
+}
+
+// How Many User Online UI (Depend on socket)
+Socket.on("status", (state) => {
+ if (totalUsers) {
+ totalUsers.textContent = `${state.totalusers}00+ users`;
+ }
+ console.log("totol users");
+});
+
+// Connection Close and Open UI (Start and End Call Depend On main.js)
+let confirmExit = false;
+
+const EscapeHandel = () => {
+ if (partnerID) {
+ if (!confirmExit) {
+ confirmExit = true;
+ // escMainText.textContent = "Are you sure you want to leave the chat?";
+ //escMainText.textContent = "आप चैट छोड़ना चाहते हैं क्या?";
+ escMainText.textContent = "Really?";
+ return;
+ }
+ //escMainText.textContent = "Leaving...";
+ //escMainText.textContent = "छोड़ रहा है...";
+ escMainText.textContent = "Connect";
+ confirmExit = false;
+ SendHungUpFunction();
+ return;
+ }
+ confirmExit = false;
+ escMainText.textContent = "Connecting";
+ EscBtn.disabled = true;
+ if (chatBody) {
+ chatBody.innerHTML = `
+
Looking for someone you can chat with ...
+
+ It may take a little while to find someone with common interests. If you get tired of
+ waiting, you can connect to a completely random stranger instead.
+ `
+ }
+ StartCall(likes);
+}
+
+
+// SConnection Close and Open UI (Start and End Call Depend On main.js) with keyboard Intraction
+if (EscBtn) {
+ EscBtn.addEventListener("click", EscapeHandel);
+}
+window.addEventListener("keydown", (e) => {
+ if (e.key === "Escape") {
+ EscapeHandel();
+ }
+});
+
+
+// Video Control API (Hide the video when textmode is opend)
+const videoContainer = document.getElementById("video-containers");
+if (videoContainer) {
+ let urlParams = new URLSearchParams(window.location.search);
+ let mode = urlParams.get('mode');
+ if (mode === "text") {
+ videoContainer.style.display = "none";
+ }
+ else {
+ videoContainer.style.display = "block";
+ }
+}
+
+
+export { updateWaitForPartner }
\ No newline at end of file
diff --git a/site.webmanifest b/site.webmanifest
new file mode 100644
index 0000000..01b401e
--- /dev/null
+++ b/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "chat.heystranger.live",
+ "short_name": "heystranger.live",
+ "icons": [
+ {
+ "src": "/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone"
+}
\ No newline at end of file
diff --git a/terms-condition.html b/terms-condition.html
new file mode 100644
index 0000000..5a6fd16
--- /dev/null
+++ b/terms-condition.html
@@ -0,0 +1,348 @@
+
+
+
+
+
+
+ Terms & Conditions
+
+
+
+
HeyStranger Terms of Service Agreement
+
Last Updated: 2022-10-06
+
IMPORTANT: PLEASE REVIEW THE ARBITRATION AGREEMENT AND CLASS ACTION WAIVER SET FORTH IN SECTION 9 BELOW
+ CAREFULLY, AS IT WILL REQUIRE YOU TO RESOLVE DISPUTES WITH HeyStranger ON AN INDIVIDUAL BASIS THROUGH FINAL AND
+ BINDING ARBITRATION. BY ENTERING INTO THIS AGREEMENT, YOU EXPRESSLY ACKNOWLEDGE THAT YOU HAVE READ AND
+ UNDERSTAND ALL OF THE TERMS OF THIS AGREEMENT AND HAVE TAKEN TIME TO CONSIDER THE CONSEQUENCES OF THIS IMPORTANT
+ DECISION.
+
1. Applicability and Acceptance of These Terms
+
This Terms of Service Agreement (“Agreement” or “Terms”) is a legal agreement
+ between you and HeyStranger.live, LLC (“HeyStranger”, “we”, or “us”). By
+ accessing or using the HeyStranger website, currently located at HeyStranger.live (the “Site”), or any
+ apps or other services offered or operated by HeyStranger (collectively, the “Services”), or by
+ checking a box or clicking a button signifying your acceptance of these Terms, you acknowledge that you have
+ read, understood and agree to be bound by these Terms. If you do not agree to these Terms, do not access or use
+ any of the Services.
+
When using the Services, you will be subject to HeyStranger’s Community Guidelines (“Community
+ Guidelines”) found here, and any additional guidelines,
+ policies or rules posted on the Services or otherwise made available or disclosed to you (collectively, the
+ “Rules”). All such guidelines, policies and rules are incorporated into these Terms by this
+ reference.
+
2. Use of the Services by Minors and Banned Persons
+
The Services are not available to, and shall not be accessed or used by, persons under the age of
+ 18. BY ACCESSING OR USING THE SERVICES, YOU REPRESENT AND WARRANT THAT YOU ARE AT LEAST 18 YEARS OF
+ AGE.
+
The Services are also not available to, and shall not be accessed or used by, any users previously blocked or
+ otherwise banned from accessing or using the Services.
+
3. Limited License to Use the Services
+
Subject to your compliance with these Terms and all other applicable Rules including but not limited to the
+ Community Guidelines, you are granted a limited, non-exclusive, non-sublicensable, revocable, non-transferable
+ license to access and use the Services solely for your personal and non-commercial use. No licenses or rights
+ are granted to you by implication or otherwise under any intellectual property rights owned or controlled by
+ HeyStranger or its licensors, except for licenses and rights expressly granted in these Terms. HeyStranger can terminate
+ this license as provided in Section 10 below.
+
You are solely responsible for compliance with any and all laws, rules, and regulations that may apply to your
+ use of the Services. You agree that you will comply with these Terms and the Community Guidelines and will not,
+ and will not assist or enable others to:
+
+
breach or circumvent any applicable laws or regulations, agreements with third parties, third-party rights,
+ or our Terms or Rules;
+
use the Services for any commercial or other purposes that are not expressly permitted by these Terms or in
+ a manner that falsely implies HeyStranger’s endorsement, partnership or otherwise misleads others as to your
+ affiliation with HeyStranger;
+
license, sell, transfer, assign, distribute, host, or otherwise commercially exploit the Services;
+
except as explicitly stated herein, copy, reproduce, distribute, republish, download, display, post or
+ transmit the Services, in whole or in part, in any form or by any means;
+
use, display, mirror or frame the Services or any individual element within the Services, the HeyStranger name,
+ any HeyStranger trademark, logo or other proprietary information, or the layout and design of any page or form
+ contained on a page in the Services, without HeyStranger’ express written consent;
+
use any robots, spider, crawler, scraper or other automated means or processes to access, collect data or
+ other content from or otherwise interact with the Services for any purpose;
+
avoid, bypass, remove, deactivate, impair, descramble, or otherwise attempt to circumvent any technological
+ measure implemented by HeyStranger or any of HeyStranger’s providers to protect the Services;
+
modify, make derivative works of, attempt to decipher, decompile, disassemble or reverse engineer any of the
+ software used to provide the Services;
+
take any action that damages or adversely affects, or could damage or adversely affect the performance or
+ proper functioning of the Services; or
+
violate or infringe anyone else’s rights or otherwise cause or threaten harm to anyone.
+
+
Neither the above restrictions, nor the Community Guidelines, the Rules, or anything else in the Terms, shall be
+ construed to create any rights enforceable by users, whether as third-party beneficiaries or otherwise. HeyStranger
+ has the right, but not the obligation, to enforce any of the foregoing.
+
4. User Content and Conduct; User Disputes
+
The Services provide communication channels designed to enable users to communicate with other users. HeyStranger does
+ not exert any control over the individuals you interact with, even if you select the “interest matching” chat
+ option or the college student chat option, which HeyStranger may offer. HeyStranger has no obligation to monitor these
+ communication channels but may, in its discretion, do so in connection with providing the Services. HeyStranger may
+ also terminate, suspend or ban your access to and use of the Services at any time, without notice, for any
+ reason in its sole discretion. You acknowledge and agree that any user content, including without limitation
+ text chats and video chats, is not created, endorsed or controlled by HeyStranger. HeyStranger will not under any
+ circumstances be liable for any user content or activity within the Services. HeyStranger is not responsible for
+ information or content that you choose to share within or through the Services nor is HeyStranger responsible for the
+ content or actions of other users of the Services. HeyStranger is not responsible for maintaining copies of any
+ information or communications you choose to submit to or through the Services.
+
You are solely responsible for your interaction with other users of the Services and other parties that you come
+ in contact with through the Services. To the fullest extent permitted by applicable law, HeyStranger hereby disclaims
+ any and all liability to you or any third party relating to your use of the Services. You acknowledge and agree
+ that HeyStranger does not have any special relationship with you as an end user, and as such, HeyStranger does not owe you
+ any duty to protect you from the acts of other users or other third parties.
+
Parental control protections (such as computer hardware, software, or filtering services) are commercially
+ available and may assist you in limiting minors’ access to materials that may be harmful to or inappropriate for
+ minors. There are a number of websites that provide information about such parental control protections,
+ including but not limited to https://www.connectsafely.org/controls/.
+
5. Intellectual Property Rights
+
The Services may, in their entirety or in part, be protected by copyright, trademark and/or other laws of the
+ United States and other countries. You acknowledge and agree that the Services, including all associated
+ intellectual property rights, are the exclusive property of HeyStranger and/or its licensors or authorizing third
+ parties. You will not remove, alter or obscure any copyright, trademark, service mark or other proprietary
+ rights notices incorporated in or accompanying the Services. All trademarks, service marks, logos, trade names,
+ trade dress and any other source identifiers of HeyStranger used on or in connection with the Services (collectively,
+ the “Marks”) are trademarks or registered trademarks of HeyStranger in the United States and abroad.
+ Trademarks, service marks, logos, trade names and any other proprietary designations of third parties used on or
+ in connection with the Services are used for identification purposes only and may be the property of their
+ respective owners. Use of any third-party trademark is intended only to identify the trademark owner and its
+ goods and services, and is not intended to imply any association between the trademark owner and HeyStranger.
+
6. Assumption of Risk and Disclaimer of Warranties
+
Assumption of Risk. You acknowledge and agree that use of the Services, including your
+ interactions with other users, may carry inherent risk and by accessing and using the Services, you choose to
+ assume those risks voluntarily. To the fullest extent permitted by applicable law, you assume full
+ responsibility for your use of the Services, including your interactions with other users.
+
TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, YOU KNOWINGLY, VOLUNTARILY AND FREELY ASSUME ALL RISKS,
+ BOTH KNOWN AND UNKNOWN, OF ACCESSING OR USING THE SERVICES, EVEN IF THOSE RISKS ARISE FROM THE NEGLIGENCE OR
+ CARELESSNESS OF HeyStranger, THIRD-PARTIES INCLUDING OTHER USERS OF THE SERVICES, OR DEFECTS IN THE SERVICES.
+
No Warranties. TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, HeyStranger PROVIDES THE
+ SERVICES ON AN “AS IS” AND “AS AVAILABLE” AND “WITH ALL FAULTS” BASIS, WITHOUT WARRANTY OF ANY KIND. TO THE
+ FULLEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW, HeyStranger AND ITS AFFILIATES AND LICENSORS DISCLAIM ALL WARRANTIES
+ AND CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF TITLE, IMPLIED
+ WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (EVEN IF HeyStranger IS ADVISED OF
+ SUCH PURPOSE), AND IMPLIED WARRANTIES ARISING FROM A PARTICULAR COURSE OF DEALING OR USAGE OF TRADE. WITHOUT
+ LIMITING THE FOREGOING, NEITHER HeyStranger NOR ANY OF ITS AFFILIATES OR LICENSORS, NOR ANY OF ITS OR THEIR OFFICERS,
+ DIRECTORS, LICENSORS, EMPLOYEES OR REPRESENTATIVES REPRESENT OR WARRANT (I) THAT THE SERVICES WILL MEET YOUR
+ REQUIREMENTS OR BE ACCURATE, TRUTHFUL, COMPLETE, RELIABLE, OR ERROR FREE, (II) THAT THE SERVICES WILL ALWAYS BE
+ AVAILABLE OR WILL BE UNINTERRUPTED, ACCESSIBLE, TIMELY, RESPONSIVE, OR SECURE, (III) THAT ANY ERRORS OR DEFECTS
+ WILL BE CORRECTED, OR THAT THE SERVICES WILL BE FREE FROM VIRUSES, WORMS, TROJAN HORSES OR OTHER HARMFUL
+ PROPERTIES, (IV) THE ACCURACY, RELIABILITY, TIMELINESS OR COMPLETENESS OF ANY CONTENT AVAILABLE ON OR THROUGH
+ THE SERVICES, (V) ANY IMPLIED WARRANTY ARISING FROM COURSE OF DEALING OR USAGE OF TRADE, OR (VI) THAT ANY
+ CONTENT PROVIDED VIA THE SERVICES IS NON-INFRINGING. NO INFORMATION OR ADVICE PROVIDED THROUGH THE SERVICES BY
+ HeyStranger OR BY HeyStranger’S EMPLOYEES OR AGENTS SHALL CREATE ANY WARRANTY. Some jurisdictions do not allow the
+ exclusion of certain warranties, so some of the above limitations and exclusions may not apply to
+ you.
+
Other Users of the Services. HeyStranger HAS NO CONTROL OVER AND DOES NOT MAKE, AND HEREBY
+ EXPRESSLY DISCLAIMS, ANY REPRESENTATIONS, WARRANTIES OR GUARANTEES AS TO THE CONDUCT, ACTS OR OMISSIONS OF OTHER
+ USERS OF THE SERVICES. YOU ACKNOWLEDGE AND AGREE THAT YOU SHALL LOOK SOLELY TO THE OTHER USERS, AND NOT HeyStranger,
+ WITH RESPECT TO ANY CLAIMS OR CAUSES OF ACTION ARISING FROM OR RELATING TO THE ACTIONS OR CONDUCT OF OTHER USERS
+ OF THE SERVICES. TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, UNDER NO CIRCUMSTANCES SHALL HeyStranger BE
+ RESPONSIBLE FOR ANY LOSS, DAMAGE OR INJURY RESULTING FROM ANY ACTION, CONDUCT OR OMISSION OF ANY OTHER USER OF
+ THE SERVICES.
+
7. Limitation of Liability
+
Limitations on HeyStranger’s Liability. YOU ACKNOWLEDGE AND AGREE THAT, TO THE FULLEST EXTENT
+ PERMITTED BY LAW, THE ENTIRE RISK ARISING OUT OF YOUR ACCESS TO AND USE OF THE SERVICES REMAINS WITH YOU.
+ NEITHER HeyStranger NOR ANY OTHER PARTY INVOLVED IN CREATING, PRODUCING, OR DELIVERING THE SERVICES WILL BE LIABLE TO
+ YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE, EXEMPLARY OR CONSEQUENTIAL
+ DAMAGES, INCLUDING LOST PROFITS, LOSS OF DATA OR LOSS OF GOODWILL, SERVICE INTERRUPTION, COMPUTER DAMAGE OR
+ SYSTEM FAILURE OR THE COST OF SUBSTITUTE PRODUCTS OR SERVICES, OR FOR ANY DAMAGES FOR PERSONAL OR BODILY INJURY
+ OR EMOTIONAL DISTRESS ARISING OUT OF OR IN CONNECTION WITH (I) THESE TERMS, (II) THE USE OF THE SERVICES,
+ INCLUDING BUT NOT LIMITED TO ANY DAMAGE CAUSED BY ANY RELIANCE ON, OR ANY DELAYS, INACCURACIES, ERRORS OR
+ OMISSIONS IN, THE SERVICES, WHETHER PROVIDED BY HeyStranger OR BY THIRD PARTIES, (III) THE USE OF OR INABILITY TO USE
+ THE SERVICES FOR ANY REASON, OR (IV) YOUR COMMUNICATIONS, INTERACTIONS OR DEALINGS WITH, OR THE CONDUCT OF,
+ OTHER USERS OF THE SERVICES, WHETHER BASED ON WARRANTY, CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY
+ OR ANY OTHER LEGAL THEORY, AND WHETHER OR NOT HeyStranger HAS BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGE, EVEN
+ IF A LIMITED REMEDY SET FORTH HEREIN IS FOUND TO HAVE FAILED OF ITS ESSENTIAL PURPOSE.
+
IN NO EVENT WILL HeyStranger’S AGGREGATE LIABILITY ARISING OUT OF OR IN CONNECTION WITH THESE TERMS OR YOUR USE OF OR
+ INABILITY TO USE THE SERVICES (INCLUDING BUT NOT LIMITED TO YOUR INTERACTIONS WITH OTHER USERS OF THE SERVICES)
+ EXCEED ONE HUNDRED U.S. DOLLARS (U.S. $100.00).
+
The limitations of damages set forth above are fundamental elements of the basis of the bargain between HeyStranger
+ and you. Some jurisdictions do not allow the exclusion or limitation of liability for consequential or
+ incidental damages, so some of the above limitations and exclusions may not apply to you.
+
No Liability for Non-HeyStranger Actions. TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW,
+ IN NO EVENT WILL HeyStranger BE LIABLE FOR ANY DAMAGES WHATSOEVER, WHETHER DIRECT, INDIRECT, GENERAL, SPECIAL,
+ COMPENSATORY, CONSEQUENTIAL, AND/OR INCIDENTAL, ARISING OUT OF OR RELATING TO THE CONDUCT, ACTS OR OMISSIONS OF
+ YOU OR ANY OTHER THIRD PARTY, INCLUDING OTHER USERS OF THE SERVICES, IN CONNECTION WITH THE USE OF THE SERVICES,
+ INCLUDING WITHOUT LIMITATION, BODILY INJURY, EMOTIONAL DISTRESS, AND/OR ANY OTHER DAMAGES. Some jurisdictions do
+ not allow the exclusion or limitation of liability for consequential or incidental damages, so some of the above
+ limitations and exclusions may not apply to you.
+
8. Indemnification
+
To the maximum extent permitted by applicable law, you agree to release, defend (at HeyStranger’s option), indemnify,
+ and hold HeyStranger and its affiliates and subsidiaries, and their officers, directors, employees and agents,
+ harmless from and against any claims, liabilities, damages, losses, and expenses, including without limitation,
+ reasonable attorney and accounting fees, arising out of or in any way connected with (i) your breach or alleged
+ breach of these Terms or any other applicable policies of HeyStranger (including but not limited to the Guidelines or
+ Rules), (ii) your use of the Services other than as authorized by these Terms, the Guidelines or Rules, (iii)
+ your interactions with other users of the Services, including without limitation any injuries, losses or damages
+ (whether compensatory, direct, incidental, consequential or otherwise) of any kind arising in connection with or
+ as a result of your interactions, (iv) any information or materials you submit through the Services, or (v) your
+ violation, or alleged violation, of any laws, regulations or third-party rights (all of the foregoing,
+ “Claims”). HeyStranger may assume exclusive control of any defense of any Claims (which shall not
+ excuse your obligation to indemnify HeyStranger), and you agree to fully cooperate with HeyStranger in such event. You
+ shall not settle any Claims without prior written consent from HeyStranger.
+
9. Dispute Resolution: Agreement to Arbitrate
+
Please read the following Section 9 carefully, as they affect your rights.
+
9.1 Agreement to Arbitrate and Timing of Claims
+
YOU AND HeyStranger MUTUALLY AGREE THAT ANY DISPUTE, CLAIM OR CONTROVERSY ARISING OUT OF OR RELATING IN ANY WAY TO
+ THESE TERMS OR THE APPLICABILITY, BREACH, TERMINATION, VALIDITY, ENFORCEMENT OR INTERPRETATION THEREOF OR TO THE
+ ACCESS TO AND USE OF THE SERVICES, WHETHER BASED IN CONTRACT, STATUTE, REGULATION, ORDINANCE, TORT (INCLUDING
+ WITHOUT LIMITATION, FRAUD, MISREPRESENTATION, FRAUDULENT INDUCEMENT, OR NEGLIGENCE), OR ANY OTHER LEGAL OR
+ EQUITABLE THEORY (COLLECTIVELY, “DISPUTE”) WILL BE SETTLED BY BINDING INDIVIDUAL ARBITRATION
+ (THE “ARBITRATION AGREEMENT”). ARBITRATION MEANS THAT THE DISPUTE WILL BE RESOLVED BY A NEUTRAL
+ ARBITRATOR INSTEAD OF IN A COURT BY A JUDGE OR JURY. THE ARBITRATOR WILL DECIDE ALL THRESHOLD QUESTIONS,
+ INCLUDING BUT NOT LIMITED TO ISSUES RELATING TO THE ENFORCEABILITY, REVOCABILITY, OR VALIDITY OF THIS
+ ARBITRATION AGREEMENT AND WHETHER EITHER PARTY LACKS STANDING TO ASSERT HIS/HER/ITS CLAIM(S).
+
YOU ACKNOWLEDGE AND AGREE THAT, REGARDLESS OF ANY STATUTE OR LAW TO THE CONTRARY, ANY CLAIM OR CAUSE OF ACTION
+ ARISING OUT OF OR RELATED TO THESE TERMS OR YOUR USE OF THE SERVICES MUST BE FILED WITHIN ONE (1) YEAR AFTER
+ SUCH CLAIM OR CAUSE OF ACTION AROSE OR BE FOREVER BARRED.
+
9.2 Exceptions to the Arbitration Agreement
+
Notwithstanding the Arbitration Agreement, you and HeyStranger each agree that (i) any dispute that may be brought in
+ small claims court may be instituted in a small claims court of competent jurisdiction, (ii) either you or
+ HeyStranger may seek injunctive relief in any court of competent jurisdiction to enjoin infringement or other misuse
+ of either party’s intellectual property rights (including without limitation, violation of any data use
+ restrictions contained in these Terms or other misuse of the Services) or based on other exigent circumstances
+ (e.g., imminent danger or commission of a crime, hacking, cyber-attack).
+
9.3 Pre-Arbitration Notification and Good Faith Negotiation
+
Prior to initiating an arbitration, you agree to provide HeyStranger with notice of the dispute, which notice shall
+ include a brief, written description of the dispute, the relief requested and your contact information. You must
+ send any such notice to HeyStranger by email at disputes@HeyStranger.live, with
+ “HeyStranger-Disputes” in the subject line, and by U.S. mail to HeyStranger.live, LLC, c/o Northwest Registered Agent LLC,
+ 7901 4th St. N., Suite 300, St. Petersburg, FL 33702. The parties agree to use their best efforts to resolve any
+ Dispute that is subject to the notification required under this section through informal negotiation, and good
+ faith negotiations shall be a condition to either party initiating a lawsuit or arbitration in accordance with
+ these Terms. If, after a good faith effort to negotiate, one of us feels the Dispute has not and cannot be
+ resolved informally, the party intending to pursue arbitration agrees to notify the other party via email prior
+ to initiating the arbitration.
+
9.4 The Arbitration
+
Except as provided herein, if we cannot resolve a Dispute by informal negotiation, any Dispute will be resolved
+ only by binding arbitration to be conducted by JAMS under its then current and applicable rules and procedures
+ (“JAMS Rules”), which are located at www.jamsadr.live, and
+ the rules set forth in these Terms. If there is a conflict between the JAMS Rules and the rules set forth in
+ these Terms, the rules set forth in these Terms will govern.
+
The arbitration will be conducted in English by a single arbitrator selected in accordance with JAMS Rules and
+ those rules will govern the payment of all filing, administration, and arbitrator fees unless this Arbitration
+ Agreement expressly provides otherwise. For U.S. residents, the arbitration shall be conducted in the U.S. state
+ in which you reside (subject to the ability of either party to appear at any in-person hearing by telephone or
+ other remote means, as provided below). For residents outside the United States, the arbitration shall be
+ conducted in Portland, Oregon. If the value of the relief sought is U.S. $25,000 or less, the arbitration will
+ be conducted based solely on written submissions; provided, however, that either party may request to have the
+ arbitration conducted by telephone or other remote means or in-person hearing, which request shall be subject to
+ the arbitrator’s discretion. Attendance at any in-person hearing may be made by telephone or other remote means
+ by you and/or us, unless the arbitrator requires otherwise after hearing from the parties on the issue. Keeping
+ in mind that arbitration is intended to be a fast and economical process, either party may file a dispositive
+ motion to narrow the issues or claims. Subject to the exclusions and waivers in these Terms, the arbitrator may
+ award any individual relief or individual remedies that are permitted by applicable law. The arbitrator’s award
+ shall be made in writing but need not provide a statement of reasons unless requested by a party or required
+ under applicable JAMS Rules. The arbitrator’s award shall be final and may be enforced in any court of competent
+ jurisdiction. Each party shall pay its own attorneys’ fees and costs unless there is an applicable statutory
+ provision requiring the prevailing party to be paid its attorneys’ fees and costs, in which case, a prevailing
+ party attorneys’ fees award shall be determined by applicable law.
+
The Federal Arbitration Act, applicable federal law, and the laws of the State of Oregon, without regard to
+ principles of conflict of laws, will govern any Dispute.
+
9.5 No Class Actions or Representative Proceedings
+
YOU AND HeyStranger ACKNOWLEDGE AND AGREE THAT TO THE FULLEST EXTENT PERMITTED BY LAW, WE ARE EACH WAIVING THE RIGHT
+ TO PARTICIPATE AS A PLAINTIFF OR CLASS MEMBER IN ANY PURPORTED CLASS ACTION LAWSUIT, CLASS-WIDE ARBITRATION,
+ PRIVATE ATTORNEY GENERAL ACTION, OR ANY OTHER REPRESENTATIVE PROCEEDING AS TO ALL DISPUTES. YOU AND HeyStranger AGREE
+ THAT THERE WILL BE NO CLASS ARBITRATION OR ARBITRATION IN WHICH AN INDIVIDUAL ATTEMPTS TO RESOLVE A DISPUTE AS A
+ REPRESENTATIVE OF ANOTHER INDIVIDUAL OR GROUP OF INDIVIDUALS. FURTHER, YOU AND HeyStranger AGREE THAT A DISPUTE
+ CANNOT BE BROUGHT AS A CLASS OR OTHER TYPE OF REPRESENTATIVE ACTION, WHETHER WITHIN OR OUTSIDE OF ARBITRATION,
+ OR ON BEHALF OF ANY OTHER INDIVIDUAL OR GROUP OF INDIVIDUALS.
+
If the class action waiver contained in this Section 9.5 is determined to be illegal or unenforceable, this
+ entire Arbitration Agreement will be unenforceable, and the Dispute will be decided by the courts in the state
+ of Oregon, Multnomah County, or the United States District Court for the Oregon, and the parties irrevocably
+ submit to the exclusive jurisdiction of such courts.
+
9.6 Jury Trial Waiver
+
YOU AND HeyStranger ACKNOWLEDGE AND AGREE THAT WE ARE EACH WAIVING THE RIGHT TO A TRIAL BY JURY AS TO ALL ARBITRABLE
+ DISPUTES AND AS TO ANY DISPUTE THAT PROCEEDS IN COURT RATHER THAN ARBITRATION AS PROVIDED HEREIN.
+
9.7 Severability
+
Except as provided in Section 9.5, in the event that any portion of this Arbitration Agreement is deemed illegal
+ or unenforceable, such provision shall be severed and the remainder of the Arbitration Agreement shall be given
+ full force and effect. If the arbitrator determines this Section 9 is unenforceable, invalid or has been revoked
+ as to any claim(s), then the Dispute as to such claim(s) will be decided by the courts in the state of Oregon,
+ Multnomah County, or the United States District Court for the Oregon, and the parties irrevocably submit to the
+ exclusive jurisdiction of such courts.
+
10. Term, Termination, and Survival
+
This Agreement will remain in full force and effect while you use the Services in accordance with these Terms and
+ any additional applicable Rules. HeyStranger may terminate this Agreement at any time without notice if we believe
+ that you have breached this Agreement or the Community Guidelines, including but not limited to, by using the
+ Services for non-personal use, engaging in prohibited activities, and any breach of your representations and
+ warranties. All provisions of this Agreement which by their nature should survive termination shall survive
+ termination, including without limitation, ownership provisions, warranty disclaimers, assumption of risk
+ agreement, release of claims, indemnity, limitations of liability, and dispute resolution.
+
11. General
+
11.1 Privacy Notice and Law Enforcement Inquiries
+
HeyStranger maintains a Privacy Policy describing the collection, retention, and use of information related to your
+ use of the Services. You can find the Privacy Policy, which is incorporated by reference into this Agreement, here.
+
HeyStranger’s obligations are subject to existing laws and legal process. Therefore, HeyStranger complies with valid legal
+ process (e.g., court order, search warrant, subpoena or similar legal process) issued in compliance with
+ applicable law from law enforcement agencies. Law enforcement may submit requests for information and legal
+ process to HeyStranger’s registered agent at the following address:
+
+
HeyStranger.live, LLC
+ c/o Northwest Registered Agent LLC
+ 7901 4th St. N., Suite 300
+ St. Petersburg, FL 33702
+
+
Law enforcement may also submit requests for information and legal process from an official government-issued
+ email address (e.g., name@agency.gov) to HeyStranger at lawenforcement@HeyStranger.live with “HeyStranger-LEO” in the subject line.
+ Non-law enforcement requests should not be submitted to this email address. HeyStranger will not respond to
+ correspondence sent by non-law enforcement officials to this email address. Please note that the
+ email address for law enforcement requests is provided for convenience only and does not waive any objections
+ HeyStranger may have, including the lack of jurisdiction or proper service.
+
11.2 Feedback
+
We welcome and encourage you to provide feedback, comments and suggestions for improvements to the Services
+ (collectively, “Feedback”). You may submit Feedback by emailing us at feedback@HeyStranger.live with “HeyStranger-Feedback” in the subject line. Any
+ Feedback you submit to us will be considered non-confidential and non-proprietary to you. By submitting Feedback
+ to us, you grant us a non-exclusive, worldwide, royalty-free, irrevocable, sub-licensable, perpetual license to
+ use and publish those ideas and materials for any purpose, without compensation to you.
+
11.3 Third-Party Links and Services
+
The Services may contain links to other websites, businesses, resources and advertisers, and other sites may link
+ to the Services. Clicking on a link will redirect you away from the Services to a third-party site or service.
+ HeyStranger is not responsible for examining or evaluating, and does not warrant the goods, services or offerings of
+ any third party or the content of their websites or advertisements. Consequently, HeyStranger does not assume any
+ liability or responsibility for the accuracy, actions, products, services, practices, availability or content of
+ such third parties. You should direct any concerns regarding other sites and services to their operators.
+
11.4 Assignment
+
You may not assign, transfer or delegate this Agreement and your rights and obligations hereunder without
+ HeyStranger’s prior written consent. HeyStranger may, without restriction, assign, transfer or delegate this Agreement and
+ any rights and obligations hereunder, at its sole discretion.
+
11.5 Changes to the Services or the Terms
+
HeyStranger reserves the right, at any time and in our sole discretion, to amend, modify, suspend, or terminate,
+ temporarily or permanently, the Services, and any part thereof, without notice to you. HeyStranger shall have no
+ liability to you or any other person or entity for any modification, suspension, or termination of the Services
+ or any part thereof.
+
HeyStranger reserves the right to modify these Terms (effective on a prospective basis) at any time in accordance with
+ this provision. Therefore, you should review these Terms regularly. If we make changes to these Terms, we will
+ post the revised Terms on the Services and update the “Last Updated” date at the top of these Terms. If you do
+ not terminate this Agreement before the date the revised Terms become effective, your continued access to or use
+ of the Services will constitute acceptance of the revised Terms.
+
Special terms or rules may apply to some Services. Any such terms are in addition to these Terms. In the event of
+ any conflict or inconsistency between these Terms, our Privacy Notice, and any rules, restrictions, limitations,
+ terms and/or conditions that may be communicated to users of the Services, HeyStranger shall determine which rules,
+ restrictions, limitations, terms and/or conditions shall control and prevail, in our sole discretion, and you
+ specifically waive any right to challenge or dispute such determination.
+
11.6 No Third-Party Beneficiaries
+
This Agreement does not, and is not intended to, confer any rights or remedies upon any person other than the
+ parties hereto.
+
11.7 No Waiver and Severability
+
HeyStranger’s failure to enforce a provision of this Agreement is not a waiver of its right to do so later or to
+ enforce any other provision. Except as expressly set forth in this Agreement, the exercise by either party of
+ any of its remedies under this Agreement will be without prejudice to its other remedies under this Agreement or
+ otherwise permitted under law.
+
Except as explicitly provided herein, if any provision of this Agreement is held to be unenforceable for any
+ reason, such provision will be reformed only to the extent necessary to make it enforceable, and such decision
+ will not affect the enforceability of such provision under other circumstances, or of the remaining provisions
+ hereof under all circumstances.
+
11.8 Governing Law and Venue
+
These Terms will be interpreted in accordance with the laws of the State of Oregon and the United States of
+ America, without regard to conflict-of-law provisions. Judicial proceedings (other than small claims
+ proceedings) that are excluded from the Arbitration Agreement in Section 9 must be brought in the state or
+ federal courts located in Portland, Oregon unless we both agree to some other location. You and we both consent
+ to venue and personal jurisdiction in Portland, Oregon.
+
11.9 Entire Agreement
+
Except as it may be supplemented by additional terms and conditions, policies, guidelines or standards as
+ provided herein, this Agreement constitutes the entire agreement between HeyStranger and you pertaining to the
+ subject matter hereof, and supersedes any and all prior oral or written understandings or agreements between
+ HeyStranger and you in relation to the access to and use of the Services.
+
+
+
\ No newline at end of file
diff --git a/test.html b/test.html
new file mode 100644
index 0000000..52004d8
--- /dev/null
+++ b/test.html
@@ -0,0 +1,116 @@
+
+
+
+
+
+ Video Calling App
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test2.html b/test2.html
new file mode 100644
index 0000000..31a18b8
--- /dev/null
+++ b/test2.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+ Video Call with Chat
+
+
+
+
+