<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>JQUERY EVENTS by BCS</title>
      <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez</link>
      <description>Events in jquery</description>
      <language>en-us</language>
      <pubDate>2017-06-01 15:30:14 UTC</pubDate>
      <lastBuildDate>2017-06-06 09:07:52 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Luke Exercise 1</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174947790</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;<br>&lt;html lang="en"&gt;<br><br>&lt;head&gt;<br>    &lt;meta charset="UTF-8"&gt;<br>    &lt;title&gt;Document&lt;/title&gt;<br>    &lt;script src="https://code.jquery.com/jquery-3.1.0.js"&gt;&lt;/script&gt;<br>    &lt;link rel="stylesheet" type="text/css" href="Exercise3.css"&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br>    &lt;div&gt;<br>        Name:&lt;br&gt;<br>        &lt;input type="text" name="firstname"&gt;<br>        &lt;button type="button"&gt;Submit&lt;/button&gt;<br>    &lt;/div&gt;<br>    &lt;table id="nameTable"&gt;<br>        &lt;TR&gt;<br>            &lt;TD class=capital&gt;Jason&lt;/TD&gt;<br>            &lt;TD class=capital&gt;Bourne&lt;/TD&gt;<br>        &lt;/TR&gt;<br>        &lt;TR&gt;<br>            &lt;TD class=capital&gt;Michael&lt;/TD&gt;<br>            &lt;TD class=capital&gt; Jordan&lt;/TD&gt;<br>        &lt;/TR&gt;<br>        &lt;TR&gt;<br>            &lt;TD class=capital&gt;Peter&lt;/TD&gt;<br>            &lt;TD class=capital&gt;Parker&lt;/TD&gt;<br>        &lt;/TR&gt;<br>    &lt;/table&gt;<br><br><br><br><br>    &lt;script&gt;<br>        $("button").click(function() {<br>            var splitting = $('input').val().split(' ');<br>            var firstName = splitting.shift();<br>            var secondName = splitting.join();<br>            var initial = secondName.substring(0, 1) + ".";<br>                        <br>            $("#nameTable").append("&lt;tr&gt;&lt;td&gt;" + firstName + "&lt;/td&gt;&lt;td&gt;" + initial + "&lt;tr&gt;").addClass("capital")<br>            <br>            $("tr").children().last().mouseenter(function(event){<br>                $(event.target).addClass("capital").text(secondName)<br>                console.log(event.target)<br>            })<br>            <br>            $("tr").children().last().mouseout(function(event){<br>                $(event.target).addClass("capital").text(initial)<br>            })<br><br><br>        });  <br>    &lt;/script&gt;<br><br>    <br><br>&lt;/body&gt;<br><br>&lt;/html&gt;<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 09:25:18 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174947790</guid>
      </item>
      <item>
         <title>Gosia Ex.2</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174977525</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;<br><br><br><br>&lt;html&gt;<br><br><br><br>&lt;head&gt;<br><br><br><br>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"&gt;&lt;/script&gt;<br><br><br><br>	&lt;title&gt;&lt;/title&gt;<br><br><br><br>&lt;/head&gt;<br><br><br><br>&lt;body&gt;<br><br><br><br>&lt;div&gt;<br><br>&lt;input id='x' type="text" name="name"&gt;&lt;button id='a'&gt;Submit&lt;/button&gt;<br><br>&lt;table id='c'&gt;<br><br>&lt;/table&gt;<br><br>&lt;/div&gt;<br><br><br><br>&lt;script type="text/javascript"&gt;<br><br><br><br>$('#a').on("click", function(){<br><br>	var name = $('#x').val()&nbsp;<br><br>	<br><br>var z= name.split(" ")<br><br>var d= z[1].slice(0,1)+"."<br><br><br><br>$('#c').append('&lt;tr&gt;&lt;td&gt;'+z[0]+'&lt;/td&gt;&lt;td&gt;'+d+'&lt;/td&gt;&lt;/tr&gt;')<br><br><br><br><br><br>$( "tr" ).children().last().mouseenter(<br><br>	function() {<br><br>	$(event.target).text(z[1])}<br><br>	)<br><br>$( "tr" ).children().last().mouseleave(<br><br>	function() {<br><br>	$(event.target).text((z[1].slice(0,1)+"."))}<br><br>	)<br><br><br><br>})<br><br><br>&lt;/script&gt;&nbsp;<br><br><br><br>&lt;/body&gt;<br><br><br><br>&lt;/html&gt;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 13:36:33 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174977525</guid>
      </item>
      <item>
         <title>Gosia Ex 1.</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174977635</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;<br><br><br><br>&lt;html&gt;<br><br><br><br>&lt;head&gt;<br><br><br><br>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"&gt;&lt;/script&gt;<br><br><br><br>	&lt;title&gt;&lt;/title&gt;<br><br><br><br>&lt;/head&gt;<br><br><br><br>&lt;body&gt;<br><br><br><br>&lt;div&gt;<br><br>&lt;input id='x' type="text" name="name"&gt;&lt;button id='a'&gt;Submit&lt;/button&gt;<br><br>&lt;table id='c'&gt;<br><br>&lt;tr&gt;<br><br>&lt;td&gt;Jason&lt;/td&gt;<br><br>&lt;td&gt;Bourne&lt;/td&gt;<br><br>&lt;/tr&gt;<br><br>&lt;tr&gt;<br><br>&lt;td&gt;Michael&lt;/td&gt;<br><br>&lt;td&gt;Jordan&lt;/td&gt;<br><br>&lt;/tr&gt;<br><br>&lt;tr&gt;<br><br>&lt;td&gt;Peter&lt;/td&gt;<br><br>&lt;td&gt;Parker&lt;/td&gt;<br><br>&lt;tr&gt;<br><br>&lt;/table&gt;<br><br>&lt;/div&gt;<br><br><br><br>&lt;script type="text/javascript"&gt;<br><br><br><br>$('#a').on("click", function(){<br><br>	var name = $('#x').val()&nbsp;<br><br>	<br><br>var z= name.split(" ")&nbsp;<br><br><br><br>$('#c').append('&lt;tr&gt;&lt;td&gt;'+z[0]+'&lt;/td&gt;&lt;td&gt;'+z[1]+'&lt;/td&gt;&lt;/tr&gt;')<br><br><br><br>})<br>&lt;/script&gt;&nbsp;<br><br><br><br>&lt;/body&gt;<br><br><br><br>&lt;/html&gt;<br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 13:37:14 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174977635</guid>
      </item>
      <item>
         <title>Luke Ex 2</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174978106</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;<br>&lt;html lang="en"&gt;<br><br>&lt;head&gt;<br>&nbsp; &nbsp; &lt;meta charset="UTF-8"&gt;<br>&nbsp; &nbsp; &lt;title&gt;Document&lt;/title&gt;<br>&nbsp; &nbsp; &lt;script src="https://code.jquery.com/jquery-3.1.0.js"&gt;&lt;/script&gt;<br><br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br>&nbsp; &nbsp; &lt;form&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; Name:&lt;br&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" name="firstname"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button type="button"&gt;Submit&lt;/button&gt;<br>&nbsp; &nbsp; &lt;/form&gt;<br>&nbsp; &nbsp; &lt;table id="nameTable"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;TR&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Jason&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Bourne&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/TR&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;TR&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Michael&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Jordan&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/TR&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;TR&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Peter&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TD&gt;Parker&lt;/TD&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/TR&gt;<br>&nbsp; &nbsp; &lt;/table&gt;<br><br><br><br><br>&nbsp; &nbsp; &lt;script&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; $("button").click(function() {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var splitting = $('input').val().split(' ');<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var firstName = splitting.shift();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var secondName = splitting.join();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var initial = secondName.substring(0, 1) + ".";<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var lastC = $("table tr").children.last<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $("#nameTable").append("&lt;tr&gt;&lt;td&gt;" + firstName + "&lt;/td&gt;&lt;td&gt;" + initial + "&lt;tr&gt;")<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $("tr").children().last().mouseenter(function(event){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(event.target).text(secondName)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.log(event.target)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $("tr").children().last().mouseout(function(event){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(event.target).text(initial)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp; }); &nbsp;<br>&nbsp; &nbsp; &lt;/script&gt;<br><br>&nbsp; &nbsp;&nbsp;<br><br>&lt;/body&gt;<br><br>&lt;/html&gt;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 13:40:03 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174978106</guid>
      </item>
      <item>
         <title>Luke Ex 3 CSS</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174980815</link>
         <description><![CDATA[<div>.capital{<br>    text-transform:capitalize;<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 13:57:01 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174980815</guid>
      </item>
      <item>
         <title>Gosia Ex 3</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174982392</link>
         <description><![CDATA[<div><br>&lt;!DOCTYPE html&gt;<br><br>&lt;html&gt;<br><br>&lt;head&gt;<br><br>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"&gt;&lt;/script&gt;<br><br>	&lt;title&gt;&lt;/title&gt;<br><br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br>&lt;div&gt;<br>&lt;input id='x' type="text" name="name"&gt;&lt;button id='a'&gt;Submit&lt;/button&gt;<br>&lt;table id='c'&gt;<br>&lt;/table&gt;<br>&lt;/div&gt;<br><br>&lt;script type="text/javascript"&gt;<br><br>$('#a').on("click", function(){<br>	var name = $('#x').val() <br>	<br>var z= name.split(" ")<br>var d= z[1].slice(0,1)+"."<br><br>$('#c').append('&lt;tr&gt;&lt;td&gt;'+(z[0].substr(0,1).toUpperCase()+z[0].substr(1))+'&lt;/td&gt;&lt;td&gt;'+(d.substr(0,1).toUpperCase()+d.substr(1))+'&lt;/td&gt;&lt;/tr&gt;')<br><br><br>$( "tr" ).children().last().mouseenter(<br>	function() {<br>	$(event.target).text(z[1].substr(0,1).toUpperCase()+z[1].substr(1))}<br>	)<br>$( "tr" ).children().last().mouseleave(<br>	function() {<br>	$(event.target).text(d.substr(0,1).toUpperCase()+d.substr(1))}<br>	)<br><br>})<br><br>&lt;/script&gt; <br><br>&lt;/body&gt;<br><br>&lt;/html&gt;<br><br><br><br><br><br><br><br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-02 14:07:34 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/174982392</guid>
      </item>
      <item>
         <title>Luke Home Ex 1 CSS</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/175346494</link>
         <description><![CDATA[<div>.capital{<br>&nbsp; &nbsp; text-transform:capitalize;<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-06 08:55:18 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qqv6hu790zez/wish/175346494</guid>
      </item>
   </channel>
</rss>
