<?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>plugin Archives - Cube Websites</title>
	<atom:link href="https://cubewebsites.com/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>https://cubewebsites.com/tag/plugin/</link>
	<description>web design and development</description>
	<lastBuildDate>Sun, 15 Jan 2012 12:45:21 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://cubewebsites.com/wp-content/uploads/2019/04/cropped-favicon-32x32.png</url>
	<title>plugin Archives - Cube Websites</title>
	<link>https://cubewebsites.com/tag/plugin/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FREEBIE: jQuery Scroll Tracker</title>
		<link>https://cubewebsites.com/development/javascript/freebie-jquery-scroll-tracker/</link>
					<comments>https://cubewebsites.com/development/javascript/freebie-jquery-scroll-tracker/#comments</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Sun, 15 Jan 2012 12:38:01 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[freebie]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[tracker]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=383</guid>

					<description><![CDATA[<p>I recently had an idea for a webpage, with a background which changes based on how far down the page the viewer has scrolled.  The idea was to have the Sun rise from the left side of the page, and then arc up and finally set on right. View Demo As went about creating a [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/freebie-jquery-scroll-tracker/">FREEBIE: jQuery Scroll Tracker</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I recently had an idea for a webpage, with a background which changes based on how far down the page the viewer has scrolled.  The idea was to have the Sun rise from the left side of the page, and then arc up and finally set on right.</p>
<p><a href="http://cubewebsites.github.com/Scroll-Tracker/" target="_blank"><img decoding="async" style="display: inline;" title="image" src="http://www.cubewebsites.com/blog/wp-content/uploads/2012/01/image4.png" alt="image" width="805" height="522" /></a></p>
<p><a href="http://cubewebsites.github.com/Scroll-Tracker/" target="_blank">View Demo</a></p>
<p>As went about creating a page which does this, I ended up creating my <a href="http://cubewebsites.github.com/Scroll-Tracker/" target="_blank">jQuery Scroll Tracker</a>.  It’s a very simple script, which allows you to track the position, and take certain actions when a certain part of the page is reached.</p>
<p>If you’ve been on the demo page, you’ll have seen that as you start scrolling the instructions disappear.  Here’s the code and explanation of how that effect is achieved:</p>
<pre class="brush: jscript; title: ; notranslate">
//when the document is loaded
    $(document).ready(function(){
        scrollTracker.initialize();
        /* the 'instructions' parameter is just a label we're giving to the tracker so we can delete it later
        /  it's just a label and can be called whatever you want
        /  the second parameter is a callback function, which the scrollTracker will fire when the page is scrolled
        /  the function can accept two parameters:
        /   - scrollpercent - the percentage of the page which has been scrolled
        /   - scollpos - the number of pixels of the page which has been scrolled
        */
        scrollTracker.addObject('instructions',function(scrollpercent,scrollpos){
            //if 10% of the page is scrolled
            if(scrollpercent &gt; 10) {
                //fade the instructions out
                $('#instructions').fadeOut();
                //remove the tracker so that it only gets called once
                scrollTracker.deleteObject('instructions');
            }
        });
    });
</pre>
<p>As you can see, most of the code is comments.  The scrollTracker listens for when the page is scrolled, and when it is it will call the function you provide it with.</p>
<p>There&#8217;s a lot more you can do with it, and you can find full up-to-date documentation on the <a href="http://cubewebsites.github.com/Scroll-Tracker/">GitHub project page</a></p>
<p>If you decide to use it, please let me know so I can link to it as an example.<br />
If you have suggestions or requests then please post in the comments and I’ll see what I can do!</p>
<p><a href="http://cubewebsites.github.com/Scroll-Tracker/" target="_blank">Demo</a><br />
<a href="https://github.com/cubewebsites/Scroll-Tracker" target="_blank">GitHub Project</a></p>
<p>Have fun!</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/freebie-jquery-scroll-tracker/">FREEBIE: jQuery Scroll Tracker</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/javascript/freebie-jquery-scroll-tracker/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>FREEBIE: YouTube Console</title>
		<link>https://cubewebsites.com/development/freebie-youtube-console/</link>
					<comments>https://cubewebsites.com/development/freebie-youtube-console/#respond</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Tue, 27 Dec 2011 19:53:25 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[intercom]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[youtube]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=292</guid>

					<description><![CDATA[<p>A couple of days ago I discovered Intercom.  An open-source JavaScript framework allowing anyone to create their own command-line application. I decided to try it out by creating a command line interface (CLI) for YouTube.  What does this mean you ask yourself?  Well, using this plugin you can browse YouTube but instead of using the [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/freebie-youtube-console/">FREEBIE: YouTube Console</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A couple of days ago I discovered <a href="https://github.com/twisterghost/intercom">Intercom</a>.  An open-source JavaScript framework allowing anyone to create their own command-line application.</p>
<p>I decided to try it out by creating a command line interface (CLI) for YouTube.  What does this mean you ask yourself?  Well, using this plugin you can browse YouTube but instead of using the website, you do it via a series of commands.  There&#8217;s no real advantage to it, it&#8217;s more just about doing it to prove that it can be done.</p>
<p><img loading="lazy" decoding="async" title="YouTube Console" src="http://www.cubewebsites.com/blog/wp-content/uploads/2011/12/youtubeconsole1.jpg" alt="YouTube Console" width="690" height="462" /></p>
<p>You can play around with it on the <a href="http://www.cubewebsites.com/youtube-console">live demo page here</a></p>
<p>Features include:</p>
<ul>
<li>YouTube search</li>
<li>Search by username</li>
<li>Top Rated videos</li>
<li>Recently Featured videos</li>
<li>Most Viewed videos</li>
<li>Paginated results</li>
<li>Caching for great performance</li>
</ul>
<p>This application is free and open-source, so if you&#8217;re interested in making your own Command Line Application, then feel free to <a href="https://github.com/cubewebsites/intercom/tree/youtube">Fork it on GitHub</a>.</p>
<p>The post <a href="https://cubewebsites.com/development/freebie-youtube-console/">FREEBIE: YouTube Console</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/freebie-youtube-console/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
