Lấy ý kiến dự thảo Tờ trình và dự thảo Nghị quyết bãi bỏ các Nghị quyết quy phạm pháp luật do Hội đồng nhân dân tỉnh ban hành thuộc lĩnh vực tài chính
09/08/2024, 08:53
";
var footstr = "";
var newstr = document.all.item(text).innerHTML;
//var newstr = document.getElementById(text).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr + newstr + footstr;
window.print();
document.body.innerHTML = oldstr;
return false;
}
function printDiv2(text) {
var content = document.getElementById(text).innerHTML;
var printWindow = window.open('', '', 'height=600,width=800');
printWindow.document.write('
');
printWindow.document.write('');
printWindow.document.write(content);
printWindow.document.write('');
printWindow.document.close();
printWindow.print();
}
function share_fb(url) {
window.open('https://www.facebook.com/sharer/sharer.php?u='+url,'facebook-share-dialog',"width=626, height=436")
}
function toggleBackgroundColor() {
const element = document.getElementById('contrast');
const currentColor = window.getComputedStyle(element).backgroundColor;
if (currentColor === 'rgb(220, 220, 220)') {
element.style.backgroundColor = '#fff';
} else {
element.style.backgroundColor = 'rgb(220, 220, 220)';
}
}
var liActive = Array.from(document.querySelectorAll('.posts-list-noibat .post-title'));
if (Array.isArray(liActive) && liActive.length ) {
liActive[0].classList.add('active');
}
function increaseFontSize() {
var textElement = document.getElementById('text');
var currentSize = window.getComputedStyle(textElement, null).getPropertyValue('font-size');
var newSize = parseFloat(currentSize) + 2;
if (newSize <= 40) {
textElement.style.fontSize = newSize + 'px';
}
}
function decreaseFontSize() {
var textElement = document.getElementById('text');
var currentSize = window.getComputedStyle(textElement, null).getPropertyValue('font-size');
var newSize = parseFloat(currentSize) - 2;
if (newSize >= 12) {
textElement.style.fontSize = newSize + 'px';
}
}
function resetFontSize() {
var textElement = document.getElementById('text');
textElement.style.fontSize = '18px';
}