1jQuery(document).ready(function () { 2 jQuery('.ctcc-inner').prepend('<span class="sogo-cookie-title">Sogolytics Uses Cookies</span>'); 3 jQuery('.ctcc-right-side').prepend('<a class="sogo--cookie-preferences" href="javascript:void(0)">Customize</a><a href="javascript:void(0)" id="" class="sogo--save-accept coockie_cookieall">Accept All Cookies</a>'); 4 function handleScrollState() { 5 if (jQuery('html').hasClass('has-cookie-bar')) { 6 //jQuery('html, body').css('overflow', 'hidden'); 7 } else { 8 //jQuery('html, body').css('overflow', 'visible'); 9 } 10 } 11 // Run once on load 12 //handleScrollState(); 13 // Watch for class changes on <html> 14 const observer = new MutationObserver(function () { 15 //handleScrollState(); 16 }); 17 18 observer.observe(document.documentElement, { 19 attributes: true, 20 attributeFilter: ['class'] 21 }); 22 23 jQuery('#catapultCookie').hide(); 24 jQuery(".checkbox--1").prop("checked", true); 25 jQuery('#checkbox--1').addClass('active-class'); 26 jQuery('.sogo--cookie-preferences').on('click', function () { 27 jQuery('html, body').css('overflow', 'hidden'); 28 jQuery('#sogo--cookie-preferences-parent').fadeIn(); 29 }); 30 jQuery('.close-prefs').on('click', function () { 31 jQuery('html, body').css('overflow', 'visible'); 32 jQuery('#sogo--cookie-preferences-parent').fadeOut(); 33 }); 34 jQuery('.sogo--switch input').on('change', function () { 35 if (jQuery(this).hasClass('checkbox--1')) { jQuery(".checkbox--1").prop("checked", true); jQuery('#checkbox--1').addClass('active-class'); } 36 else { 37 if (jQuery('#' + jQuery(this).attr('class')).hasClass('active-class')) { 38 jQuery('#' + jQuery(this).attr('class')).removeClass('active-class'); 39 } else { 40 jQuery('#' + jQuery(this).attr('class')).addClass('active-class'); 41 } 42 } 43 44 }); 45}) 46$(document).ready(function () { 47 // Define an array of URLs you want to check 48 var existingMetaTag = jQuery('meta[name="robots"]'); 49 // If the meta tag exists, add "noodp" to its content attribute 50 if (existingMetaTag.length > 0) { 51 existingMetaTag.attr('content', existingMetaTag.attr('content') + ', noodp, noydir'); 52 } else { 53 // If the meta tag doesn't exist, create a new one and append it to the <head> element 54 $('<meta>').attr('name', 'robots').attr('content', 'noodp, noydir').appendTo('head'); 55 } 56}); 57 58 59//Menu Changes Js 60jQuery(document).ready(function () { 61 // Menu(PX) Backup - start 62 /*menu extedned 01-12*/ 63 // jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul").css('width', jQuery(window).width() + 'px'); 64 // jQuery('.sogo-product-megamenu>a').on("click mouseover", function () { 65 // jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul").css('width', jQuery(window).width() + 'px'); 66 // jQuery(".sogo-product-megamenu> ul").css("left", "-" + jQuery(".sogo-product-megamenu>a").offset().left + "px"); 67 // jQuery(".sogo-product-megamenu> ul >li:first-child").css("padding-left", jQuery("#haeder-logo").offset().left - 18 + "px"); 68 // }) 69 // jQuery('.sogo-solution-megamenu>a').on("click mouseover", function () { 70 // jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul").css('width', jQuery(window).width() + 'px'); 71 // jQuery(".sogo-solution-megamenu> ul").css("left", "-" + jQuery(".sogo-solution-megamenu>a").offset().left + "px"); 72 // jQuery(".sogo-solution-megamenu> ul >li:first-child").css("padding-left", jQuery("#haeder-logo").offset().left - 5 + "px"); 73 // }) 74 /*Pricing product option added - 27-10-2022 - start*/ 75 // jQuery('.sogo-pricing-product-megamenu>a').on("click mouseover", function () { 76 // jQuery(".sogo-pricing-product-megamenu > ul").css('width', jQuery(window).width() + 'px'); 77 // jQuery(".sogo-pricing-product-megamenu > ul").css("left", "-" + jQuery(".sogo-pricing-product-megamenu>a").offset().left + "px"); 78 // }) 79 // $(window).bind("load resize", function () { 80 // jQuery(".sogo-pricing-product-megamenu > ul").css('width', jQuery(window).width() + 'px'); 81 // jQuery(".sogo-pricing-product-megamenu >
81 ul").css("left", "-" + jQuery(".sogo-pricing-product-megamenu>a").offset().left + "px"); 82 // }) 83 /*Pricing product option added - 27-10-2022 - end*/ 84 85 // $('.sogo-solution-megamenu').first('.sub-menu').find('.sogo-solution-block:nth-child(2)').attr('id', 'solution-industry-div'); 86 // $('#mobile-nav').find('.sogo-solution-megamenu').first('.sub-menu').find('.sogo-solution-block:nth-child(2)').attr('id', 'solution-industry-div-mob'); 87 // $('#solution-industry-div > a + ul> li').addClass('solution-industry-subDiv'); 88 // $('#solution-industry-div-mob > a + ul> li').addClass('solution-industry-subDiv'); 89 90 // Mega menu below code - 29th April - start 91 //jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul,.sogo-resources-block > ul").css('width', jQuery(window).width() + 'px'); 92 //jQuery('.sogo-product-megamenu>a').on("click mouseover", function () { 93 //jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul").css('width', jQuery(window).width() + 'px'); 94 //jQuery(".sogo-product-megamenu> ul").css("left", "-" + jQuery(".sogo-product-megamenu>a").offset().left + "px"); 95 //jQuery(".sogo-product-megamenu> ul >li:first-child").css("padding-left", jQuery("#haeder-logo").offset().left - 18 + "px"); 96 //changeTabIndex(".sogo-product-megamenu"); 97 //}) 98 //jQuery('.sogo-solution-megamenu>a').on("click mouseover", function () { 99 //jQuery(".sogo-product-megamenu >ul,.sogo-solution-megamenu > ul").css('width', jQuery(window).width() + 'px'); 100 //jQuery(".sogo-solution-megamenu> ul").css("left", "-" + jQuery(".sogo-solution-megamenu>a").offset().left + "px"); 101 //jQuery(".sogo-solution-megamenu> ul >li:first-child").css("padding-left", jQuery("#haeder-logo").offset().left - 18 + "px"); 102 //changeTabIndex(".sogo-solution-megamenu"); 103 //}) 104 //jQuery('.sogo-resources-block>a').on("click mouseover", function () { 105 //jQuery(".sogo-resources-block> ul").css("transform", "none"); 106 //jQuery(".sogo-resources-block > ul").css('width', jQuery(window).width() + 'px'); 107 //jQuery(".sogo-resources-block> ul").css("left", "-" + jQuery(".sogo-resources-block>a").offset().left + "px"); 108 //jQuery(".sogo-resources-block> ul >li:first-child").css("padding-left", jQuery("#haeder-logo").offset().left - 18 + "px"); 109 //changeTabIndex(".sogo-resources-block"); 110 //}) 111 112 function setupMegaMenu(menuLinkSelector, targetULSelector) { 113 jQuery(menuLinkSelector).on("click mouseover", function () { 114 const $ul = jQuery(targetULSelector); // use the second parameter for target UL 115 const windowWidth = jQuery(window).width(); 116 const logoLeft = jQuery("#haeder-logo").offset().left - 18; 117 const linkLeft = jQuery(this).offset().left; 118 119 // Apply styles 120 $ul.css({ 121 "transform": "none", 122 "width": windowWidth + 'px', 123 "left": "-" + linkLeft + "px" 124 }); 125 126 $ul.find('> li:first-child').css("padding-left", logoLeft + "px"); 127 128 changeTabIndex(targetULSelector); // still pass the target for tab index function 129 }); 130 } 131 132 // Set initial width 133 jQuery(".sogo-product-megamenu > ul, .sogo-solution-megamenu > ul, .sogo-company-block.menu-item-176759 > ul, .sogo-resources-block.menu-item-171568 > ul").css('width', jQuery(window).width() + 'px'); 134 135 // Initialize all menus dynamically 136 setupMegaMenu(".sogo-product-megamenu > a", ".sogo-product-megamenu > ul"); 137 setupMegaMenu(".sogo-solution-megamenu > a", ".sogo-solution-megamenu > ul"); 138 setupMegaMenu(".sogo-company-block.menu-item-176759 > a", ".sogo-company-block.menu-item-176759 > ul"); 139 setupMegaMenu(".sogo-resources-block.menu-item-171568 > a", ".sogo-resources-block.menu-item-171568 > ul"); 140 141 142 jQuery('.sogo-solution-megamenu').first('.sub-menu').find('.sogo-solution-block:nth-child(2)').attr('id', 'solution-industry-div'); 143 jQuery('#mobile-nav').find('.sogo-solution-megamenu').first('.sub-menu').find('.sogo-solution-block:nth-child(2)').attr('id', 'solution-industry-div-mob'); 144 jQuery('#solution-industry-div > a + ul> li').addClass('solution-industry-subDiv'); 145 jQuery('#solution-industry-div-mob > a + ul> li').addClass('solution-industry-subDiv');
146 /*Click menu code*/ 147 148 jQuery('.header-v1 #navigation > ul#nav > li >a').hover(function () { 149 return false; 150 }) 151 jQuery('.header-v1 #navigation > ul#nav > li').hover(function () { 152 return false; 153 }) 154 jQuery('.header-v1 #navigation > ul#nav > li >a').on('mouseout', function () { 155 return false; 156 }) 157 jQuery('.header-v1 #navigation > ul#nav > li').on('mouseout', function () { 158 return false; 159 }) 160 //Need to check for after clicking desappear menu option 161 jQuery('body').click(function (e) { 162 if (jQuery(e.target).closest("#nav").length > 0) { 163 164 } else { 165 jQuery('.sub-menu').css('display', 'none'); 166 jQuery(".megamenu_overlay").css("display", "none") 167 } 168 }); 169 170 jQuery('.header-v1 #navigation > ul > li >a,.sogo-resource-avail a').on('click', function (e) { 171 e.stopPropagation(); 172 jQuery(".top-drop-down-option").addClass('top-show-hide'); 173 jQuery('.sub-menu').not(jQuery(this).next('.sub-menu')).css('display', 'none'); 174 jQuery(jQuery(this).next('.sub-menu')).toggle(); 175 jQuery('.tab-more-list').hide(); 176 if (jQuery(this).closest('li').attr('id') == 'menu-item-15422' || jQuery(this).closest('li').attr('id') == 'menu-item-15421') { 177 if (jQuery(jQuery(this).next('.sub-menu')).css('display') == 'none') { 178 jQuery(".megamenu_overlay").css("display", "block"); 179 } else { 180 jQuery(".megamenu_overlay").css("display", "none"); 181 } 182 } 183 else { 184 jQuery(".megamenu_overlay").css("display", "none"); 185 } 186 }); 187 188/*Adding new JS Mega menu changes Start - June 2024*/ 189 190 //Close Menu on clicking outside of div with class name mega-menu-main-container 191 jQuery(document).on('click', function (e) { 192 if (!jQuery(e.target).closest('.mega-menu-main-container').length) { 193 jQuery('.sub-menu').hide(); 194 jQuery(".fa-text-carrot").removeClass("fa-carrot-after"); 195 } 196 }); 197/*Adding new JS Mega menu changes End - June 2024*/ 198 199 jQuery(".sogo-resource-avail").click(function (e) { 200 e.stopPropagation(); 201 }); 202 jQuery(".fa-text-carrot").on("click", function () { 203 if (window.matchMedia('(min-width: 960px)').matches) { 204 if ($(this).hasClass("fa-carrot-after")) { 205 $(this).removeClass("fa-carrot-after"); 206 } 207 else { 208 $(".fa-text-carrot").removeClass("fa-carrot-after"); 209 jQuery(this).addClass("fa-carrot-after"); 210 } 211 } 212 }); 213 $(document).on('click', function (e) { 214 if (window.matchMedia('(min-width: 960px)').matches) { 215 if (!($(e.target).closest('.master-menu').find('.megamenu').hasClass("sogo-product-megamenu"))) { 216 $(".fa-text-carrot").removeClass("fa-carrot-after"); 217 } 218 } 219 }); 220 /*end click menu*/ 221 jQuery("#pop_btn1").click(function () { 222 pop_hide1(); 223 }); 224}); 225function pop_hide1() { 226 jQuery('#emailForm1').css('display', 'block'); 227} 228jQuery(function () { 229 jQuery('#popup-close1').click(function (e) { 230 jQuery('.SignUp-content1').css('display', 'none'); 231 }); 232}); 233 234//Changes by Faizan 235/*Request a Call Popup Html Code*/ 236 237jQuery(document).ready(function($) { 238$('a.sales_call_btn').attr('href', 'javascript:void(0)'); 239 240// Define the HTML content to be added before the element 241var htmlRequestCallPopup = `<div class="sogo-phone-popup-wrapper callPopupHide"> 242<div class="sogo-phone-popup-before-submit"> 243<div class="sogo-phone-popup-closeBtn" onClick="CloseCallPopup(this)"> 244 <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"> 245 <g clip-path="url(#clip0_164_715)"> 246 <path d="M12.6729 0.0878601C13.0161 0.0679035 13.3537 0.182012 13.6144 0.406122C14.1285 0.923342 14.1285 1.75869 13.6144 2.27591L2.3559 13.5344C1.82112 14.0348 0.981971 14.007 0.481564 13.4723C0.0290623 12.9887 0.00268555 12.2454 0.419815 11.7309L11.7446 0.406122C12.002 0.185243 12.3341 0.071353 12.6729 0.0878601Z" fill="#1F1F1F"/> 247 <path d="M1.42762 0.0878305C1.77549 0.0893154 2.1089 0.227398 2.3559 0.472383L13.6144 11.731C14.0908 12.2872 14.026 13.1244 13.4697 13.6007C12.9733 14.0259 12.2411 14.0259 11.7446 13.6007L0.419818 2.34222C-0.114826 1.84168 -0.142468 1.00249 0.358069 0.467841C0.377983 0.446574 0.398551 0.426006 0.419818 0.406093C0.697119 0.16495 1.06206 0.0497074 1.42762 0.0878305Z" fill="#1F1F1F"/> 248 </g> 249 <defs> 250 <clipPath id="clip0_164_715"> 251 <rect width="14" height="14" fill="white" transform="matrix(-1 0 0 -1 14 14.0001)"/> 252 </clipPath> 253 </defs> 254 </svg> 255</div> 256<div class="sogo-phone-popup-main"> 257 <div class="sogo-phone-popup-heading">Connect with our sales team now!</div> 258 <div class="sogo-phone-popup-call-button"> 259 <a href="tel:+1(800)646-0520" rel="noopener" class="slide-btn-wrapper slide-button fill-bg"><i class="fas fa-phone-alt" aria-hidden="true"></i><span>Call Now: +1 (800) 646-0520</span></a> 260 </div> 261 <div class="sogo-phone-popup-divider">OR</div> 262 <div class="sogo-phone-popup-request-a-call-heading">Leave your number and weâll call you!</div> 263</div> 264<div class="sogo-request-a-call-frame"> 265 <iframe id="SogoRequestCallForm" class="sogo-phone-popup-requestCall-form" src="/request_a_call_form/?key=ab577"></iframe> 266</div> 267</div> 268<div class="sogo-phone-popup-after-submit hideInternal"> 269<div class="sogo-phone-popup-after-submit-thankyou-img"> 270 <svg xmlns="http://www.w3.org/2000/svg" width="104" height="104" viewBox="0 0 104 104" fill="none"> 271 <g clip-path="url(#clip0_68_273)"> 272 <path d="M52.5234 0.00467187C52.3498 0.00223437 52.1737 0 52 0C51.8263 0 51.6502 0.00223437 51.4765 0.00467187C22.9988 0.283359 0 23.4561 0 52C0 80.5439 22.9988 103.717 51.4765 103.995C51.6502 103.998 51.8263 104 52 104C52.1737 104 52.3498 103.998 52.5234 103.995C74.6171 103.637 97.0149 80.4938 97.0149 52C97.0149 23.5062 74.6171 0.363391 52.5234 0.00467187Z" fill="#FFCC3D"/> 273 <path d="M70.7612 38.3618C67.1544 38.3618 64.2202 41.296 64.2202 44.9028H77.3023C77.3023 41.2964 74.3679 38.3
273618 70.7612 38.3618Z" fill="#FFBB02"/> 274 <path d="M33.2388 38.3618C29.6319 38.3618 26.6978 41.296 26.6978 44.9028H39.7798C39.7798 41.2964 36.8457 38.3618 33.2388 38.3618Z" fill="#FFBB02"/> 275 <path d="M52.5234 0.00469971C81.0012 0.283387 104 23.4561 104 52C104 80.544 81.0012 103.717 52.5234 103.996C74.6171 103.637 92.4434 80.4938 92.4434 52C92.4434 23.5063 74.6171 0.363418 52.5234 0.00469971Z" fill="#FFBB02"/> 276 <path d="M18.3998 60.0342C20.6089 60.0342 22.3998 58.2433 22.3998 56.0342C22.3998 53.8251 20.6089 52.0343 18.3998 52.0343C16.1907 52.0343 14.3999 53.8251 14.3999 56.0342C14.3999 58.2433 16.1907 60.0342 18.3998 60.0342Z" fill="#FF7A2F"/> 277 <path d="M52.0002 78.8716C42.9946 78.8716 34.5956 74.4014 29.5331 66.914C29.0028 66.1296 29.2087 65.064 29.993 64.5336C30.7775 64.0033 31.8433 64.2094 32.3734 64.9935C36.7975 71.5365 44.1348 75.443 52.0004 75.443C59.8658 75.443 67.2029 71.5368 71.6269 64.9939C72.1569 64.2096 73.2227 64.0035 74.0073 64.534C74.7918 65.0644 74.9976 66.13 74.4672 66.9144C69.4045 74.4016 61.0055 78.8716 52.0002 78.8716Z" fill="#804E30"/> 278 <path d="M77.6184 46.6172C76.6715 46.6172 75.904 45.8496 75.904 44.9028C75.904 42.067 73.5968 39.7599 70.7611 39.7599C67.9255 39.7599 65.6182 42.0668 65.6182 44.9028C65.6182 45.8496 64.8508 46.6172 63.9038 46.6172C62.9569 46.6172 62.1895 45.8496 62.1895 44.9028C62.1895 40.1765 66.0344 36.3314 70.7609 36.3314C75.4874 36.3314 79.3324 40.1763 79.3324 44.9028C79.3326 45.8496 78.5654 46.6172 77.6184 46.6172Z" fill="#804E30"/> 279 <path d="M40.096 46.6172C39.1492 46.6172 38.3816 45.8496 38.3816 44.9028C38.3816 42.067 36.0747 39.7599 33.2387 39.7599C30.4028 39.7599 28.0957 42.0668 28.0957 44.9028C28.0957 45.8496 27.3281 46.6172 26.3814 46.6172C25.4346 46.6172 24.667 45.8496 24.667 44.9028C24.667 40.1765 28.5119 36.3314 33.2385 36.3314C37.965 36.3314 41.8099 40.1763 41.8099 44.9028C41.8101 45.8496 41.0427 46.6172 40.096 46.6172Z" fill="#804E30"/> 280 <path d="M55.4284 85.7287H48.5713C47.6245 85.7287 46.8569 84.9611 46.8569 84.0143C46.8569 83.0675 47.6245 82.2999 48.5713 82.2999H55.4284C56.3754 82.2999 57.1428 83.0675 57.1428 84.0143C57.1428 84.9611 56.3754 85.7287 55.4284 85.7287Z" fill="#FFBB02"/> 281 <path d="M85.6 60.0342C87.8091 60.0342 89.6 58.2433 89.6 56.0342C89.6 53.8251 87.8091 52.0343 85.6 52.0343C83.3909 52.0343 81.6001 53.8251 81.6001 56.0342C81.6001 58.2433 83.3909 60.0342 85.6 60.0342Z" fill="#FF7A2F"/> 282 </g> 283 <defs> 284 <clipPath id="clip0_68_273"> 285 <rect width="104" height="104" fill="white"/> 286 </clipPath> 287 </defs> 288 </svg> 289</div> 290<div class="sogo-phone-popup-thankyou-desc"> 291 <div class="sogo-phone-popup-thankyou-title">Thank you!</div> 292 <div class="sogo-phone-popup-thankyou-message">A member of our sales team will reach out to you soon.</div> 293</div> 294<div class="sogo-phone-popup-close-Slidebutton" onClick="CloseThankyouPopup(this)" > 295 <a href="javascript:void(0)" rel="noopener" class="slide-btn-wrapper slide-button fill-bg"><i class="fal fa-times" aria-hidden="true"></i><span>Close</span></a> 296</div> 297</div> 298</div>`; 299var htmlPhoneIcon = `<a class="sales_call_btn" href="javascript:void(0)"><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 22 22" fill="none"> 300<g clip-path="url(#clip0_232_2645)"> 301<path d="M20.6491 15.5334C20.6126 15.5031 16.4904 12.5703 15.3773 12.7497C14.8404 12.8446 14.5338 13.211 13.9184 13.9439C13.8194 14.0621 13.5809 14.3447 13.3966 14.5461C13.0077 14.4194 12.6284 14.265 12.2616 14.0841C10.3679 13.1622 8.83781 11.6321 7.91587 9.73844C7.73497 9.3716 7.58057 8.99228 7.45388 8.60337C7.656 8.41844 7.93925 8.17987 8.06025 8.07812C8.78969 7.46625 9.15544 7.15894 9.25031 6.62131C9.44487 5.50825 6.49688 1.38737 6.46663 1.35025C6.33237 1.15985 6.15752 1.00164 5.95469 0.887024C5.75186 0.772413 5.52612 0.704265 5.29375 0.6875C4.09887 0.6875 0.6875 5.11225 0.6875 5.85819C0.6875 5.9015 0.750063 10.3042 6.17925 15.8269C11.6958 21.2499 16.0985 21.3125 16.1418 21.3125C16.8871 21.3125 21.3125 17.9011 21.3125 16.7062C21.2956 16.4738 21.2273 16.2481 21.1125 16.0453C20.9978 15.8425 20.8395 15.6676 20.6491 15.5334ZM16.0655 19.9334C15.4688 19.8825 11.77 19.3951 7.15 14.8569C2.58981 10.2142 2.11475 6.50925 2.06731 5.93519C2.96847 4.52075 4.05679 3.2347 5.30269 2.112C5.33019 2.1395 5.36662 2.18075 5.41337 2.23438C6.36888 3.53872 7.19199 4.93506 7.8705 6.40269C7.64985 6.62466 7.41664 6.83378 7.172 7.029C6.79263 7.31806 6.44427 7.64569 6.1325 8.00663C6.07975 8.08064 6.04219 8.16438 6.02202 8.25301C6.00184 8.34163 5.99943 8.43338 6.01494 8.52294C6.16043 9.15319 6.38327 9.76304 6.67837 10.3386C7.73567 12.5098 9.49009 14.2639 11.6614 15.3209C12.2368 15.6165 12.8467 15.8395 13.4771 15.9851C13.5666 16.0009 13.6584 15.9987 13.7471 15.9785C13.8358 15.9583 13.9195 15.9206 13.9934 15.8675C14.3556 15.5545 14.6844 15.2047 14.9744 14.8239C15.1903 14.5668 15.4784 14.2237 15.5877 14.1267C17.059 14.8046 18.4585 15.6287 19.7649 16.5866C19.822 16.6347 19.8626 16.6719 19.8894 16.6959C18.7666 17.9422 17.4803 19.0308 16.0655 19.932V19.9334Z" fill="white"></path> 302<path d="M15.8125 10.3125H17.1875C17.1859 8.85431 16.6059 7.45632 15.5748 6.42522C14.5437 5.39413 13.1457 4.81414 11.6875 4.8125V6.1875C12.7812 6.18859 13.8298 6.62354 14.6031 7.39689C15.3765 8.17024 15.8114 9.21882 15.8125 10.3125Z" fill="white"></path> 303<path d="M19.25 10.3125H20.625C20.6223 7.94297 19.6798 5.67126 18.0043 3.99575C16.3287 2.32023 14.057 1.37773 11.6875 1.375V2.75C13.6925 2.75237 15.6147 3.54989 17.0324 4.96762C18.4501 6.38535 19.2476 8.30753 19.25 10.3125Z" fill="white"></path> 304</g> 305<defs> 306<clipPath id="clip0_232_2645"> 307<rect fill="white" height="22" width="22"></rect> 308</clipPath> 309</defs> 310</svg></a>`; 311if (window.matchMedia('(max-width: 960px)').matches) { 312 $("#phoneIcon").append(htmlPhoneIcon); 313} 314var openPopup = 0; 315$('.sales_call_btn').click(function(event){ 316if(openPopup == 0){ 317 $(this).closest(".contact_sales_click").append(htmlRequestCallPopup); 318 openPopup = 1; 319} 320checkTimeAndToggleDiv(); 321$(".sogo-phone-popup-wrapper").removeClass("callPopupHide"); 322$(".sales_call_btn").addClass("disableState"); 323event.stopPropagation(); 324}); 325 326CloseCallPopup(obj); 327function getESTDate() { 328const now = new Date(); 329const utcOffset = now.getTimezoneOffset(); // Local UTC offset in minutes
330const estOffset = 300; // EST is UTC-5 hours which is 300 minutes 331 332// Calculate the difference in minutes and create a new Date object 333const estDate = new Date(now.getTime() + (utcOffset - estOffset) * 60000); 334 335// Adjust for Daylight Saving Time (if necessary) 336if (estDate.getMonth() >= 2 && estDate.getMonth() <= 10) { // Between March and November 337 const startDST = new Date(estDate.getFullYear(), 2, 14 - (new Date(estDate.getFullYear(), 2, 1).getDay() + 1) % 7, 2, 0); // Second Sunday in March 338 const endDST = new Date(estDate.getFullYear(), 10, 7 - (new Date(estDate.getFullYear(), 10, 1).getDay() + 1) % 7, 2, 0); // First Sunday in November 339 if (estDate >= startDST && estDate < endDST) { 340 estDate.setHours(estDate.getHours() + 1); // EDT (UTC-4) 341 } 342} 343 344return estDate; 345} 346 347function checkTimeAndToggleDiv() { 348const estDate = getESTDate(); 349const estHour = estDate.getHours(); // Get the current hour in EST/EDT 350const estMinutes = estDate.getMinutes(); // Get the current minutes in EST/EDT 351 352// Check if the current time is outside the range 5:30 PM to 4:00 AM EST/EDT 353const isDisabled = (estHour > 17 || (estHour === 17 && estMinutes >= 30)) || (estHour < 4); 354 355if (isDisabled) { 356 $('.sogo-phone-popup-heading').text('Ready to connect?').addClass('sogo-PopupHeading'); 357 $('.sogo-phone-popup-call-button').html('Please leave your number and our sales team will follow up during office hours.').addClass('disabledPopupTxt'); 358 $('.sogo-phone-popup-divider').hide(); 359 $('.sogo-phone-popup-request-a-call-heading').hide(); 360} else { 361 // Reset the div's content and show the divider and heading if necessary 362 $('.sogo-phone-popup-heading').text('Connect with our sales team now!').removeClass('sogo-PopupHeading'); 363 $('.sogo-phone-popup-call-button').html('<a href="tel:+1(800)646-0520" rel="noopener" class="slide-btn-wrapper slide-button fill-bg"><i class="fas fa-phone-alt" aria-hidden="true"></i><span>Call Now: +1 (800) 646-0520</span></a>').removeClass('disabledPopupTxt'); 364 $('.sogo-phone-popup-divider').show(); 365 $('.sogo-phone-popup-request-a-call-heading').show(); 366} 367} 368 369// Run the function when the page loads 370checkTimeAndToggleDiv(); 371 372// Optional: Recheck the time every minute 373setInterval(checkTimeAndToggleDiv, 60000); 374 375 376}); 377 378var obj; 379 380function CloseCallPopup(obj){ 381jQuery(obj).closest(".sogo-phone-popup-wrapper").addClass("callPopupHide"); 382jQuery(obj).closest(".contact_sales_click").find(".sales_call_btn").removeClass("disableState"); 383// $(obj).closest(".contact_sales_click").find(".sogo-phone-popup-wrapper").remove(); 384// $("#phoneIcon").find(".sogo-phone-popup-wrapper").remove(); 385} 386 387function CloseThankyouPopup(obj){ 388jQuery(obj).closest(".sogo-phone-popup-wrapper").addClass("callPopupHide"); 389jQuery(obj).closest(".contact_sales_click").find(".sales_call_btn").removeClass("disableState"); 390 setTimeout(function(){window.parent.open('/','_self')}, 5000); 391} 392/*Request a Call Popup Html Code -End*/ 393 394/*Megamenu Issue*/ 395function hide_mega_menu() { 396 jQuery('.sub-menu').css('display', 'none'); 397 jQuery(".megamenu_overlay").css("display", "none"); 398 jQuery(".fa-text-carrot").removeClass("fa-carrot-after"); 399} 400jQuery(document).on("mousedown", "#menu-item-15421 .sub-menu .sub-menu li a, .menu_horizontal_link", function (e) { 401 if (e.which <= 2) { 402 setTimeout(function () { hide_mega_menu(); }, 500); 403 } 404}); 405jQuery(document).mouseleave(function () { 406 hide_mega_menu() 407}); 408/*Faizan menu issue changes 170823 - start*/ 409$('.sogo-menu-soln-casestudy-btn a').attr("href", "/customer-stories-and-case-studies/"); 410/*Faizan menu issue changes 170823 - end*/ 411function selectNav(elem) { 412 top_text = jQuery(elem).text(); 413 jQuery('#top-option').text('Product: ' + top_text); 414 jQuery('.top-drop-down-option').toggleClass('top-show-hide'); 415} 416function selectCx(elem) { 417 jQuery('#top-option').text("Cx"); 418 jQuery('.top-drop-down-option').toggleClass('top-show-hide'); 419} 420jQuery("#mobile-navigation-btn").click(function (e) { 421 jQuery('.sub-menu').css('display', 'none'); 422 jQuery(".top-drop-down-option").addClass('top-show-hide'); 423}); 424 425$(window).on('load', function () { 426 var imgSrc = [ 427 "/wp-content/uploads/2023/12/home-apple-logo.png", 428 "/wp-content/uploads/2023/12/home-dell-logo.png", 429 "/wp-content/uploads/2023/12/home-3m-logo.png", 430 "/wp-content/uploads/2023/12/home-pepsico-logo.png", 431 "/wp-content/uploads/2023/12/home-yamaha-logo.png", 432 "/wp-content/uploads/2023/12/home-fedex-logo.png", 433 "/wp-content/uploads/2023/12/sogo-citibank-logo.png", 434 "/wp-content/uploads/2023/12/home-cisco-logo.png", 435 "/wp-content/uploads/2023/12/home-embassysuites-logo.png", 436 "/wp-content/uploads/2023/12/home-ibm-logo.png", 437 "/wp-content/uploads/2023/12/home-sony-logo.png", 438 "/wp-content/uploads/2023/12/home-accenture-logo.png" 439 ] 440 var className = [ 441 ".sogo-apple-logo", 442 ".sogo-dell-logo", 443 ".sogo-3m-logo", 444 ".sogo-pepsico-logo", 445 ".sogo-yamaha-logo", 446 ".sogo-fedex-logo", 447 ".sogo-citibank-logo", 448 ".sogo-cisco-logo", 449 ".sogo-EmbassySuites-logo", 450 ".sogo-ibm-logo", 451 ".sogo-sony-logo", 452 ".sogo-accenture-logo", 453 ] 454 if (className.length == imgSrc.length) { 455 for (i = 0; i < imgSrc.length; i++) { 456 jQuery(className[i]).find("img").attr('src', imgSrc[i]); 457 } 458 } 459 460}); 461/*Add new mega menu js - start - 29th Jan 2024 462jQuery(document).ready(function () {*/ 463$(".hide-blank-anchor-tag > a:first-child").remove(); 464function changeTabIndex(parentClass) { 465 466var tabCount = 0; 467 468var allTabs = jQuery(parentClass).find('.mega-menu-ls-wrapper li.sm-tab-wrapper'); 469var currnetIndex = allTabs.index(allTabs.filter('.activeTab')) + 1; 470// var currnetIndex = jQuery(parentClass) 471// .find('.mega-menu-ls-wrapper li.activeTab') 472// .index() + 1; 473 474if (!currnetIndex || currnetIndex < 1) { 475 currnetIndex = 1; 476} 477 478// tabCount = jQuery(parentClass) 479// .find('.mega-menu-ls-wrapper') 480// .find('li a').length; 481 482tabCount = allTabs.length; 483 484if (currnetIndex > tabCount) { 485 currnetIndex = 1; 486} 487 488jQuery(parentClass).find('.ls-menu-tab-content').hide(); 489 490jQuery(parentClass) 491.find('.mega-menu-ls-wrapper li.activeTab') 492.removeClass('activeTab'); 493 494// var currentAncorObj = jQuery(parentClass) 495// .find('.mega-menu-ls-wrapper') 496// .find('li a') 497// .eq(currnetIndex - 1); 498 499var currentAncorObj = allTabs.eq(currnetIndex - 1).find('a'); 500currentAncorObj.parent().addClass('activeTab'); 501 502jQuery(currentAncorObj.attr('href')).show(); 503 504jQuery(".prod-header-img, .rs-video-rightside-image-sec, .case-study-image") 505.addClass("show-nav-img"); 506 507currnetIndex++; 508 509}; 510 511// $('.mega-menu-ls-wrapper li a').on('click', function (event) { 512$('.mega-menu-ls-wrapper li.sm-tab-wrapper a').on('click', function (event) { 513 var currentAnchor = $(this); 514 var parentLi = currentAnchor.parent(); 515 var pageURL = currentAnchor.data('page-url'); 516 517 // If tab already active â redirect 518 if (parentLi.hasClass('activeTab')) { 519 520 if(pageURL){ 521 window.location.href = pageURL; 522 } 523 524 return; 525 } 526 527 // First click â open tab 528 event.preventDefault(); 529 530 $('.mega-menu-main-container').find('.ls-menu-tab-content').hide(); 531 $('.mega-menu-ls-wrapper').find('li.activeTab').removeClass('activeTab'); 532 533 parentLi.addClass('activeTab sfHover'); 534 535 $(currentAnchor.attr('href')).show(); 536 537}); 538 539jQuery(document).ready(function () { 540 541 var currentPath = window.location.pathname.toLowerCase(); 542 543 jQuery('.ls-menu-tab-sec').each(function () { 544 545 var slugs = jQuery(this).attr('data-slugs'); 546 547 if (!slugs) return; 548 549 var slugArray = slugs.split(',').map(function(slug){ 550 return slug.trim().toLowerCase(); 551 }); 552 553 for (var i = 0; i < slugArray.length; i++) { 554 555 if (currentPath.indexOf('/' + slugArray[i]) !== -1) { 556 557 // remove default active tab 558 jQuery('.sm-tab-wrapper').removeClass('activeTab sfHover'); 559 560 var parentLi = jQuery(this).closest('li'); 561 562 parentLi.addClass('activeTab sfHover'); 563 564 jQuery('.ls-menu-tab-content').hide(); 565 566 jQuery(jQuery(this).attr('href')).show(); 567 568 return false;
569 } 570 571 } 572 573 }); 574 575}); 576jQuery(document).ready(function () { 577 jQuery('.product-menu').each(function () { 578 var $container = jQuery(this); 579 $container.find('.mega-menu-tabs.mega-menu-top-sec') 580 .prepend($container.find('.enterprise-label-wrap')); 581 }); 582}); 583 584/* }); 585Add new mega menu js - end - 29th Jan 2024*/ 586 587jQuery(document).ready(function () { 588 jQuery('#haeder-logo').find('img').attr('alt', 'Sogolytics'); 589 if (key_val != '') { 590 jQuery(".new_banner_search").val(key_val) 591 } 592 if (order_val != '') { 593 jQuery(".new_asc").val(order_val) 594 } 595 if (cat_val != '') { 596 jQuery("#select2-browsers-container").html(jQuery("#browsers").find("[data-id='" + cat_val + "']").val()); 597 jQuery(".new_banner_sel").val(jQuery("#browsers").find("[data-id='" + cat_val + "']").val()); 598 //jQuery(".emp_survey_new").html("<span>You searched for: </span>"+ jQuery("#browsers").find("[data-id='" + cat_val+ "']").val()).addClass('emp_survey_new1');//Need to check once 599 } 600 601}) 602 603jQuery(function () { 604 605 jQuery(document).keyup(function (e) { 606 if (e.keyCode == 27) { // Esc 607 jQuery('.popup-close,.sample-survey-close').trigger('click'); 608 jQuery('.grecaptcha-badge').hide(); 609 } 610 }); 611 //----- OPEN 612 jQuery('[data-popup-open]').on('click', function (e) { 613 var targeted_popup_class = jQuery(this).attr('data-popup-open'); 614 jQuery('.grecaptcha-badge').show(); 615 jQuery('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); 616 jQuery("html").css("overflow-y", "hidden"); 617 e.preventDefault(); 618 }); 619 //----- CLOSE 620 jQuery('[data-popup-close]').on('click', function (e) { 621 var targeted_popup_class = jQuery(this).attr('data-popup-close'); 622 jQuery('[data-popup="' + targeted_popup_class + '"]').fadeOut(350); 623 jQuery('.grecaptcha-badge').hide(); 624 if (jQuery('#request-a-demo-banner:visible').length == 0) { jQuery("html").css("overflow-y", "auto"); } 625 e.preventDefault(); 626 }); 627}); 628// Google 629function SignInGoogle(accountType, signInType) { 630 var strURL = "/static/Intermediate/GoogleSignInProcessing.aspx?ref=" + ref; 631 var isPromt = 1; 632 if (accountType.length > 0) 633 strURL += "&TrialAccType=" + accountType + "&isPromt=" + isPromt; 634 if (signInType) { 635 window.open(strURL, '_blank', 'width=505,height=585,scrollbars=yes'); 636 } 637 else { 638 strURL = "/static/Intermediate/GoogleSignInProcessing.aspx?TrialAccType=" + accountType + "&ref=" + ref + "&isPromt=" + isPromt; 639 window.open(strURL, '_blank', 'width=505,height=585,scrollbars=yes'); 640 } 641} 642// Facebook 643function SignInFacebook(accountType, signInType) { 644 var rightNow = new Date(); 645 var jan1 = new Date(rightNow.getFullYear(), 0, 1, 0, 0, 0, 0); 646 var temp = jan1.toGMTString(); 647 var jan2 = new Date(temp.substring(0, temp.lastIndexOf(" ") - 1)); 648 var std_time_offset = (jan1 - jan2) / (1000 * 60 * 60); 649 650 var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); 651 temp = june1.toGMTString(); 652 var june2 = new Date(temp.substring(0, temp.lastIndexOf(" ") - 1)); 653 var daylight_time_offset = (june1 - june2) / (1000 * 60 * 60); 654 var isPromt = 1; 655 if (std_time_offset != daylight_time_offset) { 656 std_time_offset = daylight_time_offset; 657 } 658 var strhost = "https://www.sogolytics.com/"; 659 var strURL = "https://graph.facebook.com/oauth/authorize?client_id=116746321792686&redirect_uri=" + strhost + "static/Intermediate/FacebookIntermediate.aspx?page=4&state=" + accountType + "@ref=" + ref + "@timeoffset=" + std_time_offset + "@@isPromt=" + isPromt + "&scope=email&display=page" 660 661 //var bw = window.open(strURL, '_facebook', 'width=1000,height=600,scrollbars=yes'); bw.focus(); 662 var bw = window.open(strURL, '_self'); 663} 664// Apple 665function SignInApple(accountType, signInType) { 666var isPromt = 1; 667 var strURL = "/t/signup/apple-processing?AccountType=" + accountType + "&isPromt=" + isPromt; 668 window.open(strURL, '_blank', 'width=505,height=585,scrollbars=yes'); 669} 670// Microsoft 671function SignInMicrosoft(accountType, signInType) { 672var isPromt = 1; 673 var strURL = "/t/signup/microsoft-processing?TrialAccType=" + accountType + "&ref=" + ref + "&isPromt=" + isPromt; 674 window.open(strURL, '_blank', 'width=505,height=585,scrollbars=yes'); 675} 676// LinkedIn 677function SignInLinkedin(accountType, signInType) { 678var isPromt = 1; 679 var strURL = "/t/signup/linkedin-processing?TrialAccType=" + accountType + "&ref=" + ref + "&isPromt=" + isPromt; 680 window.open(strURL, '_blank', 'width=505,height=585,scrollbars=yes'); 681} 682 683function ProcessSignUp(id) { 684 var email_id = jQuery('#EmailAddress' + id).val();
685 var toolType = parseInt(jQuery('#toolType' + id).val()); 686 var signupType = 1; //1 - new, 0 - default 687 var isPromt = 1; 688 //var dat =jQuery('#frm_up'+id).serialize(); 689 //var captcha_true = jQuery('#captcha_true').val(); 690 var captcha_true = true; 691 var dat = jQuery('#frm_up' + id).serialize() + '&captcha_true=' + captcha_true; 692 if (captcha_true == 'true') { 693 hideEP('oversCaptcha', 'fadeDiv1'); 694 } 695 696 jQuery.ajax({ 697 url: "/wp-content/themes/Sogosurvey/bbpress.php", 698 data: dat + '&ref=' + ref + '&captcha_true=' + captcha_true + '&toolType=' + toolType + '&signupType=' + signupType, 699 type: "POST", 700 success: function (data) { 701 jQuery('#sogo_loader').css('display', 'none'); 702 703 var obj = jQuery.parseJSON(data); 704 if (obj.ErrorNo == 0) { 705 var finalURL = decodeURIComponent(obj.RedirectUrl); 706 707 // Extract values from CURRENT PAGE URL (pricing / wherever signup was triggered) 708 var originalParams = new URLSearchParams(window.location.search); 709 710 function appendParams(url) { 711 let urlObj = new URL(url); 712 let keys = [ 713 "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", 714 "campaignid", "adgroupid", "adid", "gclid", "gbraid", 715 "FromURL", "FromLandingPage", "AdSource", "UrlReferrer", 716 "Website", "landing_url", "LandingPageUrl", "LeadType", "LeadSource", 717 "SecondaryLeadSource", "Campaign", "Adgroup", "Keyword", 718 "SearchTerm", "ConvertedVia", "refWebsite", "ConversionPageName", 719 "Network", "Channel", "GoogleGclId" 720 ]; 721 722 keys.forEach(key => { 723 let finalVal = getCookie(key) || ""; 724 urlObj.searchParams.set(key, finalVal); 725 }); 726 urlObj.searchParams.set('isPromt', isPromt); 727 return urlObj.toString(); 728 } 729 730 location.href = appendParams(finalURL); 731 } else if (obj.ErrorNo == 1) { 732 733 showEP('overs1', 'fadeDiv1'); 734 hidescrollbar('hidden'); 735 jQuery('#error_mess').html(obj.Error); 736 jQuery('#btnLog').css('display', 'none'); 737 jQuery('#a_cancel').css('display', 'none'); 738 jQuery('#btnOk').css('display', 'inline-block'); 739 740 } 741 else if (obj.ErrorNo == 101) { 742 jQuery("#JpegImage").val(+ Math.random() * 9999); 743 showEP('oversCaptcha', 'fadeDiv1'); 744 hidescrollbar('hidden'); 745 jQuery('#error_mess').html(obj.Error); 746 jQuery('#btnLog').css('display', 'none'); 747 jQuery('#a_cancel').css('display', 'none'); 748 jQuery('#show_id').val(id); 749 750 } 751 752 else { 753 showEP('overs1', 'fadeDiv1'); 754 hidescrollbar('hidden'); 755 jQuery('#error_mess').html(obj.Error); 756 jQuery('#btnLog').css('display', 'inline-block'); 757 jQuery('#a_cancel').css('display', 'inline-block'); 758 jQuery('#btnOk').css('display', 'none'); 759 } 760 761 } 762 }); 763 764} 765 766function CapchaValidation() { 767 try { 768 document.getElementById("btnDone").disabled = true; 769 770 771 if (grecaptcha.getResponse() == '') { 772 alert('Please Verify if you are Human.'); 773 document.getElementById("btnDone").disabled = false; 774 return false; 775 776 } else { 777 var id = jQuery('#show_id').val(); 778 jQuery('#captcha_true').val('true'); 779 ProcessSignUp(id); 780 } 781 } 782 catch (err) { 783 document.getElementById("btnDone").disabled = false; 784 } 785} 786 787 788function showEP(elem, elem2) { 789 d_g_id(elem2).style.display = 'block'; 790 d_g_id(elem).style.display = 'block'; 791 jQuery('html').css('overflow', 'hidden'); 792} 793var isTrialRequest = 0; 794function d_g_id(elem) { 795 return document.getElementById(elem); 796} 797function getWindowDimensions(doc, win) { 798 var w, h, _db; 799 if (typeof (win) == "undefined") _w = window; 800 else _w = win; 801 if (typeof (doc) == "undefined") _d = document; 802 else _d = doc; 803 _db = _d.body; 804 if (_w.innerWidth) { 805 w = _w.innerWidth - 15; 806 h = _w.innerHeight + 2; 807 } 808 else if (_db.parentElement.clientWidth) { 809 w = _db.parentElement.clientWidth; 810 h = _db.parentElement.clientHeight; 811 } 812 else { 813 w = _db.clientWidth; h = _db.clientHeight; 814 } 815 return [w - 22, h]; 816} 817 818 819function hidescrollbar(scrollType) { 820 var BrowserName = new String(); 821 BrowserName = navigator.userAgent; 822 if (BrowserName.indexOf('MSIE') > 0) { 823 document.documentElement.style.overflow = scrollType; 824 } 825 else { 826 // need to check 827 //document.body.style.overflow = scrollType; 828 //window.scrollTo(0,650); 829 } 830} 831function RedirectUrl() { 832 window.location = "/static/login.aspx" 833} 834 835function hideEP(elem, elem2) { 836 try { 837 d_g_id(elem2).style.display = 'none'; 838 d_g_id(elem).style.display = 'none'; 839 jQuery('html').css('overflow', 'auto'); 840 document.body.style.overflow = 'visible'; 841 hidescrollbar('visible'); 842 d_g_id('pricingpopDiv').style.display = 'none'; 843 d_g_id('txtEmailIdIndex').focus = true; 844 }
845 catch (e) { } 846 location.reload(); 847} 848 849function RefereshPage() { 850 //window.location = "/Welcome.aspx?ActMsg=1" 851 window.location = "/t/onboarding/main?ActMsg=1" 852} 853 854jQuery(".sogo-calendly-more a").attr('rel', 'nofollow'); 855/*Card template height*/ 856var card_max = []; 857setTimeout(function () { 858 var j = 0; 859 jQuery(".sogo_threecard .imagebox").each(function () { 860 card_max[j] = jQuery(this).find(".template-head").outerHeight() + jQuery(this).find(".imagebox-img").outerHeight() + jQuery(this).find(".temp-content-home").outerHeight() + jQuery(this).find(".read-more-link").outerHeight(); 861 j++; 862 }); 863 jQuery(".sogo_threecard .imagebox").css("min-height", Math.max.apply(Math, card_max)); 864}, 3000); 865/*Main menu icon hover*/ 866var sogo_sourceSwap = function () { 867 var sogo_newSource = jQuery(this).find("img.sogo-menu-icon").data('alt-src'); 868 jQuery(this).find("img.sogo-menu-icon").data('alt-src', jQuery(this).find("img.sogo-menu-icon").attr('src')); 869 jQuery(this).find("img.sogo-menu-icon").attr('src', sogo_newSource); 870} 871jQuery(function () { 872 jQuery('.sogo-thrice,.emp_satisfaction_menu,.li_faith_based').hover(sogo_sourceSwap, sogo_sourceSwap); 873}); 874/*main menu ends here*/ 875 876//Need to check 877(function ($) { 878 879 var $w = $(window); 880 $.fn.visible = function (flowscroll, partial, hidden, direction, container) { 881 882 if (this.length < 1) 883 return; 884 885 // Set direction default to 'both'. 886 direction = direction || 'both'; 887 888 var $t = this.length > 1 ? this.eq(0) : this, 889 isContained = typeof container !== 'undefined' && container !== null, 890 $c = isContained ? $(container) : $w, 891 wPosition = isContained ? $c.position() : 0, 892 t = $t.get(0), 893 vpWidth = $c.outerWidth(), 894 vpHeight = $c.outerHeight(), 895 clientSize = hidden === true ? t.offsetWidth * t.offsetHeight : true; 896 897 if (typeof t.getBoundingClientRect === 'function') { 898 899 // Use this native browser method, if available. 900 var rec = t.getBoundingClientRect(), 901 start_top = flowscroll ? rec.top + 1000 : rec.top; 902 start_bottom = flowscroll ? rec.bottom - 1000 : rec.bottom; 903 904 start_right = rec.right + 1500; 905 start_left = rec.left - 1500; 906 // console.log(rec.right+" "+ rec.left + " "+ start_right + " "+ start_left); 907 tViz = isContained ? 908 start_top - wPosition.top >= 0 && start_top < vpHeight + wPosition.top : 909 start_top >= 0 && start_top < vpHeight, 910 bViz = isContained ? 911 start_bottom - wPosition.top > 0 && start_bottom <= vpHeight + wPosition.top : 912 start_bottom > 0 && start_bottom <= vpHeight, 913 lViz = isContained ? 914 start_left - wPosition.left >= 0 && start_left < vpWidth + wPosition.left : 915 start_left >= 0 && start_left < vpWidth, 916 rViz = isContained ? 917 start_right - wPosition.left > 0 && start_right < vpWidth + wPosition.left : 918 start_right > 0 && start_right <= vpWidth, 919 vVisible = partial ? tViz || bViz : tViz && bViz, 920 hVisible = partial ? lViz || rViz : lViz && rViz, 921 vVisible = (start_top < 0 && start_bottom > vpHeight) ? true : vVisible, 922 hVisible = (start_left < 0 && start_right > vpWidth) ? true : hVisible; 923 //console.log(this.data('img-src') +" "+rec.top +" "+ vpHeight +" 22 "+ wPosition.top); 924 if (direction === 'both') 925 return clientSize && vVisible && hVisible; 926 else if (direction === 'vertical') 927 return clientSize && vVisible; 928 else if (direction === 'horizontal') 929 return clientSize && hVisible; 930 } else { 931 var viewTop = isContained ? 0 : wPosition,
932 viewBottom = viewTop + vpHeight, 933 viewLeft = $c.scrollLeft(), 934 viewRight = viewLeft + vpWidth, 935 position = $t.position(), 936 _top = position.top, 937 _bottom = _top + $t.height(), 938 _left = position.left, 939 _right = _left + $t.width(), 940 compareTop = partial === true ? _bottom : _top, 941 compareBottom = partial === true ? _top : _bottom, 942 compareLeft = partial === true ? _right : _left, 943 compareRight = partial === true ? _left : _right; 944 945 if (direction === 'both') 946 return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop)) && ((compareRight <= viewRight) && (compareLeft >= viewLeft)); 947 else if (direction === 'vertical') 948 return !!clientSize && ((compareBottom <= viewBottom) && (compareTop >= viewTop)); 949 else if (direction === 'horizontal') 950 return !!clientSize && ((compareRight <= viewRight) && (compareLeft >= viewLeft)); 951 } 952 }; 953 954})(jQuery); 955 956jQuery(document).ready(function () { 957 setTimeout(function () { 958 dev_detect_img(0); 959 dev_detect_vid(0); 960 dev_detect_bg(0); 961 dev_detect_iframe(0); 962 jQuery('.hide_block_b_load').removeClass("hide_block_b_load"); 963 jQuery('.hide_block_topbar_load').removeClass("hide_block_topbar_load"); 964 jQuery('.hide_block_white').removeClass("hide_block_white"); 965 }, 500); 966 jQuery(window).scroll(function () { 967 dev_detect_img(1); 968 dev_detect_vid(1); 969 dev_detect_bg(1); 970 dev_detect_iframe(1); 971 }); 972}); 973function dev_detect_bg(start_flow) { 974 var detectPartial = 'partial'; 975 jQuery('.subsection-media-bg:not(.visible-content-data)').each(function () { 976 var visible = jQuery(this).visible(start_flow, detectPartial); 977 if (visible || start_flow) { 978 jQuery(this).addClass('visible-content-data'); 979 } 980 }); 981} 982function dev_detect_iframe(start_flow) { 983 var detectPartial = 'partial'; 984 jQuery('.subsection-media-iframe:not(.visible-content-data)').each(function () { 985 var visible = jQuery(this).visible(start_flow, detectPartial); 986 if (visible) { 987 var tag = ''; 988 var iframe_src = jQuery(this).data('iframe-src'); 989 var iframe_style = jQuery(this).data('iframe-style'); 990 var iframe_width = jQuery(this).data('iframe-width'); 991 var iframe_height = jQuery(this).data('iframe-height'); 992 var iframe_class = jQuery(this).data('iframe-class'); 993 tag += '<iframe class="' + iframe_class + '" style="' + iframe_style + '"src="' + iframe_src + '" width="' + iframe_width + '" height="' + iframe_height + '" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" allowfullscreen="allowfullscreen"> </iframe>'; 994 jQuery(this).prepend(tag).addClass('visible-content-data'); 995 } 996 }); 997} 998function dev_detect_img(start_flow) { 999 var detectPartial = 'partial'; 1000 1001 jQuery('.subsection-media-img:not(.visible-content-data)').each(function () { 1002 1003 var visible = jQuery(this).visible(start_flow, detectPartial); 1004 1005 if (visible || start_flow) { 1006 var tag = ''; 1007 var img_src = jQuery(this).data('img-src'); 1008 var img_alt = jQuery(this).data('img-alt'); 1009 var img_style = jQuery(this).data('img-style'); 1010 var img_title = typeof jQuery(this).data('img-title') ? '' : jQuery(this).data('img-title'); 1011 var img_class = jQuery(this).data('img-class'); 1012 var img_val = typeof jQuery(this).data('img-srcset') === 'undefined' ? '' : jQuery(this).data('img-srcset'); 1013 1014 var img_tag = jQuery('<img>'); 1015 img_tag.attr('src', img_src).attr('class', img_class).attr('alt', img_alt).attr('title', img_title).attr('style', img_style).attr('srcset', img_val); 1016 jQuery(this).prepend(img_tag).addClass('visible-content-data'); 1017 } 1018 }); 1019} 1020function dev_detect_vid(start_flow) { 1021 var detectPartial = 'partial'; 1022 jQuery('.subsection-media-vid:not(.visible-content-data)').each(function () { 1023 var visible = jQuery(this).visible(start_flow, detectPartial); 1024 //console.log(visible); 1025 if (visible) { 1026 var tag = ''; 1027 var vid_src = jQuery(this).data('vid-src'); 1028 var vid_style = jQuery(this).data('vid-style'); 1029 var vid_type = jQuery(this).data('vid-type'); 1030 var vid_class = jQuery(this).data('vid-class');
1031 tag += ' <video autoplay="" muted="" loop="" class="' + vid_class + '"><source src="' + vid_src + '" type="' + vid_type + '"></video>'; 1032 jQuery(this).prepend(tag).addClass('visible-content-data'); 1033 } 1034 }); 1035} 1036/*User name first letter capital js*/ 1037function toTitleCase(strUserName) { 1038 return strUserName.replace(/\w\S*/g, function (txtUserName) { 1039 return txtUserName.charAt(0).toUpperCase() + txtUserName.substr(1).toLowerCase(); 1040 }); 1041} 1042 1043<!--Request a Demo Popup new banner design--> 1044jQuery(document).ready(function(){ 1045 var act_cat= getUrlParameter('cat') ; 1046 if(act_cat!=''){ 1047 setTimeout(function() { 1048 jQuery('.pricing-tab-header [data-id='+act_cat+'],.tab-more-list [data-id='+act_cat+']').trigger('click'); 1049 }, 100); 1050 } 1051 /*for mob view drop-down select-2*/ 1052 if((act_cat!='') && (getPlatformType() == 'Mobile')) { 1053 setTimeout(function() { 1054 var m_cat_name= jQuery('.js-example-basic-single [data-id='+act_cat+']').val(); 1055 $(".js-example-basic-single").val(m_cat_name); 1056 $('.js-example-basic-single').trigger('change'); 1057 }, 100); 1058 } 1059/*Changes to request a demo form website 12-02-2018*/ 1060jQuery('.banner-request-btn1').hover(function() { 1061 if(jQuery(".newRDemo").length<=0){ 1062 var rd_size='',float_rd=''; 1063 if(jQuery('#requestDemoFrame', window.parent.document).parents('html').width()<= 767){ 1064 rd_size='mobile-request-frame'; 1065 } 1066 jQuery("#requestDemoFrame").attr('src','/pricing/request-demo-enterprise/?z='+rd_size+'&za='+float_rd+'&u='+ random_cal).addClass('newRDemo'); 1067 } 1068}); 1069jQuery('.banner-request-btn1').click(function(event) { 1070 event.stopPropagation(); 1071 jQuery('html').css('overflow-y', 'hidden'); 1072 if(typeof document.getElementById('requestDemoFrame').contentWindow.append_email === 'function'){ 1073 document.getElementById('requestDemoFrame').contentWindow.append_email(); 1074 } 1075 jQuery('.pricing-account-wrapper').hide(); 1076 jQuery("#requestDemoPop, #upgradeRequestDemo").show(); 1077}); 1078/*muti step pop up btn code*/ 1079jQuery('.banner-multistep-request-btn1').click(function(event) { 1080 event.stopPropagation(); 1081 if(jQuery('body').hasClass('page-id-98893') || jQuery('body').hasClass('page-id-19262')){ 1082 jQuery("#requestMultiStepPopFrame").attr('src','').removeClass('newRDemo'); 1083 } 1084 jQuery('.pricing-package-buy-option').removeClass('contact-button'); 1085 if(jQuery(".newRDemo").length<=0){ 1086 let rd_size='',float_rd=''; 1087 if(jQuery('#requestMultiStepPopFrame', window.parent.document).parents('html').width()<= 767){ 1088 rd_size='mobile-request-frame'; 1089 } 1090 jQuery("#requestMultiStepPopFrame").attr('src','/pricing/request-demo-multistep/?z='+rd_size+'&za='+float_rd+'&u='+ random_cal).addClass('newRDemo'); 1091 } 1092 jQuery('#upgradeMultiStepDemo').height('445px'); 1093 jQuery('#upgradeMultiStepDemo').height(jQuery('#requestMultiStepPopFrame').contents().find('.main-popup-background').outerHeight()); 1094 jQuery('html').css('overflow-y', 'hidden'); 1095 if(typeof document.getElementById('requestMultiStepPopFrame').contentWindow.append_email === 'function'){ 1096 document.getElementById('requestMultiStepPopFrame').contentWindow.append_email(); 1097 } 1098 if(jQuery(this).hasClass('pricing-package-buy-option')){ 1099 jQuery(this).addClass('contact-button'); 1100 } 1101 jQuery('.pricing-account-wrapper').hide(); 1102 jQuery("#requestMultiStepDemoPop, #upgradeMultiStepDemo").show(); 1103}); 1104/*multi step form ends here*/ 1105 1106/*Ends here*/ 1107}); 1108/*for referal code-start*/ 1109$(document).ready(function(){ 1110var searchParamsReferCode = new URLSearchParams(window.location.search); 1111var paramReferCode = searchParamsReferCode.get('mbsy'); 1112if(paramReferCode !== null){ 1113window.onload = function () { 1114 window.sessionStorage.setItem('sogo_refercodeSite', paramReferCode); 1115 }; 1116} 1117}); 1118/*for referal code-end*/ 1119 1120jQuery(document).ready(function($) { 1121//added for load placeholde only on IE 1122var ua = window.navigator.userAgent; 1123var msie = ua.indexOf("MSIE"); 1124if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number 1125 { 1126 if(isNaN(parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))))<=11){ 1127 jQuery("body").append('<script src="/wp-content/themes/Sogosurvey/framework/js/jquery.placeholder.js"><\/script>'); 1128 jQuery('input').placeholder(); 1129 jQuery("#topbar").before('<p class="ie_9_specific" style="font-size:20px;padding:30px; text-align:center;border:1px solid #000; background: #f5f6f8;color:#2d3e50;">Your user experience is our top priority. We suggest you upgrade your browser for better usability.</p>'); 1130 jQuery(".hide_block_b_load").removeClass("hide_block_b_load"); 1131 } 1132 } 1133}); 1134 1135 1136function getPlatformType(){ 1137 var Return_Device; 1138 if(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile|w3c|acs\-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd\-|dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg\-c|lg\-d|lg\-g|lge\-|maui|maxo|midp|mits|mmef|mobi|mot\-|moto|mwbp|nec\-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch\-|sec\-|send|seri|sgh\-|shar|sie\-|siem|smal|smar|sony|sph\-|symb|t\-mo|teli|tim\-|tosh|tsm\-|upg1|upsi|vk\-v|voda|wap\-|wapa|wapi|wapp|wapr|webc|winw|winw|xda|xda\-) /i.test(navigator.userAgent)) 1139 { 1140 if(/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i.test(navigator.userAgent)) 1141 { 1142 Return_Device = 'Tablet'; 1143 } 1144 else 1145 { 1146 Return_Device = 'Mobile'; 1147 } 1148 } 1149 else if(/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i.test(navigator.userAgent)) 1150 { 1151 Return_Device = 'Tablet'; 1152 } 1153 else 1154 { 1155 Return_Device = 'Desktop'; 1156 } 1157 return Return_Device; 1158} 1159 1160/* <!-- Event snippet for Demo Requested conversion page 1161In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. --> */ 1162 1163window.dataLayer = window.dataLayer || []; 1164function gtag(){dataLayer.push(arguments);} 1165function gtag_report_conversion(url) { 1166var callback = function () { 1167 if (typeof(url) != 'undefined') { 1168 window.location = url; 1169 } 1170}; 1171gtag('event', 'conversion', { 1172 'send_to': 'AW-1004562445/mhC9CPuGy48BEI3Qgd8D', 1173 'event_callback': callback 1174}); 1175return false;
1176} 1177 1178<!--Mobile logo slider for customer logos--> 1179var mobileIndex = 0; 1180var mobile_timer; 1181jQuery(document).ready(function () { 1182 mobileTrackSlides(0); 1183 1184/*close popup2021 on body click*/ 1185 jQuery('body:not(#salesSogoForm2021)').on('click',function(){ 1186 //console.log('click body'); 1187 if(jQuery('#salesSogoForm2021').is(":visible")){ 1188 jQuery('#salesSogoForm2021').hide(); 1189 jQuery('html').css('overflow-y','auto'); 1190 } 1191 }); 1192}); 1193 1194function mobileTrackSlides() { 1195 var i; 1196 var mobileSlides = document.getElementsByClassName("cx-mobile-slider"); 1197 for (i = 0; i < mobileSlides.length; i++) { 1198 mobileSlides[i].style.display = "none"; 1199 } 1200 mobileIndex++; 1201 if (mobileIndex > mobileSlides.length) { mobileIndex = 1 } 1202 if (mobileSlides[mobileIndex - 1]) { 1203 mobileSlides[mobileIndex - 1].style.display = "block"; 1204 } 1205 mobile_timer = setTimeout(mobileTrackSlides, 2500); // Change image every 5 seconds 1206} 1207 1208/*Support and Sales Form*/ 1209jQuery(document).ready(function($) { 1210 1211jQuery(".multifield-rad-Btn , .menu_ad_link a, .banner-request-btn,.banner-multistep-request-btn,#managePoptroxVideo-btn").hover(function(){ 1212 if(jQuery("#salesFormFrameCommon2024").attr('src')=="about:blank"){ 1213 jQuery("#salesFormFrameCommon2024").hide(); 1214 jQuery("#salesFormFrameCommon2024").attr('src','/contact-us/multicontact-sales-form-2024/?1=1&sf='+ random_cal); 1215 setTimeout(function(){ 1216 jQuery("#salesFormFrameCommon2024").show(); 1217 },1000) 1218 } 1219}); 1220 1221jQuery('.multifield-rad-Btn, .menu_ad_link a, .banner-request-btn,.banner-multistep-request-btn').click(function(event) { 1222 event.stopPropagation(); 1223 jQuery('#verifyClick').val(0); 1224 jQuery("#salesSogoFormCommon2024").css("top","0px"); 1225 var x = $(this).position(); 1226 var r_btnTop=x.top-parseInt(jQuery(this).css("height"));//button height 1227 var r_btnLeft=x.left+parseInt(jQuery(this).css("width")); 1228 jQuery('html').css('overflow-y', 'hidden'); 1229 jQuery('.tab-more-list').hide(); 1230 jQuery('#contactSalesFormCommon2024').css({'top': '50%','left':'50%'}).data('top',260); 1231 jQuery("#salesSogoFormCommon2024, #contactSalesFormCommon2024").show(); 1232 if ($(window).width() <= 800) { 1233 jQuery('#contactSalesFormCommon2024').css({'top': '50%','left':'50%'}).data('top',260); 1234 } 1235}); 1236jQuery(".multifield-rad-Btn-new-2024").hover(function(){ 1237 if(jQuery("#salesFormFrameCommon2024").attr('src')=="about:blank"){ 1238 jQuery("#salesFormFrameCommon2024").hide(); 1239 jQuery("#salesFormFrameCommon2024").attr('src','/contact-us/multicontact-sales-form-2024/?1=1&sf='+ random_cal); 1240 setTimeout(function(){ 1241 jQuery("#salesFormFrameCommon2024").show(); 1242 },1000) 1243 } 1244}); 1245 1246jQuery('.multifield-rad-Btn-new-2024').click(function(event) { 1247 event.stopPropagation(); 1248 jQuery('#verifyClick').val(0); 1249 jQuery("#salesSogoFormCommon2024").css("top","0px"); 1250 var x = $(this).position(); 1251 var r_btnTop=x.top-parseInt(jQuery(this).css("height"));//button height 1252 var r_btnLeft=x.left+parseInt(jQuery(this).css("width")); 1253 jQuery('html').css('overflow-y', 'hidden'); 1254 jQuery('.tab-more-list').hide(); 1255 jQuery('#contactSalesFormCommon2024').css({'top': '50%','left':'50%'}).data('top',260); 1256 jQuery("#salesSogoFormCommon2024, #contactSalesFormCommon2024").show(); 1257 if ($(window).width() <= 800) { 1258 jQuery('#contactSalesFormCommon2024').css({'top': '50%','left':'50%'}).data('top',260); 1259 } 1260}); 1261 1262jQuery(".sogox-radBtn_wbx").hover(function(){ 1263 if(jQuery("#salesFormFrame2023").attr('src')=="about:blank"){ 1264 jQuery("#salesFormFrame2023").hide(); 1265 jQuery("#salesFormFrame2023").attr('src','/contact-us/sales-form-getconnect/?1=1&sf='+ random_cal); 1266 setTimeout(function(){ 1267 jQuery("#salesFormFrame2023").show(); 1268 },1000) 1269 } 1270}); 1271 1272jQuery('.sogox-radBtn_wbx').click(function(event) { 1273 event.stopPropagation(); 1274 jQuery('#verifyClick').val(0); 1275 jQuery("#salesSogoForm2023").css("top","0px"); 1276 var x = $(this).position();
1277 var r_btnTop=x.top-parseInt(jQuery(this).css("height"));//button height 1278 var r_btnLeft=x.left+parseInt(jQuery(this).css("width")); 1279 jQuery('html').css('overflow-y', 'hidden'); 1280 jQuery('.tab-more-list').hide(); 1281 jQuery('#contactSalesForm2023').css({'top': '50%','left':'50%'}).data('top',260); 1282 jQuery("#salesSogoForm2023, #contactSalesForm2023").show(); 1283 if ($(window).width() <= 800) { 1284 jQuery('#contactSalesForm2023').css({'top': '50%','left':'50%'}).data('top',260); 1285 } 1286}); 1287 1288/*SF Test data- start*/ 1289jQuery(".multifield-rad-Btn_SF").hover(function(){ 1290 if(jQuery("#salesFormFrame2022_SF").attr('src')=="about:blank"){ 1291 jQuery("#salesFormFrame2022_SF_SF").hide(); 1292 jQuery("#salesFormFrame2022_SF").attr('src','/contact-us/contact-sales-sftest/?1=1&sf='+ random_cal); 1293 setTimeout(function(){ 1294 jQuery("#salesFormFrame2022").show(); 1295 },1000) 1296 } 1297}); 1298 1299jQuery('.multifield-rad-Btn_SF').click(function(event) { 1300 event.stopPropagation(); 1301 jQuery('#verifyClick').val(0); 1302 jQuery("#salesSogoForm2022_SF").css("top","0px"); 1303 var x = $(this).position(); 1304 var r_btnTop=x.top-parseInt(jQuery(this).css("height"));//button height 1305 var r_btnLeft=x.left+parseInt(jQuery(this).css("width")); 1306 jQuery('html').css('overflow-y', 'hidden'); 1307 jQuery('.tab-more-list').hide(); 1308 jQuery('#contactSalesForm2022_SF').css({'top': '50%','left':'50%'}).data('top',260); 1309 jQuery("#salesSogoForm2022_SF, #contactSalesForm2022_SF").show(); 1310 if ($(window).width() <= 800) { 1311 jQuery('#contactSalesForm2022_SF').css({'top': '50%','left':'50%'}).data('top',260); 1312 } 1313}); 1314/*SF test Data- end*/ 1315 1316jQuery('#managePoptroxVideo-btn').on('click',function(){ 1317 jQuery('#managePoptroxParent .manage-poptrox-cross').trigger('click'); 1318 setTimeout(function(){ jQuery('.banner-request-btn').trigger('click');},1000) 1319}); 1320jQuery("#menu-item-41877").hover(function(){ 1321 if(jQuery("#supportFormFrame").attr('src')=="about:blank" && jQuery("#salesFormFrame").attr('src')=="about:blank"){ 1322 jQuery("#supportFormFrame").attr('src','/contact-us/sogo-support-form/?1=1&sf='+ random_cal); 1323 jQuery("#salesFormFrame").attr('src','/help/contact-sales-form-single-static/?1=1&sf='+ random_cal); 1324 } 1325}); 1326jQuery('#menu-item-41879 a').click(function(event) { 1327 jQuery('html').css('overflow-y', 'hidden'); 1328 jQuery('.tab-more-list').hide(); 1329 jQuery("#supportSogoForm, #supportSogoFormParent").show(); 1330}); 1331jQuery('#menu-item-41880 a').click(function(event) { 1332 jQuery('html').css('overflow-y', 'hidden'); 1333 jQuery('.tab-more-list').hide(); 1334 jQuery("#salesSogoForm, #salesSogoFormParent").show(); 1335}); 1336 /*ends here*/ 1337}); 1338/*Support and Sales Form ends*/ 1339/*devendra, js load, reduce request by adding load for first time*/ 1340jQuery(window).load(function() { 1341 localStorage.setItem("time_int", 1); 1342}); 1343 1344/* uk-cookie consent js*/ 1345//All the cookie setting stuff 1346var ctcc_vars={"expiry":"30","method":"1","version":"1"}; 1347function catapultSetCookie(cookieName, cookieValue, nDays) { 1348 var today = new Date(); 1349 var expire = new Date(); 1350 if (nDays==null || nDays==0) nDays=1; 1351 expire.setTime(today.getTime() + 3600000*24*nDays); 1352 document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString()+"; path=/"; 1353} 1354function catapultReadCookie(cookieName) { 1355 var theCookie=" "+document.cookie; 1356 var ind=theCookie.indexOf(" "+cookieName+"="); 1357 if (ind==-1) ind=theCookie.indexOf(";"+cookieName+"="); 1358 if (ind==-1 || cookieName=="") return ""; 1359 var ind1=theCookie.indexOf(";",ind+1); 1360 if (ind1==-1) ind1=theCookie.length; 1361 // Returns true if the versions match 1362 return ctcc_vars.version == unescape(theCookie.substring(ind+cookieName.length+2,ind1)); 1363} 1364function catapultDeleteCookie(cookieName) { 1365 document.cookie = cookieName + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/'; 1366} 1367function catapultAcceptCookies() { 1368 catapultSetCookie('catAccCookies', ctcc_vars.version, ctcc_vars.expiry); 1369 jQuery("html").removeClass('has-cookie-bar'); 1370 jQuery("html").css("margin-top","0"); 1371 jQuery("#catapult-cookie-bar").fadeOut(); 1372} 1373// The function called by the timer 1374function ctccCloseNotification() { 1375 catapultAcceptCookies(); 1376}
1377// The function called if first page only is specified 1378function ctccFirstPage() { 1379 if ( ctcc_vars.method ) { 1380 catapultSetCookie('catAccCookies', ctcc_vars.version, ctcc_vars.expiry); 1381 } 1382} 1383jQuery(document).ready(function($){ 1384 $('.x_close').on('click', function(){ 1385 catapultAcceptCookies(); 1386 }); 1387/*Document click for Forms country DD*/ 1388 jQuery(document).click(function(){ 1389 if(jQuery('#businessDemoFrame').contents().find('#country-listbox').is(':visible')){ 1390 jQuery('#businessDemoFrame').contents().find('.selected-flag').trigger('click'); 1391 } 1392}); 1393 jQuery('.sogo_lazyImg').attr('data-animate','fadeMaxUp animated');/*for lazy load of full Section bg-img*/ 1394}); 1395/*cookie js ends here*/ 1396 1397/*integration-search -- start*/ 1398jQuery('.new_banner_search').keyup(function() { 1399 var key= jQuery('.new_banner_search').val(); 1400 if(check_char(key)==0){ 1401 return false; 1402 } 1403 }); 1404jQuery('#sogo_help_search-desktop').submit(function(e){ 1405 jQuery("#suggesstion-box").hide(); 1406 var key_info= jQuery('.new_banner_search').val(); 1407 if(check_char(key_info)==0){ 1408 jQuery('.new_banner_search').addClass('error-not-valid').attr('placeholder','Please enter at least three characters for your search.'); 1409 return false; 1410 } 1411 }); 1412jQuery('#sogo_help_search-mobile').submit(function(e){ 1413 jQuery("#suggesstion-box").hide(); 1414 var key_info= jQuery('#sogo_help_search-mobile .new_banner_search').val(); 1415 if(check_char(key_info)==0){ 1416 jQuery('#sogo_help_search-mobile .new_banner_search').addClass('error-not-valid').attr('placeholder','Please enter at least three characters for your search.'); 1417 return false; 1418 } 1419 }); 1420jQuery('#sogo_help_search-').submit(function(e){ 1421 jQuery("#suggesstion-box").hide(); 1422 var key_info= jQuery('.new_banner_search').val(); 1423 if(check_char(key_info)==0){ 1424 jQuery('.new_banner_search').addClass('error-not-valid').attr('placeholder','Please enter at least three characters for your search.'); 1425 return false; 1426 } 1427 }); 1428var ajax_url=jQuery("#ajax_url").val(); 1429jQuery('.new_banner_search').keyup(function() { 1430var current_obj = jQuery(this); 1431var key= jQuery(this).val(); 1432var ugp = window.SOGO_SEARCH_DATA.ugp; 1433if(check_char(key)==0){ 1434return false; 1435} 1436var cat= jQuery('.new_banner_sel').val(); 1437 var data ={ action: "suggested_titleIntegration",cat:cat,key:key,ugp:ugp}; 1438 //jQuery(".new_banner_search").css("background","#FFF url(/wp-content/uploads/2017/11/textload.gif) no-repeat right center"); 1439jQuery(".banner_img_log").attr("src","/wp-content/uploads/2017/11/textload.gif"); 1440 1441 jQuery.get(ajax_url, data, function (response){ 1442jQuery(".banner_img_log").attr("src","/wp-content/uploads/2017/11/search.png"); 1443 1444if(response!='<ul></ul>'){ 1445 jQuery(current_obj).next().show().html(response); 1446}else{ 1447 jQuery(current_obj).next().show().html("<ul>No Results</ul>"); 1448jQuery(current_obj).next().hide(); 1449} 1450 1451 }); 1452}); 1453function check_char(key_info){ 1454if(jQuery.trim(key_info).length<3){ 1455jQuery("#suggesstion-box").hide(); 1456 return 0; 1457}else{ 1458 jQuery('.error-not-valid').removeClass('error-not-valid').attr('placeholder','Search for a topic or questionâ¦'); 1459jQuery("#search_error").hide(); 1460 return 1; 1461} 1462} 1463 1464jQuery(document).click(function(event) { 1465 jQuery("#suggesstion-box ul").hide(); 1466 }); 1467 1468jQuery(document).ready(function(){ 1469jQuery('.ug_platfrom .sogo-help-home-banner-search-box .new_banner_search').keydown(function(event){ 1470 event.stopPropagation(); 1471}); 1472 1473}); 1474/*integration-search -- end*/ 1475 1476/* DATE FORMATTER */ 1477function getfromated_date(datestring) { 1478 if (!datestring) return null; 1479 1480 var date = new Date(datestring); 1481 return ( 1482 date.getFullYear() + "-" + 1483 ("00" + (date.getMonth() + 1)).slice(-2) + "-" + 1484 ("00" + date.getDate()).slice(-2) + " " + 1485 ("00" + date.getHours()).slice(-2) + ":" + 1486 ("00" + date.getMinutes()).slice(-2) + ":" + 1487 ("00" + date.getSeconds()).slice(-2) 1488 ); 1489} 1490 1491/* GLOBAL STATE */ 1492var is_booked = 0; 1493window.chiliSlot = null; 1494 1495/* BROWSER TIMEZONE */ 1496function getBrowserTimezone() { 1497 try { 1498 return Intl.DateTimeFormat().resolvedOptions().timeZone || ""; 1499 } catch (e) { 1500 return ""; 1501 } 1502} 1503 1504/* MESSAGE LISTENER */ 1505window.addEventListener("message", receiveMessage, false); 1506 1507function receiveMessage(event) { 1508 if (!event.data) return; 1509 1510 /* TIMESLOT SELECTED */ 1511 if ( 1512 event.data.type === "CHILI_SCHEDULING_EVENT" && 1513 event.data.action === "timeslot-selected" 1514 ) { 1515 window.chiliSlot = event.data.args; 1516 1517 if (event.data.args?.time) { 1518 sessionStorage.setItem("chili_meeting_time", event.data.args.time); 1519 } 1520 } 1521 1522 /* BOOKED EVENT */ 1523 if ( 1524 event.data.type === "CHILI_SCHEDULING_EVENT" && 1525 event.data.action === "booked" 1526 ) { 1527 1528 // Try timeslot-selected 1529 var meetingTime = 1530 window.chiliSlot?.time || 1531 1532 // Try booked payload (some flows include it) 1533 event.data.args?.time || 1534 1535 // Final fallback 1536 sessionStorage.getItem("chili_meeting_time") || 1537 1538 null; 1539 1540 var formattedDate = getfromated_date(meetingTime); 1541 var timezone = getBrowserTimezone(); 1542 1543 jQuery.ajax({ 1544 url: "/_web-service/SoGoStaticServices.asmx/UpdateDemoScheduleDate", 1545 type: "POST", 1546 data: { 1547 id: localStorage.getItem("rad_id"), 1548 scheduleDate: formattedDate 1549 }, 1550 success: function (data) { 1551 var resp = jQuery(data).text(); 1552 if (resp === "success") { 1553 is_booked = 1; 1554 } 1555 } 1556 }); 1557 } 1558 1559 /* CLOSE EVENT â REDIRECT */ 1560 if ( 1561 event.data.type === "CHILI_SCHEDULING_EVENT" && 1562 event.data.action === "close" 1563 ) { 1564 var cur_url = window.location.toString() 1565 .replace("?success=1", "") 1566 .replace("?success=0", "") 1567 .replace("&success=1", "") 1568 .replace("&success=0", ""); 1569 1570 var reload_url = 1571 cur_url.indexOf("?") !== -1 1572 ? cur_url + "&success=" + is_booked 1573 : cur_url + "?success=" + is_booked; 1574 1575 window.open(reload_url, "_self"); 1576 } 1577 1578 /* FORM â CHILIPIPER SUBMIT */ 1579 if (event.data.message === "CP_SOGOSURVEY" && event.data.data) { 1580 var data = event.data.data; 1581 1582 fetch('https://ipapi.co/json/') 1583 .then(function (response) { 1584 response.json().then(jsonData => { 1585 country = jsonData?.country_name || ""; 1586 }); 1587 }) 1588 .catch(function (error) { 1589 console.log(error) 1590 }); 1591 1592 const submitData = { 1593 FirstName: data["sogo-support-name"], 1594 LastName: data["sogo-support-lname"], 1595 Email: data["sogo-business-email"], 1596 Country: jQuery("#user_country").val(), 1597 Phone: data["phone_country_code"], 1598 Company: data["company-title-field"], 1599 Title: data["sogo-title-dd"], 1600 Survey_Category__c: data["sogo-plan-dd"] 1601 }; 1602 1603 if (window.location.pathname.startsWith("/partners/")) { 1604 ChiliPiper.submit( 1605 "sogolytics", 1606 event.data.unicode === "CP_SOGOLYTICS_SM" 1607 ? "partnership-call" 1608 : "inbound-router", 1609 { lead: submitData, map: true } 1610 ); 1611 } else if (window.location.pathname === "/k-12-product-demo/") { 1612 ChiliPiper.submit("sogolytics", 1613 event.data.unicode === "CP_SOGOLYTICS_AS" 1614 ? "k12-product-demo"
1615 : "inbound-router", 1616{ 1617 lead: submitData, 1618 map: true 1619 }); 1620}else { 1621 ChiliPiper.submit("sogolytics", "inbound-router", { 1622 lead: submitData, 1623 map: true 1624 }); 1625 } 1626 } 1627} 1628 1629/*implementing coockie logic*/ 1630if(localStorage.getItem('acceptedAll')){ 1631 1632 jQuery('html, body').css('overflow', 'visible'); 1633 jQuery('#sogo--cookie-preferences-parent').fadeOut(); 1634 1635} 1636if(localStorage.getItem("cookie_support_cn_check")){ 1637 window.addEventListener('touchstart',load_coockiejs); 1638 window.addEventListener('click', load_coockiejs); 1639 window.addEventListener('mouseover', load_coockiejs); 1640} 1641 1642jQuery(document).on("click",".coockie_cookieall",function(){ 1643jQuery('html, body').css('overflow', 'visible'); 1644 jQuery('#sogo--cookie-preferences-parent').fadeOut(); 1645localStorage.setItem('analytic_coockie',1); 1646//localStorage.setItem('market_ad',1);//Need to check once 1647localStorage.setItem('functional_coockie',1); 1648localStorage.setItem('acceptedAll',1); 1649 load_coockiejs(); 1650 catapultAcceptCookies(); 1651}); 1652jQuery(".continue_cookie").on("click",function(){ 1653jQuery('html, body').css('overflow', 'visible'); 1654 jQuery('#sogo--cookie-preferences-parent').fadeOut(); 1655if(jQuery("#analytic_coockie").prop("checked") == true){ 1656 localStorage.setItem('analytic_coockie',1); 1657 1658} 1659 if(jQuery("#functional_coockie").prop("checked") == true){ 1660 localStorage.setItem('functional_coockie',1); 1661} 1662if(localStorage.getItem('analytic_coockie') || localStorage.getItem('functional_coockie')){ 1663 load_coockiejs(); 1664} 1665//localStorage.setItem('acceptedAll',1); 1666 1667catapultAcceptCookies(); 1668}) 1669 1670 1671function load_coockiejs(){ 1672window.removeEventListener('touchstart',load_coockiejs); 1673//window.removeEventListener('scroll',load_coockiejs); 1674window.removeEventListener('click', load_coockiejs); 1675window.removeEventListener('mouseover', load_coockiejs); 1676 1677// Need to check once 1678//document.cookie = "functional_coockie=1"; 1679//localStorage.setItem("time_int", 1); 1680//for analytic and ad coockies 1681if(localStorage.getItem('analytic_coockie')){ 1682 1683 1684 1685 1686 1687/*zoominfo code*/ 1688 1689 (function () { 1690 var zi = document.createElement('script'); 1691 zi.type = 'text/javascript'; 1692 zi.async = true; 1693 zi.src = 'https://ws.zoominfo.com/pixel/cbvHpFpujnZz5rEBB7Td'; 1694 var s = document.getElementsByTagName('script')[0]; 1695 s.parentNode.insertBefore(zi, s); 1696 })(); 1697 1698 1699//salesloft 1700(function(i,s,o,g,r,a,m){i['SLScoutObject']=r;i[r]=i[r]||function(){ 1701 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 1702 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 1703 })(window,document,'script','https://scout-cdn.salesloft.com/sl.js','slscout'); 1704 slscout(["init", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0IjoxMDEyODl9.QXEq-OnjsLiN78KzDGv2_vg24v9ChIueoMi5tpIPgTE"]); 1705 1706 1707 1708 1709 1710 //for ad tracking js 119235 1711var s2 = document.createElement("script"); 1712 s2.type = "text/javascript"; 1713 s2.src = "https://www.googletagmanager.com/gtag/js?id=AW-1004562445"; 1714 // Use any selector 1715 jQuery("head").append(s2); 1716 window.dataLayer = window.dataLayer || []; 1717function gtag(){dataLayer.push(arguments);} 1718 gtag('set', 'linker', {'domains': ['www.sogolytics.com','experience.sogolytics.com']}); 1719 gtag('js', new Date()); 1720 gtag('config', 'AW-1004562445'); 1721 1722gtag('set', 'linker', { 1723 'domains': ['www.sogolytics.com','experience.sogolytics.com'], 1724 'decorate_forms': true 1725}); 1726tras_cook(); 1727} 1728 1729if(localStorage.getItem('functional_coockie')){ 1730 // document.cookie = "functional_coockie=1"; 1731 let currentURL = window.location.href; 1732 let substringsToCheck = ['/employee-engagement-platform/','/employee-pulse-survey-software/','/enterprise-survey-platform/','/customer-survey-tool/','/customer-feedback-platform/','/online-survey-platform/','/online-survey-software/','/survey-software/','/how-to-create-a-survey/','/enterprise-survey-platform/','/online-survey-maker/','/survey-template/','/free-survey-tool/','/customers-feedback-platform/','/customer-satisfaction-surveys/','/customer-satisfaction-survey/','/customers-experience-analysis-platform/','/free-survey-maker/','/market-research-survey/','/employee-surveys/','/employee-feedback-surveys/','/free-survey-tool-v2/','/free-survey-tool-v3/','/free-survey-tool-v4/','/create-anonymous-survey/','/partners/','/events/americas-credit-unions-marketing-conference/','/request-more-info/','/thank-you-for-requesting-demo/','/events/customer-connect-expo-2025/','/events/financial-brand-forum-2025/','/burnout-to-breakthrough-ai-in-hr-report/','/illusive-roi-of-dei-report/','/mental-health-at-work-during-crisis-report/','/enterprise-customer-survey-tool/','/anonymous-survey-platform/','/qualtrics-alternative/','/subscription-feedback-software/'];
1733 let foundSubstring = substringsToCheck.some(substring => currentURL.indexOf(substring) === -1); 1734 if(typeof (load_tawkjs)==="function" && substringsToCheck.every(substring => currentURL.indexOf(substring) === -1)){ 1735 load_tawkjs(); 1736 } 1737} 1738(function () { 1739 var zi1 = document.createElement('script'); 1740 zi1.type = 'text/javascript'; 1741 zi1.async = true; 1742 zi1.src = 'https://js.chilipiper.com/marketing.js'; 1743 var s1 = document.getElementsByTagName('script')[0]; 1744 s1.parentNode.insertBefore(zi1, s1); 1745 })(); 1746 1747} 1748 $(document).ready(function() { 1749 var hideOnPages = [ 1750 "/free-survey-tool/", 1751 "/free-survey-tool-v3/", 1752 "/free-survey-tool-v4/", 1753 "/anonymous-survey-platform/", 1754 "/create-anonymous-survey/", 1755 "/survey-template/", 1756 "/market-research-survey/", 1757 "/how-to-create-a-survey/", 1758 "/survey-software/", 1759 "/online-survey-software/", 1760 "/enterprise-survey-platform/", 1761 "/online-survey-platform/", 1762 "/customer-feedback-platform/", 1763 "/customer-satisfaction-survey/", 1764 "/customer-survey-tool/", 1765 "/employee-pulse-survey-software/", 1766 "/employee-engagement-platform/", 1767 "/employee-surveys/", 1768 "/employee-satisfaction-surveys/", 1769 "/employee-feedback-surveys/", 1770 "/free-survey-maker/", 1771 "/online-survey-maker-v2/", 1772 "/online-survey-maker-v3/", 1773 "/how-to-create-a-survey", 1774 "/best-survey-platform-alternative/", 1775 "/customer-feedback-platform-demo/", 1776 "/customer-satisfaction-surveys/", 1777 "/online-survey-maker-v4/", 1778 "/fitness-experience-feedback-platform-llp/", 1779 "/survey-maker/" 1780 ]; 1781 1782 1783 var currentUrlpath = window.location.pathname; 1784 1785 if (hideOnPages.includes(currentUrlpath)) { 1786 $('.menu-login-cta').hide(); 1787 } 1788 }); 1789function tras_cook(){ 1790//console.log('st2'); 1791//var date_set = new Date(); 1792// date_set.setTime(+ date_set + (30 * 86400000)); 1793// for (let i = 0; i < localStorage.length; i++) { 1794// let storedValue = localStorage.key(i); 1795 // console.log(`Item at ${i}: ${storedValue}` + " "+ localStorage.getItem(storedValue)); 1796// document.cookie = storedValue+"=" + localStorage.getItem(storedValue)+";domain=.sogolytics.com;expires=" + date_set.toGMTString() + ";path=/"; 1797// } 1798} 1799 1800function NewSignUpProcessFlow(obj) { 1801 var ppcEmail = jQuery(obj).closest(".ppc-form-container").find(".ppc-email-input").val(); 1802 var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; 1803 var sanitizedEmail = ppcEmail.replace(/[^\[email protected]]/g, ''); 1804 //var inputField = document.getElementById('StrEmailId'); 1805 1806 if (ppcEmail !== sanitizedEmail) { 1807 ShowErrorMsg(obj, "Please enter a valid email address."); 1808 } else if (ppcEmail === "") { 1809 ShowErrorMsg(obj, "Email field cannot be empty."); 1810 } else if (!emailPattern.test(ppcEmail)) { 1811 ShowErrorMsg(obj, "Please enter a valid email address."); 1812 } else { 1813 localStorage.setItem('StrEmailId', ppcEmail); 1814 localStorage.setItem('StrEmailId_timestamp', Date.now()); 1815 window.location.href = '/online-survey-tool/pricing/'; 1816 } 1817} 1818function ShowErrorMsg(obj, errmsg) { 1819 jQuery(obj).closest(".ppc-form-container").find(".ppc-email-input").val(""); 1820 jQuery(obj).closest(".ppc-form-container").find(".ppc-email-input").addClass("error-input"); 1821 jQuery(obj).closest(".ppc-form-container").find(".ppc-email-input").attr("placeholder", errmsg); 1822} 1823function checkPPCEmailExpiration() { 1824var timestamp = localStorage.getItem('StrEmailId_timestamp'); 1825if (timestamp) { 1826 var currentTime = Date.now(); 1827 var oneHour = 60 * 60 * 1000; 1828 if (currentTime - timestamp > oneHour) { 1829 localStorage.removeItem('StrEmailId'); 1830 localStorage.removeItem('StrEmailId_timestamp'); 1831 } 1832} 1833} 1834checkPPCEmailExpiration(); 1835setInterval(checkPPCEmailExpiration, 60000); 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846/*************************************************** 1847 ======== Hide Phone Icon On PPC Page ============= 1848**************************************************/ 1849 $(document).ready(function() { 1850 var pathsToHide = [ 1851 '/online-survey-maker/', 1852 '/create-anonymous-survey/', 1853 '/free-survey-tool/', 1854 '/survey-template/', 1855 '/market-research-survey/', 1856 '/how-to-create-a-survey/', 1857 '/survey-software/', 1858 '/online-survey-software/', 1859 '/enterprise-survey-platform/', 1860 '/online-survey-platform/', 1861 '/customer-feedback-platform/', 1862 '/customer-satisfaction-survey/', 1863 '/customer-survey-tool/', 1864 '/employee-pulse-survey-software/', 1865 '/employee-engagement-platform/', 1866 '/employee-surveys/', 1867 '/employee-satisfaction-surveys/', 1868 '/employee-feedback-surveys/', 1869 '/customer-feedback-platform-demo/' 1870 ]; 1871 1872 var currentPath = window.location.pathname; 1873 1874 if (pathsToHide.includes(currentPath)) { 1875 $('.phone-icon').hide(); 1876 } 1877 }); 1878/*************************************************** 1879 ======== Hide Phone Icon On PPC Page ============= 1880**************************************************/ 1881 1882/************************************************** 1883=========TEASER CODE============== 1884**************************************************/ 1885jQuery(document).ready(function ($) { 1886 var teaserPages = [ 1887 "/home-demo/captera-landing-page/" 1888 ]; 1889 1890 var teaserPage = window.location.pathname; 1891 1892 // Check if current URL ends with 1893 if (teaserPages.includes(teaserPage)) { 1894 1895 // Append teaser HTML into #content 1896 $("#content").append(` 1897<div class="sogo-home-teaser-section"> 1898 <div class="sogo-home-teaser-wrapper"> 1899 <div class="sogo-home-teaser-text">Turn school climate insights into meaningful changes.</div> 1900 <div class="sogo-home-teaser-btn-wrapper"> 1901 <a target="_blank" href="https://sogolytics.webinargeek.com/beyond-the-numbers-unlock-the-story-in-your-school-climate-data?cst=website" 1902 class="sogo-home-teaser-btn-cta">Join the live webinar on August 28! 1903 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"> 1904 <rect width="20" height="20" rx="10" fill="#12BDCA"></rect> 1905 <rect width="20" height="20" rx="10" fill="#02BECC"></rect> 1906 <path 1907 d="M4.82237 10.4832L13.1636 10.4832L10.6531 13.0721C10.6078 13.1173 10.5717 13.1712 10.5468 13.2309C10.5219 13.2906 10.5089 13.3548 10.5083 13.4197C10.5078 13.4847 10.5198 13.5491 10.5436 13.6092C10.5675 13.6693 10.6027 13.7239 10.6472 13.7698C10.6918 13.8157 10.7447 13.8521 10.803 13.8767C10.8613 13.9013 10.9237 13.9136 10.9867 13.9131C11.0497 13.9125 11.1119 13.899 11.1698 13.8734C11.2277 13.8477 11.28 13.8105 11.3238 13.7638L14.644 10.3398C14.7329 10.2481 14.7828 10.1237 14.7828 9.99403C14.7828 9.86433 14.7329 9.73994 14.644 9.64822L11.3238 6.2243C11.2343 6.1352 11.1145 6.0859 10.9901 6.08702C10.8658 6.08813 10.7468 6.13957 10.6589 6.23026C10.5709 6.32095 10.521 6.44363 10.52 6.57188C10.5189 6.70013 10.5667 6.82368 10.6531 6.91593L13.1636 9.5049L4.82237 9.5049C4.69657 9.5049 4.57593 9.55643 4.48698 9.64816C4.39803 9.73989 4.34805 9.86431 4.34805 9.99403C4.34805 10.1238 4.39803 10.2482 4.48698 10.3399C4.57593 10.4316 4.69657 10.4832 4.82237 10.4832Z" 1908 fill="white"></path> 1909 </svg> 1910 </a> 1911 </div> 1912 <div class="sogo-home-teaser-closeBtn"> 1913 <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"> 1914 <g clip-path="url(#clip0_1762_578)"> 1915 <path 1916 d="M20 39.6079C30.8291 39.6079 39.6078 30.8292 39.6078 20.0001C39.6078 9.17094 30.8291 0.392212 20 0.392212C9.17088 0.392212 0.392151 9.17094 0.392151 20.0001C0.392151 30.8292 9.17088 39.6079 20 39.6079Z" 1917 fill="#F1F2F4"></path> 1918 <path 1919 d="M27.2745 24.4901C28.0392 25.2548 28.0392 26.4901 27.2745 27.2548C26.8824 27.647 26.3922 27.8235 25.8824 27.8235C25.3726 27.8235 24.8824 27.6274 24.4902 27.2548L20 22.7646L15.5098 27.2548C15.1176 27.647 14.6275 27.8235 14.1176 27.8235C13.6078 27.8235 13.1176 27.6274 12.7255 27.2548C11.9608 26.4901 11.9608 25.2548 12.7255 24.4901L17.2157 19.9999L12.7255 15.5097C11.9608 14.745 11.9608 13.5097 12.7255 12.745C13.4902 11.9803 14.7255 11.9803 15.4902 12.745L19.9804 17.2352L24.4706 12.745C25.2353 11.9803 26.4706 11.9803 27.2353 12.745C28 13.5097 28 14.745 27.2353 15.5097L22.7451 19.9999L27.2353 24.4901H27.2745Z" 1920 fill="#333333"></path> 1921 </g> 1922 <defs> 1923 <clipPath id="clip0_1762_578"> 1924 <rect width="40" height="40" fill="white"></rect> 1925 </clipPath> 1926 </defs> 1927 </svg> 1928 </div> 1929 </div> 1930</div> 1931 `); 1932 } 1933 1934 // Your existing toggle code 1935 $('.sogo-home-teaser-closeBtn').click(function(){ 1936 var $wrapper = $('.sogo-home-teaser-section'); 1937 var $btn = $(this).find('svg'); 1938 var $btn_wrapper = $('.sogo-home-teaser-closeBtn'); 1939 1940 if ($wrapper.hasClass('sogo-home-teaser-collapsed')) { 1941 // Expand the band 1942 $wrapper.removeClass('sogo-home-teaser-collapsed'); 1943 $btn_wrapper.removeClass('sogo-home-teaser-arrow'); 1944 $btn.html(`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"> 1945 <g clip-path="url(#clip0_1762_578)"> 1946 <path d="M20 39.6079C30.8291 39.6079 39.6078 30.8292 39.6078 20.0001C39.6078 9.17094 30.8291 0.392212 20 0.392212C9.17088 0.392212 0.392151 9.17094 0.392151 20.0001C0.392151 30.8292 9.17088 39.6079 20 39.6079Z" fill="#F1F2F4"/> 1947 <path d="M27.2745 24.4901C28.0392 25.2548 28.0392 26.4901 27.2745 27.2548C26.8824 27.647 26.3922 27.8235 25.8824 27.8235C25.3726 27.8235 24.8824 27.6274 24.4902 27.2548L20 22.7646L15.5098 27.2548C15.1176 27.647 14.6275 27.8235 14.1176 27.8235C13.6078 27.8235 13.1176 27.6274 12.7255 27.2548C11.9608 26.4901 11.9608 25.2548 12.7255 24.4901L17.2157 19.9999L12.7255 15.5097C11.9608 14.745 11.9608 13.5097 12.7255 12.745C13.4902 11.9803 14.7255 11.9803 15.4902 12.745L19.9804 17.2352L24.4706 12.745C25.2353 11.9803 26.4706 11.9803 27.2353 12.745C28 13.5097 28 14.745 27.2353 15.5097L22.7451 19.9999L27.2353 24.4901H27.2745Z" fill="#333333"/> 1948 </g> 1949 <defs> 1950 <clipPath id="clip0_1762_578"> 1951 <rect width="40" height="40" fill="white"/> 1952 </clipPath> 1953 </defs> 1954 </svg>`); 1955 setTimeout(function(){ 1956 $('.sogo-home-teaser-text,.sogo-home-teaser-btn-wrapper').fadeIn(1000); 1957 },300); 1958 } else { 1959 // Collapse the band 1960 $wrapper.addClass('sogo-home-teaser-collapsed'); 1961 $btn_wrapper.addClass('sogo-home-teaser-arrow'); 1962 $btn.html(`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"> 1963 <g clip-path="url(#clip0_1821_356)"> 1964 <path d="M20 39.6079C9.17089 39.6079 0.392155 30.8292 0.392155 20.0001C0.392155 9.17094 9.17089 0.392212 20 0.392212C30.8291 0.392212 39.6078 9.17094 39.6078 20.0001C39.6078 30.8292 30.8291 39.6079 20 39.6079Z" fill="#F1F2F4"/> 1965 <path d="M16.4695 26.9369C15.7435 26.1796 15.7435 24.9563 16.4695 24.199H16.5067L20.7694 19.7524L16.5067 15.3058C15.7807 14.5485 15.7807 13.3252 16.5067 12.568C17.2327 11.8107 18.4054 11.8107 19.1313 12.568L23.394 17.0146L24.6828 18.3686C25.4198 19.1429 25.4177 20.3599 24.6779 21.1315L23.3754 22.4903L19.1127 26.9369C18.7404 27.3058
196518.2751 27.5 17.7911 27.5C17.3071 27.5 16.8418 27.3252 16.4695 26.9369Z" fill="#333333"/> 1966 </g> 1967 <defs> 1968 <clipPath id="clip0_1821_356"> 1969 <rect width="40" height="40" fill="white" transform="matrix(-1 0 0 1 40 0)"/> 1970 </clipPath> 1971 </defs> 1972 </svg>`); 1973 $('.sogo-home-teaser-text,.sogo-home-teaser-btn-wrapper').fadeOut(100); 1974 } 1975 }); 1976 1977});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.