27 Kasım 2026, Cuma
Anadolu Haberleri

Karaman'da Mehmet Ali Göksu olayında yeni gelişme

2 dk okuma
Karaman'da Mehmet Ali Göksu olayında yeni gelişme
Karaman'da Mehmet Ali Göksu olayında yeni gelişme

Karaman'ın Ermenek ilçesinde kaybolduktan 3 gün sonra ölü bulunan Mehmet Ali Göksu (37) olayına ilişkin gözaltına alınan 3 kişi adli kontrol şartıyla serbest bırakıldı.

printHtml += cleanHeaderHtml;

printHtml += media.outerHTML;

const articleClone = articleBody.cloneNode(true);

articleClone.querySelectorAll('.post-flash').forEach(function (el) {

el.parentNode.removeChild(el);

printHtml += articleClone.outerHTML;

const iframe = document.createElement('iframe');

iframe.style.position = 'fixed';

iframe.style.right = '0';

iframe.style.bottom = '0';

iframe.style.width = '0';

iframe.style.height = '0';

iframe.style.border = '0';

document.body.appendChild(iframe);

const frameWindow = iframe.contentWindow || iframe;

const title = document.title || 'Yazdır';

// Yazdırma belgesi DOM API ile kurulur. Eskiden doc.write ile tam bir HTML

// belgesi metni yazılıyordu; o metin sayfa kaynağında fazladan head/body

// etiketleri gibi görünüp SEO denetim araçlarını yanıltıyordu.

// Yalnız doctype yazılır: standart modda (quirks değil) boş html/head/body oluşur.

const doc = frameWindow.document;

doc.documentElement.lang = 'tr';

const charset = doc.createElement('meta');

charset.setAttribute('charset', 'utf-8');

doc.head.appendChild(charset);

// Sayfanın stilleri kopyalanır; 'ler yüklenince yazdırılır (aksi halde çıktı stilsiz kalır)

document.querySelectorAll('link[rel="stylesheet"], style').forEach(function (el) {

const clone = doc.importNode(el, true);

if (clone.tagName === 'LINK') {

styleLoads.push(new Promise(function (resolve) {

clone.onload = clone.onerror = resolve;

doc.head.appendChild(clone);

const printStyle = doc.createElement('style');

'html, body { margin: 0; padding: 0; background: #ffffff; }' +

'.printed-article { margin: 0; padding: 20px; box-shadow: none; background: #ffffff; }';

doc.head.appendChild(printStyle);

const wrapper = doc.createElement('div');

wrapper.className = 'printed-article';

wrapper.innerHTML = printHtml;

doc.body.appendChild(wrapper);

// Stil dosyası takılırsa yazdırma sonsuza dek beklemesin

const stylesReady = Promise.race([

new Promise(function (resolve) { setTimeout(resolve, 3000); })

stylesReady.then(function () {

document.body.removeChild(iframe);

var dropdownButton = document.querySelector('.dropdownButton');

var icon = dropdownButton.querySelector('#icon');

var parentDropdown = dropdownButton.closest('.dropdown');

if (parentDropdown && icon) {

parentDropdown.addEventListener('show.bs.dropdown', function () {

icon.classList.remove('fa-plus');

icon.classList.add('fa-minus');

parentDropdown.addEventListener('hide.bs.dropdown', function () {

icon.classList.remove('fa-minus');

icon.classList.add('fa-plus');

Kaynak: Ulakbot · Karaman

Bu haberi paylaş

Yorumlar (0)

adlı okurun yorumuna yanıt veriyorsunuz

İlk yorumu siz yazın.

İlgili Haberler

Tümü