Coder Social home page Coder Social logo

gwfselect-for-jquery-ui's Introduction

jQuery UI widget: Google WebFont selector

Based very loosely on Tom Moor's plugin for selecting Google's hosted fonts from a dynamically-generated drop-down list. This version uses jQuery UI's widget factory to provide the standard tools for accessing and manipulating the plugin's state programmatically.

Usage

  1. Include jQuery, jQuery UI, and the Google WebFont loader on your page.
  2. Create a regular text input to use as the font selector (it may be prefilled with the name of a font).
  3. Invoke $.gwfselect on the input. You can call this with no arguments to allow all available Google web fonts to be selected, or pass a config object with a fonts array to specify an explicit font list, e.g. { fonts: ['Amaranth', 'Artifika', 'Averia Libre'] }. View available fonts...

Example

View the index.html file in this repository for examples of the plugin in use.

Changelog

  • 2012-01-13 -- Initial public release (no version number).
  • 2012-05-14 -- Version 1.1; lazily loads font list from Google's servers when it is first required by a widget.

Author

© 2012-2013 Jack Letourneau. See LICENSE.txt for license info.

gwfselect-for-jquery-ui's People

Watchers

 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.