Skip to content

Author: admin@master

Create a nice scrolling/sliding effect with JS

I would like to create a “smooth” scroll animation that slides down from one element to the next. I do not want to use Jquery or any libraries, just javascript and HTML. I have tried: This causes scrolling, but not a smooth animation. I have already looked at some other smooth-scrolling techniques…

Use window.open but block use of window.opener

A while back I ran across an interesting security hole Looks innocuous enough, but there’s a hole because, by default, the page that’s being opened is allowing the opened page to call back into it via window.opener. There are some restrictions, being cross-domain, but there’s still some misc…

Is it possible to discard data errors in a Vue instance?

I will have a lot of variables in my Vue instance modified via API calls. Their initial value is not important. I was hoping there would be a way not to define them upon the instantiation of the vm but this does not work: If I replace data: {} by data: { number: null } the code runs fine. What