Git Product home page Git Product logo

wextensions's Introduction

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

wextensions's People

Contributors

websanova avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.