for January and February!', link: 'https://pages.courtcall.com/remote-depositions/'},{ text: 'Your Own Virtual Conference Room
For $15.00 Per Month.', link: 'http://pages.courtcall.com/online-collaboration/'},], showAdBar: false, ready: false, isHome: true, } }, watch: { chatWindowVisibility(v) { this.refreshStyles(); } }, methods: { getFirstBackgroundColor() { return this.backgroundColors[0] }, refreshStyles() { if (window.location.pathname.includes("webchat")) { try { const frames = document.getElementsByClassName('zoid-visible'); if (frames.length > 0) { const headers = frames[0].contentDocument.getElementsByClassName('css-g3rfyq'); if (headers.length > 0) { headers[0].style.backgroundColor = '#096099'; } const gradient_bars = frames[0].contentDocument.getElementsByClassName('gradiant-bar'); if (gradient_bars.length > 0) { gradient_bars[0].style.backgroundColor = '#096099'; } const profile_images = frames[0].contentDocument.getElementsByClassName('css-1tdk4zf'); profile_images.forEach((el) => { el.style.backgroundColor = '#4089b2'; }); const profile_images2 = frames[0].contentDocument.getElementsByClassName('css-1ksa5m2'); profile_images2.forEach((el) => { el.style.backgroundColor = '#4089b2'; }); const chatBubbles = frames[0].contentDocument.getElementsByClassName('css-15kvzea'); chatBubbles.forEach((el) => { el.style.backgroundColor = '#096099'; }); const buttons = frames[0].contentDocument.getElementsByClassName('css-lp7280'); buttons.forEach((el) => { el.style.backgroundColor = '#096099'; }); const buttons2 = frames[0].contentDocument.getElementsByClassName('css-z4zi5e'); buttons2.forEach((el) => { el.style.backgroundColor = '#096099'; }); } } catch (ex) { } } }, getChatVisibility() { if (window.location.pathname.includes("webchat")) { try { const frames = document.getElementsByClassName('zoid-visible'); if (frames.length > 0) { const chat_windows = frames[0].contentDocument.getElementsByClassName('chat-window'); const chatBadges = frames[0].contentDocument.getElementsByClassName('chat-launcher-badge'); if (chat_windows.length > 0) { const chatWindowVisibility = getComputedStyle(chat_windows[0]).visibility; if (chatWindowVisibility) { return chatWindowVisibility; } } } else { return 'hidden'; } } catch { return 'hidden'; } } }, getAd: function(i) { if (i > this.adItems.length - 1) { return null } else { return this.adItems[i] } }, HideAdBar: function() { this.showAdBar = false }, ShowAdBar: function() { this.showAdBar = true }, shuffleArray: function(array) { for (let i = array.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [array[i], array[j]] = [array[j], array[i]]; } }, ShowChat: function() { if (window.location.pathname.includes("webchat")) { try { const frames = document.getElementsByClassName('zoid-visible'); if (frames.length > 0) { const chatBadges = frames[0].contentDocument.getElementsByClassName('chat-launcher-badge'); if (chatBadges.length > 0 && this.getChatVisibility() !== 'visible') { chatBadges[0].click(); } else { return false; } return true; } else { return false; } } catch (ex) {} return false; } else { window.location.href = "/webchat/"; } }, }, mounted() { for (let i = 0; i < 100; i++) { this.shuffleArray(this.adItems); this.shuffleArray(this.backgroundColors); } setTimeout(() => { this.ready = true; this.ShowAdBar(); }, 1000); if (window.location.pathname.includes("webchat")) { const func = () => { const result = this.ShowChat(); if (!result) { setTimeout(() => { func(); }, 250); } else {} }; const func2 = () => { this.chatWindowVisibility = this.getChatVisibility(); this.refreshStyles(); setTimeout(() => { func2(); }, 50); }; setTimeout(() => { func2(); func(); }, 250); } }, });