📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
549.87 KB
0644
🗑️
⬇️
✏️
🔒
Editing: demo.js
// Handle fixed element scroll const fixedElement = document.querySelector('.fixed-elements'); function handleScroll() { if (window.scrollY > 100) { fixedElement.classList.add('fixeds'); } else { fixedElement.classList.remove('fixeds'); } } window.addEventListener('scroll', handleScroll); $(document).ready(function() { // Show and hide fixed card function showFixedCard() { var fixedCard = $('#fixed-card-me'); fixedCard.addClass('slide-in'); setTimeout(hideFixedCard, 10000); // Hide after 10 seconds } function hideFixedCard() { var fixedCard = $('#fixed-card-me'); fixedCard.removeClass('slide-in').addClass('slide-out'); setTimeout(function() { fixedCard.removeClass('slide-out').hide(); // Hide after animation }, 500); // Match animation duration } // Fetch and display ad function fetchAndDisplayAd() { $.ajax({ url: 'adverts_popup.php', method: 'GET', dataType: 'html', success: function(data) { // Check if content has changed before updating if ($('#ad-container').html() !== data) { $('#ad-container').html(data); // Update container only if content changes showFixedCard(); // Show the fixed card after fetching the ad } }, error: function(xhr, status, error) { console.error('Error fetching ad:', error); } }); } fetchAndDisplayAd(); setInterval(fetchAndDisplayAd, 30000); // Increase interval to 30 seconds $(document).on('click', '#close-button-me', hideFixedCard); });
💾 Save Changes