background preloader

Javascript

Facebook Twitter

Fluid and responsive YouTube and Vimeo videos with fluidvids.js. One of the major drawbacks to responsive design is managing external plugins/resources, such as YouTube and Vimeo videos – which we can embed into our sites using an iframe. This is where we lose control. Working with iframes is sometimes tricky, especially with video and maintaining aspect ratios. There are some CSS hacks we can do to attempt making iframe videos responsive, but to no success. Better attempts have been made, jQuery plugins, scripts. Some work great, but some warrant further action. We’re in a world full of plugins, it’s time to start writing your own stuff. The demo includes both a YouTube and Vimeo iframe embed, both at different aspect ratios. The iFrame Before attacking our iframe and ripping the attributes off it, let’s have a think of what we can use. A width and height attribute already exist, I see no reason to ‘remove’ these like other plugins, let’s simply overwrite them with our future code.

Targeting the iFrame Let’s grab the iframe in the page: For Loop Usage. Node.js. Raphaël—JavaScript Library. SoundManager 2: JavaScript Sound For The Web.

jQuery

JavaScript - MDC Docs. JavaScript (JS) is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.

JavaScript's dynamic capabilities include runtime object construction, variable parameter lists, function variables, dynamic script creation (via eval), object introspection (via for...in and Object utilities), and source-code recovery (JavaScript functions store their source text and can be retrieved through toString()). This section is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. Looking to become a front-end web developer? Get started. How To Node - NodeJS. Eloquent JavaScript: A Modern Introduction to Programming.

Create a new Fiddle - jsFiddle - Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype, YUI, Glow and Dojo, HTML, CSS) Jeff-optimizely/Guiders-JS - GitHub. Knockout : Home.