<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Programming by Daisy de Miami</title>
      <link>https://padlet.com/DaisyDeMiami/Programming</link>
      <description> Code Snippets</description>
      <language>en-us</language>
      <pubDate>2017-05-20 18:14:13 UTC</pubDate>
      <lastBuildDate>2026-03-15 22:54:48 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-assets.s3.amazonaws.com/icons/Diskette.png</url>
      </image>
      <item>
         <title>jQuery (CDN 3.x)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172937357</link>
         <description><![CDATA[<pre>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;<br>&lt;/script&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:18:52 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172937357</guid>
      </item>
      <item>
         <title>jQuery Mobile (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172937474</link>
         <description><![CDATA[<blockquote>Must load jQuery before loading this module.</blockquote><pre>&lt;link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css"&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"&gt;&lt;/script&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:22:07 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172937474</guid>
      </item>
      <item>
         <title>jQuery UI (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172937741</link>
         <description><![CDATA[<blockquote>Must load jQuery before loading this module.</blockquote><pre>&lt;link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css"&gt;

&lt;script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"&gt;&lt;/script&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:29:28 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172937741</guid>
      </item>
      <item>
         <title>Web Font Loader (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172937883</link>
         <description><![CDATA[<pre>&lt;script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"&gt;&lt;/script&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:33:22 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172937883</guid>
      </item>
      <item>
         <title>Bootstrap 3 CSS (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172938057</link>
         <description><![CDATA[<pre>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:37:27 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172938057</guid>
      </item>
      <item>
         <title>Bootstrap 3 JavaScript (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172938158</link>
         <description><![CDATA[<blockquote>Must load jQuery before loading this module.</blockquote><pre>&lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"&gt;&lt;/script&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:40:05 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172938158</guid>
      </item>
      <item>
         <title>Bootstrap 4 CSS (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172938444</link>
         <description><![CDATA[<blockquote>Bootstrap 4&nbsp; coming soon.</blockquote>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:48:58 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172938444</guid>
      </item>
      <item>
         <title>Bootstrap 4 JavaScript (CDN)</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172938484</link>
         <description><![CDATA[<blockquote>Bootstrap 4&nbsp; coming soon.</blockquote>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:50:33 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172938484</guid>
      </item>
      <item>
         <title>Fluid Grid with Sticky Footer</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172938528</link>
         <description><![CDATA[<blockquote>Fluid Grid layout with a sticky footer and columns can have scroll-overflow. Demo: <a href="http://cssdesk.com/qr5Hr">http://cssdesk.com/qr5Hr</a></blockquote><pre>&lt;!DOCTYPE html&gt;
    &lt;html&gt;
    &lt;head&gt;
    &lt;link href="home.css" rel="stylesheet" type="text/css"&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;div id="chat_wrapper"&gt;
    &lt;div id="chat"&gt;&lt;/div&gt;
    &lt;div id="users"&gt;&lt;/div&gt;
    &lt;div class="clear"&gt;&lt;/div&gt;
    &lt;div id="message"&gt;&lt;/div&gt;
    &lt;/div&gt;&lt;!-- Ends Wrapper --&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    &lt;!-- ************** --&gt;
    /* CSS */
    * {
    margin:0;
    padding:0;
    }
    html, body {
    height:100%; /* Do not remove:   Gives layout 100% height */
    }
    #chat_wrapper {
    position:relative;
    min-height:100%;
    height:100%; /* Do not remove: Needs to be here so the divs inside wont collaspe */
    width: 100%; /* You can resize the width */
    margin:0 auto;
    background:#CCFF99; /* Please remove later */
    }
    #chat {
    float:left;
    overflow:auto;
    min-height: 90%;
    width: 70%;
    background: #003300; /* Please remove later */
    margin-bottom: -10%; /* This makes the sticky footer visible. */
    }
    #users {
    float:right;
    overflow:auto;
    min-height: 90%;
    width: 30%;
    background:#00CC66; /* Please remove later */
    }
    #message {
    min-height: 10%;
    width: 100%;
    background:#006699;/* Please remove later */
    position: absolute;
    }
    .clear {
    clear:both;
    }</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-20 18:52:25 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172938528</guid>
      </item>
      <item>
         <title>Simple A-Tag Image</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172950462</link>
         <description><![CDATA[<blockquote>Turns an a-tag into an image.</blockquote><pre>&lt;!-- HTML --&gt;
   &lt;a href="www.YOUR-URL.com" class="atagimg"&gt;
   &lt;/a&gt;

&lt;!-- ************** --&gt;

/* CSS */    
   a.atagimg {
      background:
      url(img_url.png) no-repeat;
       width: 167px;
       height: 126px;
       display: block;
       border: 0;
   }</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 01:09:52 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172950462</guid>
      </item>
      <item>
         <title>Hides and &#39;Materializes&#39; Object with a Fade-In</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172950557</link>
         <description><![CDATA[<blockquote>Hides object with the materialize ID and makes it visible again while giving it a smooth fade-in. </blockquote><pre>jQuery(document).ready(function($){<br><br> $('#materialize').hide().css({visibility: 'visible'}).fadeIn(3000);<br><br>});</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 01:14:39 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172950557</guid>
      </item>
      <item>
         <title>Testing jQuery and Make it Non-Conflicting</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172950620</link>
         <description><![CDATA[<blockquote>When you want to test to see if jQuery is working, plus two different examples on how to write jQuery so that it will not conflict with other JavaScript-based libraries. Then an example of the shorthand way of writing jQuery (which I would not get into the habit of. It's not worth the headaches you'll run into when working with legacy apps or a CMS).</blockquote><pre>&lt;!-- Example 1: 
Non-Conflicting jQuery --&gt;
jQuery(document).ready(function(){ 

&lt;!-- Option 1: Add the jqtest ID in your html to the link/a-tag of your choice and then click it for an alert. --&gt; 
   jQuery("#jqtest").click( function() {
      alert("jQuery is working!" );    
   }); 
&lt;!-- Option 2: Send a message to the console but the browser must support 
console.log(). --&gt;    
   console.log("jQuery is working!");

});

&lt;!-- ************** --&gt;

&lt;!-- Example 2: Non-Conflicting jQuery --&gt;
jQuery(document).ready(function($) {  
  
&lt;!-- Option 1: Add the jqtest ID in your html to the link/a-tag of your choice and then click it for an alert. --&gt;
    $("#jqtest").click( function() {
         alert("jQuery is working!");
    });
 
&lt;!-- Option 2: Send a message to the console but the browser must support console.log(). --&gt;
    console.log("jQuery is working!");  
 
});

&lt;!-- ************** --&gt;

&lt;!--This is the shorthand way to write jQuery although it might conflict with other libraries.This is just to show the difference. --&gt;
$(document).ready(function(){

   $("#jqtest").click( function() {
      alert("jQuery might now conflict with other libraries!");
   });

});</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 01:18:40 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172950620</guid>
      </item>
      <item>
         <title>CDNs</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172951430</link>
         <description><![CDATA[<div>Hosted Libraries. |&nbsp;Google Developers</div>]]></description>
         <enclosure url="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=2&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwigyquk8P_TAhUT8GMKHdjvB5gQFggyMAE&amp;url=https%3A%2F%2Fdevelopers.google.com%2Fspeed%2Flibraries%2F&amp;usg=AFQjCNFj3-E-hAIvSldAohkodnHi-Awp3Q&amp;sig2=BH0dT6CRIFXggX0mUSLVHA" />
         <pubDate>2017-05-21 01:56:08 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172951430</guid>
      </item>
      <item>
         <title>jQuery Strict Mode</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172951520</link>
         <description><![CDATA[<blockquote>Simple line of code for enabling strict mode in JavaScript/jQuery.</blockquote><pre>jQuery(document).ready(function($){
   "use strict";

   &lt;!-- insert desired code here. --&gt;

});</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 01:59:55 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172951520</guid>
      </item>
      <item>
         <title>Figuring Out NTH Child or Of Type</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172951894</link>
         <description><![CDATA[<blockquote>Quick way of figuring out the numbers that go into the nth-child or nth-of type CSS formula.<br><br>ul li:nth-child(Yn+X) {color: #000;} X = the number that is targeted when the code first runs. Ex: you want the 4th li to be the first to have this code (X = 4). Y = count the number of li after, X, including the next one to be affected. Ex: you want the 7th li to the next affected, that's a difference of 3 (Y = 3). This also means that after 7, the sequence will be 10, 13, 16, 19, 21, etc.</blockquote><pre>/* CSS */
   ul li:nth-child(3n+4){
      color: #F00; 
      /* Affects li 4, 7, 10, 13, 16, 19, 21, etc. */
   }</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 02:15:44 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172951894</guid>
      </item>
      <item>
         <title>HTML5 Embed Code for SWF Files</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172952088</link>
         <description><![CDATA[<blockquote>A simple code for embedding a flash SWF file to a page with custom width and height, using HTML5.</blockquote><pre>&lt;!-- Replace "FILE" with desired filename. --&gt;
&lt;embed src="swfs/FILE.swf" width="800px" height="600px"/&gt;</pre><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 02:23:58 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172952088</guid>
      </item>
      <item>
         <title>Ajax Request and Handler using jQuery &amp; JSfiddle</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172952504</link>
         <description><![CDATA[<blockquote>This is how to make an Ajax request using jQuery. This code is meant to be tested in <a href="https://jsfiddle.net/user/DaisyFig">JSfiddle</a>, however it can easily be adapted for anyone's needs.<br>Code does:<ol><li>Makes an AJAX request &amp; tell it where to grab the data from. </li><li>If request has failed, a message will displayed. </li><li>If the request was successful, gets the data and then it displays the filtered data.</li></ol></blockquote><pre>jQuery(document).ready(function($){
   var aRequest;</pre><div><br></div><pre>&lt;!-- Makes an AJAX request. --&gt;
   aRequest = $.ajax({
      type: "POST",
      url: "/echo/html/", &lt;!-- Change this to desired path. This is for testing ajax in JSfiddle. --&gt;&lt;!-- This data section is only used for testing. remove once url has been changed. --&gt;
      data: {
      html: "&lt;div id='dataId'&gt;&lt;p&gt;Test data&lt;/p&gt;&lt;/div&gt;"
      }
   });


&lt;!-- Good place to tell the user to try again or you got some debugging to do. --&gt;
   aRequest.fail(function() {
      console.log("A request has failed.");
      alert("A request has failed.");
    });


&lt;!-- Handles all the data coming in. --&gt;
 aRequest.done(function(data) {

&lt;!-- Finds certain id plus what it contains as plain text. --&gt;
      var pieceOfData = $(data).filter("#dataId").text();

&lt;!-- Displays the filtered data back to you. --&gt;
      console.log( "Here's the data you requested: " + pieceOfData);
      alert( "Here's the data you requested: " + pieceOfData);

   });


});</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 02:40:33 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172952504</guid>
      </item>
      <item>
         <title>Pixel to EMs Guide</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172985898</link>
         <description><![CDATA[<blockquote>By default the body font-size is 16px and this code makes converting pixels to ems easier. This may conflict with Bootstrap's CSS library.</blockquote><pre>/* CSS */
   body {
      font-size: 62.5%; 
      /* Sets base font-size to 10px */
   }

   /* By making base font-size 10px, it makes calculating pixels to ems easier.

   Example:
   10px = 1em
   12px = 1.2em
   14px = 1.4em
   16px = 1.6em
   18px = 1.8em
   20px = 2em
   24px = 2.4em
   26px = 2.6em
   28px = 2.8em
   36px = 3.6em
   48px = 4.8em
   72px = 7.2em
   100px = 10em
   150px = 15em
   500px = 50em
   1,000px = 100em
   */</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 15:06:28 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172985898</guid>
      </item>
      <item>
         <title>Sticky Footer</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/172986854</link>
         <description><![CDATA[<pre>&lt;!-- HTML --&gt;
   &lt;div id="content"&gt;
   &lt;/div&gt;&lt;!-- end content --&gt;
   &lt;footer id="sticky"&gt;
   &lt;/footer&gt;&lt;!-- end footer --&gt;

&lt;!-- ************** --&gt;

/* CSS */
   #sticky {
      height: 60px; 
      /* Change the height as needed. Percents work as well but then make sure to add a fixed min-height size. */
      width: 100%;
      position: fixed;
      bottom: 0;
      background: #F00; 
      /* emove background color later. */
   }</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 15:18:27 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/172986854</guid>
      </item>
      <item>
         <title>jQuery hover sprite change</title>
         <author>DaisyDeMiami</author>
         <link>https://padlet.com/DaisyDeMiami/Programming/wish/173019824</link>
         <description><![CDATA[<blockquote>Demo</blockquote><pre>&lt;!-- HTML --&gt; 
&lt;!-- The Class is set to the default sprite in case Javascript is disabled. --&gt;
&lt;a id="twitterBird" class="twitterBird1"&gt;&lt;/a&gt;

&lt;!-- ************** --&gt;

/* CSS */
   #twitterBird {
      display: block;
      width: 150px; /* Change as needed. */
      height: 150px; /* Change as needed. */
   }
   .twitterBird1 {
      /* Default Sprite. */
      background: url('http://minimalmonkey.com/lab/css3-animations/twitter-bird-sprite.png') 0px 0px;
   }
   .twitterBird2 {
      background: url('http://minimalmonkey.com/lab/css3-animations/twitter-bird-sprite.png') -150px 0px;
   }
  .twitterBird3 {
      background: url('http://minimalmonkey.com/lab/css3-animations/twitter-bird-sprite.png') -300px 0px;
   }
   .twitterBird4 {
      background: url('http://minimalmonkey.com/lab/css3-animations/twitter-bird-sprite.png') -450px 0px;
   }

&lt;!-- ************** --&gt;

&lt;!-- JavaScript/jQuery --&gt; 
jQuery(document).ready(function($) {

   $('#twitterBird').hover(
      function() {
&lt;!-- Sets to a transition sprite. --&gt;    $(this).addClass('twitterBird2').removeClass('twitterBird1');

      setTimeout(function() 
&lt;!-- In half a second, changes transition sprite to desired sprite and stays there.--&gt;{$('#twitterBird').addClass('twitterBird3').removeClass('twitterBird2');
        }, 500); 
&lt;!-- 500 = Half a 
second. --&gt;
      }, function() {
&lt;!-- Sets to desired sprite when mouse leaves. --&gt;   $(this).addClass('twitterBird4').removeClass('twitterBird3');

      setTimeout(function()
&lt;!-- In half a second, changes transition sprite to desired sprite and stays there --&gt; {$('#twitterBird').addClass('twitterBird1').removeClass('twitterBird4');
      }, 500); 
&lt;!-- 500 = Half a 
second. --&gt;

  });

});</pre>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-21 22:48:00 UTC</pubDate>
         <guid>https://padlet.com/DaisyDeMiami/Programming/wish/173019824</guid>
      </item>
   </channel>
</rss>
