Thứ trưởng Bộ Giáo dục và Đào tạo kiểm tra rr88 tải app chuẩn bị tổ chức Kỳ thi tốt nghiệp THPT tại rr88 tải
Jun 15
Submitted by
vthanh
on Jun 15
";
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';
}