From 89cb3257d0b3c814355f52c48018ab1054f02392 Mon Sep 17 00:00:00 2001 From: gustavo hansen Date: Fri, 8 Mar 2013 12:23:37 -0300 Subject: [PATCH] added steps --- Images/letsCode.jpg | Bin 0 -> 7386 bytes Styles/Master.css | 4 ++ Views/LoggedIn.html | 73 ++++++++++++++++++++++++++++++++++++ Views/Tutorial.html | 88 ++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 157 insertions(+), 8 deletions(-) create mode 100644 Images/letsCode.jpg create mode 100644 Views/LoggedIn.html diff --git a/Images/letsCode.jpg b/Images/letsCode.jpg new file mode 100644 index 0000000000000000000000000000000000000000..14d33cead63568e3bca8c87eda9fed2cf6dc3b3f GIT binary patch literal 7386 zcmbt&2QXY=+x7|}M2JqbM2WUUuWKdILZbH`gjJ%q1WOPRL9kl%6s)yMbRmoAf)#d` z=)|(D7Tv0!_x;Mu`_1>x{4@VKbLKqf+~;|&Ywr7=>$&D!{Jxk6+|0RUu| zC*WcV@ESl(Ny*H3laZN`iIs_&iJg^^iH((=n}wN`nT?r^ot=e^jh*u@4;#l_9%j}% z_ipnGiHHM%>^#zPlA>~V#egDY)HF17v~;)V>2JyL^9smGONvX$$%z2vfRd8Z;-WyH zyqv5oP*f5q4ips=mjnWVlA=HnNoi?W5umJyED(6n4q&(j=pZ8}C*uQLVIU)CAiL-S za9$F;LjDh`|8rcWBqOJ|LUkE@auaan3K==s)hkrgbQDyVUyxk^kTXy)-nmN2#3%K@ z$dQVfU)s+@M4(L=7}QLm+Ta zgDDw&S0ULgAwfn;>U)@m56=i2tE&?Qn(t2!AB5p;Gpp<6jqTxJm&Svre+Nqw>Cs|& z4Al;nqx@8D<4uOoBxHd5=}+d{7UOm;4ul-Ml#_ypfAKLhpGf6Uo8N-YCHvN+-=%JE z2JBk?wN1sVzHvipucbBYR(0r#rn4-T?6tJ?+X;2B{PsGo%^ympIh{U=OkK~t0EDxh z`ks57cO`QB7ZP{}eJ1i|RLaIm)fwpsYI5Hb7*z#qR1P9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z=ef&$WWx##?@Qo6{aRc;^fR&rj+4OkUgLg79Rg9!#=4 zmTKop+bpne5MNlTueW)8atCu99j=EUJG|l2z{Sr@{k8IOR9(PUK@^NTk9a54PYv86 z*HDqL>Y`^QsIQ&cULXg(oA5R?==w)nFWGl`F}DkO=I;~ulLH4U{9Ad-7p||*K;TRX zI@&K0Unn9eL-!j9AS06`yk9?I0R4R2E3CqojNauvHCG12i5~R+TCTE}-7M_D=4$db zd?YtI7J@k>d-wDd2b4)xLhDmP(-_x*js;U0cJ~fc17|-b6k{=Qvq2AfCV!XOuTnlH ztB({ZcmPw)A}ap!u%p9!S<NdUHS6D8cI--Qx(J#~=(H%j^OEA6l86~5Bvof^AW8GXVMJ;CV)<-U zSWO?8+^3z2LS0h+8Ce?MYi{ZLj9Z@frPb5(DT0&^T}D@cn%2o8yt$ zxlAq5>^!HBF6u}xQs>NsL9)5+iYPSvMO8qE`{n<3H8Y5U*2&prh|={=Py_|$jBp4Y zQ0Qn|sJ{R}kmswGD|4^S_FrpgBmdq>wr@H^qjAtv=!0Wx?Y+4++&<rCH-cra}mfj_}aC%apv0Kwl3HPWG;(HKjzNy@nj>?F49s%Lz&`3;dHCu z+JeGg{frC1rHeMt))+b42G^XYGDtoC_@ZLGRp0{Pd0KYta6aLH3Ew;J-0ONWy29k# z=6|Z18otrEZJvBCcL6BJ5dQEvC2J&boWyU7b61>9LVb=o%-?2z84+BPKppYk-_YK^ zn{}dn0bnvH?0RCflHzncW_dh59~e1s0eJEguQ4P}?Kk5zpU`V|eg}DC7I~ti{q~(T z!=K~fdrm{x3jkTwO4Xk3poZ}XY_Zwz0#F8i75Vq9ZCm7w8XU>MTo?YR+D`52y8ZFJ V`F*J6+w>)*a*nF)3;v6V{{X!86R-dP literal 0 HcmV?d00001 diff --git a/Styles/Master.css b/Styles/Master.css index d4dee21..d6ad29f 100644 --- a/Styles/Master.css +++ b/Styles/Master.css @@ -57,6 +57,10 @@ a.gitHubIcon:hover { margin-top: 10px; } +li a:hover { + background: #f4907f; +} + footer { position: absolute; bottom: 0px; diff --git a/Views/LoggedIn.html b/Views/LoggedIn.html new file mode 100644 index 0000000..3bfebe0 --- /dev/null +++ b/Views/LoggedIn.html @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + diff --git a/Views/Tutorial.html b/Views/Tutorial.html index f54c963..f194ea1 100644 --- a/Views/Tutorial.html +++ b/Views/Tutorial.html @@ -44,12 +44,30 @@

-

- Code Time

- +

+ Let's Code!!!

+ #
+
+

+ Start:

+
    +
  • We need to create a html document with the default tags
  • +
+
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8" />
+<title></title>
+    </head>
+    <body></body>
+</html>
+                
+
+

@@ -88,12 +106,16 @@

Step 3:

    -
    +
  • We need the jquery library.
  • +
+
+<script src="../Scripts/jquery-1.9.0.js" type="text/javascript">
+    </script>
+
  • We have to asociate the anchor click event with the audio element.
  • We have to add some javascript code.
  • When we click on an anchor link the song should be loaded.
  • -
  • We need the jquery library.
  • -
+
@@ -131,9 +153,59 @@

Step 4: Create the function play

myMusicPlayer[0].src = link.attr('href'); myMusicPlayer[0].load(); myMusicPlayer[0].play(); -} - +} +
+ +
+

Step 5:

+

    +
  • Now we have to add a function for reproduce the next song when the current finish.
  • +
  • For this, we will add a javascript eventlistener to the audio element when executes the 'ended' function.
  • +
  • We search the next item in the playlist, and then we call the play function.
  • +
+
+ +
+

Step 5: Adding EventListener

+
+var tracks = myPlayList.find('li a');
+var playListLength = tracks.length;
+myMusicPlayer[0].addEventListener('ended', function()
+{
+    var link; playListIndex++;
+    if (playListIndex >= playListLength){ playListIndex = 0;
+        link = myPlayList.find('a')[0]; }
+    else { link = myPlayList.find('a')[playListIndex];}
+    play($(link));});
+
+
+ + +
+

Step 6:Adding drag and drop

+

    +
  • We will add the ability to drag a song to the desktop.
  • +
  • For this we need to add the property draggable to the anchor element and add a class to identify them
  • +
+
$('a').addClass('dragout');
+$('a').attr('draggable', 'true'); 
+
  • Now we have to create a funtion in javascript to handler the events that the draggable property allows to do in the anchor element.
+ +
+

Step 6:Adding drag and drop

+
+(function() {
+    var files = document.querySelectorAll('a.dragout');
+    for (var i = 0, file; file = files[i]; ++i) {
+    file.addEventListener('dragstart', function(e) {
+    var strippedUrl = document.location.toString().split("Views");
+    var href = this.getAttribute('href');
+    var dataDownloadUrl = 'audio/mpeg:' + href.substring(9, href.length).replace(' ', '%20') + ':' + strippedUrl[0].toString() + href.substring(3, href.length).replace('\\','/').replace(' ', '%20');
+    e.dataTransfer.setData('DownloadURL', dataDownloadUrl);
+        }, false);}})();
+
+