<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - rtcrm</title>
<link>http://snipplr.com/users/rtcrm/language/javascript</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 23:51:34 GMT</pubDate>
<item>
<title>(JavaScript) HTML5 enabling script</title>
<link>http://snipplr.com/view/14380/html5-enabling-script/</link>
<description><![CDATA[ <p>Since HTML5 is getting [more](http://www.brucelawson.co.uk/tests/html5-elements.html) [attention](http://adactio.com/journal/1540/) by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as ``, is to use the [HTML5 shiv](http://ejohn.org/blog/html5-shiv/), here’s a mini script that enables all the new elements.

###Usage &amp; Download###

The html5.js and must be inserted in the head element _(this is because IE needs to know about the element before it comes to render them — so it can’t sit in the footer of the page, i.e. below the elements in question)_.

It’s conditional within the code, so Firefox _et al_ won’t run the code — but it doesn’t hurt to wrap it in an IE conditional call to reduce the http pulls for other browsers:

&amp;lt;!--[if IE]&amp;gt;
&amp;lt;script src="html5.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
</p> ]]></description>
<pubDate>Fri, 24 Apr 2009 10:12:11 GMT</pubDate>
<guid>http://snipplr.com/view/14380/html5-enabling-script/</guid>
</item>
<item>
<title>(JavaScript) CSS Browser Selector</title>
<link>http://snipplr.com/view/9340/css-browser-selector/</link>
<description><![CDATA[ <p>CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.

Available OS Codes [os]:

`win` - Microsoft Windows 

`linux` - Linux (x11 and linux) 

`mac` - Mac OS 

`freebsd` - FreeBSD

`ipod` - iPod Touch

`iphone` - iPhone

`webtv` - WebTV

`mobile` - J2ME Devices (ex: Opera mini)



Available Browser Codes [browser]:

`ie` - Internet Explorer (All versions) 

`ie8` - Internet Explorer 8.x 

`ie7` - Internet Explorer 7.x 

`ie6` - Internet Explorer 6.x 

`ie5` - Internet Explorer 5.x 

`gecko` - Mozilla, Firefox (all versions), Camino 

`ff2` - Firefox 2 

`ff3` - Firefox 3 

`opera` - Opera (All versions) 

`opera8` - Opera 8.x 

`opera9` - Opera 9.x 

`opera10` - Opera 10.x

`konqueror` - Konqueror 

`webkit` - Safari, NetNewsWire, OmniWeb, Shiira, Google Chrome 

`safari` - Safari, NetNewsWire, OmniWeb, Shiira

`safari3` - Safari 3.x

`chrome` - Google Chrome 



Extra Codes:

`js` - Will be available when js is enable, so you can show/hide some stuffs 



RTCRM</p> ]]></description>
<pubDate>Tue, 28 Oct 2008 15:47:01 GMT</pubDate>
<guid>http://snipplr.com/view/9340/css-browser-selector/</guid>
</item>
<item>
<title>(JavaScript) Vertically align within browser window</title>
<link>http://snipplr.com/view/9321/vertically-align-within-browser-window/</link>
<description><![CDATA[ <p>This will vertically align a block-level element inside the user's browser window and will automatically adjust if the window is resized.

RTCRM</p> ]]></description>
<pubDate>Mon, 27 Oct 2008 13:36:04 GMT</pubDate>
<guid>http://snipplr.com/view/9321/vertically-align-within-browser-window/</guid>
</item>
</channel>
</rss>