All Projects → websanova → wExtensions

websanova / wExtensions

Licence: other
A collection of JavaScript extensions.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

wExtensions

A collection of JavaScript extensions.

JavaScript Functions

base64Decode base64Encode capitalize color2color reverse rgbHex shuffleArray stripTags trimChar uniqueId url utf8Decode utf8Encode wordcount

jQuery Methods

bindMobileEvents caretPosition charsPerLine hasClassRegex hasScrollbar lineCount realHeight realWidth mousestop removeClassRegex

HTML5

diamond ellipse fillArea hexagon ninjastar octagon parallelogram pentagon roundedRect star trapezoid triangle

Project Goals

The goal of this project is to be able to quickly add uncommonly used functions into any project without having to always search Google or look through old code by putting them all in one easily accessible spot. It also lets us fix any bugs and have the latest versions available for use in the future. Each extensions directory contains documentation and a test file making it easer for developers to make contributions by either submitting a test case or making bug fixes to individual extensions.

What qualifies as an entry is something that is a small(ish) piece of code that should for more or less have a "best" solution. For instance there is probably a best way to write a way to convert rgb values to hex values. But something like a tooltip plugin may have many implementations each of which are equally viable. Therefore we want to focus on smaller code snippets and utitlity type functions that we can just toss into our projects when needed.

Note that the project contains extensions not only for JavaScript but for other popular libraries like jQuery. Feel free to add folders for any other libraries you may want to add to this project.

Running Test Cases

To run test cases you will have to download the source from GitHub and run any of the index.html files for any particular extensions you want to test. You can also just access the root index.html file to see a listing of all extensions. Also note that if you download any of these files make sure you also have the assets folder as it contains the required qunit and jquery files needed for some of the etensions.

Contributing

If you want to contribute an extension just add an exmaple in the format of the existing extensions. Basically each folder should have:

  • some kind of main .js file
  • index.html with some test or a demo
  • README.md with some basic info

You can also just point to an existing project if it already exists somewhere, preferably on GitHub.

For any other questions just post to the issues please. Also use the issues page to provide suggestions for any new extensions with either a code sample or link.

Grunt.js

If you want to use Grunt you will need to install the required plugins locally using npm install in the root folder of the project. If you need to setup Grunt on your system you can follow this Setting up Grunt.js guide.

License

MIT licensed

Copyright (C) 2011-2013 Websanova http://www.websanova.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].