<?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>noeone &#187; Javascript</title>
	<atom:link href="http://www.noeone.net/?cat=147&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.noeone.net</link>
	<description>flash.videos.links.etc</description>
	<lastBuildDate>Wed, 08 Oct 2014 20:12:43 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Create a div with all of the properties.</title>
		<link>http://www.noeone.net/?p=266</link>
		<comments>http://www.noeone.net/?p=266#comments</comments>
		<pubDate>Wed, 08 Oct 2014 20:12:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.noeone.net/?p=266</guid>
		<description><![CDATA[function createDiv(obj){ var gen = document.createElement("div"); gen.id = obj.id; gen.style.top = obj.top + "px"; gen.style.left = obj.left + "px"; gen.style.width = obj.width + "px"; gen.style.height = obj.height + "px"; gen.style.position = "absolute"; gen.style.pointerEvents = "none"; if(obj.bkg) gen.style.background = obj.bkg; if(obj.parent) obj.parent.appendChild(gen); return gen; }]]></description>
				<content:encoded><![CDATA[<pre><code>
function createDiv(obj){
            var gen = document.createElement("div");
                gen.id = obj.id;
                gen.style.top = obj.top + "px";
                gen.style.left = obj.left + "px";
                gen.style.width = obj.width + "px";
                gen.style.height = obj.height + "px";
                gen.style.position = "absolute";
                gen.style.pointerEvents = "none";
                if(obj.bkg) gen.style.background = obj.bkg;
                if(obj.parent) obj.parent.appendChild(gen);
            return gen;
        }
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.noeone.net/?feed=rss2&#038;p=266</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slice X Amount from an Array</title>
		<link>http://www.noeone.net/?p=261</link>
		<comments>http://www.noeone.net/?p=261#comments</comments>
		<pubDate>Wed, 08 Oct 2014 20:10:13 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.noeone.net/?p=261</guid>
		<description><![CDATA[Send back chuncks from an array var catImgs = ["1", "2", "3", "4", "", "6", "7", "8"]; var arr = newArray(catImgs,4); function newArray(arr, count){ var temp = []; var temp2 = []; var current = 0; for(var i = 0; i < arr.length; i++){ var obj = new Object obj.id = i; temp.push(obj); } for(var [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Send back chuncks from an array</p>
<pre><code>
var catImgs = ["1", "2", "3", "4", "", "6", "7", "8"];

var arr = newArray(catImgs,4);

function newArray(arr, count){
            var temp = [];
            var temp2 = [];
            var current = 0;
            for(var i = 0; i < arr.length; i++){
	      var obj = new Object
	      obj.id = i;
	      temp.push(obj);
	            
            }
            for(var j = 0; j < Math.ceil(temp.length / count); j++){
                temp2.push(temp.slice(current, current + count))
                current += count;
            }
            return temp2;
        }
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.noeone.net/?feed=rss2&#038;p=261</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
