/webapp-helpers

Common JS and CSS for web applications.

Primary LanguageJavaScript

Webapp helpers

Common JS and CSS for web applications.

Features

  • Load Google fonts asynchronously (+ Material design icons).
  • Try to define user language and populate the associated input.
  • Back to top link.
  • Smooth scroll when user click internal links.
  • Hide URL hash when user click internal links.
  • Save input values to a data attribute for live reset.
  • Make form fields persistent (require Basil.js).
  • Watch the reset button to clear cookies / local storage.
  • Add a .disabled class to unsupported field types.
  • Add a simple parallax function.
  • Load the Google Adsense library then add a class allowing to unhide ad containers.
  • Show a lot of debug information in console including some plugins (Garlic, Parsley, Mixitup, i18next, jQuery UI sortable).

Install

Download with Bower.

bower install chrisbo246/webapp-helpers

Load webapp-helpers.js with a script tag in your main .html.

<script src="/bower_components/webapp-helpers/dist/scripts/webapp-helpers.js"></script>

Edit your main.scss and import webapp-helpers.scss.

@import "app/styles/webapp-helpers";

Usage

You can eventually customize the default settings to change some selectors or disable some functionalities.

Bugs

Please use the GitHub issue tracker for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already.

Author

chrisbo246

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License. See the opensource.org website for details.