// || window.jQuery.fn.jquery !== '2.1.3' var jQuery; if (window.jQuery === undefined) { var script_tag = document.createElement('script'); script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"); if (script_tag.readyState) { script_tag.onreadystatechange = function () { // For old versions of IE if (this.readyState == 'complete' || this.readyState == 'loaded') { scriptLoadHandlernotify(); } }; } else { // Other browsers script_tag.onload = scriptLoadHandlernotify; } (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); } else { jQuery = window.jQuery; setTimeout('notification()', 2000); } function scriptLoadHandlernotify() { setTimeout('notification()', 2000); } function notification() { //jQuery(document).ready(function($) { var reviewUrl = 'https://app.10xcrm.com/reviewnotificationwidget/5edd205ebe220'; $('#notification-container-5edd205ebe220').load(reviewUrl); //}); } //jQuery(document).ready(function($) { setInterval(function(){ if ($('#notifi_review_detail').is(':hidden')){ $("#notif_box").addClass("notif_box_hide"); notification(); } }, 10000); //});