background preloader

A Simple JavasScript Preloader

A Simple JavasScript Preloader
A JavaScript Preloader for HTML5 Apps PxLoader is a Javascript library that helps you download images, sound files or anything else you need before you take a specific action on your site (like showing a user interface or starting a game). You can use it to create a preloader for HTML5 games and websites. It let's you monitor download status by providing progress and completed events and it lets you prioritize the order in which items are downloaded. We created PxLoader for the HTML5 version of Cut the Rope and out of the box works great with images and sound files (the types of resources we needed for the game), but it's designed to be extensible and work with any file type or other network action. Step by Step Instructions 1. *The sound file downloader works with SoundManager 2 and allows it do the heavy lifting of the actual download. 2. 3. Download Images Before Drawing to a Canvas Images must be fully loaded before they can be drawn on an HTML5 canvas. Report Progress While Images Load

GoJS GoJS is the only diagram library for HTML5 Canvas that supports data binding and templates. GoJS integrates these concepts cleanly and coherently into a powerful diagramming extension to the HTML5 JavaScript environment. Diagram Models and Data Binding One of the principal features of the Model-View-ViewModel design pattern is the use of data binding. There are at least two kinds of relationships that a diagram can support between data items: Relationships forming a graph of nodes and links (or in similar terminology: nodes and arcs, or entities and relationships, or vertices and edges) Grouping relationships, where a group contains members; perhaps for part/sub-part containment, or for the nesting of subgraphs GoJS makes use of a model to discover, maintain, navigate, and modify these relationships based on the data to which the diagram is bound. If you look at our online demos, you will see how little code you need to visualize and update your data. Will result in this diagram:

Introducing filer.js - Eric Bidelman Slider for Bootstrap, from Twitter Example Basic example with custom formater Range selector, options specified via data attribute. Filter by price interval: € 10€ 1000 Using events to work with the values and style the selection and handles via CSS. Vertical sliders Using bootstrap-slider.js Call the slider via javascript: $('.slider').slider() Options Markup You can use data attributes to set up the configuration. Methods .slider(options) Initializes a slider. .slider('getValue') Get the value. .slider('setValue', value) Set a new value. Events Slider class exposes a few events for manipulating the value. $('#dp5').slider() .on('slide', function(ev){ .... }); html5sql.js Home Page

Datepicker for Bootstrap, from Twitter Example Attached to a field with the format specified via options. Attachet to a field with the format specified via data tag. As component. Start with years viewMode. Limit the view mode to months Attached to other elment then field and using events to work with the date values. Disabling dates in the past and dependent disabling. Using bootstrap-datepicker.js Call the datepicker via javascript: $('.datepicker').datepicker() Options Markup Format a component. Methods .datepicker(options) Initializes an datepicker. .datepicker('show') Show the datepicker. .datepicker('hide') Hide the datepicker. .datepicker('place') Updates the date picker's position relative to the element .datepicker('setValue', value) Set a new value for the datepicker. Events Datepicker class exposes a few events for manipulating the dates. $('#dp5').datepicker() .on('changeDate', function(ev){ if (ev.date.valueOf() < startDate.valueOf()){ .... } });

HTML5 Please Supported Browsers API CreateJS Recent Updates Follow @CreateJS November 2014 Added Unit Tests to EaselJSUpdates in preparation for new releases (coming soon). October 2014 Added 'Extras' to EaselJSTons of updates and pull requests in all libs July 2014 Major Updates to EaselJS Graphics The Story Why we built CreateJS About CreateJS CreateJS is a suite of modular libraries and tools which work together to enable rich interactive content on open web technologies via HTML5. Featured Projects Community Show & Tell. Ion Drift A port of the Flash game Ion Drift, b10b was able to build a CreateJS version in less than a day that hit target framerates on even the lowest devices, and outperformed ports to other libraries. By b10b b10b

yatil/accessifyhtml5.js jQuery Webshims lib - The capability-based polyfill-loading JS library Important note: Webshim is not compatible with upcoming jQuery 3.x and I do not plan to work on a new major version. I will still fix critical bugs in the future though. Webshim is a polyfill library that enables you to reliably use HTML5 features across browsers, even if native support is lacking. The project is hosted on GitHub, and is available for use under the MIT software license. You can report bugs and discuss features on the GitHub issues page. Downloads & Dependencies (Right-click, and use "Save As") Download Webshim depends on jQuery. There are many appealing HTML5 features such as form validation, geolocation, mediaelements and UI widgets which ease the burden of writing rich web applications. Webshim is a polyfill solution. Webshim is also more than a polyfill, it has become a UI component and widget library. Installation Take the 'js-webshim' folder and add it to your project. Configuration The polyfill method accepts an optional whitespace-separated feature list. Fire When Ready 1.

Initializr - Start an HTML5 Boilerplate project in 15 seconds! lesjames/Breakpoint

Related: