Breaking News


jquery – Javascript how to add a click event listener in the body?

Questions: How do i add a click event listener to the body so when i click anywhere within the body the .arrow-up and .login-form will fade out. $(document).ready(function() { var arrow = $(".arrow-up"); var form = $(".login-form"); var status = false; $("#login").click(function(event) { event.preventDefault(); if (status == false) { arrow.fadeIn(); …

Read More »

javascript – Error with promise rejections while using bulkDelete

Questions: So upon using the .bulkDelete() method, which deletes messages from a channel, I get this error: UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Message (node:11720) UnhandledPromiseRejectionWarning: Unhandled promiserejection. This error originated either by throwing inside of an asyncfunction without a catch block, or by rejecting a promise which wasnot handled with .catch(). (rejection …

Read More »

javascript – Second background position in Parallax

Questions: I’m using Parallax script: $(document).ready(function () { $window = $(window); $('section[data-type="background"]').each(function () { var $bgobj = $(this); $(window).scroll(function () { var yPos = -($window.scrollTop() / $'speed')); var parallax = '50%' + yPos + 'px'; $bgobj.css({ backgroundPosition: parallax }); }); }); }); It’s work fine with the first section, I …

Read More »