FANDOM


Utils comes along with some functions for common use cases.

Contents

Functions

  • Check if a variable is 'isset()' or 'empty()'
  • Check if a number 'isEven()' or 'isOdd()'
  • Check if pageExists() in wiki
  • Replacement functions
    • replaceUmlauts()
    • replaceURIChars()
  • Zero pad()ing
  • setHash() in the current URL

Custom jQuery methods

  • getOuterHTML()
  • getQueryParameters()

Custom event handler

  • locationHashChanged()

Usage

You can

  • Code to the code file and pick the functions which delight you
  • Import it to your ImportJS

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.