<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Reference Sheet Code Snippets by Joshua Gold</title>
      <link>https://padlet.com/jgold4/vbqt0y683fmd</link>
      <description>Made with serendipity</description>
      <language>en-us</language>
      <pubDate>2016-12-16 00:48:51 UTC</pubDate>
      <lastBuildDate>2016-12-16 12:37:17 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>JavaScript code: You need one of these for each formula.  It goes between the  tags.  Remember to change the variables as needed!</title>
         <author>jgold4</author>
         <link>https://padlet.com/jgold4/vbqt0y683fmd/wish/143974015</link>
         <description><![CDATA[<div>function squarePerimeter() {<br>    //This is the one input convereted to a number<br>    var len = parseFloat(document.getElementById("length").value);<br>    //calculate the volume and round to 2 decimal places.<br>    var perimeter = Math.round(len * 4);<br><br>    //could use this below to have a pop up message<br>    //window.alert(volume + " " + unt + "^3",10,50);<br><br>    //this is code for printing in a canvas on the webpage<br>    var canvas = document.getElementById("myCanvas");<br>    var ctx = canvas.getContext("2d");<br>    //clears the canvas<br>    ctx.clearRect(0, 0, myCanvas.width, myCanvas.height);<br>  ctx.font = "18px verdana";<br>    ctx.fillText(perimeter + " units", 1, 25);<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-12-16 00:49:48 UTC</pubDate>
         <guid>https://padlet.com/jgold4/vbqt0y683fmd/wish/143974015</guid>
      </item>
      <item>
         <title>HTML Form: This goes down in the  Section.  Remember to change the a id=&quot;&quot;, the formula and the variables.  </title>
         <author>jgold4</author>
         <link>https://padlet.com/jgold4/vbqt0y683fmd/wish/143974102</link>
         <description><![CDATA[<div>&lt;div&gt;<br>      &lt;a id="rectangle_perimeter"&gt;Rectangle......... P = 2l + 2w<br>        &lt;p&gt;Enter the length and width:&lt;/p&gt;<br>    Length:<br>    &lt;input name="length" type="text" id="rect_p_length"&gt;<br>    &lt;br&gt;<br>        Width:<br>    &lt;input name="width" type="text" id="rect_p_width"&gt;<br>        &lt;br&gt;<br><br>        &lt;button onclick="rectanglePerimeter()"&gt;Calculate Perimeter&lt;/button&gt;<br>        &lt;br&gt;<br>        &lt;canvas id="rect_p_canvas" width="100" height="30" style="border:1px solid #d3d3d3;"&gt;Your browser does not support the canvas element.<br>        &lt;/canvas&gt;<br>      &lt;/a&gt;<br>      &lt;p&gt;&lt;a href="#top"&gt;Back to Top&lt;/a&gt;&lt;/p&gt;<br>    &lt;/div&gt;</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-12-16 00:51:46 UTC</pubDate>
         <guid>https://padlet.com/jgold4/vbqt0y683fmd/wish/143974102</guid>
      </item>
   </channel>
</rss>
