Hits: 0




Your scrolling text here Your scrolling text here Your scrolling text here Your scrolling text here Your scrolling text here Your scrolling text here

PICK OF THE WEEK

1
2
3
4
5
6
7
8
9
10

NEWS OF THE WEEK

1
2
3
4
5
6
7
8
9
10

NATURE AND SCIENCE

1
2
3
4
5
6
7
8
9
10

PLATINUM PRIME MEDIA LINx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

MUSIC OF THE WEEK

1
2
3
4
5
6
7
8
9
10

SPORTS OF THE WEEK

1
2
3
4
5
6
7
8
9
10

FUN, FACTS & VARIETY

1
2
3
4
5
6
7
8
9
10

PRIME MEDIA LINx

// --- Hit counter --- let hitCount = localStorage.getItem('hitCount'); if (!hitCount) hitCount = 6466; hitCount++; localStorage.setItem('hitCount', hitCount); document.getElementById('counter-value').innerText = hitCount; // --- FAQ --- function loadFaq() { fetch('/api/faq') .then(response => response.json()) .then(data => { document.getElementById('content').innerHTML = data.content; addFaqToggleFunctionality(); }) .catch(error => console.error('Error loading faq:', error)); } function addFaqToggleFunctionality() { const faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(question => { question.addEventListener('click', () => { const answer = question.nextElementSibling; question.classList.toggle('active'); answer.style.display = answer.style.display === 'block' ? 'none' : 'block'; }); }); } document.addEventListener('DOMContentLoaded', async function() { createQBlocks(); await fetchAdminBlocks(); await fetchMediaLinxBlocks(); updateHitCounter(); // --- Add hover event listeners to swap short and full titles --- function addHoverListeners() { const tooltip = document.createElement('div'); tooltip.id = 'title-tooltip'; tooltip.style.position = 'absolute'; tooltip.style.backgroundColor = 'white'; tooltip.style.padding = '4px 8px'; tooltip.style.borderRadius = '4px'; tooltip.style.boxShadow = '0 0 5px rgba(0,0,0,0.3)'; tooltip.style.whiteSpace = 'nowrap'; tooltip.style.zIndex = '10000'; tooltip.style.display = 'none'; document.body.appendChild(tooltip); const blocks = document.querySelectorAll('.block-link'); blocks.forEach(block => { const fullTitle = block.getAttribute('data-full-title'); const blockNumber = block.parentElement.id.replace(/\D/g, ''); // Extract digits from parent id block.addEventListener('mouseenter', (e) => { tooltip.textContent = `${blockNumber} - ${fullTitle}`; tooltip.style.display = 'block'; const rect = block.getBoundingClientRect(); tooltip.style.left = `${rect.right + 10 + window.scrollX}px`; tooltip.style.top = `${rect.top + window.scrollY}px`; }); block.addEventListener('mousemove', (e) => { tooltip.style.left = `${e.pageX + 10}px`; tooltip.style.top = `${e.pageY - tooltip.offsetHeight - 10}px`; }); block.addEventListener('mouseleave', () => { tooltip.style.display = 'none'; }); }); } addHoverListeners(); });