<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-9122707409913584935</atom:id><lastBuildDate>Thu, 19 Dec 2024 03:32:43 +0000</lastBuildDate><category>Groovy Codes</category><category>Javascript</category><category>Fun</category><category>Game</category><category>Create</category><category>EZ Share</category><category>IQ test</category><category>Share Buttons</category><title>Groovy Codes</title><description>A Collection of Awesome Codes you can see in Action </description><link>https://groovycodes.blogspot.com/</link><managingEditor>noreply@blogger.com (Bobbie)</managingEditor><generator>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-8956978513480582685</guid><pubDate>Tue, 27 Nov 2018 16:31:00 +0000</pubDate><atom:updated>2018-11-27T08:31:05.629-08:00</atom:updated><title>Play &amp; Learn Flute</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Learn to Play Flute&lt;/title&gt;
    &lt;style&gt;
        .box { position: relative; width : 350px; height: 600px; border: 0px solid #CCC;border-radius:0px; background: url(&quot;https://cosmomusic.ca/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/B/S/BSFLARM303BOS_1_7.jpg &quot;);background-size: cover ; } 

button {
     width:65px;
     height:70px;
     border-width:4px;
     border-style: solid;
     border-color:black;
     background-color:#ff00ff;
     border-radius:100% 50%;
     text-align:center;
     font-size:20px;
     padding: 1px 1px;}
    &lt;/style&gt;&lt;/head&gt;
    &lt;body&gt;
     &lt;div class=&quot;box&quot;&gt; &lt;h1 style=&quot;text-align: center&quot;&gt;Learn to Play Flute&lt;/h1&gt;
     &lt;br&gt;
         &lt;audio id=&quot;play1&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/478.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound1()&quot;&gt;A&lt;/button&gt;
 
 &lt;audio id=&quot;play2&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/486.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound2()&quot;&gt;B&lt;/button&gt;
 
 &lt;audio id=&quot;play3&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/490.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound3()&quot;&gt;C&lt;/button&gt;
 
 &lt;audio id=&quot;play4&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/498.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound4()&quot;&gt;D&lt;/button&gt;
 
 &lt;audio id=&quot;play5&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/3.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound5()&quot;&gt;E&lt;/button&gt;
 
 &lt;audio id=&quot;play6&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/510.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound6()&quot;&gt;F&lt;/button&gt;
 
 &lt;audio id=&quot;play7&quot; src=&quot;http://88.198.78.90/ct/files/mp3/flute/518.mp3
 &quot;&gt;&lt;/audio&gt; &lt;button onclick=&quot;playSound7()&quot;&gt;G&lt;/button&gt;&lt;br&gt;&lt;br&gt;
 Happy Birthday&lt;br&gt;A A B A D C&lt;br&gt;A A B A E D&lt;br&gt;A A G D C B A &lt;br&gt;G G F D E C&lt;br&gt;&lt;br&gt;Row Row Row your Boat&lt;br&gt;C C C D E&lt;br&gt;E D E F G&lt;br&gt;G G G F F F D D D C C C &lt;br&gt;G F E D C
 
 &lt;br&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/body&gt;
    &lt;script&gt;
        function playSound1 () { document.getElementById(&#39;play1&#39;).play(); }

function playSound2 () { document.getElementById(&#39;play2&#39;).play(); }

function playSound3 () { document.getElementById(&#39;play3&#39;).play(); }

function playSound4 () { document.getElementById(&#39;play4&#39;).play(); }

function playSound5 () { document.getElementById(&#39;play5&#39;).play(); }

function playSound6 () { document.getElementById(&#39;play6&#39;).play(); }

function playSound7 () { document.getElementById(&#39;play7&#39;).play(); }


    &lt;/script&gt;
&lt;/html&gt;
</description><link>https://groovycodes.blogspot.com/2018/11/play-learn-flute.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-5357044161844229406</guid><pubDate>Tue, 27 Nov 2018 12:42:00 +0000</pubDate><atom:updated>2018-11-27T07:09:13.554-08:00</atom:updated><title>Speed Test</title><description>&lt;h2 style=&quot;font-family: sans-serif;&quot;&gt;
Speed Test is Running may take 30-60 seconds&lt;/h2&gt;
&lt;h2 style=&quot;font-family: sans-serif;&quot;&gt;
*Featured Code Created by&amp;nbsp;&lt;a href=&quot;https://www.sololearn.com/Profile/4354920/?ref=app&quot;&gt;Calvin&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;html&gt;

    &lt;head&gt;

        &lt;title&gt;Page Title&lt;/title&gt;

        &lt;script src=&quot;https://code.jquery.com/jquery-2.2.4.min.js&quot;&gt;&lt;/script&gt;

            

     
    &lt;/head&gt;

    &lt;body&gt;

        &lt;div id=&quot;main&quot;&gt;

            &lt;h3&gt;

Dom Update Functions - Speed Testing (for 1 million text updates)&lt;/h3&gt;
&lt;div id=&quot;test1&quot;&gt;

Test is running. Please wait, this may take 30s to 60s to complete the test....&lt;/div&gt;
&lt;div id=&quot;test2&quot;&gt;

&lt;/div&gt;
&lt;br /&gt;



            &lt;div class=&quot;test&quot;&gt;

&lt;/div&gt;
&lt;div id=&quot;jq1&quot;&gt;

&lt;/div&gt;
&lt;div id=&quot;notes&quot;&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;

            setTimeout(main, 10);

function main() {

    var test, i, start, end;

    var count = 1000000;



    start = window.performance.now();

    for(i=0; i&lt;count; i++) {

        test = document.getElementById(&#39;test1&#39;);

        test.innerText = &#39;Speed Testing...&#39;

    }

    end = window.performance.now();

    test.innerText = &#39;Speed of getElementById: &#39; + ((end - start)/1000).toFixed(2) + &quot;sec.&quot;;



    start = window.performance.now();

    for(i=0; i&lt;count; i++) {

         test = document.getElementsByTagName(&#39;p&#39;)[0];

        test.innerText = &#39;Speed Testing...&#39;

    }

    end = window.performance.now();

    test.innerText = &#39;Speed of getElementsByTagNames: &#39; + ((end - start)/1000).toFixed(2) + &quot;sec.&quot;;



    start = window.performance.now();

    for(i=0; i&lt;count; i++) {

        test = document.getElementsByClassName(&#39;test&#39;)[0];

        test.innerText = &#39;Speed Testing...&#39;

    }

    end = window.performance.now();

    test.innerText = &#39;Speed of getElementsByClassName: &#39; + ((end - start)/1000).toFixed(2) + &quot;sec.&quot;;



    start = window.performance.now();

    for(i=0; i&lt;count; i++) {

        test = document.querySelector(&#39;#test2&#39;);

        test.innerText = &#39;Speed Testing...&#39;

    } 

    end = window.performance.now();

    test.innerText = &#39;Speed of querySelector: &#39; + ((end - start)/1000).toFixed(2) + &quot;sec.&quot;;



    start = window.performance.now();

    for(i=0; i&lt;count; i++) {

        $( &quot;#jq1&quot; ).text( &#39;Speed Testing...&#39; );

    } 

    end = window.performance.now();

    $( &quot;#jq1&quot; ).text( &#39;Speed of jQuery: &#39; + ((end - start)/1000).toFixed(2) + &quot;sec.&quot; );    

    

    document.getElementById(&#39;notes&#39;).innerHTML = &#39;&lt;br&gt;&lt;br&gt;Kindly copy &amp; paste the output result to comment section, for comparison.&lt;br/&gt;Thank you for all the feedbacks, and also thanks for @Morpheus suggestion.&#39;



}

        &lt;/script&gt;

    &lt;/body&gt;

&lt;/html&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.freecodeexamples.com/&quot; target=&quot;_blank&quot;&gt;Back to Free Code Examples&lt;/a&gt;&lt;/h2&gt;
</description><link>https://groovycodes.blogspot.com/2018/11/page-title-dom-update-functions-speed.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-6566821474896791162</guid><pubDate>Tue, 30 Oct 2018 19:56:00 +0000</pubDate><atom:updated>2018-10-30T12:56:32.167-07:00</atom:updated><title>Magic 8 Ball</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Magic 8 Ball&lt;/title&gt;
        &lt;style&gt;
           
button{
    background-color:red;
    border-color:red;
}
#g{
    height:300px;
    width:300px;
}
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;center&gt;
    &lt;h1&gt;Magic 8 Ball&lt;/h1&gt;
    &lt;h4&gt;Think hard on your question shake your device then tap the ball for answers&lt;/h4&gt;
        &lt;button onclick=&quot;newG()&quot;&gt;&lt;div id=&quot;g&quot;&gt;&lt;img src=&quot;https://www.horoscope.com/images-US/games/game-magic-8-ball-no-text.png&quot;&gt;&lt;/div&gt;&lt;/button&gt;&lt;/center&gt;
        &lt;script&gt;
            var g= [&#39;&lt;img src=&quot;https://cdn.britannica.com/82/191982-131-D3194343.jpg&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://www.financialsamurai.com/wp-content/uploads/2015/12/magic8ball250.gif&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://annstawski.files.wordpress.com/2015/12/magic-8-ball.jpg&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;, &#39;&lt;img src=&quot;https://i.etsystatic.com/12487653/r/il/e07ca5/1300693935/il_570xN.1300693935_3x9m.jpg&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://hookertech.files.wordpress.com/2015/01/magic8ball.jpg&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoF7Q7KiJTgiYI68_uzTXYI-egXpDZ1-9Y5tQsd9AEnUiEN5GQ7QZ-6DAbhSg-aPJFE2V3v5NHei8PIke5-UQgs0MtDIWB74Ft9XC6KcFF-2fqPDj4fDhhXMxGUtAJK6_FJ96jLBq1Zhw/s1600/Picture1.jpg&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;http://aharrisbooks.net/haio/book_5/chap_3/images/8ball4.png&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDmeCIFnfk4z-FATj0twkh4TTq6HiTOWbAzLv_TxQLRHn2EPfP94oV68Cufouvk7iOxxzmEkus7KnQGjp7f_iBRin6s9fO12IdT2kuCWdm4gYaeBQO3HVWCuT0qdaiyP0CYREBy4mvXEE/s1600/8+ball+-+most+likely.png&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;,&#39;&lt;img src=&quot;https://www.w3.org/2004/Talks/17Dec-sparql/Results/conf_8ball_true3.png&quot;height=&quot;300px&quot; width=&quot;300px&quot;&gt;&#39;]

function newG(){
var randomNumber=Math.floor(Math.random()*(5));
    document.getElementById(&#39;g&#39;).innerHTML=g[randomNumber];
}
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;</description><link>https://groovycodes.blogspot.com/2018/10/magic-8-ball.html</link><author>noreply@blogger.com (Bobbie)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoF7Q7KiJTgiYI68_uzTXYI-egXpDZ1-9Y5tQsd9AEnUiEN5GQ7QZ-6DAbhSg-aPJFE2V3v5NHei8PIke5-UQgs0MtDIWB74Ft9XC6KcFF-2fqPDj4fDhhXMxGUtAJK6_FJ96jLBq1Zhw/s72-c/Picture1.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-1815456283493022876</guid><pubDate>Thu, 11 Oct 2018 16:25:00 +0000</pubDate><atom:updated>2018-10-11T09:27:34.741-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Create</category><category domain="http://www.blogger.com/atom/ns#">EZ Share</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><category domain="http://www.blogger.com/atom/ns#">Share Buttons</category><title>EZ Share</title><description>&lt;html&gt;
    &lt;head&gt;
        &lt;center&gt;
&lt;title&gt;EZ Share&lt;/title&gt;
        &lt;style&gt;
            body {
    font-size:18px;
    background-color:lightblue;
}
input{
    font-size:16px;
}
        &lt;/style&gt;
    &lt;/center&gt;
&lt;/head&gt;
    &lt;body&gt;
    &lt;h2&gt;
EZ Share&lt;/h2&gt;
Just enter your information to create custom Share Buttons  &lt;/body&gt;&lt;/html&gt;&lt;br /&gt;
Page Name: &lt;input id=&quot;pname&quot; placeholder=&quot;My Website&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
Page URL: &lt;input id=&quot;purl&quot; placeholder=&quot;https://yoursite.com&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
Hashtag: &lt;input id=&quot;hash&quot; placeholder=&quot;awesome&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;button onclick=&quot;strReplace();&quot; type=&quot;button&quot;&gt;Create&lt;/button&gt;&lt;br /&gt;
&lt;br /&gt;
Click new code to Copy to Clipboard&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;a&quot; onclick=&quot;copyDivToClipboard()&quot;&gt;
&lt;div id=&quot;myText&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script&gt; function copyDivToClipboard() { var range = document.getSelection().getRangeAt(0); range.selectNode(document.getElementById(&quot;a&quot;)); window.getSelection().addRange(range); document.execCommand(&quot;copy&quot;) } &lt;/script&gt;

Example:

&lt;br /&gt;
&lt;h3&gt;
Share with Friends&lt;/h3&gt;
&lt;!-- Twitter --&gt; &lt;a href=&quot;https://twitter.com/share?url=https://freecodeexamples.blogspot.com&amp;amp;text=Free%20Code%20Examples&amp;amp;hashtags=Amazing&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;Twitter&quot; src=&quot;https://simplesharebuttons.com/images/somacro/twitter.png&quot; /&gt; &lt;/a&gt; &lt;!-- Facebook --&gt; &lt;a href=&quot;http://www.facebook.com/sharer.php?u=https://freecodeexamples.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;Facebook&quot; src=&quot;https://simplesharebuttons.com/images/somacro/facebook.png&quot; /&gt; &lt;/a&gt; &lt;!-- Google+ --&gt; &lt;a href=&quot;https://plus.google.com/share?url=https://freecodeexamples.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;Google&quot; src=&quot;https://simplesharebuttons.com/images/somacro/google.png&quot; /&gt; &lt;/a&gt; &lt;!-- LinkedIn --&gt; &lt;a href=&quot;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=https://freecodeexamples.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;LinkedIn&quot; src=&quot;https://simplesharebuttons.com/images/somacro/linkedin.png&quot; /&gt; &lt;/a&gt; &lt;!-- Email --&gt; &lt;a href=&quot;mailto:?Subject=Free%20Code%20Examples&amp;amp;Body=I%20saw%20this%20and%20thought%20of%20you!%20%20https://freecodeexamples.blogspot.com&quot;&gt; &lt;img alt=&quot;Email&quot; src=&quot;https://simplesharebuttons.com/images/somacro/email.png&quot; /&gt; &lt;/a&gt; &lt;!-- Pinterest --&gt; &lt;a href=&quot;http://pinterest.com/pin/create/button/?url=https://freecodeexamples.blogspot.com&amp;amp;media=https://freecodeexamples.blogspot.com&amp;amp;description=Free%20Code%20Examples&quot;&gt; &lt;img alt=&quot;Pinterest&quot; src=&quot;https://simplesharebuttons.com/images/somacro/pinterest.png&quot; /&gt; &lt;/a&gt; &lt;!-- Reddit --&gt; &lt;a href=&quot;http://reddit.com/submit?url=https://freecodeexamples.blogspot.com&amp;amp;title=Free%20Code%20Examples&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;Reddit&quot; src=&quot;https://simplesharebuttons.com/images/somacro/reddit.png&quot; /&gt; &lt;/a&gt; &lt;!-- StumbleUpon--&gt; &lt;a href=&quot;http://www.stumbleupon.com/submit?url=https://freecodeexamples.blogspot.com&amp;amp;title=Free%20Code%20Examples&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;StumbleUpon&quot; src=&quot;https://simplesharebuttons.com/images/somacro/stumbleupon.png&quot; /&gt; &lt;/a&gt; &lt;!-- Tumblr--&gt; &lt;a href=&quot;http://www.tumblr.com/share/link?url=https://freecodeexamples.blogspot.com&amp;amp;title=Free%20Code%20Examples&quot; target=&quot;_blank&quot;&gt; &lt;img alt=&quot;Tumblr&quot; src=&quot;https://simplesharebuttons.com/images/somacro/tumblr.png&quot; /&gt; &lt;/a&gt;

&lt;a data-action=&quot;share/whatsapp/share&quot; href=&quot;https://api.whatsapp.com/send?text=https://freecodeexamples.blogspot.com&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot; http://www.stickpng.com/assets/images/580b57fcd9996e24bc43c543.png&quot; width=&quot;70&quot; /&gt;
&lt;/a&gt;    



&lt;script&gt;


function strReplace(){

var myStr = &#39;&amp;lt;h2&amp;gt;Share with Friends&amp;lt;/h2&amp;gt;&amp;lt;br&amp;gt; &amp;lt;!-- Twitter --&amp;gt; &amp;lt;a href=&amp;quot;https://twitter.com/share?url=URL&amp;amp;amp;text=NAME&amp;amp;amp;hashtags=HASH&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/twitter.png&amp;quot; alt=&amp;quot;Twitter&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Facebook --&amp;gt; &amp;lt;a href=&amp;quot;http://www.facebook.com/sharer.php?u=URL&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/facebook.png&amp;quot; alt=&amp;quot;Facebook&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Google+ --&amp;gt; &amp;lt;a href=&amp;quot;https://plus.google.com/share?url=URL&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/google.png&amp;quot; alt=&amp;quot;Google&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- LinkedIn --&amp;gt; &amp;lt;a href=&amp;quot;http://www.linkedin.com/shareArticle?mini=true&amp;amp;amp;url=URL&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/linkedin.png&amp;quot; alt=&amp;quot;LinkedIn&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Email --&amp;gt; &amp;lt;a href=&amp;quot;mailto:?Subject=NAME&amp;amp;amp;Body=I%20saw%20this%20and%20thought%20of%20you!%20 URL&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/email.png&amp;quot; alt=&amp;quot;Email&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Pinterest --&amp;gt; &amp;lt;a href=&amp;quot;http://pinterest.com/pin/create/button/?url=URL&amp;amp;media=URL&amp;amp;description=NAME&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/pinterest.png&amp;quot; alt=&amp;quot;Pinterest&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Reddit --&amp;gt; &amp;lt;a href=&amp;quot;http://reddit.com/submit?url=URL&amp;amp;amp;title=NAME&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/reddit.png&amp;quot; alt=&amp;quot;Reddit&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- StumbleUpon--&amp;gt; &amp;lt;a href=&amp;quot;http://www.stumbleupon.com/submit?url=URL&amp;amp;amp;title=NAME&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/stumbleupon.png&amp;quot; alt=&amp;quot;StumbleUpon&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt; &amp;lt;!-- Tumblr--&amp;gt; &amp;lt;a href=&amp;quot;http://www.tumblr.com/share/link?url=URL&amp;amp;amp;title=NAME&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt; &amp;lt;img src=&amp;quot;https://simplesharebuttons.com/images/somacro/tumblr.png&amp;quot; alt=&amp;quot;Tumblr&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt;&amp;lt;a href=&amp;quot;https://api.whatsapp.com/send?text=URL&amp;quot; data-action=&amp;quot;share/whatsapp/share&amp;quot;&amp;gt; &amp;lt;img border=&amp;quot;0&amp;quot; height=&amp;quot;70&amp;quot; src=&amp;quot; http://www.stickpng.com/assets/images/580b57fcd9996e24bc43c543.png&amp;quot; width=&amp;quot;70&amp;quot; /&amp;gt; &amp;lt;/a&amp;gt;&#39;;

var newStr = myStr.replace(new RegExp(&quot;URL&quot;, &#39;g&#39;), document.getElementById(&quot;purl&quot;).value).replace(new RegExp(&quot;NAME&quot;, &#39;g&#39;),document.getElementById(&quot;pname&quot;).value).replace(new RegExp(&quot;HASH&quot;,&#39;g&#39;),document.getElementById (&quot;hash&quot;).value);


document.getElementById(&quot;myText&quot;).innerHTML = newStr;

}


&lt;/script&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
amzn_assoc_placement = &quot;adunit0&quot;;
amzn_assoc_search_bar = &quot;true&quot;;
amzn_assoc_tracking_id = &quot;bobbie0c-20&quot;;
amzn_assoc_ad_mode = &quot;manual&quot;;
amzn_assoc_ad_type = &quot;smart&quot;;
amzn_assoc_marketplace = &quot;amazon&quot;;
amzn_assoc_region = &quot;US&quot;;
amzn_assoc_title = &quot;My Amazon Picks&quot;;
amzn_assoc_asins = &quot;0321992784,B07B3WN3FM,B01NCOOFGO,B075LKSJZ7&quot;;
amzn_assoc_linkid = &quot;0db457b7183c7173036528cbd6808a90&quot;;
&lt;/script&gt;
&lt;script src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&quot;&gt;&lt;/script&gt;


&lt;br&gt;&lt;br&gt;

&lt;h2&gt;Share with Friends&lt;/h2&gt;&lt;br&gt; &lt;!-- Twitter --&gt; &lt;a href=&quot;https://twitter.com/share?url=https://groovy codes.blogspot.com&amp;amp;text=Groovy Codes&amp;amp;hashtags=Coded&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/twitter.png&quot; alt=&quot;Twitter&quot; /&gt; &lt;/a&gt; &lt;!-- Facebook --&gt; &lt;a href=&quot;http://www.facebook.com/sharer.php?u=https://groovy codes.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/facebook.png&quot; alt=&quot;Facebook&quot; /&gt; &lt;/a&gt; &lt;!-- Google+ --&gt; &lt;a href=&quot;https://plus.google.com/share?url=https://groovy codes.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/google.png&quot; alt=&quot;Google&quot; /&gt; &lt;/a&gt; &lt;!-- LinkedIn --&gt; &lt;a href=&quot;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=https://groovy codes.blogspot.com&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/linkedin.png&quot; alt=&quot;LinkedIn&quot; /&gt; &lt;/a&gt; &lt;!-- Email --&gt; &lt;a href=&quot;mailto:?Subject=Groovy Codes&amp;amp;Body=I%20saw%20this%20and%20thought%20of%20you!%20 https://groovy codes.blogspot.com&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/email.png&quot; alt=&quot;Email&quot; /&gt; &lt;/a&gt; &lt;!-- Pinterest --&gt; &lt;a href=&quot;http://pinterest.com/pin/create/button/?url=https://groovy codes.blogspot.com&amp;media=https://groovy codes.blogspot.com&amp;description=Groovy Codes&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/pinterest.png&quot; alt=&quot;Pinterest&quot; /&gt; &lt;/a&gt; &lt;!-- Reddit --&gt; &lt;a href=&quot;http://reddit.com/submit?url=https://groovy codes.blogspot.com&amp;amp;title=Groovy Codes&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/reddit.png&quot; alt=&quot;Reddit&quot; /&gt; &lt;/a&gt; &lt;!-- StumbleUpon--&gt; &lt;a href=&quot;http://www.stumbleupon.com/submit?url=https://groovy codes.blogspot.com&amp;amp;title=Groovy Codes&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/stumbleupon.png&quot; alt=&quot;StumbleUpon&quot; /&gt; &lt;/a&gt; &lt;!-- Tumblr--&gt; &lt;a href=&quot;http://www.tumblr.com/share/link?url=https://groovy codes.blogspot.com&amp;amp;title=Groovy Codes&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;https://simplesharebuttons.com/images/somacro/tumblr.png&quot; alt=&quot;Tumblr&quot; /&gt; &lt;/a&gt;&lt;a href=&quot;https://api.whatsapp.com/send?text=https://groovy codes.blogspot.com&quot; data-action=&quot;share/whatsapp/share&quot;&gt; &lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot; http://www.stickpng.com/assets/images/580b57fcd9996e24bc43c543.png&quot; width=&quot;70&quot; /&gt; &lt;/a&gt;

        
</description><link>https://groovycodes.blogspot.com/2018/10/ez-share.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-809324334161577203</guid><pubDate>Mon, 08 Oct 2018 03:33:00 +0000</pubDate><atom:updated>2018-10-08T07:31:00.617-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Hacker Terminal</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
  &lt;title&gt;#Hackerterminal Challenge&lt;/title&gt;
  
  &lt;style&gt;
      #bob {
 background-image:url(https://i.pinimg.com/originals/92/c5/b2/92c5b20f647f2b2d546ee54131f18148.gif);
  height:650px;
  width:550px;
    
}

button{

    background-color:green;
    border-width:0;
    font-size:15px;
}

input{
    background:none;
    color: green;
    border: 1px solid rgba(0,0,0,0.5);
    font-size: 20px;
    border-color:green;
}
#hack{
    font-color: green;
    font-size: 20px;
    background-color:green;
}
      
  &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;

&lt;h3&gt;This is a really fun challenge code to create a Virtual Hacker Terminal simply tap the input box at the top make a selection and hit enter for awesome results&lt;/h3&gt;&lt;br&gt;&lt;br&gt;
    &lt;div id=&quot;bob&quot;&gt;

        &lt;input id=&#39;list&#39; onfocus=&quot;clearInput(this)&quot; size=&quot;25&quot; style=&quot;font-size:14pt;&quot; list=&quot;suggestions&quot;/&gt;
&lt;datalist id=&quot;suggestions&quot;&gt;
&lt;option value=&quot;List&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Connect&quot;&gt;&lt;/option&gt;
 &lt;option value=&quot;Engage&quot;&gt;&lt;/option&gt;
 &lt;option value=&quot;Join Anonymous&quot;&gt;&lt;/option&gt;
  &lt;option value=&quot;Reveal Anonymous&quot;&gt;&lt;/option&gt;
  &lt;option value=&quot;Hack the White House&quot;&gt;&lt;/option&gt;
  &lt;option value=&quot;Hack the Planet&quot;&gt;&lt;/option&gt;
&lt;/datalist&gt;
    &lt;br&gt;&lt;br&gt;
&lt;button onclick=&#39;text()&#39;&gt;Enter&lt;/button&gt;&lt;br&gt;&lt;br&gt;
    
&lt;txt id=&#39;hack&#39;&gt;&lt;/txt&gt; 
&lt;br&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/body&gt;
    &lt;script&gt;
        var x = &#39;&#39; ; function text() { x = list.value ; 
if (x == &#39;List&#39;) { hack.innerHTML = &#39;Commands&lt;br&gt;List&lt;br&gt;Connect&lt;br&gt;Engage&lt;br&gt;Join Anonymous&lt;br&gt;Reveal Anonymous&lt;br&gt;Hack the White House&lt;br&gt;Hack the Planet&#39;} 
else if (x == &#39;Connect&#39;) { hack.innerHTML = &#39;CONNECTING IN....&lt;img src=&quot;https://media3.giphy.com/media/thNsW0HZ534DC/giphy.gif&quot;height=&quot;350&quot;width=&quot;350&quot;&gt;&#39;} 
else if (x == &#39;Engage&#39;) { hack.innerHTML = &#39;HACKING SYSTEM....&lt;img src=&quot;https://media.giphy.com/media/zXmbOaTpbY6mA/giphy.gif&quot;height=&quot;300&quot;width=&quot;350&quot;&gt;Mission Accomplished&#39;} 
else if (x == &#39;Join Anonymous&#39;) { hack.innerHTML = &#39;Welcome to Anonymous....&lt;img src=&quot;https://media2.giphy.com/media/lwAyIZrVNYfio/giphy.gif &quot;height=&quot;300&quot;width=&quot;350&quot;&gt;&lt;br&gt;Sorry its not that easy&#39;} 
else if (x == &#39;Reveal Anonymous&#39;) { hack.innerHTML = &#39;&lt;img src=&quot;https://www.gifpal.com/static/uimages/4f29a75b31158se_1440861110.gif &quot;height=&quot;300&quot;width=&quot;350&quot;&gt;NEVER&#39;} 
else if (x == &#39;Hack the White House&#39;) { hack.innerHTML = &#39;&lt;img src=&quot;http://78.media.tumblr.com/9cebcec899889b81f2adea7b5486fdbb/tumblr_ne8fbcYjVR1ru5h8co1_500.gif&quot;height=&quot;330&quot;width=&quot;350&quot;&gt;Accomplished Миссия выполнена &#39;} 
else if (x == &#39;Hack the Planet&#39;) { hack.innerHTML = &#39;&lt;img src=&quot;https://media.giphy.com/media/soV2cf4ylKhDG/giphy.gif&quot;height=&quot;330&quot;width=&quot;350&quot;&gt;PLANET HACKED &#39;} 

}

function clearInput(element){ element.value=&quot;&quot;; }

        
    &lt;/script&gt;
&lt;br&gt;&lt;br&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
amzn_assoc_placement = &quot;adunit0&quot;;
amzn_assoc_search_bar = &quot;true&quot;;
amzn_assoc_tracking_id = &quot;bobbie0c-20&quot;;
amzn_assoc_ad_mode = &quot;manual&quot;;
amzn_assoc_ad_type = &quot;smart&quot;;
amzn_assoc_marketplace = &quot;amazon&quot;;
amzn_assoc_region = &quot;US&quot;;
amzn_assoc_title = &quot;My Amazon Picks&quot;;
amzn_assoc_linkid = &quot;796af33f2eed68bc3bb059a432ede297&quot;;
amzn_assoc_asins = &quot;1285454618,1788622057,0134772806,1119231507&quot;;
&lt;/script&gt;
&lt;script src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&quot;&gt;&lt;/script&gt;
   

 
&lt;/html&gt;


</description><link>https://groovycodes.blogspot.com/2018/10/hacker-terminal.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-878779578801821407</guid><pubDate>Wed, 26 Sep 2018 14:15:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.558-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Encouraging Cube</title><description>
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Art Cube 2&lt;/title&gt;
        &lt;style&gt;
            body {
color: #333;
padding: 20px;
text-align: center;
font-family: Arial;
}

.separator {
margin-top: 40px;
}


/* 3D Cube */
.space3d {
perspective: 500px;
width: 250px;
height: 250px;
text-align: center;
display: inline-block;
}

._3dbox {
display: inline-block;
transition: all 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275);
text-align: center;
position: relative;
width: 250px;
height: 250px;
transform-style: preserve-3d;
transform: rotateX(-15deg) rotateY(15deg);
}

._3dface {
overflow: hidden;
position: absolute;
border: 1px solid #888;
background: #FFF;
box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.1), 0 0 50px rgba(0, 0, 0, 0.3);
color: #333;
line-height: 250px;
opacity: 0.8;
}

._3dface--front {
width: 250px;
height: 250px;
transform: translate3d(0, 0, 125px);
}

._3dface--top {
width: 250px;
height: 250px;
transform: rotateX(90deg) translate3d(0, 0, 125px);
}

._3dface--bottom {
width: 250px;
height: 250px;
transform: rotateX(-90deg) translate3d(0, 0, 125px);
}

._3dface--left {
width: 250px;
height: 250px;
left: 50%;
margin-left: -125px;
transform: rotateY(-90deg) translate3d(0, 0, 125px);
}

._3dface--right {
width: 250px;
height: 250px;
left: 50%;
margin-left: -125px;
transform: rotateY(90deg) translate3d(0, 0, 125px);
}

._3dface--back {
width: 250px;
height: 250px;
transform: rotateY(180deg) translate3d(0, 0, 125px);
}

#radio-left:checked ~ .space3d ._3dbox {
transform: rotateY(90deg);
}

#radio-right:checked ~ .space3d ._3dbox {
transform: rotateY(-90deg);
}

#radio-bottom:checked ~ .space3d ._3dbox {
transform: rotateX(90deg);
}

#radio-top:checked ~ .space3d ._3dbox {
transform: rotateX(-90deg);
}

#radio-back:checked ~ .space3d ._3dbox {
transform: rotateY(180deg);
}

._3dface--front{
background: url(https://thumbs.dreamstime.com/z/vector-vintage-card-forest-night-sky-phrase-you-awesome-stylish-hipster-background-68782775.jpg);background-size: cover;
}

._3dface--left {
background: url(http://www.lovethispic.com/uploaded_images/244036-Today-Is-A-Good-Day-To-Have-A-Great-Day-Cute-Quote.jpg);background-size: cover;
}

._3dface--right {
background: url(https://i.pinimg.com/736x/3e/bf/68/3ebf689621c576a30abea72928f0e461.jpg);background-size: cover;
}

._3dface--top {
background: url(https://images-na.ssl-images-amazon.com/images/I/51VxVXfVc0L._SX258_BO1,204,203,200_.jpg);
background-size: cover;
}

._3dface--bottom {
background: url(http://teamworkdefinition.com/wp-content/uploads/2013/03/QuoteTeamwork-288x300.jpg);
background-size: cover;
}

._3dface--back {
background: url(https://previews.123rf.com/images/iqoncept/iqoncept1107/iqoncept110700086/10015112-The-words-Great-Job-surrounded-by-a-burst-of-colorful-stars-communicating-good-praise-for-a-project--Stock-Photo.jpg);
background-size: cover;
}

#theme {
    margin-top: 10px;
}
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;form name=&quot;sel&quot;&gt;
        &lt;input type=&quot;radio&quot; checked id=&quot;radio-front&quot; name=&quot;select-face&quot;/&gt; 
        &lt;input type=&quot;radio&quot; id=&quot;radio-left&quot; name=&quot;select-face&quot;/&gt; 
        &lt;input type=&quot;radio&quot; id=&quot;radio-right&quot; name=&quot;select-face&quot;/&gt; 
        &lt;input type=&quot;radio&quot; id=&quot;radio-top&quot; name=&quot;select-face&quot;/&gt; 
        &lt;input type=&quot;radio&quot; id=&quot;radio-bottom&quot; name=&quot;select-face&quot;/&gt; 
        &lt;input type=&quot;radio&quot; id=&quot;radio-back&quot; name=&quot;select-face&quot;/&gt;
    
            
        &lt;div class=&quot;separator&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;space3d&quot;&gt; 
            &lt;div class=&quot;_3dbox&quot;&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--front&quot;&gt;&lt;/div&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--top&quot;&gt;&lt;/div&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--bottom&quot;&gt;&lt;/div&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--left&quot;&gt;&lt;/div&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--right&quot;&gt;&lt;/div&gt; 
                &lt;div class=&quot;art-img _3dface _3dface--back&quot;&gt;&lt;/div&gt; 
            &lt;/div&gt; 
        &lt;/div&gt;
        &lt;div class=&quot;separator&quot;&gt;&lt;/div&gt;&lt;br&gt;
        &lt;div&gt;Encouragements Have Great Day&lt;/a&gt; &lt;br&gt;
         &lt;p&gt;Thanks again Calvin&lt;/p&gt; 
        &lt;button id=&quot;next&quot; onclick=&quot;return nextSel()&quot;&gt;Next&lt;/button&gt;
        &lt;button id=&quot;prev&quot; onclick=&quot;return prevSel()&quot;&gt;Prev&lt;/button&gt;&lt;br&gt;
        &lt;button id=&quot;theme&quot; onclick=&quot;return changeTheme()&quot;&gt;Change cube&lt;/button&gt;
        
     &lt;/form&gt;
            
        &lt;/div&gt;
        
        &lt;script&gt;
        
        var images = [
                [
                    &#39;https://i.pinimg.com/736x/46/2a/0f/462a0f5afdfda84ae955d6a32096aadf--notification-positive-motivational-quotes.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/8c/a8/fd/8ca8fdf1b73e32a32413b75367a10d3b--free-printable-quotes-free-printables.jpg&#39;,
                    &#39;https://i.pinimg.com/236x/62/9a/e1/629ae1f6d9289f19d5562d12c18ad545--great-day-quotes-have-a-great-day.jpg&#39;,
                    
                    &#39;https://sd.keepcalm-o-matic.co.uk/i-w600/have-an-awesome-and-spectacular-day.jpg&#39;,
                    
                    &#39;https://i.pinimg.com/736x/08/f6/a5/08f6a5bd22b34d1700143fd9a1ad94e2--recovery-encouragement.jpg&#39;,
                    
                    &#39;https://i.pinimg.com/736x/fa/3b/7d/fa3b7df3a4f70b3e4e579fb26c82f538--happy-wishes-true-friendships.jpg&#39;
                ],
                [
                    &#39;https://i.pinimg.com/736x/c2/38/33/c23833611cd9cc255cc9ae12b838740f--salon-quotes-have-a-beautiful-day.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/37/99/84/3799840c324fce9a845b92e1ef4ffef5--try-quotes-sign-quotes.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/ac/7a/60/ac7a602ca2e7f874953f6dff60222d3d--quotes-to-live-by-quote-posters.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/1b/9a/2c/1b9a2cc4ac456717fdd09f996077d731--quotes-of-encouragement-joy-quotes.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/38/ef/2c/38ef2c401eaaf0ce667509b15b1a7bb0.jpg&#39;,
                    &#39;https://pbs.twimg.com/media/C6VVBEnUwAEerR_.jpg&#39;               ],
                [
                    &#39;https://www.hooverwebdesign.com/free-printables/greeting-cards/you-are-so-groovy-greeting-card.gif&#39;,
                    &#39;https://pbs.twimg.com/media/Ccjdp7SUEAAKR5V.jpg&#39;,
                    &#39;https://i.pinimg.com/236x/51/a7/04/51a7043e07d6751e99a8849162b8be27--you-are-amazing-amazing-people.jpg&#39;,
                    &#39;https://i.pinimg.com/236x/d9/dc/2e/d9dc2eacc4a90e5a08f02b791a6f7d2a--quotes-encouragement-encouraging-quotes.jpg&#39;,
                    &#39;https://i.pinimg.com/736x/16/9a/06/169a06a34fe3eea4dca1238586539281--quotes-of-way-to-go-quotes.jpg&#39;,
                    &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNZnfvqGt8rPh6GUw6zY8noXn7pUNdFnhfmWZnDKLJqKLa0_CnWPpMz3KEvyUF4RFqyvuiaTM4xKCySMC69-yX4O8iXa2GxNHIF3FWokShZygBIlqMSLUnRaTur2mAtmAWDCcEV60fJTU/s1600/Youre-the-best-compliment-graphic.gif&#39;
                ]        
            
            ];
        
        var rad = 0; // set next radio
        var theme = 0;
        function nextSel() {
            rad = rad==5? 0:rad+1;
            sel[rad].checked = true;
            
            return false;
        }
        
        function prevSel() {
            rad = rad==0? 5:rad-1;
            sel[rad].checked = true;
            
            return false;
        }
        
        function changeTheme() {
            theme = theme==images.length-1? 0:theme+1;
            var artImgs = document.querySelectorAll(&#39;.art-img&#39;);
            for(var i=0;i&lt;6;i++) {
                artImgs[i].style.backgroundImage = &#39;url(&#39; + images[theme][i] + &#39;)&#39;;
            }
            
             return false;
        }
            
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
 


&lt;div id=&quot;amzn-assoc-ad-314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/script&gt;  

&lt;br&gt;&lt;br&gt;

 &lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/encouraging-cube.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-6394528898730301242</guid><pubDate>Wed, 26 Sep 2018 14:13:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.513-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Random Joke Generator</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Joke Generator&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
   
       &lt;h1 style=color:blue&gt;Random Joke Generator&lt;/h1&gt; 
       &lt;div&gt;&lt;span style=&quot;font-size:25px&quot;&gt;
       &lt;div id=&quot;jokeDisplay&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
       &lt;button onclick= &quot;newJoke()&quot;&gt;New Joke&lt;/button&gt;
       &lt;script scr=&quot;javascript.js&quot;&gt;&lt;/script&gt;
    &lt;/body&gt;
    &lt;script&gt;
        var jokes= [&#39;Guess the number of programmers it takes to change a light bulb? Zero its a hardware problem&#39;,&#39;There are only 10 kinds of people in this world: those who know binary and those who don’t.&#39;,&#39;Real programmers count from 0.&#39;, &#39;Why did the programmer quit his job? Because he didnt get arrays.&#39;, &#39;A foo walks into a bar takes a look around and says Hello World&#39;,&#39;0 is false 1 is true right? 1&#39;,&#39;Things arent always #000000 and #FFFFFF.&#39;,&#39;What is the most used language in programming? Profanity&#39;,&#39;!False its funny because its True&#39;,&#39;You had me at Hello World&#39;,&#39;2b||!2b&#39;,&#39;Yesterday I changed the name on my wifi to Hack if you can. Today I found it named Challenge Accepted&#39;,&#39;A programmer is a person who fixed a problem that you didnt know you had in a way you dont understand&#39;,&#39;How can you tell if a computer geek is an extrovert? They stare at your shoes when you talk instead of their own.&#39;,&#39;I would love to change the world but they wont give me the source code.&#39;,&#39;If at first you dont succedd call it version 1.0&#39;,&#39;Computers make very fast very accurate mistakes&#39;,&#39;I farted in the Apple store and everyone got mad at me. Not my fault they dont have Windows.&#39;,&#39;Knock Knock... Whos there? Art... Art Who? R2D2&#39;,&#39;Hilarious and amazingly true thing: if a pizza has a radius (z) and a depth (a) that pizzas volume can be defined Pi*z*z*a.&#39;]

function newJoke(){
var randomNumber=Math.floor(Math.random()*(20));
    document.getElementById(&#39;jokeDisplay&#39;).innerHTML=jokes[randomNumber];
}
    &lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;

</description><link>https://groovycodes.blogspot.com/2018/09/random-joke-generator.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-9161211354618310653</guid><pubDate>Sat, 22 Sep 2018 15:25:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.604-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>JS Particles Crystal Ball</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Colorful Crystal Ball2&lt;/title&gt;
        &lt;!--What images appear to you in the colors or background?--&gt;
        &lt;style&gt;
            @import &quot;compass/css3&quot;;
#my-canvas {
  width: 450px;
  height: 450px;
  background: #005;  
  border-radius: 50%;
  animation: colorchange 30s infinite;
  animation-iteration-count: infinite;
  animation-direction:infinite alternate;
      -webkit-animation: colorchange 20s infinite; 
    }

    @keyframes colorchange
    {
      0%   {background: red;}
      25%  {background: yellow;}
      50%  {background: blue;}
      75%  {background: green;}
      100% {background: purple;}
    }

    @-webkit-keyframes colorchange
    {
      0%   {background: red;}
      25%  {background: yellow;}
      50%  {background: blue;}
      75%  {background: green;}
      100% {background: purple;}
    }

        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body bgcolor=&quot;pink&quot;&gt;
        &lt;canvas id=&quot;my-canvas&quot;&gt;&lt;/canvas&gt;
        
    &lt;/body&gt;
    &lt;script&gt;
        window.onload = function() {

var canvas = document.getElementById( &#39;my-canvas&#39; );
var ctx = canvas.getContext( &#39;2d&#39; );
var people = [];

for( var i = 0; i &lt; 9000; i ++ )
{
  people.push( Person() );
}
setInterval( function(){update()}, 5 );

function update()
{
 for( var i = 0; i &lt; people.length; i ++ )
 {
   var person = people[i];
   person.x += person.speed;
   if( person.x &gt; 600 ){
     person.x = 0;
   }
if(person.y &gt; 200)
   {
     person.y = 0;
   }
 }
  
  render();

}

function render()
{
  ctx.clearRect(0,0,600,300);
  for( var i = 0 ; i &lt; people.length; i ++ )
  {
    var person = people[i]
    ctx.fillStyle = &quot;rgb(&quot;+person.rgb+&quot;)&quot;;
    ctx.fillRect(person.x,person.y,7,3);
    
  }
}
  function Person()
{
  var person = {};
  person.name = &#39;name&#39;;
  person.x = Math.random() * 600 - 300;
  person.y = Math.random() * 200;
  person.speed = Math.floor( Math.random() * 9 ) + 1;
  person.rgb = Math.floor((Math.random() * 256)).toString() + &#39;,&#39; + Math.floor((Math.random() * 256)).toString() + &#39;,&#39; + Math.floor((Math.random() * 256)).toString(); 
  return person;
}

Person.prototype = {
 
};
}

//altered from https://codepen.io/thefivetoes
    &lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-29b66b16-7cec-4fc8-a945-0a416422347d&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=29b66b16-7cec-4fc8-a945-0a416422347d&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/js-particles-crystal-ball.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-8833056902146947950</guid><pubDate>Sat, 22 Sep 2018 14:27:00 +0000</pubDate><atom:updated>2018-10-07T20:41:34.429-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">IQ test</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Fun IQ Test</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;IQ test&lt;/title&gt;
        
    &lt;/head&gt;
    &lt;body&gt;
        &lt;p style=&quot;color:blue;font-size:24px&quot;&gt;Basic IQ Test&lt;/p&gt;  

&lt;form name=&quot;quiz&quot;&gt;
 &lt;p style=&quot;color:green;font-size:20px&quot;&gt;
1. Which of these numbers does not belong: 1,3,5,6,7,9 ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;1&quot;&gt;1&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;5&quot;&gt;5&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;6&quot;&gt;6&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q1&quot; value=&quot;9&quot;&gt;9&lt;/li&gt;
&lt;/ul&gt;

 &lt;p style=&quot;color:green;font-size:20px&quot;&gt;
2. Which one of the following things is the least like the others?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q2&quot; value=&quot;Pacific&quot;&gt;Pacific&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q2&quot; value=&quot;Erie&quot;&gt;Erie&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q2&quot; value=&quot;Atlantic&quot;&gt;Atlantic&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q2&quot; value=&quot;Artic&quot;&gt;Arctic&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
3. What number best completes the analogy: 28 : 14 as 16 : _ ?

&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q3&quot; value=&quot;8&quot;&gt;8&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q3&quot; value=&quot;12&quot;&gt;12&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q3&quot; value=&quot;6&quot;&gt;6&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q3&quot; value=&quot;14&quot;&gt;14&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
4. Which letter should appear next in the sequence: A,S,D,F,_ ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q4&quot; value=&quot;B&quot;&gt;B&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q4&quot; value=&quot;P&quot;&gt;P&lt;/li&gt;
    &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q4&quot; value=&quot;M&quot;&gt;M&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q4&quot; value=&quot;G&quot;&gt;G&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
5. The day after the day after tomorrow is four days before Monday. What day is it today?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q5&quot; value=&quot;Monday&quot;&gt;Monday&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q5&quot; value=&quot;Wednesday&quot;&gt;Wednesday&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q5&quot; value=&quot;Friday&quot;&gt;Friday&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q5&quot; value=&quot;Sunday&quot;&gt;Sunday&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
6. Which number is next in the series: 29,27,24,20,15,__ ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q6&quot; value=&quot;10&quot;&gt;10&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q6&quot; value=&quot;12&quot;&gt;12&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q6&quot; value=&quot;9&quot;&gt;9&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q6&quot; value=&quot;13&quot;&gt;13&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
7. 6121135 is to flame as 21215120 is to : ___ ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q7&quot; value=&quot;banana&quot;&gt;banana&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q7&quot; value=&quot;float&quot;&gt;float&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q7&quot; value=&quot;fire&quot;&gt;fire&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q7&quot; value=&quot;bloat&quot;&gt;bloat&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
8. AWESOME is to EMOSEWA as 8724653 is to: ___ ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q8&quot; value=&quot;8543675&quot;&gt;8543575&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q8&quot; value=&quot;3565378&quot;&gt;3565378&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q8&quot; value=&quot;7254376&quot;&gt;7254376&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q8&quot; value=&quot;3564278&quot;&gt;3564278&lt;/li&gt;
&lt;/ul&gt;


&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
9. Which one does not belong: 1,1,2,3,4,5,8,13,21 ?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q9&quot; value=&quot;1&quot;&gt;1&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q9&quot; value=&quot;4&quot;&gt;4&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q9&quot; value=&quot;5&quot;&gt;5&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q9&quot; value=&quot;13&quot;&gt;13&lt;/li&gt;
&lt;/ul&gt;

&lt;p style=&quot;color:green;font-size:20px&quot;&gt;
10. Which does not belong?&lt;/p&gt;
&lt;ul style=&quot;margin-top: 3pt&quot;&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q10&quot; value=&quot;Horse&quot;&gt;Horse&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q10&quot; value=&quot;Bird&quot;&gt;Bird&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q10&quot; value=&quot;Tiger&quot;&gt;Tiger&lt;/li&gt;
  &lt;li&gt;&lt;input type=&quot;radio&quot; name=&quot;q10&quot; value=&quot;Dog&quot;&gt;Dog&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;

&lt;br&gt;

&lt;input type=&quot;button&quot; value=&quot;Get your Score&quot; onClick=&quot;getScore(this.form)&quot;&gt;
&lt;input type=&quot;reset&quot; value=&quot;Clear Answers&quot;&gt;
&lt;p&gt; Score = &lt;strong&gt;&lt;input class=&quot;bgclr&quot; type=&quot;text&quot; size=&quot;3&quot;  style=&quot;font-size:17pt;&quot; name=&quot;percentage&quot; disabled&gt;&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;p&gt;&lt;h3&gt;Intrepreting your score: &lt;/h3&gt;Over 180- Amazingly Super Genius&lt;br&gt; 160 - 180 - Super Genius&lt;br&gt; 140 - 160 - Genius or near genius. &lt;br&gt;120 - 140 - Very superior intelligence.&lt;br&gt; 110 - 119 - Superior intelligence. &lt;br&gt;90 - 109 - Normal or average intelligence.&lt;/p&gt;
&lt;br&gt;&lt;br&gt;
If you like this code please let me know i will work on a more advanced version. Thanks🙂

&lt;/form&gt;
    &lt;/body&gt;
    &lt;script&gt;
        var nQ = 10;
var nC = 4;
var a = new Array(10);

a[0] = &quot;6&quot;;
a[1] = &quot;Erie&quot;;
a[2] = &quot;8&quot;;
a[3] = &quot;G&quot;;
a[4] = &quot;Monday&quot;;
a[5] = &quot;9&quot;;
a[6] = &quot;bloat&quot;;
a[7] = &quot;3564278&quot;;
a[8] = &quot;4&quot;;
a[9] = &quot;Bird&quot;;

function getScore(form) {
  var score = 0;
  var cE;
  var cS;
  for (i=0; i&lt;nQ; i++) {
    cE = i*nC;
  for (j=0; j&lt;nC; j++) {
      cS = form.elements[cE + j];
   if (cS.checked) {
   if (cS.value == a[i]) {
          score++;
     break;
        }
      }
    }
  }
  score = Math.round(score/nQ*200);
  form.percentage.value = score + &quot; IQ&quot;;
  var correctA = &quot;&quot;;
  for (i=1; i&lt;=nQ; i++) {
    correctA += i + &quot;. &quot; + a[i-1] + &quot;\r\n&quot;;
  }}
  
    &lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/fun-iq-test.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-3596675826909902248</guid><pubDate>Fri, 21 Sep 2018 23:02:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.468-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Javascript Particles Fishes </title><description>&lt;!DOCTYPE html&gt;
&lt;!--
Author Paul Caron
from a suggestion of curios basant
--&gt;

&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Collisions Particles&lt;/title&gt;
        &lt;style&gt;
            html, body{
    padding:none;
    margin:none;
    
}

div{
height:&quot;500px&quot;;
width:&quot;350px&quot;;
}
#canvas{
    background-image:url(&quot;https://i.gifer.com/Bs0W.gif&quot;);
    background-size:cover;
    background-repeat:no-repeat ;
    height:500px;
    width:350px;
}
        &lt;/style&gt;
    &lt;/head&gt;
&lt;H3&gt;*Featured Code submitted and Created by &lt;a href=&quot;https://www.sololearn.com/Profile/8518623/?ref=app&quot;&gt;Paul&lt;/a&gt;&lt;/H3&gt;
    &lt;body onload=&quot;start();&quot;&gt;
&lt;div&gt;
        &lt;canvas id=&quot;canvas&quot;width:&quot;350&quot;height:&quot;500&quot;&gt;&lt;/canvas&gt;&lt;/div&gt;
    &lt;/body&gt;
    &lt;script&gt;
        var particles = [];
var canvas;
var ctx;
var collision =[] ;
var colors = [&quot;red&quot;,&quot;orange&quot;,&quot;yellow&quot;,&quot;green&quot;,&quot;blue&quot;,&quot;violet&quot;,&quot;white&quot;];//rainbow attack
var frameCount = 0;
var color = &quot;white&quot;;
var stop = false;
var yGround = 0;
var yCeil = 0;
var walls = [];
var plates = [];
var shadows = [];
var sound;

var Particle = function(){}
Particle.prototype = {
    xSpeed : 0,
    ySpeed : 0,
    xPos : 0,
    yPos : 0,
    width : 16,
    height : 16,
    finx:0,
    finy:0,
    finb :0,
    finby :0,
    color : &quot;white&quot;,
    draw : function(){
        //ctx.shadowBlur=20;
        //ctx.shadowColor=this.color;
        ctx.beginPath();
        ctx.arc(this.xPos, this.yPos, this.width/2, 0, Math.PI*2);
        ctx.fillStyle = this.color;
        ctx.fill();
        ctx.closePath();
        
        ///fins and eye
        
        var direction = Math.acos(this.xSpeed/Math.sqrt(this.xSpeed*this.xSpeed+this.ySpeed*this.ySpeed));
       if(this.ySpeed&lt;0){
            direction *=-1;
        }
        
        
        ctx.shadowBlur=0;
    
        
        //fins
       
       
       this.finx = this.xPos + Math.cos(direction+Math.PI/2)*this.width/2;
       this.finy = this.yPos + Math.sin(direction+Math.PI/2)* this.height/2;
       
        ctx.beginPath();
        ctx.arc(this.finx, this.finy, this.width/5, 0, Math.PI*2);
        ctx.fillStyle = this.color;
        ctx.fill();
        ctx.closePath();
        this.finbx = this.xPos - Math.cos(direction+Math.PI/2)*this.width/2;
       this.finby = this.yPos - Math.sin(direction+Math.PI/2)* this.height/2;
       
        ctx.beginPath();
        ctx.arc(this.finbx, this.finby, this.width/5, 0, Math.PI*2);
        ctx.fillStyle = this.color;
        ctx.fill();
        ctx.closePath();
        
        
        ctx.beginPath();
        ctx.arc(this.xPos + Math.cos(direction+Math.PI/2)*this.width/4, this.yPos +  Math.sin(direction+Math.PI/2)*this.width/4, this.width/4, 0, Math.PI*2);
        ctx.strokeStyle = &quot;black&quot;;
        ctx.fillStyle = &quot;white&quot;;
        ctx.fill();
        ctx.stroke();
        ctx.closePath();
        
        ctx.beginPath();
        ctx.arc(this.xPos + Math.cos(direction+Math.PI/2)*this.width/4, this.yPos +  Math.sin(direction+Math.PI/2)*this.width/4 , this.width/8, 0, Math.PI*2);
        ctx.fillStyle = &quot;black&quot;;
        ctx.fill();
        ctx.closePath();
        
        ctx.beginPath();
        ctx.arc(this.xPos - Math.cos(direction+Math.PI/2)*this.width/4, this.yPos - Math.sin(direction+Math.PI/2)*this.width/4, this.width/4, 0, Math.PI*2);
        ctx.strokeStyle = &quot;black&quot;;
        ctx.fillStyle = &quot;white&quot;;
        ctx.fill();
        ctx.stroke();
        ctx.closePath();
        
        ctx.beginPath();
        ctx.arc(this.xPos - Math.cos(direction+Math.PI/2)*this.width/4, this.yPos -  Math.sin(direction+Math.PI/2)*this.width/4 , this.width/8, 0, Math.PI*2);
        ctx.fillStyle = &quot;black&quot;;
        ctx.fill();
        ctx.closePath();
        
        
        
        shadows.push([this.xPos,this.yPos,this.color]);
    },
    getInfo : function(){
       console.log(&quot;x:&quot;+this.xPos+&quot;, y:&quot;+this.yPos+&quot;, xspeed:&quot;+this.xSpeed+&quot;, yspeed&quot;+this.ySpeed+&quot; SPEED: &quot;+(Math.sqrt(this.xSpeed*this.xSpeed+this.ySpeed*this.ySpeed)));
    }
}

function start(){
    canvas = document.getElementById(&quot;canvas&quot;);
    ctx = canvas.getContext(&quot;2d&quot;);
    canvas.width = window.innerWidth;
    canvas.height = window.innerHeight;
    //ground init
    yGround = canvas.height -50;
    plates.push(yGround);
    //Ceiling init
    yCeil = 0;
    plates.push(yCeil);
    //walls init
    walls.push(0);
    walls.push(canvas.width);
    //sound
    sound = document.getElementById(&quot;sound&quot;);
    
    //particles init
    
   
    
    ///let the fun begin, random particles
    for(let a = 0;a&lt;30;a++){
        particles.push(new Particle());
    particles[particles.length-1].xPos = Math.random()*(canvas.width - particles[particles.length-1].width)+ particles[particles.length-1].width/2;
    particles[particles.length-1].yPos = Math.random()*(yGround - yCeil - particles[particles.length-1].height)+ particles[particles.length-1].height/2;
    particles[particles.length-1].ySpeed = Math.random()*5-2.5;
    particles[particles.length-1].xSpeed = Math.random()*5-2.5;
    particles[particles.length-1].color =colors[Math.floor(Math.random()*7)];
    }
   
    
    loop();
}

function loop(){
        clearCanvas();
        //draw ground;
        ctx.beginPath();
        ctx.moveTo(0,yGround);
        ctx.lineTo(canvas.width,yGround)
        ctx.strokeStyle = &quot;white&quot;;
        ctx.stroke();
        ctx.closePath();
        //draw ceil;
        ctx.beginPath();
        ctx.moveTo(0,yCeil );
        ctx.lineTo(canvas.width,yCeil)
        ctx.strokeStyle = &quot;white&quot;;
        ctx.stroke();
        ctx.closePath();
        //draw wall
        ctx.beginPath();
        ctx.moveTo(0,0);
        ctx.lineTo(0,yGround)
        ctx.strokeStyle = &quot;white&quot;;
        ctx.stroke();
        ctx.closePath();
        //draw wall
        ctx.beginPath();
        ctx.moveTo(canvas.width,0);
        ctx.lineTo(canvas.width,yGround)
        ctx.strokeStyle = &quot;white&quot;;
        ctx.stroke();
        ctx.closePath();
        
        frameCount ++;
        //draw particles
        
        
        if(shadows.length&gt;200){
            
            for(let a=0; a&lt;(shadows.length-200);a++){
                shadows.shift();
            }
        }
        for(shadow in shadows){
            drawShadow(shadows[shadow], shadow);
        }
        
        for(p in particles){
            render(particles[p]);
        }
        
        //animation loop
        if(frameCount &lt;0){
        }else{
        window.requestAnimationFrame(loop);
        }
}

function render(p){
    p.xPos += p.xSpeed ;
    p.yPos += p.ySpeed;
    p.draw();
    //check collision between particles
    for(part in particles){
        // dist between part
        if(p===particles[part]){
            
        }else{
        var distX = p.xPos - particles[part].xPos;
        var distY = p.yPos - particles[part].yPos;
        var dist = Math.sqrt(distX*distX + distY*distY);
        
        
        /////////////

        if(dist  &lt;  p.width/2 + particles[part].width/2 ) {
 var direction_hitten = p.yPos&gt;particles[part].yPos?-Math.acos(-distX/dist):Math.acos(-distX/dist);
        var direction_hitter = Math.acos(p.xSpeed/Math.sqrt(p.xSpeed*p.xSpeed+p.ySpeed*p.ySpeed));
        var direction_hitter2 = Math.acos(particles[part].xSpeed/Math.sqrt(particles[part].xSpeed*particles[part].xSpeed+particles[part].ySpeed*particles[part].ySpeed));
        
        
        if(p.ySpeed&lt;0){
            direction_hitter *=-1;
        }
        if(particles[part].ySpeed&lt;0){
            direction_hitter2 *=-1;
        }
        
         partsCollision(p,particles[part],direction_hitten,direction_hitter, direction_hitter2 );
  
        }
        }
       // sound.play();
    }
    //collision with walls
    for(w in walls){
        if(p.xSpeed &gt; 0 &amp;&amp; walls[w] - p.xPos &lt; p.width/2 &amp;&amp; p.xPos &lt; walls[w] ) {
            p.xSpeed *= -1;//reverse
        }
        
        if(p.xSpeed &lt; 0 &amp;&amp; p.xPos -walls[w] &lt; p.width/2  &amp;&amp; p.xPos &gt; walls[w]) {
            p.xSpeed *= -1;//reverse
        }
    }
    //check collision with ceiling or ground
    for(plate in plates){
        if(p.ySpeed &gt; 0 &amp;&amp; plates[plate] - p.yPos &lt; p.height/2 &amp;&amp; p.yPos &lt; plates[plate] ) {
            p.ySpeed *= -1;//reverse
        }
        
        if(p.ySpeed &lt; 0 &amp;&amp; p.yPos -plates[plate] &lt; p.height/2  &amp;&amp; p.yPos &gt; plates[plate]) {
            p.ySpeed *= -1;//reverse
        }
    }
}

function partsCollision(p1,p2,direction_hitten ,direction_hitter,direction_hitter2 ){
    var speed1 = Math.sqrt(p1.xSpeed*p1.xSpeed + p1.ySpeed*p1.ySpeed);
    var speed2 = Math.sqrt(p2.xSpeed*p2.xSpeed + p2.ySpeed*p2.ySpeed);
    var invertY=1;
    var invertY2 = 1;
   /* if((p1.ySpeed &gt; 0 &amp;&amp; p2.ySpeed &gt; 0 &amp;&amp; p1.yPos &lt; p2.yPos)||(p1.ySpeed &lt; 0 &amp;&amp; p2.ySpeed &lt; 0 &amp;&amp; p1.yPos &gt; p2.yPos) ){
        if(p1.ySpeed &gt;p2.ySpeed){
            invertY = -1;
        }
    }*/
    //////
    var sub;
    if(direction_hitter - direction_hitten &gt; Math.PI/2){
        sub = Math.PI-(direction_hitter -direction_hitten);
        }else if(direction_hitter-direction_hitten&lt;-Math.PI/2){
            sub = Math.PI+(direction_hitter -direction_hitten);
        }else{
        sub =parseFloat(direction_hitter)-parseFloat(direction_hitten);
        }
    if(sub &lt; Math.PI/2){
        sub += Math.PI;
    }
    if(sub &gt; Math.PI/2){
        sub -= Math.PI;
    }
    var ratio = 1- (Math.abs(sub))/(Math.PI/2);
    var r1=1-ratio;
    var r2=ratio;
//console.log(ratio+&quot;,&quot;+direction_hitter+&quot;,&quot;+direction_hitten);
    p2.xSpeed= Math.cos(direction_hitten) *speed1 *r2;
    p2.ySpeed= Math.sin(direction_hitten)*speed1*r2*invertY2;
    
    var ninety;
    ninety = Math.PI/2;
    if(direction_hitter &gt;=0 &amp;&amp; direction_hitten &gt;=0 &amp;&amp; direction_hitter &gt;direction_hitten ) {
        ninety = Math.PI/2;
    }else if(direction_hitter &lt;=0 &amp;&amp; direction_hitten &lt;=0 &amp;&amp; direction_hitter &gt; direction_hitten ){
        ninety = Math.PI/2;
    }else if(direction_hitten &gt;0 &amp;&amp; direction_hitter &lt;0 &amp;&amp; direction_hitter &lt;-Math.PI/2 ){
        ninety = Math.PI/2;
    }else if(direction_hitten &lt;0 &amp;&amp; direction_hitter &gt;0 &amp;&amp; direction_hitten &gt;-Math.PI/2 ){
        ninety = Math.PI/2;
    }else{
        ninety = -Math.PI/2;
    }
    
    
    
    p1.xSpeed=Math.cos(parseFloat(direction_hitten) + ninety)*speed1 *(r1);
    p1.ySpeed=Math.sin(parseFloat(direction_hitten) +  ninety)*speed1 *(r1);
    
    
    // adding speed2 
  //  console.log(direction_hitten );
    
    if(direction_hitten &lt;0){
        direction_hitten = (parseFloat(direction_hitten)+Math.PI);
    }else{
        direction_hitten = (parseFloat(direction_hitten)-Math.PI);
    }
    temp = direction_hitter ;
    //direction_hitten = (direction_hitten - Math.PI)%Math.PI ;
    direction_hitter = direction_hitter2 ;
    
    var sub=0.00000000;

       if(direction_hitter - direction_hitten &gt; Math.PI/2){
        sub = Math.PI-(direction_hitter -direction_hitten);
        }else if(direction_hitter-direction_hitten&lt;-Math.PI/2){
            sub = Math.PI+(direction_hitter -direction_hitten);
        }else{
        sub =parseFloat(direction_hitter)-parseFloat(direction_hitten);
        }
    if(sub &lt; Math.PI/2){
        sub += Math.PI;
    }
    if(sub &gt; Math.PI/2){
        sub -= Math.PI;
    }
    var ratio = 1- ((Math.abs(parseFloat(sub)))/(Math.PI/2));
    var r1=1-ratio;
    if(ratio &lt;0){
       // console.log(sub+&quot;ratio sub&quot;);
    }
    //console.log(ratio+&quot;,&quot;+direction_hitter+&quot;,&quot;+direction_hitten);
 
    var r2=ratio;


    var invX = 1;
    var invY = 1;
    
    sub = Math.abs(direction_hitter - temp);
    /*
    if(sub&lt; (Math.PI) || (sub &gt; (3*Math.PI/2))){
        if(Math.abs(p2.xSpeed)&gt;Math.abs(p2.ySpeed)){
            invX =-1;
        }
        if(Math.abs(p2.ySpeed)&gt;Math.abs(p2.xSpeed)){
            invY =-1;
        }
    }
*/


    p1.xSpeed+= Math.cos(parseFloat(direction_hitten)) *speed2 *r2*invX;
    p1.ySpeed+= Math.sin(parseFloat(direction_hitten))*speed2*r2*invY;
    
    var ninety;
    ninety = Math.PI/2;
    if(direction_hitter &gt;=0 &amp;&amp; direction_hitten &gt;=0 &amp;&amp; direction_hitter &gt;direction_hitten ) {
        ninety = Math.PI/2;
    }else if(direction_hitter &lt;=0 &amp;&amp; direction_hitten &lt;=0 &amp;&amp; direction_hitter &gt; direction_hitten ){
        ninety = Math.PI/2;
    }else if(direction_hitten &gt;0 &amp;&amp; direction_hitter &lt;0 &amp;&amp; direction_hitter &lt;-Math.PI/2 ){
        ninety = Math.PI/2;
    }else if(direction_hitten &lt;0 &amp;&amp; direction_hitter &gt;0 &amp;&amp; direction_hitten &gt;-Math.PI/2 ){
        ninety = Math.PI/2;
    }else{
        ninety = -Math.PI/2;
    }
    
    
    
//  console.log(sub);
    p2.xSpeed += Math.cos(parseFloat(direction_hitten) +  ninety)*speed2 *(r1);
    p2.ySpeed+=Math.sin(parseFloat(direction_hitten) +  ninety)*speed2 *(r1);
    
    
    //normalize
    var speedone = Math.sqrt(p1.xSpeed*p1.xSpeed + p1.ySpeed*p1.ySpeed);
    var speedtwo = Math.sqrt(p2.xSpeed*p2.xSpeed + p2.ySpeed*p2.ySpeed);
    var n=((speed1+speed2)/(speedone + speedtwo)) ;
    
    p1.xSpeed *= n;
    p1.ySpeed *= n;
    p2.xSpeed *= n;
    p2.ySpeed *= n;
    //console.log(n);
    
    
    
//   p1.getInfo();
//    p2.getInfo();
    //to avoid double collisions balls getting stuck
   for(let a=0;a&lt;1;a++){
       p2.xPos += p2.xSpeed;
       p2.yPos += p2.ySpeed;
       p1.xPos += p1.xSpeed;
       p1.yPos += p1.ySpeed;
   }
  // console.log(&quot;collision&quot;);
   
}


function clearCanvas(){
    ctx.clearRect(0,0,canvas.width,canvas.height);
}

function drawtext(y,text, size,font,color){
    ctx.font = size+&quot;px&quot;+&quot; &quot;+font;
    ctx.fillStyle=color;
    ctx.textAlign=&quot;center&quot;;
    ctx.fillText(text, canvas.width/2,y);  
}

function drawShadow([x,y,color], index){
    if(index&lt;40){
        index = 140-index;
    }
    ctx.shadowBlur=0;
    ctx.shadowColor=color;
    ctx.beginPath();
    ctx.arc(x, y, index*0.04, 0, Math.PI*2);
    ctx.fillStyle = color;
    ctx.fill();
    ctx.closePath();
}
    

    &lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/javascript-particles-fishes.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-1484836968251051859</guid><pubDate>Fri, 21 Sep 2018 15:19:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.331-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>How many Stars?</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Star Illusion&lt;/title&gt;
    &lt;/head&gt;
    &lt;body bgcolor=&quot;#ff00ff&quot;&gt;
    How Many Stars Do You See?&lt;br&gt;&lt;br&gt;
        &lt;svg width=&quot;340&quot; height=&quot;400&quot;&gt;    
            &lt;polygon points=&quot;0 100, 130 80, 170 0&quot; style=&quot;fill:red&quot;/&gt;
            &lt;polygon points=&quot;130 80,170 70,170 0&quot; style=&quot;fill:green&quot;/&gt;
            &lt;polygon points=&quot;170 70,210 80,170 0&quot; style=&quot;fill:silver&quot;/&gt;
            &lt;polygon points=&quot;210 80,170 0,340 100&quot; style=&quot;fill:red&quot;/&gt;
            &lt;polygon points=&quot;0 100,170 70,130 150&quot; style=&quot;fill:yellow&quot;/&gt;
            &lt;polygon points=&quot;170 70,170 200,90 240&quot; style=&quot;fill:blue&quot;/&gt;
            &lt;polygon points=&quot;170 70,170 200,250 240&quot; style=&quot;fill:yellow&quot;/&gt;
            &lt;polygon points=&quot;170 70,210 150,340 100&quot; style=&quot;fill:blue&quot;/&gt;
            &lt;polygon points=&quot;0 100,130 150,90 240&quot; style=&quot;fill:red&quot;/&gt;
            &lt;polygon points=&quot;250 240, 210 150, 340 100&quot; style=&quot;fill:red&quot;/&gt;
            &lt;polygon points=&quot;0 100, 0 300, 60 200&quot; style=&quot;fill:yellow&quot;/&gt;
            &lt;polygon points=&quot;0 300, 60 200, 90 240&quot; style=&quot;fill:silver&quot;/&gt;
            &lt;polygon points=&quot;90 240,170 200,250 240&quot; style=&quot;fill:red&quot;/&gt;
            &lt;polygon points=&quot;250 240, 270 200, 340 300&quot; style=&quot;fill:green&quot;/&gt;
            &lt;polygon points=&quot;340 300, 270 200,340 100&quot; style=&quot;fill:blue&quot;/&gt;
            &lt;polygon points=&quot;0 300,110 280,90 240&quot; style=&quot;fill:green&quot;/&gt;
            &lt;polygon points=&quot;90 240, 170 240, 170 400&quot; style=&quot;fill:blue&quot;/&gt;
            &lt;polygon points=&quot;170 240,250 240,170 400&quot; style=&quot;fill:yellow&quot;/&gt;
            &lt;polygon points=&quot;230 280,250 240,340 300&quot; style=&quot;fill:silver&quot;/&gt;
            &lt;polygon points=&quot;0 300,110 280,170 400&quot; style=&quot;fill:yellow&quot;/&gt;
            &lt;polygon points=&quot;170 400,230 280,340 300&quot; style=&quot;fill:blue&quot;/&gt;
        &lt;/svg&gt;
    &lt;/body&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=314c761e-37d0-400b-86fb-51bfa50a1366&quot;&gt;&lt;/script&gt;

&lt;br&gt;
&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/how-many-stars.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-3150332982574417108</guid><pubDate>Thu, 20 Sep 2018 12:52:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.422-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Guess the Number</title><description>&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Guess the Number 1.0!&lt;/title&gt;
        &lt;style&gt;
            body {
    
}
#title {
    display: block;
    background-color: #00AAFF;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 35px;
    border: 5px solid #0088CC;
}
#box-text {
    background-color: #00AAFF;
    width: 30%;
    height: 50px;
    position: relative;
    left: 34%;
    margin-top: 30px;
    border: 5px solid #0088CC;
    border-radius: 20px;
}
#hidden-text {
    text-align: center;
    font-size: 30px;
    margin-top: 10px;
    font-weight: 500;
}
#title2 {
    text-align: center;
}
#numbers {
    background-color: #55EEFF;
    border: 3px solid #0077BB;
    border-radius: 10px;
}
.number {
    background-color: #00AAFF;
    display: inline-block;
    padding: 15px 18px 15px 18px;
    border: 3px solid #0077BB;
    margin: 3px 2px 3px 3px;
    border-radius: 10px;
    font-size: 30px;
    font-weight: 500;
}
#restart {
    padding: 8px 10px 8px 10px;
    background-color: #00AAFF;
    border: 3px solid #0077BB;
    text-align: center;
    width: 20%;
    position: relative;
    left: 36%;
    margin-top: 10px;
    border-radius: 15px;
    font-weight: 500;
    margin-bottom: 100px;
}
#credit {
    text-align: right;
    margin-top: 100px;
}
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
&lt;H3&gt; *Featured Code submitted and Created by &lt;a href=&quot;https://www.sololearn.com/Profile/9361557/?ref=app&quot;&gt;Facu&lt;/a&gt;&lt;/h3&gt;&lt;br&gt;&lt;br&gt;
        &lt;h1 id=&quot;title&quot;&gt;
Guess the Number 1.0&lt;/h1&gt;
&lt;div id=&quot;box-text&quot;&gt;
            &lt;div id=&quot;hidden-text&quot;&gt;
?&lt;/div&gt;
&lt;/div&gt;
&lt;h2 id=&quot;title2&quot; style=&quot;color: #ffaa00;&quot;&gt;
Which number do you bet?&lt;/h2&gt;
&lt;div id=&quot;numbers&quot; style=&quot;display: block;&quot;&gt;
            &lt;div class=&quot;number&quot; onclick=&quot;bet(1)&quot;&gt;
1&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(2)&quot;&gt;
2&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(3)&quot;&gt;
3&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(4)&quot;&gt;
4&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(5)&quot;&gt;
5&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(6)&quot;&gt;
6&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(7)&quot;&gt;
7&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(8)&quot;&gt;
8&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(9)&quot;&gt;
9&lt;/div&gt;
&lt;div class=&quot;number&quot; onclick=&quot;bet(0)&quot;&gt;
0&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;restart&quot; onclick=&quot;rest()&quot; style=&quot;display: none;&quot;&gt;
Restart&lt;/div&gt;
&lt;div id=&quot;credit&quot;&gt;
&lt;a href=&quot;https://www.sololearn.com/Profile/9361557#&quot; target=&quot;_blank&quot;&gt;Facu&lt;/a&gt; 2018, all rights reserved.&lt;/div&gt;
&lt;/body&gt;
    &lt;script&gt;
        

function rest() {
    var u = document.getElementById(&quot;restart&quot;);
    u.style.display = &quot;none&quot;;
    var x = document.getElementById(&quot;title2&quot;);
    x.innerHTML = &quot;Which number do you bet?&quot;;
    x.style.color = &quot;#FFAA00&quot;
    var a = document.getElementById(&quot;hidden-text&quot;);
    a.innerHTML = &quot;?&quot;;
    var d = document.getElementById(&quot;numbers&quot;);
    d.style.display = &quot;block&quot;;
}

function bet(betnum) {
    var num = Math.floor(Math.random() * 10);
    if (num == betnum) {
        var e = document.getElementById(&quot;title2&quot;)
        e.innerHTML = &quot;You win! Try again.&quot;;
        e.style.color = &quot;#00FF00&quot;
    }
    else {
        var e = document.getElementById(&quot;title2&quot;)
        e.innerHTML = &quot;You lost... try again.&quot;;
        e.style.color = &quot;#FF0000&quot;
    }
    var l = document.getElementById(&quot;restart&quot;);
    l.style.display = &quot;block&quot;;
    var b = document.getElementById(&quot;hidden-text&quot;);
    b.innerHTML = num;
    var d = document.getElementById(&quot;numbers&quot;);
    d.style.display = &quot;none&quot;;
}
    &lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-29b66b16-7cec-4fc8-a945-0a416422347d&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=29b66b16-7cec-4fc8-a945-0a416422347d&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/guess-number.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-2307373915709236492</guid><pubDate>Thu, 20 Sep 2018 03:39:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.399-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>HTML SVG Starburst</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Extreme Star Burst&lt;/title&gt;
    &lt;/head&gt;
    &lt;body bgcolor=black&gt;
         &lt;svg height=&quot;700&quot; width=&quot;700&quot;&gt;
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:purple&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,20&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:blue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,320&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:green&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;30,-220&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:yellow&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,320&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:pink&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-40,350&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:lightblue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,220&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:orange&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,300&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-20&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-220&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ffff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-120&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#55ff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,150&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#5500aa&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,100&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#aa00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-150&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0000&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-250&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00cccc&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-80,-250&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0077&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;180,-250&quot; dur=&quot;1s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:purple&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,20&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:blue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,320&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:green&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;30,-220&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:yellow&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,320&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:pink&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-40,350&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:lightblue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,220&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:orange&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,300&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-20&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-220&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ffff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-120&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#55ff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,150&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#5500aa&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,100&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#aa00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-150&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0000&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-250&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00cccc&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-80,-250&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0077&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;180,-250&quot; dur=&quot;2s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:purple&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,20&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:blue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,320&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:green&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;30,-220&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:yellow&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,320&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:pink&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-40,350&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:lightblue&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,220&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:orange&quot;&gt;&lt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,300&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
     &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-20&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-220&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ffff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-120&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#55ff00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,150&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#5500aa&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,100&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#aa00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-150&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0000&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-250&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#00cccc&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-80,-250&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
      &lt;polygon points=&quot;130 250,160 170,190 250,110 200,210 200&quot;style=&quot;fill:#ff0077&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;180,-250&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,-300&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,-200&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,-100&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,-0&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,100&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,300&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;280,500&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,-300&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,-200&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,-100&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,-0&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,100&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,300&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-280,500&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,400&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,400&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,400&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,-400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,-400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,-400&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,-400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,-400&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,-400&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-400&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-400&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    
     
     
 
     &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,-350&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,-350&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,-350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,-350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:lightblue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,-350&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,-350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
     &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,350&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,350&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:purple&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,350&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,350&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:lightblue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,350&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,-200&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,-200&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,-200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-200&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,-200&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,-200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,200&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,200&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
     
     &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,200&quot; dur=&quot;4.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,400&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,-200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    &lt;/polygon&gt;
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,-200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot; 200,-200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
    
    &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#aaaa00&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
    
     &lt;/polygon&gt;
     
       &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,-200&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,-200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,-200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
    
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-200&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;
     &lt;/polygon&gt;
      &lt;polygon points=&quot;160 213,180 213,165 225,170 205,175 225&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-200&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;v
     &lt;/polygon&gt;
     
     
      &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,-150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,-150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,-150&quot; dur=&quot;3.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,-150&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,-150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,-150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:lightblue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,-150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,-150&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#00ffff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,-150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
     &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:pink&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-300,150&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:yellow&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-200,150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:orange&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;-100,150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:blue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;0,150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:green&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;100,150&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:#ff00ff&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;200,150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:purple&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;300,150&quot; dur=&quot;2.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:red&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;400,150&quot; dur=&quot;1.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
    
    &lt;polygon points=&quot;150 226,190 226,160 250,170 210,180 250&quot;style=&quot;fill:lightblue&quot;&gt;&lt;animateMotion from= &quot;0,0&quot; to=&quot;500,150&quot; dur=&quot;.5s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;&lt;/polygon&gt;
     
    &lt;/body&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/html-svg-starburst.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-5979113666432567369</guid><pubDate>Wed, 19 Sep 2018 20:48:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.490-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Fun with Rings</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;style&gt;
            {
       transform-style: preserve-3d;
}

.one {
       width: 300px;
    height: 300px;
    border-radius: 500px;
    border: 30px solid #ff00ff;
    animation: spin 5s infinite linear;
}

.two {
       width: 260px;
    height: 260px;
    border-radius: 500px;
    border: 20px solid #0000ff;
    animation: spin 4s infinite linear;
}

.three {
       width: 220px;
    height: 220px;
    border-radius: 500px;
    border: 20px solid #ffff00;
       animation: spin 3s infinite linear;
}

.four {
       width: 180px;
    height: 180px;
    border-radius: 500px;
    border: 30px solid #ff0000;
    animation: spin 2s infinite linear;
}

.five {
       width: 140px;
    height: 140px;
    border-radius: 500px;
    border: 25px solid #550077;
    animation: spin 4.5s infinite linear;
}

.six {
       width: 100px;
    height: 100px;
    border-radius: 500px;
    border: 20px solid #00ff77;
    animation: spin 3.5s infinite linear;
}

.seven{
       width: 60px;
    height: 60px;
    border-radius: 500px;
    border: 35px solid #Dd0073;
    animation: spin 2.5s infinite linear;
}
@keyframes spin {
  0% {transform: rotateX(0deg) rotateY(0deg);}
  25% {transform: rotateX(90deg) rotateY(90deg);}
  50%{transform: rotateX(-180deg) rotateY(180deg);}
  70%{transform: rotateX(60deg)rotateY(60deg);}
  90% {transform: rotateX(0deg) rotateY(0deg);}
}
        &lt;/style&gt;
    &lt;/head&gt;

    &lt;body bgcolor=&quot;pink&quot;&gt;
        &lt;div class=&quot;one&quot;&gt;
  &lt;div class=&quot;two&quot;&gt;
    &lt;div class=&quot;three&quot;&gt;
    &lt;div class=&quot;four&quot;&gt;
        &lt;div class=&quot;five&quot;&gt;
            &lt;div class=&quot;six&quot;&gt;
                &lt;div class=&quot;seven&quot;&gt;&lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;

&lt;div id=&quot;amzn-assoc-ad-300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/fun-with-rings.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-1988471793250400274</guid><pubDate>Wed, 19 Sep 2018 20:25:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.376-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>SVG Castle with Animation</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
     &lt;body bgcolor=&quot;lightblue&quot;&gt;
        &lt;svg width=&quot;600&quot; height=&quot;600&quot;&gt;

        &lt;rect width=&quot;80&quot; height=&quot;200&quot; x=&quot;20&quot; y=&quot;160&quot; fill=&quot;pink&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;120&quot; x=&quot;100&quot; y=&quot;130&quot; fill=&quot;purple&quot;/&gt;
        &lt;rect width=&quot;70&quot; height=&quot;120&quot; x=&quot;140&quot; y=&quot;110&quot; fill=&quot;red&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;150&quot; x=&quot;210&quot; y=&quot;100&quot; fill=&quot;purple&quot;/&gt;
        &lt;rect width=&quot;80&quot; height=&quot;150&quot; x=&quot;250&quot; y=&quot;140&quot; fill=&quot;pink&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;110&quot; x=&quot;20&quot; y=&quot;240&quot; fill=&quot;purple&quot;/&gt;
        &lt;rect width=&quot;40&quot;height=&quot;200&quot; x=&quot;90&quot; y=&quot;260&quot; fill=&quot;red&quot;/&gt;
        &lt;rect width=&quot;90&quot; height=&quot;230&quot; x=&quot;130&quot; y=&quot;230&quot; fill=&quot;blue&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;200&quot; x=&quot;220&quot; y=&quot;260&quot; fill=&quot;red&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;140&quot; x=&quot;290&quot; y=&quot;210&quot; fill=&quot;purple&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;120&quot; x=&quot;0&quot; y=&quot;350&quot; fill=&quot;blue&quot;/&gt;
        &lt;rect width=&quot;50&quot; height=&quot;170&quot; x=&quot;40&quot; y=&quot;290&quot; fill=&quot;pink&quot;/&gt;
        &lt;rect width=&quot;50&quot; height=&quot;170&quot; x=&quot;260&quot; y=&quot;290&quot; fill=&quot;pink&quot;/&gt;
        &lt;rect width=&quot;40&quot; height=&quot;120&quot; x=&quot;310&quot; y=&quot;350&quot; fill=&quot;blue&quot;/&gt;
        &lt;polygon points=&quot;20 160,60 100,100 160&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;100 130,120 70,140 130&quot; fill=&quot;silver&quot;/&gt;
        &lt;polygon points=&quot;140 110,175 20,210 110&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;210 100,230 50,250 100&quot; fill=&quot;silver&quot;/&gt;
        &lt;polygon points=&quot;250 140,290 70,330 140&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;10 240,40 190,70 240&quot; fill=&quot;silver&quot;/&gt;
        &lt;polygon points=&quot;80 260,110 210,140 260&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;210 260,240 210,270 260&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;280 230,310 160,340 230&quot; fill=&quot;silver&quot;/&gt;
        &lt;polygon points=&quot;0 350,20 310,40 350&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;310 350,330 310,350 350&quot; fill=&quot;gold&quot;/&gt;
        &lt;polygon points=&quot;40 280,50 280,50 290,60 290,60 280,70 280,70 290,80 290,80 280,90 280,90 300,40 300&quot; fill=&quot;lightblue&quot;/&gt;
        &lt;polygon points=&quot;260 280,270 280 270 290,280 290,280 280,290 280,290 290,300 290,300 280,310 280,310 300,260 300&quot; fill=&quot;lightblue&quot;/&gt;
        &lt;polygon points=&quot;130 220,140 220,140 230,150 230,150 220,160 220,160 230 170 230,170 220,180 220,180 230,190 230,190 220,200 220,200 230,210 230,210 220,220 220,220 240,130 240&quot; fill=&quot;lightblue&quot;/&gt;
        &lt;polygon points=&quot;150 460,150 400,200 400,200 460&quot; fill=&quot;gold&quot;/&gt;

         &lt;polygon points=&quot;0 10,10 20,30 20,30 0,50 20,60 20,70 25,60 30,50 30,30 50,30 30,10 30,0 40&quot;style=&quot;fill:blue&quot;&gt;
         &lt;animateMotion from= &quot;0,0&quot; to=&quot;500,0&quot; dur=&quot;4s&quot; fill=
    &quot;freeze&quot; repeatCount=&quot;indefinite&quot;&gt;  
        
        &lt;/svg&gt;
    &lt;/body&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=5ca40fe3-66d9-4c78-b751-3d1feee762fd&quot;&gt;&lt;/script&gt;

&lt;br&gt;
&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/svg-castle-with-animation.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-9122707409913584935.post-3541048591441417523</guid><pubDate>Wed, 19 Sep 2018 20:14:00 +0000</pubDate><atom:updated>2018-10-07T20:40:52.445-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><category domain="http://www.blogger.com/atom/ns#">Game</category><category domain="http://www.blogger.com/atom/ns#">Groovy Codes</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Tesseract Wobble</title><description>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Tesseract Wobble&lt;/title&gt;
        &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;style&gt;
        body {
    background-color:#000000;
    padding-top: 0px;
}
#rotationDiv {
    width: 300px;
    height: 350px;
    margin: auto;
    animation: spin 10s linear infinite;
}

@keyframes spin { 
    100% { -webkit-transform: rotate(27000deg); }
}

    &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;  &lt;p&gt;&lt;font color=&quot;purple&quot;&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot;font-size:30px&quot;&gt;Tesseract Wobble&lt;/style&gt;
    &lt;body bgcolor=&quot;DD00DD&quot;&gt;
        
    &lt;body&gt;
    &lt;p&gt;Whats your favorite Duration?&lt;br&gt;Current Duration: &lt;span id=&quot;duration_label&quot;&gt;&lt;/span&gt;&lt;/p&gt;
      &lt;div&gt;    
            &lt;button id=&quot;stop&quot;&gt;Stop&lt;/button&gt; 
            &lt;button id=&quot;play&quot;&gt;Play&lt;/button&gt;
        &lt;/div&gt;
        &lt;button id=&quot;decrease_duration&quot;&gt;Faster&lt;/button&gt; 
        &lt;button id=&quot;increase_duration&quot;&gt;Slower&lt;/button&gt;
    
&lt;div id=&quot;animated&quot;&gt;&lt;/div&gt;
 &lt;div class= &quot;img&quot;&gt;
        &lt;div id=&quot;rotationDiv&quot;&gt;
        &lt;svg height=300 width=300 viewbox=&quot;50, 50,200,200&quot;&gt;
        &lt;polygon points=&quot;140 120,180 120,180 160,140 160&quot; style:fill=&quot;#0000FF&quot;fill-opacity=&quot;0.0&quot;stroke=&quot;#FF00FF&quot;stroke-width=&quot;4&quot;/&gt;
        &lt;polygon points=&quot;140 120,180 120,160 140,120 140&quot; style:fill=&quot;#0000FF&quot; fill-opacity=&quot;0.0&quot; stroke=&quot;#FF00FF&quot;stroke-width=&quot;4&quot;/&gt;
        &lt;polygon points=&quot;120 140,160 140,160 180,120 180&quot; style:fill=&quot;#0000FF&quot; fill-opacity=&quot;0.0&quot;
        stroke=&quot;#FF00FF&quot; stroke-width=&quot;4&quot;/&gt;
        &lt;polygon points=&quot;160 140,180 120,180 160,160 180&quot; style:fill=&quot;#0000FF&quot; fill-opacity=&quot;0.0&quot; stroke=&quot;#FF00FF&quot; stroke-width=&quot;4&quot;/&gt;
        &lt;polygon points=&quot;80 110,200 110,200 220,80 220&quot; style:fill=&quot;#00FF00&quot; fill-opacity=&quot;0.0&quot; stroke=&quot;#0000FF&quot; stroke-width=&quot;4&quot;/&gt;
        &lt;polygon points=&quot;100 80,220 80,220 190,100 190&quot; style:fill=&quot;#00FF00&quot; fill-opacity=&quot;0.0&quot; stroke=&quot;#0000FF&quot; stroke-width=&quot;4&quot;/&gt;
        &lt;line x1=&quot;140&quot; y1=&quot;120&quot; x2=&quot;100&quot; y2=&quot;80&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;120&quot; y1=&quot;140&quot; x2=&quot;80&quot; y2=&quot;110&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;160&quot; y1=&quot;140&quot; x2=&quot;200&quot; y2=&quot;110&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;180&quot; y1=&quot;120&quot; x2=&quot;220&quot; y2=&quot;80&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;100&quot; y1=&quot;80&quot; x2=&quot;80&quot; y2=&quot;110&quot; style=&quot;stroke:#0000FF;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;220&quot; y1=&quot;80&quot; x2=&quot;200&quot; y2=&quot;110&quot; style=&quot;stroke:#0000FF;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;220&quot; y1=&quot;190&quot; x2=&quot;200&quot; y2=&quot;220&quot; style=&quot;stroke:#0000FF;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;100&quot; y1=&quot;190&quot; x2=&quot;80&quot; y2=&quot;220&quot; style=&quot;stroke:#0000FF;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;140&quot; y1=&quot;160&quot; x2=&quot;100&quot; y2=&quot;190&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;120&quot; y1=&quot;180&quot; x2=&quot;80&quot; y2=&quot;220&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;140&quot; y1=&quot;160&quot; x2=&quot;120&quot; y2=&quot;180&quot; style=&quot;stroke:#FF00FF;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;180&quot; y1=&quot;160&quot; x2=&quot;220&quot; y2=&quot;190&quot; style=&quot;stroke:#FF0000;stroke-width:4&quot;/&gt;
         &lt;line x1=&quot;160&quot; y1=&quot;180&quot; x2=&quot;200&quot; y2=&quot;220&quot; style=&quot;stroke:#FF0000; stroke-width:4&quot;/&gt;       &lt;line x1=&quot;120&quot; y1=&quot;140&quot; x2=&quot;120&quot; y2=&quot;180&quot; style=&quot;stroke:#FF00FF; stroke-width:4&quot;/&gt;      
         
         &lt;/div&gt;
         
    &lt;/body&gt;
    &lt;script&gt;$(document).ready(function(){

    function init(){
        $(&quot;#duration_label&quot;).html(getDuration()); 
        
        $(&quot;#increase_duration&quot;).on(&quot;click&quot;, function(){
            changeDuration(1);
        });
        
        $(&quot;#decrease_duration&quot;).on(&quot;click&quot;, function(){
            changeDuration(-1);
        });
        //Wisdom from David C. aka my Button Wiz...Thanks again!!!
        //Bobbie... here is the new code to support stop and play logic. 
        // Review how these are different from the increase / decrease button logic.
        $(&quot;#stop&quot;).on(&quot;click&quot;, function(){
            setDuration(0);
        });
        
        $(&quot;#play&quot;).on(&quot;click&quot;, function(){
            setDuration(10);
        });        
    }

    function getDuration(as_int=false) {
        
        var duration = $(&#39;#rotationDiv&#39;).css(&#39;animation-duration&#39;);
        
        return as_int ? parseInt(duration) : duration;
    }
    
    function setDuration(duration) { 
        duration = typeof duration == &quot;number&quot; ? duration + &quot;s&quot; : duration;
        
        $(&quot;#duration_label&quot;).html(duration); 
        $(&quot;#rotationDiv&quot;).css(&quot;animation-duration&quot;, duration);
    }
    
    function changeDuration(change){
        var max_duration = 15;

        var current_duration = getDuration(true);
        var new_duration = current_duration + change;

        //Only proceed if the new_duration is between 1 and max_duration.
        if(new_duration &gt;= 1 &amp;&amp; new_duration &lt;= max_duration) {
            setDuration(new_duration);
        }

    }

    init();

});&lt;/script&gt;
&lt;/html&gt;


&lt;div id=&quot;amzn-assoc-ad-300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/div&gt;&lt;script async src=&quot;//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&amp;adInstanceId=300695b7-383b-4a28-be85-25ff5010d479&quot;&gt;&lt;/script&gt;

&lt;br&gt;&lt;br&gt;

&lt;script&gt;
  (function(d){
     var js, id = &#39;ayboll-jssdk&#39;; if (d.getElementById(id)) {return;}
     js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
     js.src = &quot;//cdn.ayboll.com/js/one.js&quot;;
     d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
   }(document));
&lt;/script&gt;
&lt;script&gt;(aybollads=window.aybollads||[]).push({id:&quot;91017451-3&quot;});&lt;/script&gt;
&lt;ins id=&quot;aybollads-91017451-3&quot;&gt;&lt;/ins&gt;</description><link>https://groovycodes.blogspot.com/2018/09/tesseract-wobble.html</link><author>noreply@blogger.com (Bobbie)</author><thr:total>0</thr:total></item></channel></rss>