dfcb.github.com

This plugin makes it easy to add fit-to-fill background video to websites. It can play silent ambient background...

makandra dev
goat1000.com

TagCanvas is a Javascript class which will draw and animate a HTML5 canvas based tag cloud.

makandra dev
blog.jquery.com

Two new methods on and off are the new way of declaring event handlers. bind, delegate and live area deprecated...

bitbucket.org

String manipulation extensions for the Underscore.js javascript library.

jqueryElement.is(':checked...

makandra dev
morrisonpitt.com

jsPlumb can visually connect elements together with curved (or straight) lines. The demo has examples of Bezier curves and straight...

You should prefer native promises to jQuery's Deferreds. Native promises are much faster than their jQuery equivalent. Native promises...

makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

...Capybara::Selenium::Driver) # disable future ajax requests page.execute_script <<-JAVASCRIPT if ( (typeof jQuery) !== 'undefined' ) { jQuery.ajaxPrefilter(function(options, originalOptions, jqXHR) { jqXHR.abort(); }); } JAVASCRIPT # wait for active ajax requests to complete patiently do...

...page.execute_script("return (typeof jQuery) === 'undefined' || jQuery.active === 0").should == true end end end The code above depends on Spreewald for patiently...

...that is imported as a whole before we use $(): // application.js import 'jquery' import 'site' // jquery.js import jquery from 'jquery' window.jQuery = jquery window.$ = jquery // site.js $('...').on('click...

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

makandra dev

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...

...version 3.5.4 was never published https://github.com/select2/select2/issues/5360 import 'select2/select2.js' import 'select2/select2.css' import 'select2/select2-bootstrap' import 'jquery-ujs' window.$ = jQuery window.jQuery = jQuery // JavaScript let webpackContext = require.context('../javascripts', true, /\.js$/)

...for assets and the Asset Pipeline itself, e.g. sass-rails, uglifier, autoprefixer-rails, sprockets-rails, jquery-rails, bootstrap-sass and many more. Remove Asset Pipeline configurations from app/config/application.rb and app/config/environments...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...

github.com

See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...

Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

...add 3 different lightbox libraries, if you only need one. Don't load the complete jQuery-UI, if you only need one component. If you need a library only on...