Send us your photos or videos and you might see them here and on TV!
Click submit content to get started.
Submit Content "; document.body.insertBefore(goconnectModal, document.body.firstChild); var scriptGoConnect = document.createElement("script"); scriptGoConnect.type = "text/javascript"; scriptGoConnect.text = "(function (d) {var cdn = window.StacklaGoConnectConfig ? window.StacklaGoConnectConfig.cdn : 'assetscdn.stackla.com';var t = d.createElement('script');t.type = 'text/javascript';t.src = 'https://' + cdn + '/media/js/common/plugin_goconnect_embed.js';(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(t);}(document));"; document.body.appendChild(scriptGoConnect); // Dynamically load Widget after 2 sec setTimeout(function() { var scriptWidget = document.createElement("script"); scriptWidget.type = "text/javascript"; scriptWidget.text = "(function (d, id) {var t, el = d.scripts[d.scripts.length - 1].previousElementSibling;if (el) el.dataset.initTimestamp = (new Date()).getTime();if(d.getElementById(id)) return;t = d.createElement('script');t.src = '//assetscdn.stackla.com/media/js/widget/fluid-embed.js';t.id = id;(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(t);}(document, 'stackla-widget-js'));"; document.body.appendChild(scriptWidget); }, 2000); var modal = document.getElementById("goconnectModal"); var openbtn = document.getElementById("goconnectSubmit"); var goconnectClosebtn = document.getElementsByClassName("goconnectClose")[0]; var goconnectOpen = document.getElementsByClassName("goconnectOpen")[0]; var body = document.body; var loadingTiles = false; function findstickyAds(className) { var htmlString = $("body").html().toString(); var regex = new RegExp("class='(" + className + ".*?)'", "g"); var matches = htmlString.match(regex); if (matches != null && matches.length) { return (matches[0]).toString().replace("class='", "").replace("'", ""); } else { return null; } } if (findstickyAds("index_right") != null) var stickyAds = document.getElementsByClassName(findstickyAds("index_right")); if (findstickyAds("index_pencilAdContainer") != null) var topStickyAds = document.getElementsByClassName(findstickyAds("index_pencilAdContainer").toString())[0]; function handleRezie() { var goconnectWidth = document.getElementById("stacklaGoconnectWidget").offsetWidth; var offleft = (window.innerWidth - goconnectWidth) / 2; document.getElementById("goconnectTop").style.width = goconnectWidth - 10 + "px"; document.getElementById("goconnectTop").style.left = Math.round(offleft) + "px"; console.log(goconnectWidth); } setTimeout(function() { handleRezie(); }, 2000); setTimeout(function() { handleRezie(); }, 3000); setTimeout(function() { handleRezie(); }, 6000); window.addEventListener("resize", handleRezie); openbtn.onclick = function(event) { event.stopPropagation(); modal.style.display = "block"; body.style.overflow = "hidden"; console.log("topStickyAds", topStickyAds); if (typeof stickyAds !== "undefined") stickyAds[0].style.display = "none"; if (typeof topStickyAds !== "undefined") topStickyAds.style.display = "none"; }; goconnectClosebtn.onclick = function() { modal.style.display = "none"; body.style.overflow = ""; if (typeof stickyAds !== "undefined") stickyAds[0].style.display = "block"; if (typeof topStickyAds !== "undefined") topStickyAds.style.display = "block"; }; window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; body.style.overflow = ""; if (typeof stickyAds !== "undefined") stickyAds[0].style.display = "block"; if (typeof topStickyAds !== "undefined") topStickyAds.style.display = "block"; } }; $(function() { console.log("optionselected"); $(".stackla-goconnect-widget-navigation").click(function() { var optionselected = $(".stackla-widget-navigation-wrapper .active").text(); console.log("optionselected", optionselected); $(".stackla-widget-navigation .dropdown-toggle span").text(optionselected); }); window.onscroll = function(ev) { if (((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 1000) && window.screen.availWidth < 600) { if (loadingTiles !== true) { loadingTiles = true; Stackla.WidgetManager.loadMore("70286"); setTimeout(function() { loadingTiles = false; }, 2000); } } if (((window.innerHeight + window.scrollY) >= document.body.offsetHeight) && window.screen.availWidth < 600) { goconnectOpen.style.display = "none"; } else { goconnectOpen.style.display = "block"; } }; }); //handle tile expand window.addEventListener("message", (event) => { if (typeof event.data.expand !== "undefined") { console.log("Empty State Tile"); openbtn.click(); } }, false); //Handle navigation resize by number of items var checkNavi = setInterval(naviResize, 1000); function naviResize() { if (typeof $(".stackla-widget-navigation-wrapper") != undefined) { var navi = $(".stackla-widget-navigation-wrapper"); var numChildren = navi.children().length; console.log("naviChildren", numChildren); if (numChildren > 0) { var newHeight = (numChildren * 45) + "px"; if (numChildren > 10) { newHeight = "450px"; navi.css("overflow-y", "scroll"); } navi.css("height", newHeight); clearInterval(checkNavi); } } } }
ncG1vNJzZmihlJa1sLrEsKpnm5%2BifKS0yKacoqY%3D
Share!