const detayReklam = document.getElementById("detay_reklam"); const drDiv = document.createElement("div"); if (window.innerWidth >= 970) { drDiv.id = "div-gpt-ad-1737977490948-0"; } else { drDiv.id = "div-gpt-ad-1737978222480-0"; } drDiv.style.width = "336px"; drDiv.style.height = "280px"; drDiv.style.textAlign = "center"; drDiv.style.margin = "20px auto"; detayReklam.appendChild(drDiv); /*------------------------------------------------ * Shrink Header ------------------------------------------------*/ $(document).on('click', function (e) { if ($(e.target).closest(".icon-share").length === 0) { $(".shareArea").removeClass('active'); } if ($(e.target).closest(".dotsAreaContent").length === 0 && $(e.target).closest(".icon-dots").length === 0) { $(".dotsAreaContent").css('visibility', "hidden"); } }); $(".a-plus").click(function () { var sBox = $(".a-plus-inp").attr("data-sBox"); var status = $(".a-plus-inp").attr("data-status"); var currentFont = parseInt($(".a-plus-inp").val()); if (currentFont == 20) { var status = "down"; var sBox = true; } else if (currentFont == 14) { var status = "up"; var sBox = true; } if (status == "down") { currentFont = parseInt(currentFont - 1); if (currentFont == 14) { var status = "up"; var sBox = true; } } else if (status == "up") { currentFont = parseInt(currentFont + 1); if (currentFont == 20) { var status = "down"; var sBox = true; } $(".a-plus-inp").attr("data-sBox", sBox); $(".a-plus-inp").attr("data-status", status); } $(".a-plus-inp").val(currentFont); $("#newsRead .bottom .left .detail p").css("font-size", currentFont); });