1.0.0-s • Published 3 years ago
rickroll.js v1.0.0-s
RickRoll.js
Some javascript module that used for rickrolling people in website.
Install
You can get RickRoll.js at npm
npm install rickroll.js
Add this script to your page
<script src="node_modules/rickroll.js/RickRoll.js"></script>
<script>
rickroll();
</script>
Or this:
<script src="https://yonle.github.io/RickRoll.js/RickRoll.js"></script>
<script>
rickroll();
</script>
Method
There's alot of method in RickRoll.js to RickRoll people in your website:
rickroll()
A main function of RickRoll.jsParameters
These Parameter that you must provide is in type ofboolean
.click
for Triggering any Click Event indocument
.scroll
for Triggering any scroll Event indocument
.mousemove
for Triggering any mouse movement Event indocument
.mouseenter
for Triggering some mouse when entered todocument
(Unstable).mouseleave
for Triggering mouse when mouse leavesdocument
.mousewheel
for Triggering any mouse wheel event indocument
.drag
for Triggering any drag event indocument
(Unstable).input
for Triggering anyinput
andkey
event indocument
.resize
for Triggering anyresize
event indocument
(Notice: This option may not stable for mobile browser user.).
rickroll.showup()
A function that clean the webpage and Play the rickroll. Example:button.onclick = function () { rickroll.showup(); });
rickroll.video
A variable that contains RickRoll Video(raw) URL. You can also change it.
Community
Any question or doubt can contact us at our discord server.