<?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>JavaScript Archives - Cube Websites</title>
	<atom:link href="https://cubewebsites.com/category/development/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://cubewebsites.com/category/development/javascript/</link>
	<description>web design and development</description>
	<lastBuildDate>Wed, 28 Dec 2022 11:34:42 +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>JavaScript Archives - Cube Websites</title>
	<link>https://cubewebsites.com/category/development/javascript/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>HOW TO: Using Laravel with Vite on MAMP</title>
		<link>https://cubewebsites.com/development/laravel/how-to-using-laravel-with-vite-on-mamp/</link>
					<comments>https://cubewebsites.com/development/laravel/how-to-using-laravel-with-vite-on-mamp/#respond</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Wed, 28 Dec 2022 11:34:42 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[vite]]></category>
		<guid isPermaLink="false">https://cubewebsites.com/?p=1186</guid>

					<description><![CDATA[<p>I recently needed to help someone out who was using MAMP on a MacBook Pro on a Laravel 9 project. The project was configured to: The Problem When running the default project with yarn run dev and accessing the project in the browser via the hostname configured in MAMP, the hot reload feature was not [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/laravel/how-to-using-laravel-with-vite-on-mamp/">HOW TO: Using Laravel with Vite on MAMP</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I recently needed to help someone out who was using MAMP on a MacBook Pro on a Laravel 9 project.</p>



<p>The project was configured to:</p>



<ul class="wp-block-list">
<li>run on MAMP</li>



<li>the MAMP host was configured to use SSL</li>



<li>Laravel 9</li>



<li>Vite</li>



<li>InertiaJS</li>
</ul>



<h2 class="wp-block-heading">The Problem</h2>



<p>When running the default project with <code>yarn run dev</code> and accessing the project in the browser via the hostname configured in MAMP, the hot reload feature was not working and the network and console tabs in Developer Tools were polluted with lots of 404 errors about the failure to connect to the Vite Ping URL e.g. <code>__vite_ping</code> to which it keeps trying to reconnect to.</p>



<h2 class="wp-block-heading">How to fix</h2>



<p>You have to configure Vite to run on https.  This can be done in a number of ways, but the easiest is to use the <a href="https://www.npmjs.com/package/@vitejs/plugin-basic-ssl" target="_blank" rel="noreferrer noopener nofollow">@vitejs/plugin-basic-ssl</a> plugin.  It&#8217;s really easy to get started:</p>



<ol class="wp-block-list">
<li>Add the plugin to your project
<ul class="wp-block-list">
<li>with yarn: <code>yarn add --dev @vitejs/plugin-basic-ssl</code></li>



<li>with npm: <code>npm i @vitejs/plugin-basic-ssl</code></li>
</ul>
</li>



<li>Open the <code>vite.config.js</code> file in your Laravel project</li>



<li>Import the plugin at the top of the file:
<ul class="wp-block-list">
<li><code>import basicSsl from '@vitejs/plugin-basic-ssl'</code></li>
</ul>
</li>



<li>Enable the plugin using the defineConfig block e.g.</li>
</ol>



<pre class="wp-block-preformatted">export default {
  plugins: [
    basicSsl()
  ]
}</pre>



<p>Note: you might already have other plugins or config options in the <code>defineConfig</code> block, but you just need to make sure you add the called to <code>basicSsl()</code> in the plugins section.</p>



<p>After this when you run your project using <code>yarn run dev</code> it will provide you with a Local URL e.g.</p>



<pre class="wp-block-code"><code>11:15:06 &#91;vite] vite.config.js changed, restarting server...
11:15:06 &#91;vite] server restarted.

  > Local: https://localhost:3000/
  > Network: use `--host` to expose</code></pre>



<p>Open that Local URL in your browser and you&#8217;ll receive an SSL warning.  Accept the risks to accept the SSL certificate generated by the plugin.</p>



<p>Once that&#8217;s done when you visit your application dev URL, you&#8217;ll see all the Vite 404 errors have disappeared and you&#8217;re left with one neat little log that tells you Vite is now connected.</p>



<pre class="wp-block-code"><code>&#91;vite] connecting... <a href="https://127.0.0.1:3000/src/client/client.ts">client.ts:16:8</a>
&#91;vite] connected. client.ts:53:14</code></pre>



<p>Hope this helps!</p>
<p>The post <a href="https://cubewebsites.com/development/laravel/how-to-using-laravel-with-vite-on-mamp/">HOW TO: Using Laravel with Vite on MAMP</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/laravel/how-to-using-laravel-with-vite-on-mamp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>How To Use Impress.Js</title>
		<link>https://cubewebsites.com/guides/how-to-use-impress-js/</link>
					<comments>https://cubewebsites.com/guides/how-to-use-impress-js/#comments</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 22:37:13 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[impress]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=374</guid>

					<description><![CDATA[<p>Yesterday, I wrote about Impress.js, an awesome JavaScript library for creating online presentations. Since posting online, I’ve had several people ask how exactly to use it, as there’s no set documentation on the actual project page.  This guide will help you get started and allow you to create a simple slideshow, but after completing it [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/guides/how-to-use-impress-js/">How To Use Impress.Js</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday, I <a title="Impress.js – A JavaScript Presentation Library" href="http://www.cubewebsites.com/blog/development/javascript/impress-js-a-javascript-presentation-library/">wrote about Impress.js</a>, an awesome JavaScript library for creating online presentations. Since posting online, I’ve had several people ask how exactly to use it, as there’s no set documentation on the actual project page.  This guide will help you get started and allow you to create a simple slideshow, but after completing it please bear in mind that there’s so much more that can be done with it.  The only limit is your creativity!</p>
<p>This tutorial is available for you to <a href="https://github.com/cubewebsites/Impress.js-Tutorial" target="_blank">view and download on GitHub</a></p>
<p><strong>Requirements</strong></p>
<p>To see this tutorial in action, please use Google Chrome or Safari (or Firefox 10 or IE10).  Impress.js is not currently compatible with earlier versions of Firefox or Internet Explorer.</p>
<p><strong>Setup</strong></p>
<p>The first thing you want to do is create a new webpage.  Mine’s index.html and within it setup the basic head and body elements.</p>
<pre>&lt;!doctype html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Impress Tutorial&lt;/title&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
    &lt;/head&gt;
    &lt;body&gt;

    &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Add the impress.js file before the end of the body element.  This imports the Impress library into your project</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode">&lt;script type=<span class="str">"text/javascript"</span> src=<span class="str">"impress.js"</span>&gt;&lt;/script&gt;</pre>
</div>
<p>Next we’ll create a wrapper which will contain the slideshow.  This is simply a &lt;div&gt; element with an id of ‘impress’</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">id</span><span class="kwrd">="impress"</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
<p><strong>Creating Slides</strong></p>
<p>Now you’ll see how easy it is to create a new slide in the presentation.  Each slide is a &lt;div&gt; element (within the wrapper) with a class name of ‘step’</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span><span class="kwrd">&gt;</span>
    My first slide
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
</div>
<p>Whilst that creates a simple slide, things are a lot more fun you start adding data properties to your slides.  Data attributes signify properties of your slide for when it’s NOT the active slide.  The following data properties are available to you:</p>
<ul>
<li><span style="color: #404040;">data-x = the x co-ordinate of the slide</span></li>
<li><span style="color: #404040;">data-y = the y co-ordinate of the slide</span></li>
<li><span style="color: #404040;">data-z = the z co-ordinate of the slide (how far/close it appears to the user)</span></li>
<li><span style="color: #404040;">data-scale = scales your slide by a factor of this value.  A data-scale of 5 would be 5 times the original size of your slide</span></li>
<li><span style="color: #404040;">data-rotate = rotates your slide by the specified number of degrees</span></li>
<li><span style="color: #404040;">data-rotate-x = For 3D slides.  This is the number of degrees it should be rotated about the x-axis.  (Tilt forward/lean back)</span></li>
<li><span style="color: #404040;">data-rotate-y = For 3D slides. This is the number of degrees it should be rotated about the y-axis (swing in from the left/right)</span></li>
<li><span style="color: #404040;">data-rotate-z = For 3D slides. This is the number of degrees it should be rotated about the z-axis</span></li>
</ul>
<p><strong>Data Attributes In Action</strong></p>
<p>The following slide configuration will guide you through each of the data attributes in action.</p>
<p>Let’s start with an initial slide.  This slide has it’s x and y data attributes set to 0, so will appear in the center of the page.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="0"</span> <span class="attr">data-y</span><span class="kwrd">="0"</span><span class="kwrd">&gt;</span>
    This is my first slide
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>The second slide will have an x position of 500, but the y position of 0.  This means that it’s going to have to come in 500 pixels across the x-axis (slide left) when it becomes active.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="500"</span> <span class="attr">data-y</span><span class="kwrd">="0"</span><span class="kwrd">&gt;</span>
    This is slide 2
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>Easy huh?  The next slide will start with the same x-position as slide 2, but a y position of –400.  This will slide in from the top 400 pixels.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="500"</span> <span class="attr">data-y</span><span class="kwrd">="-400"</span><span class="kwrd">&gt;</span>
    This is slide 3
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>Slide 4 uses the scale value to show how a slide can appear to zoom in/out.  It has a scale value of 0.5, meaning that it’s half the size it should be.  When it becomes active the presentation will adjust the scale of ALL the slides by the factor required to make the scale of the active website 1.  What this means in this example is that for this slide to display normally (scale value 1) it will need to be scaled up by a factor of 2 (0.5*2 = 1).  All the other slides will also be scaled up by a factor of two, and become twice the size.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="500"</span> <span class="attr">data-y</span><span class="kwrd">="-800"</span> <span class="attr">data-scale</span><span class="kwrd">="0.5"</span><span class="kwrd">&gt;</span>
    This is slide 4
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>The rotate attributes allows you to rotate a slide into view.  Slide 5 is set to rotate by 90 degrees.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="0"</span> <span class="attr">data-y</span><span class="kwrd">="-800"</span> <span class="attr">data-rotate</span><span class="kwrd">="90"</span><span class="kwrd">&gt;</span>
    This is slide 5 and it rotates in.
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>Finally, for a 3D transition, you can specify rotate attributes for each dimensional axis (x,y,z).</p>
<p>The x axis is the horizontal axis.  This means that you can make things tilt forwards (positive value) or backwards (negative value).<br />
The y axis is the vertical axis so you can have things swing in from the left (negative value) or right (positive value).<br />
The z axis is the depth axis (the one coming out at you) so rotating things on this would be rotating things up (negative value) and down (positive value).</p>
<p><strong>Combinations</strong></p>
<p>Now that you know all about the data attributes, which is really all you need to animate your slideshow, you can use your imagination to combine these in weird and wonderful ways to create your own style of slideshow.</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="step"</span> <span class="attr">data-x</span><span class="kwrd">="-2600"</span> <span class="attr">data-y</span><span class="kwrd">="-800"</span> <span class="attr">data-rotate-x</span><span class="kwrd">="30"</span> <span class="attr">data-rotate-y</span><span class="kwrd">="-60"</span> <span class="attr">data-rotate-z</span><span class="kwrd">="90"</span> <span class="attr">data-scale</span><span class="kwrd">="4"</span><span class="kwrd">&gt;</span>
    This is slide 7 and it has a 3D transition AND a scale.
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p><strong>Unsupported Browsers</strong></p>
<p>Impress automatically detects whether or not a browser supports it or not, and if it doesn’t then automatically adds a class name called ‘impress-not-supported’ to the wrapper ‘&lt;div&gt;’.  Using some CSS we can show a message to people on browsers which aren’t supported by Impress.</p>
<p>At the start of your &lt;div id=”impress”&gt; add the following:</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="kwrd">&lt;</span><span class="html">div</span> <span class="attr">class</span><span class="kwrd">="no-support-message"</span><span class="kwrd">&gt;</span>
    Your browser doesn't support impress.js.  Try Chrome or Safari.
<span class="kwrd">&lt;/</span><span class="html">div</span><span class="kwrd">&gt;</span></pre>
</div>
<p>Then, create a stylesheet or add this to your existing stylesheet:</p>
<div id="codeSnippetWrapper" class="csharpcode-wrapper">
<pre id="codeSnippet" class="csharpcode"><span class="cls">.no-support-message</span> { <span class="kwrd">display</span>:<span class="str">none;</span> }
<span class="cls">.impress-not-supported</span> <span class="cls">.no-support-message</span> { <span class="kwrd">display</span>:<span class="str">block;</span> }</pre>
</div>
<p>This hides the message by default, but then displays it to browser if the impress-not-supported class is present.</p>
<p><strong>Have fun!</strong></p>
<p>This tutorial covers the fundamentals of using Impress.js to create your very own online presentation.  The entire example is available on Github for you to download and play with.</p>
<p><a href="https://github.com/cubewebsites/Impress.js-Tutorial" target="_blank">View on GitHub</a></p>
<p>The post <a href="https://cubewebsites.com/guides/how-to-use-impress-js/">How To Use Impress.Js</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/guides/how-to-use-impress-js/feed/</wfw:commentRss>
			<slash:comments>32</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>
		<item>
		<title>Impress.js &#8211; A JavaScript Presentation Library</title>
		<link>https://cubewebsites.com/development/javascript/impress-js-a-javascript-presentation-library/</link>
					<comments>https://cubewebsites.com/development/javascript/impress-js-a-javascript-presentation-library/#comments</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 21:28:42 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[impress]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[prezi]]></category>
		<category><![CDATA[tools]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=350</guid>

					<description><![CDATA[<p>If you’ve ever come across Prezi you may have been slightly wow-ed by it’s amazing little transition effects as you browse through each little presentation. Now, there’s a free and open-source JavaScript library called Impress.js (the author says no rhyme intended!) which will blow your mind.  It’s a JavaScript adaptation of Prezi (which uses Flash), [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/impress-js-a-javascript-presentation-library/">Impress.js &#8211; A JavaScript Presentation Library</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you’ve ever come across <a href="http://prezi.com/" rel="nofollow" target="_blank">Prezi</a> you may have been slightly wow-ed by it’s amazing little transition effects as you browse through each little presentation.</p>
<p><img loading="lazy" decoding="async" style="display: inline;" title="image" src="http://www.cubewebsites.com/blog/wp-content/uploads/2012/01/image1.png" alt="image" width="700" height="501" /></p>
<p>Now, there’s a free and open-source JavaScript library called Impress.js (the author says no rhyme intended!) which will blow your mind.  It’s a JavaScript adaptation of Prezi (which uses Flash), which uses CSS3 transforms and transitions to create really cool effects similar to those on Prezi, and on top of that it’s also uses CSS3 3D animations which takes things one-step further and lets you have 3D effects in your presentation too.</p>
<p>The downside is that at the moment it’s only guaranteed to work on the latest versions of Chrome and Safari.  Non-webkit browsers do have a fall-back mode, which is a simple display of the slides but without any of the animation.  It does work with the alpha versions of Firefox 10 and IE10 builds, so once those are out the browser support will be much better.</p>
<p>Whilst the browser requirements may be a deterrent for most folks, it’s amazing to see what can be achieved using CSS3 and maybe highlights the shape of things to come.</p>
<p>It’s certainly worth bookmarking and having a play with.</p>
<p><a href="http://bartaz.github.com/impress.js/" rel="nofollow" target="_blank">Click here for a live demo</a> (use Chrome or Safari)<br />
<a href="https://github.com/bartaz/impress.js" target="_blank">Source code on GitHub</a></p>
<p>The post <a href="https://cubewebsites.com/development/javascript/impress-js-a-javascript-presentation-library/">Impress.js &#8211; A JavaScript Presentation Library</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/javascript/impress-js-a-javascript-presentation-library/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>jQuery UI Bootstrap &#8211; A Bootstrap-themed kickstart for jQuery UI widgets</title>
		<link>https://cubewebsites.com/development/javascript/jquery-ui-bootstrap-a-bootstrap-themed-kickstart-for-jquery-ui-widgets/</link>
					<comments>https://cubewebsites.com/development/javascript/jquery-ui-bootstrap-a-bootstrap-themed-kickstart-for-jquery-ui-widgets/#comments</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Sat, 31 Dec 2011 11:39:51 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[widgets]]></category>
		<guid isPermaLink="false">http://www.cubewebsites.com/blog/?p=333</guid>

					<description><![CDATA[<p>jQuery UI Bootstrap jQuery UI Bootstrap is an open-source effort by @addyosmani to introduce the Bootstrap styling into the standard jQuery UI widgets.&#160; It covers many of the widgets available on the jQuery UI website including: Accordion Tabs Buttons and Button Sets Horizontal slider Progress Bar Dialogs Icons Date Picker Whilst it’s still a work [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/development/javascript/jquery-ui-bootstrap-a-bootstrap-themed-kickstart-for-jquery-ui-widgets/">jQuery UI Bootstrap &#8211; A Bootstrap-themed kickstart for jQuery UI widgets</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>jQuery UI Bootstrap</strong></p>
<p><a href="http://addyosmani.github.com/jquery-ui-bootstrap/" rel="nofollow" target="_blank">jQuery UI Bootstrap</a> is an open-source effort by <a href="http://twitter.com/addyosmani" target="_blank">@addyosmani</a> to introduce the <a href="http://twitter.github.com/bootstrap/" rel="nofollow" target="_blank">Bootstrap</a> styling into the standard <a href="http://jqueryui.com/" rel="nofollow" target="_blank">jQuery UI widgets</a>.&nbsp; It covers many of the widgets available on the jQuery UI website including:</p>
<ul>
<li><font color="#404040">Accordion</font>
<li><font color="#404040">Tabs</font>
<li><font color="#404040">Buttons and Button Sets</font>
<li><font color="#404040">Horizontal slider</font>
<li><font color="#404040">Progress Bar</font>
<li><font color="#404040">Dialogs</font>
<li><font color="#404040">Icons</font>
<li><font color="#404040">Date Picker</font></li>
</ul>
<p><img loading="lazy" decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto" title="bootstrapui" alt="bootstrapui" src="http://www.cubewebsites.com/blog/wp-content/uploads/2011/12/bootstrapui3.jpg" width="700" height="666"></p>
<p>Whilst it’s still a work in process, what’s available already is fantastic and I’d love to see where this project goes.&nbsp; It’s the next logical step for the Bootstrap framework; we have the standard web elements and layouts, now it’s about making those pages interactive using one of the most popular widget libraries available, jQuery UI, and making that look like the rest of the site…well it just makes good sense.</p>
<p><strong>Bootstrap</strong></p>
<p>Here’s a quick introduction to Bootstrap for those that haven’t yet heard of it, or aren’t sure what it does.</p>
<p><a href="http://twitter.github.com/bootstrap/" rel="nofollow">Bootstrap</a> is a prototyping framework introduced by Twitter in mid-2011.&nbsp; It’s aimed at making more consistent browsing experience for users as they browse various sites and applications on the web.&nbsp; It’s free, open-source, and uses LessCSS making it a breeze to modify to suit your own needs.</p>
<p>Since it’s launch, it has been very well received by the developer community, and I’ve noticed it being adopted by many popular websites and open-source software including:</p>
<ul>
<li><font color="#404040"><a href="http://www.concrete5.org/" rel="nofollow">Concrete5</a></font>
<li><font color="#404040"><a href="http://www.codecademy.com" rel="nofollow">CodeAcademy</a></font>
<li><font color="#404040"><a href="http://demo.whmcs.com/" rel="nofollow">WHMCS</a></font></li>
</ul>
<p>I’ve even used it on the Cube Websites website for the form elements and as a grid system.</p>
<p><strong>Get Started</strong></p>
<ul>
<li><a href="http://addyosmani.github.com/jquery-ui-bootstrap/" rel="nofollow" target="_blank">jQuery UI Bootstrap</a>
<li><a href="http://github.com/addyosmani/jquery-ui-bootstrap/" rel="nofollow" target="_blank">jQuery UI Bootstrap on GitHub</a>
<li><a href="http://twitter.github.com/bootstrap/#" rel="nofollow" target="_blank">Bootstrap</a></li>
</ul>
<p><font color="#737373">jQuery UI Bootstrap seems like a great idea, and has a lot of potential for making Bootstrap even better.&nbsp; I’ll definitely be trying it on my next project involving UI widgets.&nbsp; Whilst it looks fantastic already, I’d love to see where it goes from here.&nbsp; One of the things I’d like to see is the stylesheets done in Less so that the widgets can be customised to look exactly how the web designer wants.</font></p>
<p>The post <a href="https://cubewebsites.com/development/javascript/jquery-ui-bootstrap-a-bootstrap-themed-kickstart-for-jquery-ui-widgets/">jQuery UI Bootstrap &#8211; A Bootstrap-themed kickstart for jQuery UI widgets</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/development/javascript/jquery-ui-bootstrap-a-bootstrap-themed-kickstart-for-jquery-ui-widgets/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>
