Tunahan Kuzu'yu hastaneye almadılar
Hollanda'da Denk Partisi Milletvekili Tunahan Kuzu gittiği hastanede güvenlik görevlisi tarafından içeri alınmadı. ')?.getAttribute('content')
},
body: JSON.stringify({ id, model, platform, url })
}).catch(err => console.error('Share count fetch error:', err));
}
function goSharePopup(url, title, width = 600, height = 400) {
const left = (screen.width - width) / 2;
const top = (screen.height - height) / 2;
window.open(
url,
title,
`width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`
);
}
async function handleMobileShare(event, title, url) {
event.preventDefault();
if (shareableModelId && shareableModelClass) {
shareCount(shareableModelId, shareableModelClass, 'native_mobile_share', url);
}
const isAndroidWebView = navigator.userAgent.includes('Android') && !navigator.share;
if (isAndroidWebView) {
window.location.href = 'androidshare://paylas?title=' + encodeURIComponent(title) + '&url=' + encodeURIComponent(url);
return;
}
if (navigator.share) {
try {
await navigator.share({ title: title, url: url });
} catch (error) {
if (error.name !== 'AbortError') {
console.error('Web Share API failed:', error);
}
}
} else {
alert("Bu cihaz paylaşımı desteklemiyor.");
}
}
function initiateDesktopShare(event, platformOverride = null) {
event.preventDefault();
const anchor = event.currentTarget;
const platform = platformOverride || anchor.dataset.platform;
const webShareUrl = anchor.href;
const contentUrl = anchor.dataset.shareUrl || webShareUrl;
if (shareableModelId && shareableModelClass && platform) {
shareCount(shareableModelId, shareableModelClass, platform, contentUrl);
}
goSharePopup(webShareUrl, platform ? platform.charAt(0).toUpperCase() + platform.slice(1) : "Share");
}
function copyURL(event, urlToCopy) {
event.preventDefault();
navigator.clipboard.writeText(urlToCopy).then(() => {
alert('Bağlantı panoya kopyalandı!');
}).catch(err => {
console.error('Could not copy text: ', err);
try {
const textArea = document.createElement("textarea");
textArea.value = urlToCopy;
textArea.style.position = "fixed";
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
alert('Bağlantı panoya kopyalandı!');
} catch (fallbackErr) {
console.error('Fallback copy failed:', fallbackErr);
}
});
}
function printContent(event) {
event.preventDefault();
const triggerElement = event.currentTarget;
const contextContainer = triggerElement.closest('.infinite-item') || document;
const header = contextContainer.querySelector('.post-header');
const media = contextContainer.querySelector('.news-section .col-lg-8 .inner, .news-section .col-lg-8 .ratio, .news-section .col-lg-8 iframe');
const articleBody = contextContainer.querySelector('.article-text');
if (!header && !media && !articleBody) {
window.print();
return;
}
let printHtml = '';
if (header) {
const titleEl = header.querySelector('h1');
const descEl = header.querySelector('.description, h2.lead');
let cleanHeaderHtml = '';
if (titleEl) cleanHeaderHtml += titleEl.outerHTML;
if (descEl) cleanHeaderHtml += descEl.outerHTML;
cleanHeaderHtml += '';
printHtml += cleanHeaderHtml;
}
if (media) {
printHtml += media.outerHTML;
}
if (articleBody) {
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';
const headStyles = Array.from(document.querySelectorAll('link[rel="stylesheet"], style'))
.map(el => el.outerHTML)
.join('');
iframe.onload = function () {
try {
frameWindow.focus();
frameWindow.print();
} finally {
setTimeout(function () {
document.body.removeChild(iframe);
}, 1000);
}
};
const doc = frameWindow.document;
doc.open();
doc.write(`
${title}
${headStyles}
${printHtml}
`);
doc.close();
}
var dropdownButton = document.querySelector('.dropdownButton');
if (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');
});
}
}
A-
A+
© SONHABER.EU