<?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>github Archives - Cube Websites</title>
	<atom:link href="https://cubewebsites.com/tag/github/feed/" rel="self" type="application/rss+xml" />
	<link>https://cubewebsites.com/tag/github/</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>github Archives - Cube Websites</title>
	<link>https://cubewebsites.com/tag/github/</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>Gitview &#8211; JS Widget To List GitHub Repositories</title>
		<link>https://cubewebsites.com/development/javascript/gitviewjs-widget-to-list-github-repositories/</link>
					<comments>https://cubewebsites.com/development/javascript/gitviewjs-widget-to-list-github-repositories/#comments</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 19:07:33 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[widgets]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=356</guid>

					<description><![CDATA[<p>If you’re an active user of GitHub and work on any open-source projects then may want to show off your projects and activity on your own website.  This is where Gitview comes in. Gitview allows you to display all your GitHub repos, and gives the option to display a detailed version including a graph of [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/gitviewjs-widget-to-list-github-repositories/">Gitview &#8211; JS Widget To List GitHub Repositories</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto;" title="image" src="http://www.cubewebsites.com/blog/wp-content/uploads/2012/01/image2.png" alt="image" width="516" height="192" /></p>
<p>If you’re an active user of GitHub and work on any open-source projects then may want to show off your projects and activity on your own website.  This is where <a href="http://gitview.logicalcognition.com/" target="_blank">Gitview</a> comes in.</p>
<p><img loading="lazy" decoding="async" style="display: inline;" title="image" src="http://www.cubewebsites.com/blog/wp-content/uploads/2012/01/image3.png" alt="image" width="470" height="407" /></p>
<p>Gitview allows you to display all your GitHub repos, and gives the option to display a detailed version including a graph of your project activity, or a simple compact version if you prefer.  Not only that, but all the information displayed is live.</p>
<p>The full feature list is:</p>
<ul>
<li><span style="color: #404040;">Asynchronous loading of all date</span></li>
<li><span style="color: #404040;">All data is 100% live</span></li>
<li><span style="color: #404040;">The Activity Graph uses the Canvas element</span></li>
<li><span style="color: #404040;">You can toggle the regular or small version</span></li>
<li><span style="color: #404040;">No need for additional styles</span></li>
<li><span style="color: #404040;">Works with all JS frameworks (jQuery, Prototype, Mootools, etc)</span></li>
<li><span style="color: #404040;"><a href="http://sam.zoy.org/wtfpl/" target="_blank">WTFPL</a> license</span></li>
</ul>
<p><span id="more-356"></span></p>
<p>Using it is very simple:</p>
<p>1.  Include the script on your page</p>
<pre>&lt;script src="http://logicalcognition.com/Projects/Gitview/Gitview.js"&gt;&lt;/script&gt;</pre>
<p>2.  Create a GitView anywhere on your page from a script tag or a JavaScript file:</p>
<pre>var view = new Gitview({
  user    : 'cubewebsites',      // any github username
  domNode : document.body,  // domNode to attach to
  compact : false           // if set to true, will display smaller version of widget (no participation graph)
});</pre>

<div id="gitview"></div>
<script type="text/javascript" src="http://logicalcognition.com/Projects/Gitview/Gitview.js"></script>
<script type="text/javascript">
var view = new Gitview({ 
  user    : 'bouchon',      // any github username
  domNode : document.getElementById('gitview'),  // domNode to attach to
  compact : false           // if set to true, will display smaller version of widget (no participation graph)
});
</script>

<p>Enjoy!</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/gitviewjs-widget-to-list-github-repositories/">Gitview &#8211; JS Widget To List GitHub Repositories</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/javascript/gitviewjs-widget-to-list-github-repositories/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
