1.0.0-s • Published 3 years ago

rickroll.js v1.0.0-s

Weekly downloads
865,474
License
MIT
Repository
github
Last release
3 years ago

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.js

    Parameters

    These Parameter that you must provide is in type of boolean.
    • click for Triggering any Click Event in document.
    • scroll for Triggering any scroll Event in document.
    • mousemove for Triggering any mouse movement Event in document.
    • mouseenter for Triggering some mouse when entered to document (Unstable).
    • mouseleave for Triggering mouse when mouse leaves document.
    • mousewheel for Triggering any mouse wheel event in document.
    • drag for Triggering any drag event in document (Unstable).
    • input for Triggering any input and key event in document.
    • resize for Triggering any resize event in document (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.