Skip to content

Instantly share code, notes, and snippets.

View frequent's full-sized avatar

Sven Franck frequent

View GitHub Profile
@frequent
frequent / imgtag.html
Created November 28, 2011 22:18 — forked from ike/imgtag.html
The New Img Tag
<img src="large-default-file.jpg">
<source src="smaller.jpg" media="max-width:600px">
<source src="tiny.jpg" media="max-width:320px">
</img>
@frequent
frequent / mobile-meta-links.html
Created December 14, 2011 23:33
iOS Web App Configuration
@frequent
frequent / jqm-self-init-a-widget.js
Created January 4, 2012 12:44 — forked from scottjehl/jqm-self-init-a-widget.js
Self-init a jQuery Mobile plugin
// First, let's define a widget/plugin called "foo"
// Either using jQuery's $.fn plugin namespace, for simple stateless plugins...
$.fn.foo = function(){
// In this scope, this refers to the element on which the plugin foo() was called
// manipulate it and return this at the end, so it can be chainable
};