<?xml version="1.0" encoding="UTF-8"?>
<codes type="array">
  <code>
    <code>$('a.popup').live('click', function(){
	newwindow=window.open($(this).attr('href'),'','height=200,width=150');
	if (window.focus) {newwindow.focus()}
	return false;
});</code>
    <created-at type="datetime">2009-12-16T00:12:50Z</created-at>
    <description></description>
    <id type="integer">210</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>clean way to open a popup window</title>
    <updated-at type="datetime">2009-12-16T00:12:50Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>$('h1') // elementos h1
$('#meuID') // elementos com id &quot;meuID&quot;
$('.minhaClasse') // elementos definidos com a classe &quot;minhaClasse&quot;
$('[width]') // elementos que possuem o atributo width definido
$('[width=500]') // elementos que possuem o atributo width definido como 500
$('img[width=300]') // imagens que possuem largura = 300
$('img[src$=png]') // imagens com final png
$('a[href^=http://localhost]') // links que comecem com http://localhost
$('a[href$=pdf]') // links com final pdf
$('a[href*=www]') // links que cont&#233;m www
$(':empty') // elementos vazio
$('div:empty') // elementos div vazios
$(':has(p)') // todos elementos que tenham um par&#225;grafo
$('div:has(a)'); // elementos div que possuem link
$(&quot;p:contains('dinei')&quot;) // par&#225;grafos que cont&#233;m a palavra &quot;dinei&quot;
$(&quot;p:eq(0)&quot;) // seleciona o primeiro elemento p</code>
    <created-at type="datetime">2009-11-25T22:45:07Z</created-at>
    <description>http://docs.jQuery.com/DOM/Traversing/Selectors</description>
    <id type="integer">207</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>seletores do jquery</title>
    <updated-at type="datetime">2009-11-25T22:45:07Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>function copyToClipBoard(id) {
    Copied = document.getElementById('id').innerText.createTextRange();
    Copied.execCommand(&quot;Copy&quot;);
}</code>
    <created-at type="datetime">2009-08-22T15:59:21Z</created-at>
    <description></description>
    <id type="integer">201</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>copy to clipboard</title>
    <updated-at type="datetime">2009-08-22T15:59:21Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>&lt;a href=&quot;#top&quot; onclick=&quot;$('html, body').animate({scrollTop:0}, 'slow'); return false;&quot;&gt;top&lt;/a&gt;</code>
    <created-at type="datetime">2009-08-22T15:57:58Z</created-at>
    <description></description>
    <id type="integer">200</id>
    <language-id type="integer">16</language-id>
    <privated type="boolean">false</privated>
    <title>back to top</title>
    <updated-at type="datetime">2009-08-22T15:57:58Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>   function popup(url) {
        newWindow = window.open(url, 'name', 'height=400,width=335,scrollbars=yes');
        if (window.focus) { newWindow.focus() }
            return false;
    }

// &lt;a href=&quot;link.html&quot; onclick=&quot;popup('link.html');&quot;&gt;Link&lt;/a&gt;</code>
    <created-at type="datetime">2009-08-22T15:40:47Z</created-at>
    <description>http://www.quirksmode.org/js/popup.html</description>
    <id type="integer">199</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>unobstrusive popup</title>
    <updated-at type="datetime">2009-08-22T15:40:47Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>		$(document).ready(function() {
			$('dd').toggle();
			$('dt').click(function() {$(this).next('dd').toggle('slideDown');});
		});</code>
    <created-at type="datetime">2009-08-22T15:29:33Z</created-at>
    <description></description>
    <id type="integer">195</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>hide/show dl list with jquery</title>
    <updated-at type="datetime">2009-08-22T15:29:33Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>/* IE6 - pseudo class :hover */ 
$(document).ready(function(){ 
	if(jQuery.browser.msie &amp;&amp; jQuery.browser.version&lt;7){ 
		$('[class*=&quot;bla&quot;]').hover( 
		function () { 
			$(this).addClass('hover'); 
		}, 
		function () { 
			$(this).removeClass('hover'); 
		} 
		); 
	} 
});</code>
    <created-at type="datetime">2009-08-10T20:42:45Z</created-at>
    <description></description>
    <id type="integer">190</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>hover for ie 6</title>
    <updated-at type="datetime">2009-08-10T20:42:45Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = (ph - ah) / 2;
	$(this).css('margin-top', mh);
	});
};
})(jQuery);

// $('#mydiv').vAlign();</code>
    <created-at type="datetime">2009-08-07T20:13:04Z</created-at>
    <description>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/</description>
    <id type="integer">189</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>vertical align plugin for jquery</title>
    <updated-at type="datetime">2009-08-07T20:13:04Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>jQuery.fn.fadeSliderToggle = function(settings) {
 	 settings = jQuery.extend({
		speed:500,
		easing : &quot;swing&quot;
	}, settings)
	
	caller = this
 	if($(caller).css(&quot;display&quot;) == &quot;none&quot;){
 		$(caller).animate({
 			opacity: 1,
 			height: 'toggle'
 		}, settings.speed, settings.easing);
	}else{
		$(caller).animate({
 			opacity: 0,
 			height: 'toggle'
 		}, settings.speed, settings.easing);
	}
};

// use: $('#my_div').fadeSliderToggle();</code>
    <created-at type="datetime">2009-07-12T16:38:01Z</created-at>
    <description>from: http://www.position-absolute.com/articles/jquery-fade-and-slide-toggle-plugin/</description>
    <id type="integer">185</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>jquery fade and slide toggle plugin</title>
    <updated-at type="datetime">2009-07-12T16:38:01Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>$(document).ready(function() { jQuery.fn.each( function(i) { console.log(i); }); });</code>
    <created-at type="datetime">2009-06-21T21:05:02Z</created-at>
    <description></description>
    <id type="integer">179</id>
    <language-id type="integer">19</language-id>
    <privated type="boolean">false</privated>
    <title>list all jquery function with firebug</title>
    <updated-at type="datetime">2009-06-21T21:05:02Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
</codes>
