Skip to content

Instantly share code, notes, and snippets.

View snowman-repos's full-sized avatar

James snowman-repos

View GitHub Profile
@snowman-repos
snowman-repos / gist:3813473
Created October 1, 2012 18:18
HTML: Stop IE Page Load Flicker
<!--[if IE]>
<meta http-equiv="Page-Enter" content="blendTrans(duration=0)" />
<meta http-equiv="Page-Exit" content="blendTrans(duration=0)" />
<![endif]-->
@snowman-repos
snowman-repos / gist:3813477
Created October 1, 2012 18:19
HTML: Acronym Tag
I love <acronym title="Cascading Style Sheets">CSS</acronym>.
@snowman-repos
snowman-repos / gist:3813503
Created October 1, 2012 18:22
HTML: Video for Everybody (HTML5 Video with Flash Fallback)
<!-- first try HTML5 playback: if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise -->
<!-- warning: playback does not work on iOS3 if you include the poster attribute! fixed in iOS4.0 -->
<video width="640" height="360" controls>
<!-- MP4 must be first for iPad! -->
<source src="__VIDEO__.MP4" type="video/mp4" /><!-- Safari / iOS video -->
<source src="__VIDEO__.OGV" type="video/ogg" /><!-- Firefox / Opera / Chrome10 -->
<!-- fallback to Flash: -->
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
<!-- Firefox uses the `data` attribute above, IE/Safari uses the param below -->
<param name="movie" value="__FLASH__.SWF" />
@snowman-repos
snowman-repos / gist:3813531
Created October 1, 2012 18:27
HTML: iPhone Call & Text Links
<a href="tel:1-408-555-5555">1-408-555-5555</a>
<a href="sms:1-408-555-1212">New SMS Message</a>
@snowman-repos
snowman-repos / gist:3813538
Created October 1, 2012 18:28
HTML: Mailto Link (with Parameters)
<a href="mailto:[email protected][email protected], [email protected], [email protected]&[email protected]&subject=Big%20News&body=Body-goes-here">Email Us</a>
@snowman-repos
snowman-repos / gist:3813543
Created October 1, 2012 18:28
HTML: Make IE6 Crash
<style>*{position:relative}</style><table><input></table>
@snowman-repos
snowman-repos / gist:3813548
Created October 1, 2012 18:29
HTML: Meta Refresh
<meta http-equiv="refresh" content="5;url=http://example.com/">
@snowman-repos
snowman-repos / gist:3813558
Created October 1, 2012 18:31
HTML: Prevent Search Bots from Indexing
<meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
<a href="privatepage.html" rel="nofollow">Link to private page</a>
@snowman-repos
snowman-repos / gist:3813578
Created October 1, 2012 18:34
HTML: Multiple File Inputs
<form method="post" action="upload.php" enctype="multipart/form-data">
<input name='uploads[]' type="file" multiple>
<input type="submit" value="Send">
</form>
@snowman-repos
snowman-repos / gist:3813586
Created October 1, 2012 18:36
HTML: Set iPhone Bookmark Icon
<!--57x57px PNG file-->
<link rel="apple-touch-icon" href="iphone-icon.png">
<!--57x57px PNG file without Apple Gloss-->
<link rel="apple-touch-icon-precomposed" href="icon">