<?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>Workshop</title>
	<atom:link href="http://workshop.rs/feed/" rel="self" type="application/rss+xml" />
	<link>http://workshop.rs</link>
	<description>owned by Ivan Lazarevic</description>
	<lastBuildDate>Mon, 13 May 2013 15:13:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Just Random Color</title>
		<link>http://workshop.rs/2013/05/just-random-color/</link>
		<comments>http://workshop.rs/2013/05/just-random-color/#comments</comments>
		<pubDate>Mon, 13 May 2013 15:13:40 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=387</guid>
		<description><![CDATA[Some times ago I was working on app where for each category we had to assign random color in case that user didn&#8217;t choose one. A few day ago I needed to generate random color again. Instead of copy/paste code from one place to another much better is to create re-usable module. Also, this might [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Some times ago I was working on app where for each category we had to assign random color in case that user didn&#8217;t choose one. A few day ago I needed to generate random color again. Instead of copy/paste code from one place to another much better is to create re-usable module. Also, this might not be unusual request and potentially could be useful to others.</p>
<p><img src="http://workshop.rs/wp-content/uploads/2013/05/just-randomcolor2.jpg" alt="just-randomcolor2" title="just-randomcolor2" width="565" height="410" class="aligncenter size-full wp-image-391" /></p>
<p>just.RandomColor is Javascript random color generator in one of hex, RGB, RGBA formats and it can return object with color data or CSS string. It can be used on both, client and server side.</p>
<p><span id="more-387"></span><br />
Usage is really simple and you can find more details in <a href="https://github.com/kopipejst/just.randomcolor">DOCUMENTATION</a>. </p>
<p>For bugs of suggestions please write a issue on <a href="https://github.com/kopipejst/just.randomcolor">GITHUB</a>.</p>
<p>If you&#8217;re interested to see just.RandomColor in action I&#8217;ve prepare small <a href="http://workshop.rs/projects/just-randomcolor/">DEMO</a>.</p>
<div class="shr-publisher-387"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2013/05/just-random-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5/CSS3 Circle Music Player</title>
		<link>http://workshop.rs/2013/05/html5-css3-circle-music-player/</link>
		<comments>http://workshop.rs/2013/05/html5-css3-circle-music-player/#comments</comments>
		<pubDate>Wed, 01 May 2013 11:58:37 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=366</guid>
		<description><![CDATA[More then a year ago my very talented designer friend Jovan Stanojevic presented me idea of Circle Music player which will play local .mp3 files. This is his original idea, but after we start to work on this a few things were changed.
[He have more great designs which you'll see if you go to his [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>More then a year ago my very talented designer friend Jovan Stanojevic presented me idea of Circle Music player which will play local .mp3 files. This is his <a href="http://dribbble.com/shots/483505-Fancy-Circle-Music-Player">original idea</a>, but after we start to work on this a few things were changed.<br />
<em>[He have more great designs which you'll see if you go to <a href="http://dribbble.com/joshica">his dribbble profile</a>]</em></p>
<p><img class="aligncenter size-full wp-image-367" title="html5-css3-round-music-player" src="http://workshop.rs/wp-content/uploads/2013/04/html5-css3-round-music-player.png" alt="html5-css3-round-music-player" width="565" height="410" /></p>
<p>Idea was to create music player that looks really cool and easy to use, but also to experiment with HTML5 and CSS3. Since that some of those stuff are supported by Chrome only this will not work in other browsers.</p>
<p><span id="more-366"></span></p>
<div id="ddLinks" class="link33"><a href="http://workshop.rs/projects/html5-css3-circle-music-player/" target="_blank"><span class="ddText">Demo</span><small>Chrome only</small></a><a href="https://github.com/kopipejst/html5-css3-circle-music-player" target="_blank"><span class="ddText">Source Code</span><small>on GitHub</small></a><a href="http://workshop.rs/projects/html5-css3-circle-music-player/doc/Fancy-Circle-Music-Player.zip" target="_blank"><span class="ddText">Download</span><small>source .png</small></a></div>
<p>This music player have only basic options, but still is very functional. You&#8217;re able to play local .mp3 files from selected folder, pause, rewind, shuffle and repeat them, change volume and mute. We have a few ideas for features that might be interesting to implement later:</p>
<p>- store playlists in localStorage for later use,<br />
- read ID3 tag from MP3 for song data,<br />
- drag&#8217;n'drop for arranging playlist,<br />
- support more audio formats,<br />
- use keyboard to control player &#8230;</p>
<p>We could find some compromises to make this work on more browsers, but some of the reasons why this works in Chrome only are:</p>
<p>- webkitdirectory is used for getting list of files from selected folder,<br />
- webkitNotifications to see notification about next song even when tab is not in focus,<br />
- styling input type range &#8230;</p>
<p>As I said, this is experiment only and I&#8217;m not sure if anybody will use music player from browser on regular basis.</p>
<p>If you have some suggestions and want to contribute feel free to do that on <a href="https://github.com/kopipejst/html5-css3-circle-music-player">GitHub</a>. </p>
<div class="shr-publisher-366"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2013/05/html5-css3-circle-music-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animated Progress Bar in 4 lines of jQuery</title>
		<link>http://workshop.rs/2012/12/animated-progress-bar-in-4-lines-of-jquery/</link>
		<comments>http://workshop.rs/2012/12/animated-progress-bar-in-4-lines-of-jquery/#comments</comments>
		<pubDate>Sat, 29 Dec 2012 03:10:31 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=340</guid>
		<description><![CDATA[Progress bars are really useful to indicate to user that something happens and when it will be approximately done. They are useful on page where assets should be preloaded before page is shown to user. That&#8217;s why is important that progress bar code is light weight so it can be loaded really fast at the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Progress bars are really useful to indicate to user that something happens and when it will be approximately done. They are useful on page where assets should be preloaded before page is shown to user. That&#8217;s why is important that progress bar code is light weight so it can be loaded really fast at the start.</p>
<p><img class="aligncenter size-full wp-image-341" title="progress-bar-in-4-lines" src="http://workshop.rs/wp-content/uploads/2012/12/progress-bar-in-4-lines.jpg" alt="progress-bar-in-4-lines" width="565" height="410" /></p>
<p>jQuery UI have progress bar widget and you can find a lot of other plugins which do the same thing. But if you learn how to write your own progress bar you&#8217;ll have more ability to change and adjust to your needs. And it&#8217;s only 4 lines of jQuery code.</p>
<p><span id="more-340"></span></p>
<div id="ddLinks" class="link33"><a href="http://workshop.rs/demo/progress-bar-in-4-lines/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://workshop.rs/demo/progress-bar-in-4-lines/demo2.php"><span class="ddText">Demo page 2</span><small>in action</small></a><a href="https://github.com/kopipejst/progressbar"><span class="ddText">Source code</span><small>fork me on GitHub</small></a></div>
<p>First we should create DOM elements. All we need are two div elements, one in other. First one will be progress bar holder and you can put it whenever you want on your page. Another one is progress bar indicator. Something like this:</p>
<pre class="brush: xml;">
&lt;div id=&quot;progressBar&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
</pre>
<p>Now, we need some basic CSS for those elements. We will set width, height and colors:</p>
<pre class="brush: css;">
#progressBar {
		width: 400px;
		height: 22px;
		border: 1px solid #111;
		background-color: #292929;
}

#progressBar div {
		height: 100%;
		color: #fff;
		text-align: right;
		line-height: 22px; /* same as #progressBar height if we want text middle aligned */
		width: 0;
		background-color: #0099ff;
}
</pre>
<p>And at the end we need one function with 4 lines of code. It&#8217;s a simple function that accept two parameters. </p>
<pre class="brush: jscript;">
	function progress(percent, $element) {
		var progressBarWidth = percent * $element.width() / 100;
		$element.find('div').animate({ width: progressBarWidth }, 500).html(percent + &quot;%&amp;nbsp;&quot;);
	}
</pre>
<p>First parameters is percentages that progress bar should show and other one is jQuery object of progress bar holder. If we want to set progress bar to 80% all we have to do is:</p>
<pre class="brush: jscript;">
progress(80, $('#progressBar'));
</pre>
<p>Of course before all of this we need to include jQuery library on our page.</p>
<p>This simple progress bar can be easily styled with CSS. I&#8217;ve create a few skins that can be downloaded from <a href="https://github.com/kopipejst/progressbar">GitHub</a>. Feel free to create your own skins and send me pull request.</p>
<div class="shr-publisher-340"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2012/12/animated-progress-bar-in-4-lines-of-jquery/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Bigshark &#8211; larger buttons on Grooveshark</title>
		<link>http://workshop.rs/2012/05/bigshark-larger-buttons-on-grooveshark/</link>
		<comments>http://workshop.rs/2012/05/bigshark-larger-buttons-on-grooveshark/#comments</comments>
		<pubDate>Thu, 10 May 2012 18:58:56 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=326</guid>
		<description><![CDATA[GrooveShark is one of the web services which I’m using on daily basis. Actually, I have one computer which I use only to play music from my GrooveShark playlists, while I’m sitting on couch. But problem is when I want to skip or pause some song. I have to get up because I can’t hit [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://grooveshark.com/">GrooveShark</a> is one of the web services which I’m using on daily basis. Actually, I have one computer which I use only to play music from my GrooveShark playlists, while I’m sitting on couch. But problem is when I want to skip or pause some song. I have to get up because I can’t hit those small controls buttons with wireless mouse from 2m range. </p>
<p><img src="http://workshop.rs/wp-content/uploads/2012/05/bigshark.jpg" alt="bigshark" title="bigshark" width="565" height="410" class="aligncenter size-full wp-image-327" /></p>
<p>So, as every lazy developer, I’ve tried to make my life easier so I don’t have to move from my couch. That’s why I create this small Greasemonkey script which will show controls buttons over the whole screen. If you have similar problem you should install  Bigshark.<br />
<span id="more-326"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/bigshark/bigshark.user.js"><span class="ddText">Download</span><small>try it for yourself</small></a><a href="https://github.com/kopipejst/bigshark" target="_blank"><span class="ddText">Source Code</span><small>Fork me on GitHub</small></a></div>
<p>First you gonna need Greasmonkey add-on for FireFox which can be found <a href="https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ ">here.</a></p>
<p>After that visit <a href="http://workshop.rs/projects/bigshark/bigshark.user.js">this link</a> which will add Bigshark script to you.</p>
<p>Then all you have to do is to start Bigshark script from Greasemonkey and visit <a href="http://grooveshark.com">GrooveShark.com</a>. If you did everything right you&#8217;ll see big blue button with &#8220;Big Shark&#8221; title at the top of the page. After you create your playlist just click on that button and enjoy in music.</p>
<div class="shr-publisher-326"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2012/05/bigshark-larger-buttons-on-grooveshark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JUST &#8211; JavaScript Useful Stuff</title>
		<link>http://workshop.rs/2012/04/just-javascript-useful-stuff/</link>
		<comments>http://workshop.rs/2012/04/just-javascript-useful-stuff/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 21:33:28 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=310</guid>
		<description><![CDATA[I like experiment with data visualization on client side. For that purpose, of course, I need some data for development phase. Since that development phase means that something constantly change, I had to find a way to make my life easier. That&#8217;s why I wrote a group of JavaScript range functions which helps me to [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I like experiment with data visualization on client side. For that purpose, of course, I need some data for development phase. Since that development phase means that something constantly change, I had to find a way to make my life easier. That&#8217;s why I wrote a group of JavaScript range functions which helps me to create array of different types and formats of data really fast.</p>
<p><img src="http://workshop.rs/wp-content/uploads/2012/03/just_v1.png" alt="just_v1" title="just_v1" width="565" height="410" class="aligncenter size-full wp-image-311" /></p>
<p>I just had to put them in some namespace, so &#8220;just&#8221; was good enough. Coincidentally, JUST can be acronym for JavaScript Useful Stuff, so I&#8217;ll probably use it more in the future. I&#8217;m still looking word for T, so any suggestion is welcome. </p>
<p><span id="more-310"></span></p>
<div id="ddLinks"><a href="https://github.com/kopipejst/just/downloads" target="_blank"><span class="ddText">Download</span><small>get it now</small></a><a href="https://github.com/kopipejst/just" target="_blank"><span class="ddText">Source Code</span><small>fork me on GitHub</small></a></div>
<p>For now, there are 4 functions, arrayShuffle, range, rrange and orange.</p>
<h2>just.arrayShuffle</h2>
<p>This one should be pretty intuitive since it just shuffle your array. Shuffle algorithm is <a href="http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle">Fisher-Yates</a> which is common for this task. It receive only one argument which is array and returns shuffled array.</p>
<h2>just.range</h2>
<p>Range function accept 3 parameters, start, end and step returns array of integer values. First value of array will be start parameter and each next will be incremented by given step until it reach value of end. Similar as <a href="http://docs.python.org/library/functions.html#range">Python range function</a>. </p>
<pre class="brush: jscript;">just.range(4,15,2);</pre>
<p>will return:</p>
<pre class="brush: jscript;">[4,6,8,10,12,14]</pre>
<h2>just.rrange</h2>
<p>Random range returns array of random length between given scope where each value of array is random integer between custom scope.</p>
<pre class="brush: jscript;">just.rrange([10, 150], [5,10]);</pre>
<p>This will return array of 5-10 elements where each value is between 10-150 eg. </p>
<pre class="brush: jscript;">[12, 99, 29, 136, 71, 100]</pre>
<h2>just.orange</h2>
<p>This one also returns array, but values are not integer. It will return array of objects created from provided template. It accepts template with values from which new object will be created and number of objects that should be created. It&#8217;s the best to explain on example:</p>
<pre class="brush: jscript;">
// prepare template
 var template = {
    value: [10,1,2],
    name: ['ten ','one','two']
 }

// create array of 3 elements based on template
just.orange(template, 3);
</pre>
<p>And this will create array of object who will look like this:</p>
<pre class="brush: jscript;">
[
	{
		value: 10,
		name: 'ten'
	},
	{
		value: 1,
		name: 'one'
	},
	{
		value: 2,
		name: 'two'
	}
]
</pre>
<h2>REAL LIFE EXAMPLE</h2>
<p>Recently I started to work on tutorial for creating animated bar graphs and I needed data for testing. I wanted to test how it will look like with random number of elements and with random values. So, I just combine methods described above.</p>
<pre class="brush: jscript;">
var template = {
	title: just.arrayShuffle(['CSS','JAVASCRIPT','HTML','PHP','MYSQL']),
	value: just.rrange([50,100],[3,20]),
	color: just.arrayShuffle(['#0099FF', '#91D6BC','#E83A25','#DE70A0','#9900FF'])
}
var dataArr = just.orange(template, 3 + Math.random() * 20 );
</pre>
<p>And I got something like this, so I can iterate and draw graph bars.</p>
<pre class="brush: jscript;">
[
	{
		color: &quot;#91D6BC&quot;,
		title: &quot;HTML&quot;,
		value: 54
	},
	{
		color: &quot;#DE70A0&quot;,
		title: &quot;PHP&quot;,
		value: 81
	},
	{
		color: &quot;#9900FF&quot;,
		title: &quot;MYSQL&quot;,
		value: 65
	},
	{
		color: &quot;#E83A25&quot;,
		title: &quot;JAVASCRIPT&quot;,
		value: 70
	}
]
</pre>
<p>This approach will not be so great for large amount of data. For larger datasets each element should probably be created dynamically when we need it. It should be great if we could use <a href="https://developer.mozilla.org/en/New_in_JavaScript_1.7#Generators">JavaScript Generators</a> for that purpose, but for now they are part of JavaScript 1.7 which is supported in FireFox only. </p>
<div class="shr-publisher-310"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2012/04/just-javascript-useful-stuff/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>jQuery Snow Falling plugin</title>
		<link>http://workshop.rs/2012/01/jquery-snow-falling-plugin/</link>
		<comments>http://workshop.rs/2012/01/jquery-snow-falling-plugin/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 12:04:11 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=279</guid>
		<description><![CDATA[I like winter because of holidays and snow. Not big fan of going to shopping and buying New Year gifts and presents, but I am fan of snow and snowboarding. That&#8217;s why I enjoy watching how snow falling even if that&#8217;s only on my monitor.

Idea is to create one snowflake initially, clone that snowflake at [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I like winter because of holidays and snow. Not big fan of going to shopping and buying New Year gifts and presents, but I am fan of snow and snowboarding. That&#8217;s why I enjoy watching how snow falling even if that&#8217;s only on my monitor.</p>
<p><img src="http://workshop.rs/wp-content/uploads/2012/01/jquery-snow.jpg" alt="jquery-snow" title="jquery-snow" width="565" height="411" class="aligncenter size-full wp-image-272" /></p>
<p>Idea is to create one snowflake initially, clone that snowflake at some time interval and add random values for properties for each of them. And it&#8217;s done in less than 1kb minifed.<br />
<span id="more-279"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/jqsnow/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="https://github.com/kopipejst/jqSnow/downloads" target="_blank"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>First include jQuery and jquery.snow.js or jquery.snow.min.js in head of your document:</p>
<pre class="brush: xml;">
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.snow.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Than, anywhere in you document call snow plugin like this:</p>
<pre class="brush: jscript;">
&lt;script&gt;
$(document).ready( function(){
        $.fn.snow();
});
&lt;/script&gt;
</pre>
<p>This plugin have few options that you can play and adjust snow falling effect:</p>
<pre class="brush: xml;">
minSize - min size of snowflake, 10 by default
maxSize - max size of snowflake, 20 by default
newOn - frequency in ms of appearing of new snowflake, 500 by default
flakeColor - color of snowflake, #FFFFFF by default
</pre>
<p>Parameters can be passed like this:</p>
<pre class="brush: jscript;">
$.fn.snow({ minSize: 5, maxSize: 50, newOn: 1000, flakeColor: '#0099FF' });
</pre>
<p>Be careful with newOn parameter since that frequently appearing of new snowflake can affect on performance.</p>
<div class="shr-publisher-279"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2012/01/jquery-snow-falling-plugin/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>News Ticker in 4 lines of jQuery</title>
		<link>http://workshop.rs/2011/09/news-ticker-in-4-lines-of-jquery/</link>
		<comments>http://workshop.rs/2011/09/news-ticker-in-4-lines-of-jquery/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 22:49:37 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=243</guid>
		<description><![CDATA[There are a lot of different jQuery News Ticker plugins with lot of options that you can use. Do you want to learn how to create one on your own in only 4 lines od jQuery code ?

 Idea is pretty simple, take first element from list, apply some disappearing effect on it and on [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>There are a lot of different jQuery News Ticker plugins with lot of options that you can use. Do you want to learn how to create one on your own in only 4 lines od jQuery code ?</p>
<p><img class="aligncenter size-full wp-image-244" title="new-ticker-in-4-lines" src="http://workshop.rs/wp-content/uploads/2011/09/new-ticker-in-4-lines.png" alt="new-ticker-in-4-lines" width="565" height="410" /></p>
<p> Idea is pretty simple, take first element from list, apply some disappearing effect on it and on callback attach it to the end of the list.</p>
<p><span id="more-243"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/demo/news-ticker-in-4-lines/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://workshop.rs/demo/news-ticker-in-4-lines/news-ticker-in-4-lines-of-jQuery.zip"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>First we have to create HTML with list of our news, something like this:</p>
<pre class="brush: xml;">
	&lt;ul id=&quot;ticker&quot;&gt;
		&lt;li&gt;
			jqBarGraph is jQuery plugin that gives you freedom to easily display your data as graphs. There are three types of graphs: simple, multi and stacked.
		&lt;/li&gt;
		&lt;li&gt;
			Learn how to create image gallery in 4 lines of Jquery
		&lt;/li&gt;
		&lt;li&gt;
			jqFancyTransitions is easy-to-use jQuery plugin for displaying your photos as slideshow with fancy transition effects.
		&lt;/li&gt;
		&lt;li&gt;
			mooBarGraph is AJAX graph plugin for MooTools which support two types of graphs, simple bar and stacked bar graph.
		&lt;/li&gt;
	&lt;/ul&gt;
</pre>
<p>Now, let&#8217;s put some style on this. We will set height of our visible ticker area and set overflow to hidden. If we want only one news to be visible at the time than ticker height should be the same as height of each element of the list. For more visible news at same time we just have to multiply height of each element with number of news that we want to be visible and set that as height of ticker. </p>
<pre class="brush: css;">
#ticker {
	height: 40px;
	overflow: hidden;
}
#ticker li {
	height: 40px;
}
</pre>
<p>Of course, you can and should add more style here, but this will be enough to make your ticker to work.</p>
<p>Ok, we have layout set and now it&#8217;s time for make this news to start ticking. First we will create function which will apply disappearing effect on first element, append that element to the end of the list after it disappear and revert effects changes. After that, all we have to do is to call that function in desired intervals.</p>
<p><img src="http://workshop.rs/wp-content/uploads/2011/09/new-ticker-in-4-lines-exp.png" alt="new-ticker-in-4-lines-exp" title="new-ticker-in-4-lines-exp" width="565" height="174" class="aligncenter size-full wp-image-251" /></p>
<p>And here is plain code:</p>
<pre class="brush: jscript;">
function tick(){
	$('#ticker li:first').slideUp( function () { $(this).appendTo($('#ticker')).slideDown(); });
}
setInterval(function(){ tick () }, 5000);
</pre>
<p>Of course, you can change slideUp with any other animation that you like, just don&#8217;t forget to revert effects on element after transition. Next example will set opacity to 0 for first element.</p>
<pre class="brush: jscript;">
function tick(){
	$('#ticker li:first').animate({'opacity':0}, 200, function () { $(this).appendTo($('#ticker')).css('opacity', 1); });
}
setInterval(function(){ tick () }, 4000);
</pre>
<p>And please don&#8217;t forget to include jQuery at the head of your document</p>
<pre class="brush: jscript;">
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>That&#8217;s it, news ticker is done. Take a look at the <a href="http://workshop.rs/demo/news-ticker-in-4-lines/">demo</a>, download <a href="http://workshop.rs/demo/news-ticker-in-4-lines/news-ticker-in-4-lines-of-jQuery.zip">source code</a> or leave a comment.</p>
<div class="shr-publisher-243"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2011/09/news-ticker-in-4-lines-of-jquery/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
		<item>
		<title>Visualize Twitter connections with Twings</title>
		<link>http://workshop.rs/2011/04/visualize-twitter-connections-with-twings/</link>
		<comments>http://workshop.rs/2011/04/visualize-twitter-connections-with-twings/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 22:29:42 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=209</guid>
		<description><![CDATA[I always find it interesting to see who from people that I’m following on Twitter follows me back and also to see how those people are related with each others. I was looking the best way to present that visually and presenting connections as dots and put those dots in rings sounds like a good [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I always find it interesting to see who from people that I’m following on Twitter follows me back and also to see how those people are related with each others. I was looking the best way to present that visually and presenting connections as dots and put those dots in rings sounds like a good solution to me.</p>
<p><img class="aligncenter size-full wp-image-210" title="twings" src="http://workshop.rs/wp-content/uploads/2011/04/twings_4_types.png" alt="twings" width="565" height="410" /></p>
<p>Main idea was to create this to work on client side only. Using AJAX for getting the data, localStorage to store them and SVG for visual presentation. So, this will work only in &#8216;modern browsers&#8217;, such as Chrome 10, Firefox 4 or IE9.</p>
<div id="ddLinks"><a href="http://workshop.rs/projects/twings"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="https://github.com/kopipejst/Twings"><span class="ddText">Source code</span><small>check the source code</small></a></div>
<p>First I had to pull followers and following data for desired Twitter account. Since that Twitter API returns 100 results per request I had to create recursive function to gather all the data. Twitter API allows only 150 request per hour, so if you have more than 15000 followers and following accounts in total, you&#8217;ll exceed that limit, but that number of dots and rings will be hardly presented nicely either way.</p>
<p>Also, because of <a href="http://dev.twitter.com/pages/rate-limiting">Twitter API limitation</a> I decided not trying to check how my connections are connected between each other. However, that&#8217;s really interesting for me and I&#8217;m sure I&#8217;ll do that in future.</p>
<p>After getting all responses I check how I&#8217;m connected with each account. Each account is marked as follower, following or friend (people who follow me and I follow them). Now I got one object and stored that object in browsers&#8217; <a href="http://dev.w3.org/html5/webstorage/">localStorage</a>. Again, if you have large number of followers and following account there will be a problem since that <a href="http://diveintohtml5.org/storage.html#limitations">localStorage limit</a>, for most browsers, is 5MB.</p>
<p>Final step was to create visual part and I choose <a href="http://www.w3.org/Graphics/SVG/">SVG</a> to do that. Basically, I used simple math to create rings of Twitter accounts. There is no specific rule in which order accounts will be shown. I just place them as dots with different settings (color, radius) for each type of account. I could not resist to add some animation even though it is not really smooth in some cases. You can hover each dot to see more details and clicking will redirect you to Twitter user account.</p>
<p>That part should be upgraded with different rules how to decide which account will be in which ring. Maybe by popularity or some other criteria. Feel free to share your suggestions with me or try to upgrade code by yourself, it can be found on <a href="https://github.com/kopipejst/Twings">GitHub</a>.</p>
<div class="shr-publisher-209"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2011/04/visualize-twitter-connections-with-twings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gradienter: Add gradient to elements</title>
		<link>http://workshop.rs/2010/09/gradienter-add-gradient-to-elements/</link>
		<comments>http://workshop.rs/2010/09/gradienter-add-gradient-to-elements/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 10:47:39 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=179</guid>
		<description><![CDATA[Last night I started to work on Wordpress theme for blog and I got an idea that every post should have their own background color and that maybe those colors can be in gradient. Since that that&#8217;s very boring to do manually, I&#8217;ve decide to write jQuery plugin which will do that job.

Gradienter is easy [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Last night I started to work on Wordpress theme for blog and I got an idea that every post should have their own background color and that maybe those colors can be in gradient. Since that that&#8217;s very boring to do manually, I&#8217;ve decide to write jQuery plugin which will do that job.</p>
<p><img class="aligncenter size-full wp-image-180" title="gradienter" src="http://workshop.rs/wp-content/uploads/2010/09/gradienter.png" alt="gradienter" width="565" height="410" /></p>
<p>Gradienter is easy to use, and with small effort you can have really interesting color effect on your page.<span id="more-179"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/gradienter"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://code.google.com/p/gradienter/downloads/list"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>Since that this is jQuery plugin, we should include jQuery and Gradienter JavaScript files in our page:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;gradienter.js&quot;&gt;&lt;/script&gt;
</pre>
<p>After this, at the bottom of the page we have to apply Gradienter on desired elements and optionally set parameters. </p>
<pre class="brush: jscript;">
$(element).gradienter();
</pre>
<p>Gradienter have only three parameters:</p>
<pre class="brush: jscript;">
color_start: 'FFFFFF' // first color in gradient
color_end: '000000' // last color in gradient
prop: 'background-color' // on which CSS property should apply gradient
</pre>
<p>So, if we want that all elements with &#8216;box&#8217; class have gradient started from #56B2CB and finished with #164E5D, all we have to do is next:</p>
<pre class="brush: jscript;">
$('.box').gradienter({ color_start: '56B2CB', color_end: '164E5D' });
</pre>
<p>Note that colors are in HEX format, without #.</p>
<p>Changing the &#8216;prop&#8217; parameter gradient can be applied to all CSS properties that have color (background-color, color, border-color).</p>
<div class="shr-publisher-179"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/09/gradienter-add-gradient-to-elements/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Image gallery in 4 lines of code with MooTools and Dojo</title>
		<link>http://workshop.rs/2010/08/image-gallery-in-4-lines-of-code-with-mootools-and-dojo/</link>
		<comments>http://workshop.rs/2010/08/image-gallery-in-4-lines-of-code-with-mootools-and-dojo/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 22:28:12 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Dojo]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=161</guid>
		<description><![CDATA[Recently I wrote article how to create image gallery with description in 4 lines of jQuery code. Now, I will  do the same thing with two other popular JavaScript frameworks, MooTools and Dojo.

Task is the same. One large image, description bar, few thumbs bellow, large image and description should change when thumb is clicked. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Recently I wrote article how to create image gallery with description in 4 lines of jQuery code. Now, I will  do the same thing with two other popular JavaScript frameworks, MooTools and Dojo.</p>
<p><a href="http://workshop.rs/2010/08/image-gallery-in-4-lines-of-code-with-mootools-and-dojo/"><img class="aligncenter size-full wp-image-149" title="Image gallery in 4 lines of code with MooTools and Dojo" src="http://workshop.rs/wp-content/uploads/2010/05/gallery-4-lines1.png" alt="Image gallery in 4 lines of code with MooTools and Dojo" width="565" height="409" /></a></p>
<p>Task is the same. One large image, description bar, few thumbs bellow, large image and description should change when thumb is clicked. Same rules, HTML and CSS code as <a href="http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/">here</a> will be used.<span id="more-161"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/demo/gallery-in-4-lines/dojo-gallery"><span class="ddText">Dojo code</span><small>see how it works</small></a><a href="http://workshop.rs/demo/gallery-in-4-lines/mootools-gallery"><span class="ddText">MooTools code</span><small>see how it works</small></a></div>
<h2>Dojo code</h2>
<pre class="brush: jscript;">
dojo.query('#thumbs img').onclick( function(e){
	dojo.attr('largeImage','src',dojo.attr(this,'src').replace('thumb','large'));
	dojo.attr('description','innerHTML',dojo.attr(this,'alt'));
});
</pre>
<h2>MooTools code</h2>
<pre class="brush: jscript;">
$('thumbs').getElements('img').addEvent('click', function(event){
	$('largeImage').set('src' , this.get('src').replace('thumb','large'));
	$('description').set('html',$(this).get('alt'));
});
</pre>
<p>and again, just for comparation:</p>
<h2>jQuery code</h2>
<pre class="brush: jscript;">
$('#thumbs img').click(function(){
	$('#largeImage').attr('src',$(this).attr('src').replace('thumb','large'));
	$('#description').html($(this).attr('alt'));
});
</pre>
<p>As you see approach is the same, only difference is in syntax, and if you are familiar with one JavaScript framework, you don&#8217;t need much effort to switch on another. But, if you learn JavaScript you will be able do use full power of those frameworks. So, don&#8217;t be lazy and <a href="http://www.w3schools.com/js/default.asp">start now.</a></p>
<div class="shr-publisher-161"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/08/image-gallery-in-4-lines-of-code-with-mootools-and-dojo/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create image gallery in 4 lines of jQuery</title>
		<link>http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/</link>
		<comments>http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 00:31:27 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=144</guid>
		<description><![CDATA[Few days ago friend asked me to build image gallery with thumbnails for her web page. Request was pretty simple, she wanted large image and few thumbnails bellow that. Also, large image should have bar with description. When user click on thumb large image and description should change.

My idea was to use alt tag of [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Few days ago friend asked me to build image gallery with thumbnails for her web page. Request was pretty simple, she wanted large image and few thumbnails bellow that. Also, large image should have bar with description. When user click on thumb large image and description should change.</p>
<p><img class="aligncenter size-full wp-image-149" title="gallery-4-lines" src="http://workshop.rs/wp-content/uploads/2010/05/gallery-4-lines1.png" alt="gallery-4-lines" width="565" height="409" /></p>
<p>My idea was to use alt tag of thumb image for large image description. I already did that for jqFancyTransitions. Also, I was impatient to use jQuery&#8217;s delegate method in real life. So this is my image gallery with thumbs and description in 4 lines of jQuery.<br />
<span id="more-144"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/demo/gallery-in-4-lines"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://workshop.rs/demo/gallery-in-4-lines/gallery-in-4-lines.zip"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>First prepare images for gallery, large images and thumbs. We need some naming convention so let&#8217;s naming large images with suffix _large and their thumbs with suffix _thumbs. For every image we will have pair, image_xx_large.jpg and image_xx_thumb.jpg. In this example all large images will be 565&#215;280px and thumbs will be 100&#215;100px.</p>
<p>Next thing is to include jQuery in head of your document:</p>
<pre class="brush: xml;">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>After that we need layout to hold one large image and all thumbs. We need one panel with large image and description bar. Also, we need holder for thumbnails.</p>
<pre class="brush: xml;">
&lt;div id=&quot;gallery&quot;&gt;
	&lt;div id=&quot;panel&quot;&gt;
		&lt;img id=&quot;largeImage&quot; src=&quot;images/image_01_large.jpg&quot; /&gt;
		&lt;div id=&quot;description&quot;&gt;First image description&lt;/div&gt;
	&lt;/div&gt;

	&lt;div id=&quot;thumbs&quot;&gt;
        &lt;img src=&quot;images/image_01_thumb.jpg&quot; alt=&quot;1st image description&quot; /&gt;
        &lt;img src=&quot;images/image_02_thumb.jpg&quot; alt=&quot;2nd image description&quot; /&gt;
        &lt;img src=&quot;images/image_03_thumb.jpg&quot; alt=&quot;3rd image description&quot; /&gt;
        &lt;img src=&quot;images/image_04_thumb.jpg&quot; alt=&quot;4th image description&quot; /&gt;
        &lt;img src=&quot;images/image_05_thumb.jpg&quot; alt=&quot;5th image description&quot; /&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>We should add some style to our gallery:</p>
<pre class="brush: css;">
#thumbs { padding-top: 10px; overflow: hidden; }
#thumbs img, #largeImage {
 border: 1px solid gray;
 padding: 4px;
 background-color: white;
 cursor: pointer;
}
#thumbs img {
 float: left;
 margin-right: 6px;
}
#description {
 background: black;
 color: white;
 position: absolute;
 bottom: 0;
 padding: 10px 20px;
 width: 525px;
 margin: 5px;
}
#panel { position: relative; }
</pre>
<p>Now, when we have layout and CSS prepared we should add functionality to our image gallery. When user click on thumb, large image should be changed as well as description. We will replace &#8216;thumb&#8217; to &#8216;large&#8217; in src attribute of largeImage and use alt attribute of thumb for description. That can be achieved with following jQuery code:</p>
<pre class="brush: jscript;">
$('#thumbs img').click(function(){
	$('#largeImage').attr('src',$(this).attr('src').replace('thumb','large'));
	$('#description').html($(this).attr('alt'));
});
</pre>
<p>And that&#8217;s it, you have fully functional image gallery for your site.</p>
<p>The better way for this is to use delegate method of jQuery. With delegate you&#8217;ll be able to dynamically load thumbs and use them without bind event listeners for new thumbs.</p>
<pre class="brush: jscript;">
$('#thumbs').delegate('img','click', function(){
	$('#largeImage').attr('src',$(this).attr('src').replace('thumb','large'));
	$('#description').html($(this).attr('alt'));
});
</pre>
<p>Delegate method is added in jQuery 1.4.2. Check more about <a href="http://api.jquery.com/delegate/">delegate()</a>.</p>
<div class="shr-publisher-144"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/feed/</wfw:commentRss>
		<slash:comments>124</slash:comments>
		</item>
		<item>
		<title>Coin Slider 4 WordPress</title>
		<link>http://workshop.rs/2010/05/coin-slider-4-wordpress/</link>
		<comments>http://workshop.rs/2010/05/coin-slider-4-wordpress/#comments</comments>
		<pubDate>Mon, 03 May 2010 22:38:48 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=129</guid>
		<description><![CDATA[Coin Slider 4 WP will show your featured posts as image slider and rotate them using unique effects provided by jQuery&#8217;s Coin Slider.

Implementation is very easy, after you download and activate this plugin, just paste one line of code in your template and Coin Slider 4 WP is ready to use.

Demo pagesee how it worksDownloadtry [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Coin Slider 4 WP will show your featured posts as image slider and rotate them using unique effects provided by jQuery&#8217;s <a href="http://workshop.rs/2010/04/coin-slider-image-slider-with-unique-effects/">Coin Slider</a>.</p>
<p><img class="aligncenter size-full wp-image-130" title="coin-slider-4-wp" src="http://workshop.rs/wp-content/uploads/2010/05/coin-slider-4-wp.png" alt="coin-slider-4-wp" width="565" height="290" /></p>
<p>Implementation is very easy, after you download and activate this plugin, just paste one line of code in your template and Coin Slider 4 WP is ready to use.</p>
<p><span id="more-129"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/coin-slider"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://wordpress.org/extend/plugins/coin-slider-4-wp/"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p><strong>Follow next steps to set this plugin:</strong></p>
<p>1. Upload coin-slider-4-wp folder to the `/wp-content/plugins/` directory<br />
2. Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress<br />
3. Put &lt;?php include (ABSPATH . &#8216;/wp-content/plugins/coin-slider-4-wp/coinslider.php&#8217;); ?&gt;  in your template<br />
4. For each post that you want to be featured you must have custom field (csImage by default) with full url to image and optionaly field (csText by default) with text for title bar.</p>
<p>On options page you can change default parameters:</p>
<p><strong>Width:</strong> in pixels, 565 by default<strong><br />
Height:</strong> in pixels, 290 by default<strong><br />
Number of Squares per Width: </strong>Coin Slider use square based  animations.  7 by default<strong><br />
</strong><strong>Number of Squares per Height: </strong>5 by default<strong></strong><br />
Be careful, if you set large number  of squares animation may not be smooth<br />
<strong>Slide Display Duration:</strong> in miliseconds, 5000 by default<br />
<strong>Slide Transition Effects:</strong> there are three types: random, swirl and rain. All of those effect you can see <a href="http://workshop.rs/2010/04/coin-slider-image-slider-with-unique-effects/">here</a><strong><br />
Hide Navigation</strong>: check this if you don&#8217;t need prev/next buttons and navigation squares below slider<strong><br />
Image field: </strong>set custom field for image that should be  used in gallery. By default you can use csImage field, but if you want  you can change that. This is useful if you already use some gallery  plugin and you want to change to  Coin Slider 4 WP<br />
<strong>Text Field: </strong>this field is optional. Content for this  field will be displayed in gallery title bar bellow title. By default  name of this field is csText but you can change if you want to use some  other field</p>
<p>If you prefer Joomla instead WordPress you should try <a href="http://extensions.joomla.org/extensions/photos-a-images/images-rotators/12235">Coin Slider for Joomla</a> created by <a href="http://www.joompad.be/">Daniel Pardons</a>.</p>
<div id="amazon_ads">
<ul>
<li>
<a href="http://www.amazon.com/gp/product/0789749076/ref=as_li_tf_il?ie=UTF8&#038;tag=workshop02-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0789749076"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&#038;Format=_SL160_&#038;ASIN=0789749076&#038;MarketPlace=US&#038;ID=AsinImage&#038;WS=1&#038;tag=workshop02-20&#038;ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.com/e/ir?t=workshop02-20&#038;l=as2&#038;o=1&#038;a=0789749076" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
<li>
<a href="http://www.amazon.com/gp/product/1118073428/ref=as_li_tf_il?ie=UTF8&#038;tag=workshop02-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1118073428"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&#038;Format=_SL160_&#038;ASIN=1118073428&#038;MarketPlace=US&#038;ID=AsinImage&#038;WS=1&#038;tag=workshop02-20&#038;ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.com/e/ir?t=workshop02-20&#038;l=as2&#038;o=1&#038;a=1118073428" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
<li>
<a href="http://www.amazon.com/gp/product/1935182323/ref=as_li_tf_il?ie=UTF8&#038;tag=workshop02-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1935182323"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&#038;Format=_SL160_&#038;ASIN=1935182323&#038;MarketPlace=US&#038;ID=AsinImage&#038;WS=1&#038;tag=workshop02-20&#038;ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.com/e/ir?t=workshop02-20&#038;l=as2&#038;o=1&#038;a=1935182323" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
</ul>
</div>
<div class="shr-publisher-129"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/05/coin-slider-4-wordpress/feed/</wfw:commentRss>
		<slash:comments>226</slash:comments>
		</item>
		<item>
		<title>Coin Slider: Image Slider with Unique Effects</title>
		<link>http://workshop.rs/2010/04/coin-slider-image-slider-with-unique-effects/</link>
		<comments>http://workshop.rs/2010/04/coin-slider-image-slider-with-unique-effects/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 06:00:08 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=109</guid>
		<description><![CDATA[After jqFancyTransitions I decided to release new jQuery image slider plugin with more unique transitions effects. I have ideas for new effects and after I didn&#8217;t find that somebody already implement that I create Coin Slider.

Thanks to you and your comments Coin Slider have lot of features that jqFancyTransitions didn&#8217;t have at the beginning.  Basically [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>After <a href="http://workshop.rs/projects/jqfancytransitions/">jqFancyTransitions</a> I decided to release new jQuery image slider plugin with more unique transitions effects. I have ideas for new effects and after I didn&#8217;t find that somebody already implement that I create Coin Slider.</p>
<p><img class="aligncenter size-full wp-image-123" title="coin-slider" src="http://workshop.rs/wp-content/uploads/2010/04/coin-slider.png" alt="coin-slider" width="565" height="325" /></p>
<p>Thanks to you and your comments Coin Slider have lot of features that jqFancyTransitions didn&#8217;t have at the beginning.  Basically it&#8217;s a latest (and improved) version of jqFancyTransitions but with new &#8216;fancy&#8217; transitions effects.</p>
<p><span id="more-109"></span></p>
<div id="ddLinks" class="link33"><a href="http://workshop.rs/projects/coin-slider"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="https://code.google.com/p/coin-slider/downloads/list"><span class="ddText">Download</span><small>try it for yourself</small></a><a href="https://github.com/kopipejst/coin-slider"><span class="ddText">Source code</span><small>fork me on GitHub</small></a></div>
<p>jqFancyTransitions slice your images in stripes, while Coin Slider slice them in squares. And that&#8217;s the main difference. With changing order of appearing those squares I achieve random, swirl, rain and straight effects.</p>
<p>While I was working on this I felt like I&#8217;m on college again. Creating order of squares appearance remind me on my college projects when I spent few night and days trying to solve some problem. Random and straight was simple, but swirl effect give me some trouble. Fortunately, I&#8217;m working with Milos Popovic who like to solve those kind of problems and he help me about swirl function. Kudos to Milos!</p>
<p>For rain effect I spent few rainy hours to built it and that&#8217;s why I gave him that name. Naming things is something that I&#8217;m not good at.</p>
<h2>How to use</h2>
<p>Download jQuery, Coin Slider javascript file and CSS file and include them on your page:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.4.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;coin-slider.min.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;coin-slider-styles.css&quot; type=&quot;text/css&quot; /&gt;
</pre>
<p>Add slider content and create one div with an id and put images and image descriptions, similar to:</p>
<pre class="brush: xml;">
&lt;div id='coin-slider'&gt;
	&lt;a href=&quot;img01_url&quot; target=&quot;_blank&quot;&gt;
		&lt;img src='img01.jpg' &gt;
		&lt;span&gt;
			Description for img01
		&lt;/span&gt;
	&lt;/a&gt;
	......
	......
	&lt;a href=&quot;imgN_url&quot;&gt;
		&lt;img src='imgN.jpg' &gt;
		&lt;span&gt;
			Description for imgN
		&lt;/span&gt;
	&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>At the end all you have to do is to call Coin Slider:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
	$(document).ready(function() {
		$('#coin-slider').coinslider();
	});
&lt;/script&gt;
</pre>
<h2>Example</h2>
<p>Coin Slider have a lot of options for helping you set slider as you want. If you want to have 900px wide slider, without navigation and with 5sec delay between images you&#8217;ll do this:</p>
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
	$(document).ready(function() {
		$('#coin-slider').coinslider({ width: 900, navigation: false, delay: 5000 });
	});
&lt;/script&gt;
</pre>
<h2>List of all options</h2>
<pre class="brush: jscript;">
width: 565, // width of slider panel
height: 290, // height of slider panel
spw: 7, // squares per width
sph: 5, // squares per height
delay: 3000, // delay between images in ms
sDelay: 30, // delay beetwen squares in ms
opacity: 0.7, // opacity of title and navigation
titleSpeed: 500, // speed of title appereance in ms
effect: '', // random, swirl, rain, straight
navigation: true, // prev next and buttons
links : true, // show images as links
hoverPause: true // pause on hover
</pre>
<h2>Notes</h2>
<p>Be careuful with spw and sph because large numbers can cause transitions problems.<br />
If you don&#8217;t set effect all effects will be implemented by random.</p>
<p>Check the demo of <a href="http://workshop.rs/projects/coin-slider">&#8216;The More Awesome jQuery Image Slider&#8217;</a></p>
<div class="shr-publisher-109"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/04/coin-slider-image-slider-with-unique-effects/feed/</wfw:commentRss>
		<slash:comments>1452</slash:comments>
		</item>
		<item>
		<title>mooBarGraph: AJAX graph for MooTools</title>
		<link>http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/</link>
		<comments>http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 00:08:09 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=87</guid>
		<description><![CDATA[mooBarGraph is AJAX graph plugin for MooTools which support two types of graphs, simple bar and stacked bar graph. This plugin made graph from your JSON data and is compatible with all major browsers including IE6.

This is jqBarGraph on steroids. It have almost all jqBarGraph possibility, plus some new features, like url bars, info boxes, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>mooBarGraph is AJAX graph plugin for <a href="http://mootools.net/">MooTools</a> which support two types of graphs, simple bar and stacked bar graph. This plugin made graph from your JSON data and is compatible with all major browsers including IE6.</p>
<p><a href="http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/"><img src="http://workshop.rs/wp-content/uploads/2010/02/moobargraph.png" alt="moobargraph" title="moobargraph" width="500" height="332" class="aligncenter size-full wp-image-91" /></a></p>
<p>This is <a href="http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/">jqBarGraph</a> on steroids. It have almost all jqBarGraph possibility, plus some new features, like url bars, info boxes, negative values, AJAX data loading&#8230;<span id="more-87"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/moobargraph"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://mootools.net/forge/p/moobargraph"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p><strong>Features</strong></p>
<p>    * You can set label, color, url and tooltip text for every bar<br />
    * Bars can be simple or stacked<br />
    * Legend can be created automatically<br />
    * Data can be loaded with AJAX and can have negative values for simple type<br />
    * Compatible with all major browsers including IE</p>
<p><strong>How to use</strong></p>
<p>First you should create element in which you want to create graph. It can be something like:</p>
<pre class="brush: xml;">
&lt;div id=&quot;myGraph&quot;&gt;&lt;/div&gt;
</pre>
<p>After that data array must be created. There are two types available: simple and stacked.</p>
<p>Array for simple type should be like this and everything except value is optional:</p>
<pre class="brush: jscript;">new graphData =  new Array(
    [value1,label1,color1,url1,tooltip1],
    [value2,label2,color2,url2,tooltip2],
    .....
    [valueN,labelN,colorN,urlN,tooltipN]
    );
</pre>
<p>For stacked type also only value is required and everything else is optional. It should look similar to next code:</p>
<pre class="brush: jscript;">new graphData =  new Array(
    [[value11,value12,...,value1M],label1,color1,url1,tooltip1],
    [[value21,value22,...,value2M],label2,color2,url2,tooltip2],
    .....
    [[valueN1,valueN2,...,valueNM],labelN,colorN,urlN,tooltipN]
    );
</pre>
<p>After you create container and data, you have to create mooBarGraph object with prepared arguments.</p>
<pre class="brush: jscript;">window.addEvent('domready', function() {
    var myGraph = new mooBarGraph({
        container: $('myGraph'),
        data: graphData
    });
})
</pre>
<p>This will be enough to create bar graph based on your data, but you can pass few additional options. List of options is in next section.</p>
<p><strong>mooBarGraph options</strong></p>
<p>You should always have container and data options:</p>
<pre class="brush: jscript;">
container // element in which you want mooBarGraph to be created
data // array of data for mooBarGraph
</pre>
<p>Other options are optional (list is shown with default values):</p>
<pre class="brush: jscript;">
width: 400 // width of graph panel in px
height: 300 // height of graph panel in px
title: false // graph title. can use html tags
barSpace: 10 // space between bars in px
color: '#111111' // default color for your bars
colors: false // array of colors. it will be used for parts of stacked type or will be repeated for simple type
sort: false // 'asc' or 'desc', this can be used only for simple type
prefix: '' // string that will be show before bar value
postfix: '' // string that will be shown after bar value
legend: false // set to true if you want to lefend box be created
legendWidth: 100 // width of legend box in px
legends: false // array of values for legend
showValues: true // for stacked bars type only. false to hide values in sub bars.
showValuesColor: '#fff' // color for values in parts for stacked type
</pre>
<h2>AJAX data loading </h2>
<p>All you have to do is to call draw() function of your mooBarGraph object and pass url who will return data in JSON format.</p>
<pre class="brush: jscript;">myGraph.draw(url);
</pre>
<p><strong>Example usage:</strong></p>
<p>html</p>
<pre class="brush: xml;">&lt;a href=&quot;#&quot; onclick=&quot;myGraph.draw('ajaxdata.php')&gt;click here for new data&lt;/a&gt;</pre>
<p>ajaxdata.php</p>
<pre class="brush: php;">for($i=0;$i&lt;10;$i++){
    $ajaxData[$i][] = rand(-5,5);
}

$ajaxData = json_encode($ajaxData);
echo $ajaxData;
</pre>
<p>The draw() function also can accept array as argument and create graph dynamically.</p>
<pre class="brush: jscript;">
myGraph.draw(arrayOfData);
</pre>
<p>With all of this options you can create really cool presentation of your data as you can see on mooBarGraph <a href="http://workshop.rs/projects/moobargraph">demo</a> page. If you can and want to contribute check <a href="http://github.com/kopipejst/mooBarGraph">github</a>.</p>
<div class="shr-publisher-87"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/02/moobargraph-ajax-graph-for-mootools/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Google Buzz ER: Google Buzz for Wordpress</title>
		<link>http://workshop.rs/2010/02/google-buzz-er-google-buzz-for-wordpress/</link>
		<comments>http://workshop.rs/2010/02/google-buzz-er-google-buzz-for-wordpress/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 00:39:45 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=73</guid>
		<description><![CDATA[Yesterday Google announced new service, Google Buzz, a new way to share updates, photos, videos and more, and start conversations about the things you find interesting. Today you can have Google Buzz posts on your WordPress site.

Google Buzz Er is Wordpress plugin for showing public Google Buzz posts for selected Google account. All you have [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Yesterday Google announced new service, <a href="http://www.google.com/buzz">Google Buzz</a>, a new way to share updates, photos, videos and more, and start conversations about the things you find interesting. Today you can have Google Buzz posts on your WordPress site.</p>
<p><img class="aligncenter size-full wp-image-74" title="google-buzz-er" src="http://workshop.rs/wp-content/uploads/2010/02/google-buzz-er.png" alt="google-buzz-er" width="500" height="332" /></p>
<p>Google Buzz Er is <a href="http://wordpress.org/">Wordpress</a> plugin for showing public <a href="http://www.google.com/buzz">Google Buzz</a> posts for selected Google account. All you have to do is to set Google account username and optionally number of posts. <ins datetime="2010-02-12T13:39:59+00:00">From 1.2 version Google Buzz Er have sidebar widget.</ins> <span id="more-73"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://wordpress.org/extend/plugins/google-buzz-er/"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p><strong>Features</strong><br />
* Custom title<br />
* Showing images from post<br />
* Sidebar widget<br />
* Custom color scheme</p>
<p><strong>How to install</strong></p>
<p><del datetime="2010-02-12T13:39:59+00:00">In header of your site add following line of code:</del></p>
<p><code><del datetime="2010-02-12T13:39:59+00:00">&lt;?php include (ABSPATH . '/wp-content/plugins/google-buzz-er/google-buzz-er.php'); ?&gt;</del></code></p>
<p><ins datetime="2010-02-12T13:39:59+00:00"> 1. Upload google-buzz-er to the /wp-content/plugins/ directory<br />
2. Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress<br />
3. Drag widget on your sidebar &#8211; or -</ins></p>
<p>On place where you want Google Buzz ER to be shown put:</p>
<p><code>&lt;?php GoogleBuzzEr(); ?&gt;</code></p>
<p>After that go on Google Buzz ER settings page and set your Google account username <ins datetime="2010-02-12T13:39:59+00:00">(without &#8216;@gmail.com&#8217;) </ins>. It&#8217;s simple like that.</p>
<p><strong>Changelog</strong></p>
<p>1.1<br />
* Sorting posts by publishing time</p>
<p>1.2<br />
* Added sidebar widget feature<br />
* Removed include for header section</p>
<p>1.3<br />
* Custom title in header<br />
* Option for showing images from posts<br />
* Width for images from posts</p>
<p>1.4<br />
* Using curl for getting Google Buzz data<br />
* Check if there are posts<br />
* Set box, posts, links color from admin page<br />
* Choose if Google Buzz logos will be displayed</p>
<div class="shr-publisher-73"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/02/google-buzz-er-google-buzz-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>133</slash:comments>
		</item>
		<item>
		<title>Twitter Flock for Wordpress: multiple accounts tweets with style</title>
		<link>http://workshop.rs/2010/02/twitter-flock-for-wordpress-multiple-accounts-tweets-with-style/</link>
		<comments>http://workshop.rs/2010/02/twitter-flock-for-wordpress-multiple-accounts-tweets-with-style/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 00:54:17 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=64</guid>
		<description><![CDATA[Twitter Flock is Wordpress plugin for showing multiple accounts tweets with different color scheme for every account. Also, there are setting allowing you to control how your tweets will look like and will they cache or not.

One of the things that make this plugin different form other are tabs above Twitter Flock box. This tab [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Twitter Flock is Wordpress plugin for showing multiple accounts tweets with different color scheme for every account. Also, there are setting allowing you to control how your tweets will look like and will they cache or not.</p>
<p><a href="http://workshop.rs/2010/02/twitter-flock-for-wordpress-multiple-accounts-tweets-with-style/"><img class="aligncenter size-full wp-image-65" title="Twitter-Flock" src="http://workshop.rs/wp-content/uploads/2010/02/Twitter-Flock.png" alt="Twitter-Flock" width="500" height="332" /></a></p>
<p>One of the things that make this plugin different form other are tabs above Twitter Flock box. This tab shows accounts avatars so visitors can click on them and see only tweets from that account. <ins datetime="2010-02-13T18:35:09+00:00">From 1.1 version Twitter Flock have sidebar widget.</ins><span id="more-64"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://wordpress.org/extend/plugins/twitter-flock/"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p><strong>With Twitter Flock you can:</strong></p>
<p>- show tweets from multiple accounts or only one account,<br />
- cache tweets for faster page load,<br />
- set different color scheme for every user,<br />
- show only tweets with defined hash tag,<br />
- link url inside of tweets,<br />
- display tab with accounts avatars so visitors can select which account tweets wants to see,<br />
<ins datetime="2010-02-13T18:35:09+00:00">- easy implement as sidebar widget</ins>,<br />
<ins datetime="2010-03-29T17:51:27+00:00">- custom header title</ins></p>
<p><strong>You should follow those steps in order to install Twitter Flock on you Wordpress:</strong></p>
<p>1. Upload `twitter-flock` directory to the `/wp-content/plugins/` directory<br />
2. Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress<br />
<del datetime="2010-02-13T18:35:09+00:00">3. Add this &lt;?php include (ABSPATH . &#8216;/wp-content/plugins/twitter-flock/twitter-flock.php&#8217;); ?&gt; in header of your template</del><br />
4. Put &lt;?php TwitterFlock(); ?&gt; in your template on place where you want Twitter Flock to show tweets or<br />
5. Drag widget on your sidebar<br />
6. Set options on admin panel</p>
<p><strong>Twitter Flock, beside standard options, have and some not-so-standard features.</strong></p>
<p>My favorite feature and main reason why I made this plugin is possibility to show only tweets with chosen hash tag and remove that hash tag from tweets. So, now on workshop.rs I can show only those tweets that I select with #ws hash tag and I will not bother you with rest of my tweets.</p>
<p>Another cool feature is tab bar above Twitter Flock box so your visitor can choose only tweets from selected account. Also, you can choose different colors for background and text for every user separately.</p>
<p><strong>Changelog</strong></p>
<p>1.2<br />
* Header title<br />
* Option for exclude jQuery in case of conflict</p>
<p>1.1<br />
* Sidebar widget<br />
* No need for inlude line in header<br />
* Fixes problem with new avatar appereance</p>
<div class="shr-publisher-64"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/02/twitter-flock-for-wordpress-multiple-accounts-tweets-with-style/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>jqIsoText: jQuery Text Effect Plugin</title>
		<link>http://workshop.rs/2010/01/jqisotext-jquery-text-effect-plugin/</link>
		<comments>http://workshop.rs/2010/01/jqisotext-jquery-text-effect-plugin/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 01:27:16 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=50</guid>
		<description><![CDATA[Some content on our pages are more important than other and we want to made him eye catching. There are lot of techniques to achieve that.  One of them is jqIsoText.

With this plugin we&#8217;re changing size of letters in text. It starts from one font size and increment or decrement to other font size. On [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Some content on our pages are more important than other and we want to made him eye catching. There are lot of techniques to achieve that.  One of them is jqIsoText.</p>
<p><a href="http://workshop.rs/2010/01/jqisotext-jquery-text-effect-plugin/"><img class="aligncenter size-full wp-image-51" title="jqisotext" src="http://workshop.rs/wp-content/uploads/2010/01/jqisotext.png" alt="jqisotext" width="500" height="332" /></a></p>
<p>With this plugin we&#8217;re changing size of letters in text. It starts from one font size and increment or decrement to other font size. On that way we&#8217;re getting something similar to isometric projection. That can be done for whole block of text or for every word in some text.<span id="more-50"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/jqisotext"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://code.google.com/p/jqisotext/downloads/list"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>First download jQuery and jqIsoText and include on your page like this:</p>
<pre class="brush: jscript;">&lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jqIsoText.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
<p>After that all you have to do is to select element on which you want to apply effect and call jqIsoText.</p>
<pre class="brush: jscript;">
&lt;script&gt;
$(&quot;.elem&quot;).jqIsoText();
&lt;/script&gt;
</pre>
<p>This plugin have only three options: fromSize, toSize and split. The first one is the size of first letter, second is the size for middle letter in text and third one is if you want to threat every word from text separately. E.g. if you want that your text in h1 tags starts from 50px, go to 20px and threat every word separately you should use next code snippet.</p>
<pre class="brush: jscript;">
&lt;script&gt;
$(&quot;.elem&quot;).jqIsoText({ fromSize: 50, toSize: 20, split: 'yes' });
&lt;/script&gt;
</pre>
<p>You sholud use this plugin for titles or some important line of text. Using this for long text may be difficult for reading and can cause opposite effect. Also, this can be used only for text nodes.</p>
<div class="shr-publisher-50"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2010/01/jqisotext-jquery-text-effect-plugin/feed/</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
		<item>
		<title>Fancy Transitions Featured Gallery for WordPress</title>
		<link>http://workshop.rs/2009/12/fancy-transitions-featured-gallery-for-wordpress/</link>
		<comments>http://workshop.rs/2009/12/fancy-transitions-featured-gallery-for-wordpress/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 10:21:41 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=37</guid>
		<description><![CDATA[ftFeatured is Wordpress plugin for creating image gallery with fancy transition effects of featured posts. You can choose between three types of transition effects: curtain, wave and zipper. Also, you can set width, height, delay time, number of posts etc.
This WordPress plugin is based on jQuery jqFancyTransitions plugin and is very easy to use. After [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>ftFeatured is Wordpress plugin for creating image gallery with fancy transition effects of featured posts. You can choose between three types of transition effects: curtain, wave and zipper. Also, you can set width, height, delay time, number of posts etc.</p>
<p>This WordPress plugin is based on jQuery<a href="http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/"> jqFancyTransitions</a> plugin and is very easy to use. After you activate this plugin and set custom field for image, all you have to do is to paste one line of code in your template on place where you want your ftFeatured gallery.<span id="more-37"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://wordpress.org/extend/plugins/fancy-transitions-featured-gallery/"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>You should follow this steps for install and set Fancy Transitions Featured Gallery:</p>
<p>1. Download plugin<br />
2. Put ftFeatured folder in your wp-content/plugins folder<br />
3. Activate ftFeatured from admin panel<br />
4. Go to Settings on a admin panel and set options<br />
5. Create custom fields for your post<br />
6. Paste <code>&lt;?php include (ABSPATH . '/wp-content/plugins/fancy-transitions-featured-gallery/ftFeatured.php'); ?&gt;</code> in your template where you want ftFeatured to be displayed.</p>
<p>There are few options for Fancy Transitions Featured Gallery:</p>
<p><strong>Width:</strong> in pixels, 500 by default<strong><br />
Height:</strong> in pixels, 332 by default<strong><br />
Number of Stripes: </strong> jqFancyTransitions use stripes based animations abd there are 20 stripes by default. If you set large number of stripes animation may not be smooth<strong><br />
Slide Display Duration:</strong> in miliseconds, 5000 by default<br />
<strong>Slide Transition Effects:</strong> there are three types: curtain, wave, zipper. All of those effect you can see <a href="http://workshop.rs/projects/jqfancytransitions/">here</a><br />
<strong>Image field: </strong>set custom field for image that should be used in gallery. By default you can use ftImage field, but if you want you can change that. This is useful if you already use some gallery plugin and you want to change to  Fancy Transitions Featured Gallery<br />
<strong>Text Field: </strong>this field is optional. Content for this field will be displayed in gallery title bar bellow title. By default name of this field is ftText but you can change if you want to use some other field</p>
<p><strong>Changelog</strong></p>
<p>1.0.1<br />
    * Solved problem with plugin paths</p>
<p>1.1.0<br />
    * Work on all posts and pages not only on front page</p>
<p>1.2.0<br />
    * Valid XHTML Markup</p>
<p>1.3.0<br />
    * Option to show posts from one category</p>
<div class="shr-publisher-37"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2009/12/fancy-transitions-featured-gallery-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>Image gallery with fancy transitions effects</title>
		<link>http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/</link>
		<comments>http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 04:16:43 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery plugin]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=23</guid>
		<description><![CDATA[I was looking all over the Internet for some jQuery gallery plugin with some interesting transition effects. I found a lot of great plugins but they all have pretty same transition effects. Mostly that was fading and sliding effects. I wanted something different so I decide to made my own slideshow gallery plugin for jQuery. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I was looking all over the Internet for some jQuery gallery plugin with some interesting transition effects. I found a lot of great plugins but they all have pretty same transition effects. Mostly that was fading and sliding effects. I wanted something different so I decide to made my own slideshow gallery plugin for jQuery. That&#8217;s how was born jqFancyTransitions.</p>
<p style="text-align: center;"><a href="http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/"><img class="aligncenter size-full wp-image-24" title="jqFancyTransitions2" src="http://workshop.rs/wp-content/uploads/2009/12/jqFancyTransitions2.png" alt="jqFancyTransitions2" width="495" height="329" /></a></p>
<p>My main idea was to build some &#8217;strip curtain&#8217; effect and I start from that. But, while I was building this some other effects just pop up and I decided to adjust code and include some of those effects. Now, there are &#8216;wave&#8217;, &#8216;zipper&#8217; and &#8216;curtain&#8217; effect, plus options that can be used for custom effect. You can see how it works on <a href="http://workshop.rs/projects/jqfancytransitions">examples and documentations page.</a><span id="more-23"></span></p>
<div id="ddLinks"><a href="http://workshop.rs/projects/jqfancytransitions"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://code.google.com/p/jqfancytransitions/downloads/list"><span class="ddText">Download</span><small>try it for yourself</small></a></div>
<p>At the beggining you will need to download <a href="http://www.jquery.com">jQuery</a> and <a href="http://workshop.rs/projects/jqfancytransitions">jqFancyTransitions</a> and include them on your page similar like this :</p>
<pre class="brush: jscript;">&lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jqFancyTransitions.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>After that you will need some placeholder with some images for your slideshow. Text from alt tag will be used in title bar in your slideshow.</p>
<pre class="brush: xml;">
&lt;div id='slideshowHolder'&gt;
 &lt;img src='img1.jpg' alt='img1' /&gt;
 &lt;img src='img2.jpg' alt='img2' /&gt;
 &lt;img src='img3.jpg' alt='img3' /&gt;
&lt;/div&gt;
</pre>
<p>When you set everything time is to call <a href="http://workshop.rs/projects/jqfancytransitions">jqFancyTransition</a> and tell him where to do his job. You will probably need to set width and height for your gallery. That can be done with next code:</p>
<pre class="brush: jscript;">
&lt;script&gt;
$(document).ready( function(){
	$('#slideshowHolder').jqFancyTransitions({ width: 400, height: 300 });
});
&lt;/script&gt;
</pre>
<p>The code above is enough to made your fancy transitions gallery 400px wide and 300px high. If you want you can change transition effect with one of predefined values:</p>
<ul>
<li>wave</li>
<li>zipper</li>
<li>curtain</li>
</ul>
<p>Of course, you can made custom effect with set of options that you can use to set speed, number of strips, direction, type of effect, etc. Bellow is list of all parameters and their values that you can use.</p>
<pre class="brush: jscript;">effect: '', // wave, zipper, curtain
width: 500, // width of panel
height: 332, // height of panel
strips: 20, // number of strips
delay: 5000, // delay between images in ms
stripDelay: 50, // delay beetwen strips in ms
titleOpacity: 0.7, // opacity of title
titleSpeed: 1000, // speed of title appereance in ms
position: 'alternate', // top, bottom, alternate, curtain
direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
navigation: false, // prev and next navigation buttons
links: false // show images as links
</pre>
<p>You can try to change those options and see what kind of effect you will get. Basically, you can change position and direction parameters and you will see  variety of <a href="http://workshop.rs/projects/jqfancytransitions">jqFancyTransitions</a> effects. Also you can check <a href="http://workshop.rs/projects/jqfancytransitions">examples and documentation page</a> where you can see few examples with photos made by my friends <a href="http://picasaweb.google.com/azzazel">Goran Jovanovic</a>, <a href="http://www.igorsrdanovic.com">Igor Srdanovic</a>, <a href="http://ivframes.com/">Ivan Jekic</a> and <a href="http://sniperyu.deviantart.com/">Marko Manojlovic</a> who is also design layout for that page.</p>
<p><strong>IMAGES AS URLS</strong></p>
<p>Since 1.7 version images can be urls. All you have to do is to add url below images. Similar to this:</p>
<pre class="brush: xml;">
&lt;div id='slideshowHolder'&gt;
 &lt;img src='img1.jpg' alt='img1' /&gt;
 &lt;a href ='http://workshop.rs'/&gt;&lt;/a&gt;
 &lt;img src='img2.jpg' alt='img2' /&gt;
 &lt;a href ='http://workshop.rs/projects/jqbargraph'&gt;&lt;/a&gt;
 &lt;img src='img3.jpg' alt='img3' /&gt;
 &lt;a href ='http://workshop.rs/projects/moobargraph'&gt;&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>After that just add <code>links: true</code> in call.</p>
<p><strong>Changelog</strong></p>
<p>- 1.5<br />
navigation</p>
<p>- 1.7<br />
images can be urls</p>
<p>- 1.8<br />
class for active navigation number ( ft-button-IDOFHOLDER-active )<br />
description bar is not part of &#8216;navigation&#8217; option</p>
<div class="shr-publisher-23"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2009/12/image-gallery-with-fancy-transitions-effects/feed/</wfw:commentRss>
		<slash:comments>959</slash:comments>
		</item>
		<item>
		<title>jqBarGraph &#8211; jQuery graph plugin</title>
		<link>http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/</link>
		<comments>http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 03:40:49 +0000</pubDate>
		<dc:creator>Lazarevic Ivan</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery plugin]]></category>

		<guid isPermaLink="false">http://workshop.rs/?p=15</guid>
		<description><![CDATA[jqBarGraph is jQuery plugin that gives you freedom to easily display your data as graphs. There are three types of graphs: simple, multi and stacked. All you have to do is to pass your data to this plugin. This plugin is compatible and fully tested with Safari 2+, Internet Explorer 6+, Firefox 2+, Google Chrome [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.workshop.rs/jqbargraph/">jqBarGraph</a> is <a href="http://www.jquery.com">jQuery</a> plugin that gives you freedom to easily display your data as graphs. There are three types of graphs: simple, multi and stacked. All you have to do is to pass your data to this plugin. This plugin is compatible and fully tested with Safari 2+, Internet Explorer 6+, Firefox 2+, Google Chrome 3+, Opera 9+.</p>
<p style="text-align: center;"><a href="http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/"><img class="size-full wp-image-16 aligncenter" title="jqBarGraph" src="http://workshop.rs/wp-content/uploads/2009/12/jqBarGraph.png" alt="jQuery Bar Graph " width="516" height="364" /></a></p>
<p>Of course, there are a lot of settings to tune appearance of your graph, as are animation, color scheme, dimensions etc. Also, you can additionally change look and feel of graph via CSS.<a href="http://www.workshop.rs/jqbargraph/"></a><span id="more-15"></span></p>
<div id="ddLinks" class="link33"><a href="http://www.workshop.rs/jqbargraph/"><span class="ddText">Demo page</span><small>see how it works</small></a><a href="http://code.google.com/p/jqbargraph/downloads/list"><span class="ddText">Download</span><small>try it for yourself</small></a><a href="https://github.com/kopipejst/jqBarGraph"><span class="ddText">Source Code</span><small>get on GitHub</small></a></div>
<p>You will need <a href="http://www.jquery.com/">jQuery</a> in order to make jqBarGraph working. First,  you need to download jQuery and jqBarGraph plugin and include them on your page. Similar to this:</p>
<pre class="brush: jscript;">
&lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jqBarGraph.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>Now, we need array of data from which we want to create graph. There is two type of data array for jqBarGraph. First is for simple bar graph type, and second is for multi and stacked bar type.</p>
<p>For <strong>simple bar graph type</strong> data for one bar should look like this: [value, label, color]. Label and color are optional. 	This is example for simple bar graph type:</p>
<pre class="brush: jscript;"> arrayOfData = new Array(
[10.3,'Jan','#f3f3f3'],
[15.2,'Feb','#f4f4f4'],
[13.1,'Mar','#cccccc'],
[16.3,'Apr','#333333'],
[14.5,'May','#666666']
); </pre>
<p>For <strong>multi and stacked type of graph</strong> you should send data in next format: [[value1, value2, value3, ..., valueN], label]. 	It should look similar to this:</p>
<pre class="brush: jscript;">arrayOfData = new Array(
[[14,54,26],'2007'],
[[8,48,38],'2008'],
[[4,36,57],'2009']
); </pre>
<p>After you set your data array you just need to say in which div you want graph to be created. All you have to do is:</p>
<pre class="brush: jscript;"> $('#divForGraph').jqBarGraph({ data: arrayOfData }); </pre>
<p>The code above is enough to display your data as bar graph. But if you want to made your graph prettier you can achieve that 	with next set of parameters:</p>
<p><code> <strong>data:</strong> arrayOfData, 		<span>// array of data for your graph</span><br />
<strong>title:</strong> false, 		<span>// title of your graph, accept HTML</span><br />
<strong>barSpace:</strong> 10,  		<span>// this is default space between bars in pixels</span><br />
<strong>width:</strong> 400,  		<span>// default width of your graph</span><br />
<strong>height:</strong> 200,  		<span>//default height of your graph</span><br />
<strong>color:</strong> '#000000',  		<span>// if you don't send colors for your data this will be default bars color</span><br />
<strong>colors:</strong> false,  		<span>// array of colors that will be used for your bars and legends</span><br />
<strong>lbl:</strong> '',  		<span>// if there is no label in your array</span><br />
<strong>sort:</strong> false,  		<span>// sort your data before displaying graph, you can sort as 'asc' or 'desc'</span><br />
<strong>position:</strong> 'bottom',  		<span>// position of your bars, can be 'bottom' or 'top'. 'top' doesn't work for multi type</span><br />
<strong>prefix:</strong> '',  		<span>// text that will be shown before every label</span><br />
<strong>postfix:</strong> '',  		<span>// text that will be shown after every label</span><br />
<strong>animate:</strong> true,  		<span>// if you don't need animated appearance change to false</span><br />
<strong>speed:</strong> 2,  		<span>// speed of animation in seconds</span><br />
<strong>legendWidth:</strong> 100,  		<span>// width of your legend box</span><br />
<strong>legend:</strong> false,  		<span>// if you want legend change to true</span><br />
<strong>legends:</strong> false,  		<span>// array for legend. for simple graph type legend will be extracted from labels if you don't set this</span><br />
<strong>type:</strong> false,  		<span>// for multi array data default graph type is stacked, you can change to 'multi' for multi bar type</span><br />
<strong>showValues:</strong> true,  		<span>// you can use this for multi and stacked type and it will show values of every bar part</span><br />
<strong>showValuesColor:</strong> '#fff' 		<span>// color of font for values</span></code></p>
<p>This graph will work without any additional CSS, but it can easily be styled via CSS. I was paying attention that you will have enough selectors to achieve anything you want with CSS. If you create something cool it will be nice if you share that with all of us.</p>
<p><strong>Changelog</strong></p>
<p>1.1</p>
<p>* Compatibility with jQuery 1.4.2+</p>
<div class="shr-publisher-15"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://workshop.rs/2009/12/jqbargraph-jquery-graph-plugin/feed/</wfw:commentRss>
		<slash:comments>126</slash:comments>
		</item>
	</channel>
</rss>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11860629-1");
pageTracker._trackPageview();
} catch(err) {}
</script>