<?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 &#8211; Snippets</title>
	<atom:link href="http://wp.djtedfunke.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.djtedfunke.com</link>
	<description></description>
	<lastBuildDate>Sun, 19 Sep 2021 17:58:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>http://wp.djtedfunke.com/wp-content/uploads/2018/12/cropped-front-end_developer-2-512-32x32.png</url>
	<title>javascript &#8211; Snippets</title>
	<link>http://wp.djtedfunke.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>URL parameter value with js / javascript</title>
		<link>http://wp.djtedfunke.com/url-parameter-value-with-js-javascript/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Sun, 19 Sep 2021 17:58:22 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=326</guid>

					<description><![CDATA[Get URL parameter using JavaScript? And this is how you can use this function assuming the URL is,http://dummy.com/?technology=jquery&#38;blog=jquerybyexample.]]></description>
										<content:encoded><![CDATA[
<p>Get URL parameter using JavaScript?</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">var getUrlParameter = function getUrlParameter(sParam) {
    var sPageURL = window.location.search.substring(1),
        sURLVariables = sPageURL.split('&amp;'),
        sParameterName,
        i;

    for (i = 0; i &lt; sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return typeof sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
        }
    }
    return false;
};

</code></pre>



<p>And this is how you can use this function assuming the URL is,<br><code>http://dummy.com/?technology=jquery&amp;blog=jquerybyexample</code>.</p>



<pre class="wp-block-code"><code lang="javascript" class="language-javascript">var tech = getUrlParameter('technology');
var blog = getUrlParameter('blog');</code></pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Cute Hide (show/hide element)</title>
		<link>http://wp.djtedfunke.com/cute-hide-show-hide-element/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Thu, 20 Feb 2020 20:03:02 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[hidding]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=238</guid>

					<description><![CDATA[Smooth hiddinig elements with js:]]></description>
										<content:encoded><![CDATA[
<p>Smooth hiddinig elements with js:</p>



<pre class="wp-block-code"><code>    function cuteHide(el) {
        el.animate({opacity: '0'}, 130, function(){
            el.animate({height: '0px'}, 130, function(){
            });
        });
    }

    function cuteUnhide(el) {
        el.animate({height: '100%'}, 130, function(){
            el.animate({opacity: '1'}, 130, function() {
            });
        });
    }
    function cuteRemove(el) {
        el.animate({opacity: '0'}, 150, function(){
            el.animate({height: '0px'}, 150, function(){
                el.remove();
            });
        });
    }</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
