background preloader

JustGage.com

JustGage.com
Related:  App Pocket Result

jQuery Zoom A plugin to enlarge images on touch, click, or mouseover. Demo Hover Grab Released under the MIT License, source on Github (changelog) Download Compatible with: jQuery 1.7+ in Chrome, Firefox, Safari, Opera, Internet Explorer 7+. Install via NPM npm install jquery-zoom Instructions Zoom appends html inside the element it is assigned to, so that element has to be able to accept html, like <a>, <span>, <li>, <div>, etc. To use zoom with img elements, they will need to be wrapped with another element. Removing Zoom Trigger the zoom.destroy event to remove zoom from an element: $('#example').zoom(); $('#example').trigger('zoom.destroy'); Settings Hey, validate.js Lightweight JavaScript form validation library inspired by CodeIgniter. No dependencies, just over 2kb gzipped, and customizable! validate.js (development - 16kb) validate.min.js (minified - 2.1kb) Example All of the fields were successfully validated! Features Validate form fields from over a dozen rules No dependencies Customizable messages Supply your own validation callbacks for custom rules Chainable customization methods for ease of declaration Conditionally validate certain form fields Works in all major browsers (even IE6!) Installation and Usage Include the JavaScript file in your source Create the validation object with your desired rules. FormValidator new FormValidator(formName, fields, callback) The FormValidator object is attached to the window upon loading validate.js. The formName passed in to validate must be the exact value of the name attribute of the form An array of fields will be used to perform validation on submission of the form. Custom Validation Rules #1. setMessage

SVG path element The SVG <path> element is used to draw advanced shapes combined from lines, arcs, curves etc. with or without fill. The <path> element is probably the most advanced and versatile SVG shape of them all. It is probably also the hardest element to master. SVG Path - Video Tutorial Here is a video version of this tutorial: Path Example Let us first start with a simple SVG <path> example: Here is the resulting image: Notice how the image contains an arc and two lines, and how the second line is not joined with the first arc and line. All drawing with the <path> element is specified inside the d attribute. Setting and Moving the Pen The first drawing command inside the <path> d attribute should always be a move command. This example moves the virtual pen to the point 50,50. Lines Drawing a line is probably the simplest command you can give the <path> element. This example draws a line from the point 50,50 (the point of the M command) to the point 100,100 (the point of the L command). Arcs Markers

15+ Best jQuery Gauge Meter, Poll and Chart Plugins | WPULTI If you’re looking for some best jQuery gauge meter, poll and chart plugins, then below is a list for you. In the list, you’ll find jquery graph plugin, jquery interactive charts, jquery animated charts and graphs, jquery charts examples, jQuery gauge meter plugins and jQuery poll plugins. Check these out. Checkout other jQuery Collections: GraphUp – jQuery Plugin GraphUp is a very flexible and lightweight jQuery (v1.4+) plugin to spice up your data tables. more info 3D Pie Chart with JavaScript You can change position, width, height, radius X and Y, and depth of the pie You can change the optional legends attributes You can change the optional tooltip background and text-size You can change the titles You can add more items more info jsGauges JsGauges is a JavaScript software that allows you to show two types of analog gauges on your web- page. more info Google Chart Scroller/Zoomer more info Points Calculator Use this simple calculator to display points and rewards. more info Slidy more info

js A gridster configuration object. Define which elements are the widgets. Can be a CSS Selector string or a jQuery collection of HTMLElements. Horizontal and vertical margins respectively for widgets. Base widget dimensions in pixels. The first index is the width, the second is the height. extra_rows: 0 Add more rows to the grid in addition to those that have been calculated. extra_cols: 0 max_cols: null The maximum number of columns to create. min_cols: 1 The minimum number of columns to create. min_rows: 15 The minimum number of rows to create. max_size_x: false The maximum number of columns that a widget can span. autogenerate_stylesheet: true Don't allow widgets loaded from the DOM to overlap. A function to return serialized data for each each widget, used when calling the serialize method. draggable.start: function(event, ui){} A callback for when dragging starts. draggable.drag: function(event, ui){} A callback for when the mouse is moved during the dragging. draggable.stop: function(event, ui){}

Unify Client-Side and Server-Side Rendering by Embedding JSON Not many applications I work on these days are solely using the traditional server-side rendering model. Neither do they employ 100% client-side rendering and templating. Usually it’s a mix in which the ‘old’ world meets the new world, giving rise to some interesting design decisions. In this article I want to explore a solution that combines both worlds while minimizing the duplication of rendering logic by embedding JSON in the view. Let’s introduce a simple example to illustrate the JSON embedding trick. After the initial request to the server, the first page of products is shown. What duplication? We have two main goals: Code for rendering the table should be written onceUser-experience must be as smooth as possible (i.e. no visible flickering for AJAX updates of the initial page) Think about how you would implement this example. 01. 02. 03. 04. 05. 06. 07. 08. 09. 10. 11. 12. 13. 14. 15. 16. Then you also need to construct the table again after a successful paging AJAX call: 4. 01. 02. 20.

An Ember JS Gauge Component | Front / Back This is a gauge (well kind of) made with Ember Components and CSS3 transforms. The pointer angle is bound to those 2 inputs (see the jsbin just bellow) in which you can define either the pointer current value and the whole gauge maximum value. The Template The main idea of having a gauge component is that you can use and re-use it anywhere in your Ember app(s), and its main purpose is to indicate a current value relative to a maximum value. So, if it could have 2 attributes value and maxValue that would be perfect. Well, let's just do that. {{my-gauge value=something maxValue=something}} And here's how it would look like under the hood. Note: for the purpose of this post the template is inside these <script type="text/x-handlebars"> tags, but you could set your own template precompiling tools quite easily (grunt-ember-templates is pretty good at this) and you would have a my-gauge.hbs file inside a components/ folder. The MyGauge Object Oh God! Here's a little diagram, thought it might help.

gauge.js Example Variant selection Features No images, no external CSS - pure canvas No dependencies (jQuery is supported, but not required) Highly configurable Resolution independent Animated guage value changes (!) Usage The Gauge class handles drawing on canvas and starts the animation. Advanced options Percentage color If you want to control how Gauge behavaes in relation to the displayed value you can use the Guage option called percentColors. jQuery plugin Gauge.js does not require jQuery. $.fn.gauge = function(opts) { this.each(function() { var $this = $(this), data = $this.data(); if (data.gauge) { data.gauge.stop(); delete data.gauge; } if (opts ! Supported browsers Gauge.js has been (not yet!) Chrome Safari 3.2+ Firefox 3.5+ IE 9 Opera 10.6+ Mobile Safari (iOS 3.2+) Android 2.3+ Changes Version 1.2.1 (9.03.2014) Proper handling of color params issue #47. Version 1.2 (16.08.2012) Prototype chain fix. Version 1.1 (15.08.2012) Fixed color picker bug in FF & Opera Added a shadow option. Initial release

Creating a Complete HTML5 Drag and Drop File Uploader with jQuery Today we’re going to be creating a file uploader using HTML5 drag and drop, along with the file reader API and some PHP. We’ll also be using local storage to remember which files were uploaded by the user. Getting Started For this tutorial I’m using jQuery and an icon font called symbolset. If you don’t want to get symbolset you could use an alternative or just not use a symbol font all together! So first off, we need to include the appropriate files in our index.html file: Next lets do the main HTML in the body: There is also a little bit of simple CSS. jQuery Effectively what we want to do is get the Data URI for all the images that the user drags into the drag area. To begin, we need to initiate some variables: Next we need to bind a function to the drop event. Now we want to check for any errors. When the user drops an image in the drop box, the first 5 will be shown as images. Now we can run the file reader function. The PHP file will return some data which we must interpret. Support

Changing Times For Web Developers – 6 Tips You Should Read To Survive The context of this post is about the changing times for a web developer, and I see a lot of web developers still lagging behind especially in the .NET world. If you haven't yet started mastering your art and adapting to the changing trends, you should start today. Think about crafting your web applications properly. 1 – Learn to write better JavaScript and CSS If you don’t write proper JavaScript and CSS, you are dead. Familiarize yourself with a higher level abstraction language to write JavaScript once you are comfortable with plain Javascript – Like CoffeeScript or TypeScript. JQuery – Alright, you know this, don’t you? More Oh yes, start learning TypeScript especially if you have a Microsoft technology/C# background. On the CSS Side, familiarize with SASS and/or Less – Skim through the CSS 3 techniques, keep an eye on the CSS 3 features available in various browsers. 2 – Familiarize yourself with a Responsive Framework Essential reads. 3 – Learn the most useful JavaScript MVC frameworks

Related: