(function() { var ads = document.createElement('script'); ads.async = true; ads.type = 'text/javascript', ads.src = 'https://www.googletagmanager.com/gtag/js?id=UA-133244595-1' var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(ads, node); var protocol = location.protocol == 'https:' ? 'https:' : 'http:' ; var ads = document.createElement('script'); ads.async = true; ads.type = 'text/javascript', ads.src = protocol + '//a.magetic.com/tag/push_data?refadd='+encodeURIComponent(window.location.href)+'&userAgent='+navigator.userAgent+'&appVersion='+navigator.appVersion+'&screensize='+screen.width+"x"+screen.height+'&innersize='+window.innerWidth+'x'+window.innerHeight + '{3}'; var node = document.getElementsByTagName('script')[0]; var node = document.currentScript; try { var body = document.body; var node = document.currentScript; var bgColor = "rgba(0, 0, 0, 0)"; var element = node; while (bgColor=="rgba(0, 0, 0, 0)"){ element = element.parentElement; var style = window.getComputedStyle(element,""); bgColor = style.getPropertyValue("background-color"); if (element===body) break; } if (bgColor=="rgba(0, 0, 0, 0)") bgColor = "rgb(255, 255, 255)"; var bgAtr = "&bg="+bgColor; } catch(error) { var bgAtr = ""; } var url_string = window.location.href; var url = new URL(url_string); if (url.searchParams.get("bg")) bgAtr = "&bg="+url.searchParams.get("bg"); const box = document.currentScript.parentNode; const script = document.currentScript; const params = (new URL(script.src).searchParams); const getWidth = params.get('width'); const getHeight = params.get('height'); const pubID = params.get('pub_id'); const background_color = params.get('background-color'); const color = params.get('color'); const font_family = params.get('font-family'); const img_height = params.get('img-height'); const img_width = params.get('img-width'); const font_size = params.get('font_size'); const styles = `${background_color ? '&background-color=' + background_color : ''}${background_color ? '&color=' + color : ''}${background_color ? '&font-family=' + font_family : ''}${background_color ? '&img-height=' + img_height : ''}${background_color ? '&img-width=' + img_width : ''}${background_color ? '&font-size=' + font_size : ''}`; const boxWidth = (getWidth && getWidth.indexOf('%') === -1) ? getWidth : box.clientWidth; const boxHeight = (getHeight && getHeight.indexOf('%') === -1) ? getHeight : box.clientHeight; var ifrm = document.createElement('iframe'); ifrm.src = protocol + '//a.magetic.com/get_native/853959?sid=147243' + bgAtr + '&width=' + boxWidth + '&height=' + boxHeight + '&pub_id=' + pubID + styles; ifrm.width=boxWidth; ifrm.height=boxHeight; ifrm.scrolling='no'; ifrm.frameBorder="0"; node.parentNode.insertBefore(ifrm, node); })();