<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xavi Esteve &#187; jquery</title>
	<atom:link href="http://xaviesteve.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://xaviesteve.com</link>
	<description>I&#039;m a front end web developer and graphic designer from Barcelona based in London. I am passionate in JavaScript, jQuery, CSS, PHP, Wordpress, usability and SEO.</description>
	<lastBuildDate>Mon, 21 May 2012 11:14:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Simplest Modal Window (less than 1KB) &#8211; jQuery Plugin</title>
		<link>http://xaviesteve.com/3054/simplest-modal-window-less-than-1kb-jquery-plugin/</link>
		<comments>http://xaviesteve.com/3054/simplest-modal-window-less-than-1kb-jquery-plugin/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 15:18:19 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[creativecommons]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=3054</guid>
		<description><![CDATA[Following my jQuery minimal plugin series I&#8217;ve now built a very functional and minimal jQuery plugin to create modal windows on the go, it weights exactly 572 Bytes (0.6KB). The modal windows have a slick design using a white rounded border square with a fine shadow: The CSS style is fully customizable, only 8 properties used [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-3072" title="" src="http://xaviesteve.com/wp-content/uploads/2012/03/9.jpeg" alt="" width="600" height="200" /></p>
<p>Following my jQuery minimal plugin series I&#8217;ve now built a very functional and minimal jQuery plugin to create modal windows on the go, it weights exactly 572 Bytes (0.6KB). The modal windows have a slick design using a white rounded border square with a fine shadow:</p>
<p><img class="aligncenter size-full wp-image-3057" title="Simple jQuery Modal Window Plugin" src="http://xaviesteve.com/wp-content/uploads/2012/03/Screen-shot-2012-03-04-at-02.00.29.png" alt="Simple jQuery Modal Window Plugin" width="526" height="147" /></p>
<p>The CSS style is fully customizable, only 8 properties used by default and you can modify most of them to customise it your way.</p>
<p>The script is unobtrusive and has a high-performance, meaning it only loads and modifies the DOM when required and it unloads everything completely when the modal window is closed. Closing the modal window can be done by either clicking outside of the window or by clicking any <code>.mw_close</code> element in the window content.</p>
<h3>Download Simple Modal Window jQuery Plugin</h3>
<p>Copy and paste this code below. Yes, ALL the plugin is in this small piece of code, you should just add it into a JavaScript file you have or directly into the page (inside the jQuery wrapper).</p>
<pre>/* Simplest Modal Window by Xavi Esteve (Creative Commons BY-SA) http://xaviesteve.com/?p=3054 */function mw_close(){$("#mw_win,#mw_mask,#mw_style").remove()}function mw_load(a){mw_mask="background:#333;height:100%;opacity:0.33;position:fixed;top:0;left:0;width:100%;z-index:1000;";mw_win="background: white;border-radius: 5px;box-shadow: 0 1px 2px #666;left: 33%;padding: 2%;position: fixed;top: 33%;width: 33%;z-index: 1001;";$("head").append('&lt;style id="mw_style"&gt;#mw_mask{'+mw_mask+"}#mw_win{"+mw_win+"}&lt;/style&gt;");$("body").append('&lt;div id="mw_mask"&gt;&lt;/div&gt;&lt;div id="mw_win"&gt;'+a+"&lt;/div&gt;");$("#mw_mask,.mw_close").unbind("click").bind("click",function(){mw_close()})}</pre>
<p>Here&#8217;s the code without minifying:</p>
<pre>/* Simplest Modal Window by Xavi Esteve (Creative Commons BY-SA) http://xaviesteve.com/?p=3054 */
$(function() {
  /* Modal window script in 9 lines */
  function mw_load(html) {
    mw_mask = 'background:#333;height:100%;opacity:0.33;position:fixed;top:0;left:0;width:100%;z-index:1000;';
    mw_win = 'background: white;border-radius: 5px;box-shadow: 0 1px 2px #666;left: 33%;padding: 2%;position: fixed;top: 33%;width: 33%;z-index: 1001;';
    $('head').append('&lt;style id="mw_style"&gt;#mw_mask{'+mw_mask+'}#mw_win{'+mw_win+'}&lt;/style&gt;');
    $('body').append('&lt;div id="mw_mask"&gt;&lt;/div&gt;&lt;div id="mw_win"&gt;'+html+'&lt;/div&gt;');
    $('#mw_mask,.mw_close').unbind('click').bind('click', function() {mw_close();});
  }
  function mw_close() {$('#mw_win,#mw_mask,#mw_style').remove();}</pre>
<p>You can load a new Modal Window through JavaScript by using this function:</p>
<pre>mw_load('&lt;p&gt;Lorem ipsum dolor sit &lt;a href="#" class="mw_close"&gt;amet&lt;/a&gt;.&lt;/p&gt;');</pre>
<p>If you have any issues please let me know, note that the plugin&#8217;s purpose is to simply work, fancy features and extras should be coded apart specifically for your projects. The plugin requires jQuery and it hasn&#8217;t been tested in IE6.</p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/3054/simplest-modal-window-less-than-1kb-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed Website Fold height (minimal Javascript Plugin, jQuery)</title>
		<link>http://xaviesteve.com/2088/fixed-website-fold-height-minimal-javascript-plugin-jquery/</link>
		<comments>http://xaviesteve.com/2088/fixed-website-fold-height-minimal-javascript-plugin-jquery/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 06:22:10 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[Front-End]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[fold]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=2088</guid>
		<description><![CDATA[FoldResizer is a Javascript plugin that will keep anything you want above the fold without worrying about your visitors screen size. The plugin is very easy to install and it works by resizing a &#60;div&#62; and allowing you to decide how much space left you need. Here are some examples: These are screenshots of the [...]]]></description>
			<content:encoded><![CDATA[<p>FoldResizer is a Javascript plugin that will keep anything you want above the fold without worrying about your visitors screen size. The plugin is very easy to install and it works by resizing a &lt;div&gt; and allowing you to decide how much space left you need. Here are some examples:</p>
<p><img class="alignright size-full wp-image-2089" src="http://xaviesteve.com/wp-content/uploads/2011/04/resizablefolds.jpg" alt="" width="600" height="171" /></p>
<p>These are screenshots of the same website loaded in different screen sizes, as you can see, the fold is always in the same place, displaying the same content for each user and having full control on what you want to show to them. Always keeping what matters <strong>above the fold</strong>.</p>
<h2>Features</h2>
<ul>
<li><strong>Cross-browser</strong> &#8211; Works in Firefox, Chrome, Safari, IE (including IE6)</li>
<li><strong>No plugins required</strong> &#8211; Just 100% pure Javascript</li>
<li><strong>Instant loading</strong> &#8211; No need to wait for the page to be loaded completely</li>
<li><strong>Small size</strong> &#8211; Less than 0.2KB</li>
</ul>
<h2>Instructions</h2>
<p>Include the script file and call the function by passing the parameters:</p>
<p><strong>foldresizer(&#8216;containerID&#8217;, freeheight, minheight);</strong></p>
<ol>
<li>ID of the container to be resized</li>
<li>How many pixels height to leave free</li>
<li>Minimum size of the resized container (default 0)</li>
</ol>
<h3>Example:</h3>
<pre>&lt;script type="text/javascript"&gt;
  resizefold('head', 200, 300);
&lt;/script&gt;</pre>
<p>Note that <strong>this plugin is purely JavaScript</strong> and does not rely on jQuery or any other plugins so you can call it in your &lt;head&gt; while the page is loading and <em>users will not notice any page redrawing</em> or resizing.</p>
<h2>Demo</h2>
<p>See the plugin working live at the <a title="SFP Group" href="http://www.sfpgroup.com">SFP Group website</a>. Resize your browser window and reload the page to see how it always keeps the fold fixed.</p>
<h2>Download</h2>
<p>Download the script by right clicking on the links and clicking &#8216;Save as&#8217;:</p>
<ul>
<li><strong><a title="jQuery Fold Resizer Minified" href="http://xaviesteve.com/files/foldresizer.min.js">FoldResizer Minified version</a> (0.95KB) (recommended)</strong></li>
<li><a title="jQuery Fold Resizer Editable code" href="http://xaviesteve.com/files/foldresizer.js">FoldResizer Maxified version</a> (1.5KB)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/2088/fixed-website-fold-height-minimal-javascript-plugin-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clickable DIVs &#8211; jQuery plugin</title>
		<link>http://xaviesteve.com/1708/clickable-divs-jquery-plugin/</link>
		<comments>http://xaviesteve.com/1708/clickable-divs-jquery-plugin/#comments</comments>
		<pubDate>Tue, 10 May 2011 07:26:23 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[UX]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=1708</guid>
		<description><![CDATA[Clickable DIVs jQuery plugin will convert anything (&#60;div&#62;, &#60;li&#62;, &#60;p&#62;, etc.) into a clickable object. It is a great way to enhance the usability of your website by increasing the clickable space to your users while avoiding extra HTML markup or a somehow tedious re-coding of your website. Works with JavaScript disabled too (graceful degradation) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-2155" src="http://xaviesteve.com/wp-content/uploads/2011/05/untitled-3.jpg" alt="" width="600" height="200" /><br />
<strong>Clickable DIVs jQuery plugin</strong> will convert anything (&lt;div&gt;, &lt;li&gt;, &lt;p&gt;, etc.) into a clickable object. It is a great way to enhance the <strong>usability</strong> of your website by increasing the <strong>clickable space</strong> to your users while avoiding extra HTML markup or a somehow tedious re-coding of your website.</p>
<ul>
<li>Works with <strong>JavaScript</strong> disabled too (graceful degradation)</li>
<li>Works in all <strong>modern, mobile and old browsers</strong>: Firefox, Chrome, Opera, Safari, Internet Explorer (including <strong>IE6</strong>), touch screens (<strong>iPhone</strong>, iPad, Android), etc.</li>
<li>Detects if link needs to be opened in a <strong>new page or the same</strong> one</li>
<li><strong>1 line of code</strong>, easy to install (paste the code and add <code>click</code> class to the <code>div</code>)</li>
<li>Works with <code>div</code>, <code>li</code>, <code>p</code>, <code>h1</code> or any other HTML element</li>
</ul>
<p>This small plugin is being used in this website already. This is how my front page looks like:</p>
<p><img class="size-full wp-image-2139 alignleft" title="clickabledivs-withouttheplugin" src="http://xaviesteve.com/wp-content/uploads/2011/05/clickabledivs-withouttheplugin.jpg" alt="" width="600" height="361" /></p>
<p>The red area symbolizes the clickable area where the link would work for users visiting the website. The black square shows you the existing markup of each listed item.</p>
<p>By adding a simple <code>click</code> class to the list element, it inherits the click bind of the <code>&lt;a&gt;</code> in it and everything becomes a link. The plugin will also detect if the link is set to <strong>open in a new window</strong>. Look at the clickable area after enabling the plugin:</p>
<p><img class="alignright size-full wp-image-2140" title="clickabledivs-withtheplugin" src="http://xaviesteve.com/wp-content/uploads/2011/05/clickabledivs-withtheplugin.jpg" alt="" width="600" height="361" /></p>
<p>You can see a <strong>working demo</strong> at the bottom of this page.</p>
<h3>Usage</h3>
<p>You could add this plugin as an external file but since it is so tiny, the best way of doing it is to embed it into an existing <code>.js</code> file.<br />
1. Add this code inside the DOM ready function of your <strong>jQuery</strong>:</p>
<pre>/* Clickable divs - Copyright Xavi Esteve 2011 Dual licensed under the MIT or GPL Version 2 licenses. http://xaviesteve.com/clickable-divs-jquery-plugin */
$('.click').css("cursor","pointer").click(function(){var link=$(this).find('a:first');var linkhref=link.attr('href');if(link.attr('target')){var newWindow=window.open(linkhref,link.attr('target'));newWindow.focus()}else{window.location=linkhref}return false});</pre>
<p>2. Add the CSS class <code style="font-weight: 900;">link</code> to any element you want to inherit the click (a <code>&lt;li&gt;</code> for example).</p>
<h4>Source code</h4>
<p>Feel free to modify and improve the script by going to <a href="http://jsfiddle.net/xaviesteve/AEEeG/" rel="nofollow">ClickableDivs at jsFiddle</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/1708/clickable-divs-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creative Commons image Search Tool (autotags and resizes)</title>
		<link>http://xaviesteve.com/1945/creative-commons-image-search-tool-autotags-and-resizes/</link>
		<comments>http://xaviesteve.com/1945/creative-commons-image-search-tool-autotags-and-resizes/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 13:52:36 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wireframing]]></category>
		<category><![CDATA[cc]]></category>
		<category><![CDATA[creative commons]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[stock]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wireframing]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=1945</guid>
		<description><![CDATA[Direct link to the tool: Flicksourcer Jonathan Foucher created Flickholdr a few weeks ago and I am impressed by how good the system is. It is not like other dummy image generators where you get a grey box or images of cats, it allows you to source random Creative Commons images from Flickr or even [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xaviesteve.com/pro/flicksourcer"><img class="alignright size-large wp-image-1946" title="flickholdr image generator" src="http://xaviesteve.com/wp-content/uploads/2011/04/flickholdr-image-generator-600x328.jpg" alt="" width="600" height="328" /></a></p>
<p>Direct link to the tool: <a class="blue button strong" href="http://xaviesteve.com/pro/flicksourcer/">Flicksourcer</a></p>
<p>Jonathan Foucher created Flickholdr a few weeks ago and I am impressed by how good the system is. It is not like other dummy image generators where you get a grey box or images of cats, it allows you to source random <strong>Creative Commons images from Flickr</strong> or even keyword relevant ones, scale them to your desired size and<strong> add a Copyright tag</strong> with the authors name automatically.</p>
<p>Flickholdr is mainly designed to be used as a <strong>placeholder image tool</strong> although I had been using it a couple times to <em>source images for live posts in a quick way</em>, allowing me to <em>save time browsing Flickr for free licensed images</em> and scaling them in Fireworks/Photoshop. The minor problem I had with Flickholdr is that I had to keep <em>changing the URL manually</em> one by one and finding the perfect image was quite tedious.</p>
<p>So I came up with this little script that <strong>loads several images in one click</strong>. You specify the image size, some relevant keywords (optional) and the quantity of images to generate. Try to keep the quantity number as low as possible since Jonathan shares the service for free and if many requests are made it can turn the service slow for other users.</p>
<p><a href="http://xaviesteve.com/pro/flickholdr.php"><img class="alignright size-full wp-image-1947" src="http://xaviesteve.com/wp-content/uploads/2011/04/Untitled-13.jpg" alt="" width="600" height="179" /></a></p>
<p>Find the generator tool here:</p>
<p><a class="blue button strong" href="http://xaviesteve.com/pro/flicksourcer/">Flicksourcer <small>http://xaviesteve.com/pro/flicksourcer/</small></a></p>
<p>You can also download the source code completely for free since it has been coded using JavaScript, jQuery and HTML. If you host it in your site remember to mention and link back to Jonathan and to myself (CC-by-sa 3.0).</p>
<h4>Another related tool<a href="http://realipsum.xaviesteve.com/"><img class="alignright size-full wp-image-1953" style="float: left; margin-right: 20px;" title="real ipsum english text generator" src="http://xaviesteve.com/wp-content/uploads/2011/04/real-ipsum-real-english-text-generator.jpg" alt="" width="245" height="250" /></a></h4>
<p>Are you constantly creating mockups and wireframes? Check out <strong><a href="http://realipsum.xaviesteve.com/">Real Ipsum</a>, a topic oriented English dummy text generator</strong> that generates random English text which looks better than Lorem ipsum. And the bookmarklet grabs keywords from the website you choose so the text is completely relevant. Also generates people and company names, random dates, colours, etc. <strong><a href="http://realipsum.xaviesteve.com/">Check it out</a></strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/1945/creative-commons-image-search-tool-autotags-and-resizes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SnippShot – Ultra-minimal simple Code Snippet tool</title>
		<link>http://xaviesteve.com/1200/snippshot-ultra-minimal-code-snippet-collector/</link>
		<comments>http://xaviesteve.com/1200/snippshot-ultra-minimal-code-snippet-collector/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 09:19:40 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Study]]></category>
		<category><![CDATA[UX]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[snipplr]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=1200</guid>
		<description><![CDATA[SnippShot is a free online code snippet collector tool. The snippets are stored online and since it is web based, you can access them from any computer, platform and browser without the need to install any additional software. The interface is ultra-minimalistic which makes it really easy, simple and quick to use, you can even [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://snippshot.com"><img class="alignright size-large wp-image-1983" title="SnippShot - Snippet tool" src="http://xaviesteve.com/wp-content/uploads/2010/07/snippshotlogo-big-600x600.jpg" alt="" width="600" height="600" /></a></p>
<p>SnippShot is a <strong>free online code snippet collector tool</strong>. The snippets are <strong>stored online</strong> and since it is web based, you can <strong>access them from any computer</strong>, platform and browser without the need to install any additional software. The interface is ultra-minimalistic which makes it r<strong>eally easy, simple and quick to use</strong>, you can even start using it without reading any instructions.</p>
<h2>SnippShot video tutorial</h2>
<p><object width="640" height="385" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/pKwTTOxwNb0?fs=1&amp;hl=en_GB" /><param name="allowfullscreen" value="true" /><embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/pKwTTOxwNb0?fs=1&amp;hl=en_GB" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<h2>How to use SnippShot</h2>
<p>That&#8217;s simple! It is what you see in the image: a big textarea on the right, a list on the left and a text box at the top left.</p>
<h3>Creating a code snippet</h3>
<p>Type in at the top left box and press Enter.</p>
<h3>Editing/Saving a snippet</h3>
<p>Edit the code and it will be saved real-time. No need to press any buttons, close the window and it will be saved for the next time (when you edit the code this will turn red, wait 1 second until it turns black again).</p>
<h3>Loading a snippet</h3>
<p>Just click on it, the code will load on the right panel.</p>
<h3>Searching for a snippet</h3>
<p>Type in at the top left box to search automatically as you type .</p>
<h3>Renaming a snippet</h3>
<p>Double click the name in the list and a window will let you change it.</p>
<h3>Deleting a snippet</h3>
<p>Double click the name in the list and rename it to nothing. Confirm.</p>
<h2>SnippShot Bookmarklet</h2>
<p>What makes SnippShot really handy is the use of its bookmarklet. At the right top of the app there is a link called &#8220;snippshot&#8221;. Drag and drop it to your bookmarks folder to create a Bookmarklet. Then click on it whenever you want and SnippShot will appear in a window, you can resize it the size you want.</p>
<h2>No account required</h2>
<p>Oh, and what&#8217;s best of all is that you don&#8217;t even need to register, just to own a Google Account.</p>
<h2>Some technical details</h2>
<ul>
<li>There&#8217;s just one server request per action</li>
<li>SnippShot loads really fast because it doesn&#8217;t use any images at all (it uses CSS3 for all the website styling and even an embedded Base 64 image in the style sheet for the favicon)</li>
<li>and it works really fast because everything is loaded dynamically through AJAX and JSON/XHTML calls, no apparent loading times when using it</li>
</ul>
<p>The user interface is <strong>just what you see</strong> in the screen: no menus, no links. The user experience can be described as <em>click and type</em>.</p>
<p>Modern compliant browsers should see the beautiness of CSS3. As HTML5 support increases SnippShot will progressively upgrade to it.</p>
<p>To avoid server overload and keep the service quick they are limiting each snippet code to 64kb and a limit of 100 per user (more than enough, I am currently using 78 and can&#8217;t think of anything else to note down). They accept donations to eventually upgrade the server and increase the limits and add new functionalities.</p>
<h2>Check SnippShot now</h2>
<p>The website is <a href="http://snippshot.com">snippshot.com</a> and it is completely free. Check it out and let us know what you think.</p>
<p><a href="http://snippshot.com"><img class="alignleft size-large wp-image-1201" title="snippshot" src="http://xaviesteve.com/wp-content/uploads/2010/07/snippshot-600x468.jpg" alt="" width="600" height="468" /></a></p>
<p><a href="http://snippshot.com"><span class="big blue button">snippshot.com</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/1200/snippshot-ultra-minimal-code-snippet-collector/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery-JavaScript: Basic Cheat Sheet for Beginners</title>
		<link>http://xaviesteve.com/383/jquery-javascript-basic-cheat-sheet-for-beginners/</link>
		<comments>http://xaviesteve.com/383/jquery-javascript-basic-cheat-sheet-for-beginners/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 08:51:34 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=383</guid>
		<description><![CDATA[Content Check if element exists if ($('#infobox').length) { /*exists, do things here*/ } Change attribute $('#name').attr('title', 'Hello!'); Change content of a container $('#main').html('&#60;p&#62;Lorem ipsum&#60;/p&#62;'); Change page title document.title = 'Hello!'; Add content before/after $('table&#62;tbody&#62;tr:last').after('&#60;tr&#62;&#60;td&#62;This is now the last row.&#60;/td&#62;&#60;/tr&#62;'); Style Add or remove classes $('#main').addClass('red'); $('#main').removeClass('blue'); Check if element has class if ($('#main').hasClass('green')) { } [...]]]></description>
			<content:encoded><![CDATA[<h2><img class="alignright size-full wp-image-1994" src="http://xaviesteve.com/wp-content/uploads/2009/12/13.jpg" alt="" width="600" height="280" /></h2>
<h2>Content</h2>
<p><strong>Check if element exists</strong></p>
<pre>if ($('#infobox').length) { /*exists, do things here*/ }</pre>
<p><strong>Change attribute</strong></p>
<pre><code>$('#name').attr('title', 'Hello!');</code></pre>
<p><strong>Change content of a container</strong></p>
<pre><code>$('#main').html('&lt;p&gt;Lorem ipsum&lt;/p&gt;');</code></pre>
<p><strong>Change page title</strong></p>
<pre><code>document.title = 'Hello!';</code></pre>
<p><strong>Add content before/after</strong></p>
<pre><code>$('table&gt;tbody&gt;tr:last').after('&lt;tr&gt;&lt;td&gt;This is now the last row.&lt;/td&gt;&lt;/tr&gt;');
</code></pre>
<h2>Style</h2>
<p><strong>Add or remove classes</strong></p>
<pre><code>$('#main').addClass('red');
$('#main').removeClass('blue');</code></pre>
<p><strong>Check if element has class</strong></p>
<pre>if ($('#main').hasClass('green')) { }</pre>
<h2>Ajax</h2>
<p><strong>GET with parameters</strong></p>
<pre><code>$.get("page.php", { action: "edit", id: 38 },
  function(data){
   $('#infobox').html(data);
});</code></pre>
<h2>Loops</h2>
<p><strong>Do something with every matching element</strong></p>
<pre>$('table&gt;tbody&gt;tr').each(
  function (intIndex) {
    /* Modify all table rows */
});</pre>
<h2>Maths</h2>
<p><strong>Check if even or odd</strong></p>
<pre>if ($id % 2) { /*even*/ }else{ /*odd*/ }</pre>
<p><strong>Force string to integer</strong></p>
<pre>parseInt(var);</pre>
<p><strong>Filter words, numbers or symbols</strong></p>
<pre>$(this).attr('id').replace(/[^0-9]+/, '');</pre>
<p><strong>Timer</strong></p>
<pre>setInterval(timer1s, 1000);
function timer1s() { /*run this every second*/ }</pre>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/383/jquery-javascript-basic-cheat-sheet-for-beginners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

