Drodzy Rodzice!
Dzień 31 października 2023r. (wtorek) jest dniem wolnym od zajęć dydaktycznych dla uczniów.
Pozdrawiamy serdecznie
Drodzy Rodzice!
Dzień 31 października 2023r. (wtorek) jest dniem wolnym od zajęć dydaktycznych dla uczniów.
Pozdrawiamy serdecznie
<script>
document.addEventListener('DOMContentLoaded', function() {
// Kliknięcie w klasę
document.querySelectorAll('.class-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var classId = this.getAttribute('data-class');
// Ukryj wszystkie listy przedmiotów
document.querySelectorAll('.subjects').forEach(function(div) {
div.style.display = 'none';
});
// Pokaż wybraną klasę
document.getElementById(classId).style.display = 'block';
// Wyczyść treść artykułu
document.getElementById('article-content').innerHTML = '';
});
});
// Kliknięcie w przedmiot
document.querySelectorAll('.subject-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var articleId = this.getAttribute('data-article-id');
// Pobierz artykuł przez AJAX
fetch('index.php?option=com_content&view=article&id=' + articleId + '&format=raw')
.then(response => response.text())
.then(html => {
document.getElementById('article-content').innerHTML = html;
})
.catch(err => {
document.getElementById('article-content').innerHTML = '⚠️ Nie udało się załadować artykułu.';
console.error(err);
});
});
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Kliknięcie w klasę
document.querySelectorAll('.class-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var classId = this.getAttribute('data-class');
// Ukryj wszystkie listy przedmiotów
document.querySelectorAll('.subjects').forEach(function(div) {
div.style.display = 'none';
});
// Pokaż wybraną klasę
document.getElementById(classId).style.display = 'block';
// Wyczyść treść artykułu
document.getElementById('article-content').innerHTML = '';
});
});
// Kliknięcie w przedmiot
document.querySelectorAll('.subject-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var articleId = this.getAttribute('data-article-id');
// Pobierz artykuł przez AJAX
fetch('index.php?option=com_content&view=article&id=' + articleId + '&format=raw')
.then(response => response.text())
.then(html => {
document.getElementById('article-content').innerHTML = html;
})
.catch(err => {
document.getElementById('article-content').innerHTML = '⚠️ Nie udało się załadować artykułu.';
console.error(err);
});
});
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Kliknięcie w klasę
document.querySelectorAll('.class-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var classId = this.getAttribute('data-class');
// Ukryj wszystkie listy przedmiotów
document.querySelectorAll('.subjects').forEach(function(div) {
div.style.display = 'none';
});
// Pokaż wybraną klasę
document.getElementById(classId).style.display = 'block';
// Wyczyść treść artykułu
document.getElementById('article-content').innerHTML = '';
});
});
// Kliknięcie w przedmiot
document.querySelectorAll('.subject-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var articleId = this.getAttribute('data-article-id');
// Pobierz artykuł przez AJAX
fetch('index.php?option=com_content&view=article&id=' + articleId + '&format=raw')
.then(response => response.text())
.then(html => {
document.getElementById('article-content').innerHTML = html;
})
.catch(err => {
document.getElementById('article-content').innerHTML = '⚠️ Nie udało się załadować artykułu.';
console.error(err);
});
});
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Kliknięcie w klasę
document.querySelectorAll('.class-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var classId = this.getAttribute('data-class');
// Ukryj wszystkie listy przedmiotów
document.querySelectorAll('.subjects').forEach(function(div) {
div.style.display = 'none';
});
// Pokaż wybraną klasę
document.getElementById(classId).style.display = 'block';
// Wyczyść treść artykułu
document.getElementById('article-content').innerHTML = '';
});
});
// Kliknięcie w przedmiot
document.querySelectorAll('.subject-link').forEach(function(link) {
link.addEventListener('click', function(e) {
e.preventDefault();
var articleId = this.getAttribute('data-article-id');
// Pobierz artykuł przez AJAX
fetch('index.php?option=com_content&view=article&id=' + articleId + '&format=raw')
.then(response => response.text())
.then(html => {
document.getElementById('article-content').innerHTML = html;
})
.catch(err => {
document.getElementById('article-content').innerHTML = '⚠️ Nie udało się załadować artykułu.';
console.error(err);
});
});
});
});
</script>