📚 Yabancılara Göre Eski Türkler

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

console.log("Anahtar doğru."); const targetDiv = document.getElementById("yabanclara_gre_eski_trkler"); targetDiv.style.display = "block"; targetDiv.style.backgroundColor = "rgb(250, 248, 245)"; } else { console.log("Anahtar yanlış."); } } //scrpt_blogspot_bas document.addEventListener("DOMContentLoaded", function () { const hedef = document.getElementById("yabanclara_gre_eski_trkler"); if (!hedef) return; // --- Font --- const minFont = 6, maxFont = 72, fontStep = 2; let fontSize = localStorage.getItem("kitapFontSize"); fontSize = fontSize ? parseInt(fontSize) : 16; // --- Satır aralığı --- const minLineHeight = 1.0, maxLineHeight = 6.0, lineStep = 0.2; let lineHeight = localStorage.getItem("kitapLineHeight"); lineHeight = lineHeight ? parseFloat(lineHeight) : 1.6; // --- Paragraf aralığı --- const minParaSpace = 0, maxParaSpace = 100, paraStep = 4; let paraSpace = localStorage.getItem("kitapParaSpace"); paraSpace = paraSpace ? parseInt(paraSpace) : 8; function fontUygula() { hedef.style.fontSize = fontSize + "px"; hedef.querySelectorAll("*").forEach(el => el.style.fontSize = fontSize + "px"); localStorage.setItem("kitapFontSize", fontSize); } function lineHeightUygula() { hedef.style.lineHeight = lineHeight; hedef.querySelectorAll("*").forEach(el => el.style.lineHeight = lineHeight); localStorage.setItem("kitapLineHeight", lineHeight); } function paraSpaceUygula() { hedef.querySelectorAll("p").forEach(el => el.style.marginBottom = paraSpace + "px"); localStorage.setItem("kitapParaSpace", paraSpace); } fontUygula(); lineHeightUygula(); paraSpaceUygula(); const panel = document.createElement("div"); panel.style.position = "fixed"; panel.style.right = "15px"; panel.style.top = "10%"; panel.style.background = "#fff"; panel.style.border = "1px solid #ccc"; panel.style.borderRadius = "8px"; panel.style.zIndex = "9999"; panel.style.padding = "8px"; panel.style.display = "flex"; panel.style.flexDirection = "column"; // dikey sıralama panel.style.gap = "4px"; function btn(text) { const b = document.createElement("div"); b.innerHTML = text; b.style.cursor = "pointer"; b.style.fontSize = "20px"; b.style.textAlign = "center"; b.style.padding = "4px"; return b; } function satir() { const row = document.createElement("div"); row.style.display = "flex"; row.style.flexDirection = "row"; row.style.gap = "4px"; return row; } const font_plus = btn(` `); const font_minus = btn(` `); const line_space_plus = btn(` `); const line_space_minus = btn(` `); const para_space_plus = btn(` `); const para_space_minus = btn(` `); font_plus.onclick = function () { if (fontSize < maxFont) { fontSize += fontStep; fontUygula(); } }; font_minus.onclick = function () { if (fontSize > minFont) { fontSize -= fontStep; fontUygula(); } }; line_space_plus.onclick = function () { if (lineHeight < maxLineHeight) { lineHeight = parseFloat((lineHeight + lineStep).toFixed(1)); lineHeightUygula(); } }; line_space_minus.onclick = function () { if (lineHeight > minLineHeight) { lineHeight = parseFloat((lineHeight - lineStep).toFixed(1)); lineHeightUygula(); } }; para_space_plus.onclick = function () { if (paraSpace < maxParaSpace) { paraSpace += paraStep; paraSpaceUygula(); } }; para_space_minus.onclick = function () { if (paraSpace > minParaSpace) { paraSpace -= paraStep; paraSpaceUygula(); } }; // ✅ Butonları satırlara gruplayıp panel'e ekliyoruz const satirFont = satir(); satirFont.appendChild(font_plus); satirFont.appendChild(font_minus); const satirLine = satir(); satirLine.appendChild(line_space_plus); satirLine.appendChild(line_space_minus); const satirPara = satir(); satirPara.appendChild(para_space_plus); satirPara.appendChild(para_space_minus); panel.appendChild(satirFont); panel.appendChild(satirLine); panel.appendChild(satirPara); document.body.appendChild(panel); function panelKontrol() { const stil = window.getComputedStyle(hedef); panel.style.display = stil.display === "block" ? "flex" : "none"; } panelKontrol(); const observer = new MutationObserver(panelKontrol); observer.observe(hedef, { attributes: true, attributeFilter: ["style", "class"] }); }); //scrpt_blogspot_son

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Yorumlar

Bu blogdaki popüler yayınlar

Family Practice (2018)

İletişim

Google Tablolarda Script İle Satır Silmek