Skip to content

Create a universal helper with most common snippets used for front-end developers, enjoy & collaborate ;)

License

Notifications You must be signed in to change notification settings

thEpisode/UniversalHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

UniversalHelper

Create a universal helper with most common javascript snippets used for front-end developers, enjoy & collaborate ;)

Usage

Reload pages

UniversalHelper.reloadPage();

Clean input tags

UniversalHelper.cleanInputs(["#idInputA", "#idInputB"]);

Clean table tag for load new information

UniversalHelper.cleanInputs("selector");

Clean select tags

UniversalHelper.cleanSelect(["#idSelectA", "#idSelectB"]);

Show hidden elements

UniversalHelper.showElements(["#idElementA", "#idElementB"]);

Hide elements

UniversalHelper.hideElements(["#idElementA", "#idElementB"]);

Enable elements

UniversalHelper.enableElements(["#idElementA", "#idElementB"]);

Disable elements

UniversalHelper.disableElements(["#idElementA", "#idElementB"]);

Slide-in animation

UniversalHelper.slideIn("#selector");

Slide-out animation

UniversalHelper.slideOut("#selector");

GPS Watcher

  • Initialize the engine
UniversalHelper.GPSWatcher();
  • Catch the events emitted by UniversalHelper
$(document).on("GPSPositionChanged", function (event, latitude, longitude) {
    console.log(latitude + " - " + longitude);
});
$(document).on("GPSMessage", function (event, message) {
    alert(message);
})

About

Create a universal helper with most common snippets used for front-end developers, enjoy & collaborate ;)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published