function animateHeader() { if (typeof gsap !== "undefined") { // Navbar slide-in gsap.from('.dq-navbar', {y: -64, opacity: 0, duration: 1, ease: "power3.out"}); // Logo pop-in gsap.from('.dq-logo', {scale: 0.7, opacity: 0, delay: .4, duration: .65, ease: "back.out(1.8)"}); // Menu fade stagger gsap.from('.dq-menu-item', {stagger: .14, y: -18, opacity: 0, delay: .8, duration: .52}); // Search bar in gsap.from('.dq-search-bar', {y: -15, opacity: 0, delay: .9, duration: .43, ease: "power1.out"}); } } animateHeader(); // Scroll blur glassy effect window.addEventListener('scroll', function () { let nav = document.querySelector('.dq-navbar'); if (window.scrollY > 10) { nav.classList.add('dq-blur'); } else { nav.classList.remove('dq-blur'); } }); // (Optional) Dark mode auto detect, uncomment if needed: // if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { // document.body.classList.add('dq-dark'); // } }); function Wo_Ajax_Requests_File(){ return "https://disqurs.com/requests.php" } function RunLiveAgora(channelName,DIV_ID,token) { var agoraAppId = 'a09cd7a5d32b46b39189f1223829fd11'; var token = token; var client = AgoraRTC.createClient({mode: 'live', codec: 'vp8'}); client.init(agoraAppId, function () { client.setClientRole('audience', function() { }, function(e) { }); let rand = Math.floor(Math.random() * 1000000); client.join(token, channelName, rand, function(uid) { }, function(err) { }); }, function (err) { }); client.on('stream-added', function (evt) { var stream = evt.stream; var streamId = stream.getId(); client.subscribe(stream, function (err) { }); }); client.on('stream-subscribed', function (evt) { var remoteStream = evt.stream; remoteStream.play(DIV_ID); $('#player_'+remoteStream.getId()).addClass('embed-responsive-item'); }); }
@1750653923309173_441