Category : window

The function for the off canvas off nav on my project works fine, however if the page gets resized it will stop working after being clicked once. Not sure whats going wrong here. var canYouSeeNav = false; var navWidth = $("#nav").width(); $("#burgerContainer").on("click", burgerClick); function burgerClick(){ console.log("click"); if(canYouSeeNav === false){ navOpen.invalidate().restart(); navOpen.play(); gsap.to("main", {duration:0.5, x:navWidth, ease:"expo.out"}); ..

Read more

I am working with Cypress, and I have a test with the following flow: Cypress gets a button and clicks it, which submits a form Form redirects to a "loading" url, which then redirects to another url, let’s say https://mockurl.com/shipment/1234 On https://mockurl.com/shipment/1234, there is a single line of inline JavaScript: window.open("https://mockurl.com/shipment/print", "_blank", "menubar=no,status=no"); This line ..

Read more