AliMD / 1Tuts

:+1: Web Design Technology Tutorials
http://ali.md/tuts
62 stars 41 forks source link

C14 W3 S11 #649

Closed AliMD closed 10 years ago

AliMD commented 10 years ago

jQuery and Zepto

  1. CSS Demo: http://jsbin.com/ginub/1/edit
  2. Remove all size: http://jsbin.com/ginub/2/edit
  3. Calc dynamic width: http://jsbin.com/ginub/3/edit
  4. Dynamic width + events: http://jsbin.com/ginub/4/edit
  5. Get slide width: http://jsbin.com/ginub/5/edit

    HomeWork

Complete events: http://jsbin.com/ginub/6/edit Our design pattern: http://jsbin.com/ginub/7/edit

Do it yourself

hbehkamal commented 10 years ago

Classwork : http://jsbin.com/qipis/1/edit

akbarzadeamin commented 10 years ago

screen shot 2014-02-16 at 8 30 34 pm الآن این می خواد چی بگه؟ کسی می شه فارسی توضیح بده:

akbarzadeamin commented 10 years ago

agha man hichi az in java script 101 az ghesmate Conditional Code be bad ro nemifahmam. avalan inke englishe dovoman khodaeesh 90% nemifahmam. un 10% ham ke mifahmam chizaeeye ke too kelas gofte shode. chi kar konam. help me :unamused:

akbarzadeamin commented 10 years ago

این چی می خواد بگه: screen shot 2014-02-17 at 4 34 31 pm

akbarzadeamin commented 10 years ago

@hoseinBL : شما که ماشاالله این قدر فعال شدی که داری تند و تند همه ی ایشو هارو باز و بسته می کنی خوب یه جوابی هم به این کامنت های من بده. بدبخت شدم. دارم عقب می افتم.

AliMD commented 10 years ago

In @hoseinBL chera bihal va kam kar shode age vazayefeto dorosy anjam nadi nemizaram dige biyay class ha :D @akbarzadeamin mitooni behem zang bezani ? typesh sakhte, ye zaman ke free boodam mesle emshab betel

hbehkamal commented 10 years ago

@AliMD & @akbarzadeamin kho daqiq motavajeh nashodam goftam bzaram khodetun bgin ! :| :no_mouth:

akbarzadeamin commented 10 years ago

@AliMD: کی بزنگم؟

akbarzadeamin commented 10 years ago

@AliMD: من می خوام ساعت ۱۲ بخوابم. منظورتون از اینکه امشب زنگ بزنم دقیقا چی بود؟ :confused:

AliMD commented 10 years ago

alan

akbarzadeamin commented 10 years ago

@AliMD: چند گیگ می خواین بگین براتون بخرم.؟ رایگانه. جدی می گم

akbarzadeamin commented 10 years ago

آخه چرا خروجی باید بشه ورد: screen shot 2014-02-18 at 12 56 54 am

akbarzadeamin commented 10 years ago

این آخراش تو ذهنم نمی ره. اینا رو می زارم برای اینکه فردا یادم باشه بپرسم نه اینکه الآن جواب بدید: http://learn.jquery.com/javascript-101/scope/

hbehkamal commented 10 years ago

Next : C14 W3 S12

koorosh13hm commented 10 years ago

@akbarzadeamin : Amin, az scope hanooz soaali dari? bebin vaghti parde ha ro too khoone bekeshi hanoozam mitooni biroono bebini vali az biroon nemishe too khone ro did. pas yaadet baashe moteghayyere Global (biroon) too function ghabele dastresi hast vali moteghayyere local (daakhele khoone) az biroone mohitesh (biroone khoone) ghabele dastresi nist. ye kam ke bahash kaar koni behesh aadat mikoni. dar zemn yaadet baashe ke ham too khoone mitoonim ali dashte bashim va ham biroon az khoone ali haye ziyadi vojood daran vali oon chizi ke dar zehneshoone motefavete. pas agar yek ali dar khoone be footbal fekr mikone momkene ali biroon az khoone be valibal fekr kone. va agar be ali too khoone begi be shena fekr kone ali biroon az khoone hanooz dare be volibal fekr mikone. in ro dar nazar begir va dar morede aakharin soaalet be natije miresi. sharmande ke dir javab dadam. age baz ham soal dashti bepors, ma dar khedmatim :space_invader: .

koorosh13hm commented 10 years ago

@hoseinBL , @AliMD : Salaaaaaaam, man bargashtaaaaaaam :dancers: .

hbehkamal commented 10 years ago

@Rabioso salam, welcome back !

koorosh13hm commented 10 years ago

The description of ".splice" seems incorrect to me as I don't gain the proper results(at least not shown correct on my chrome). Will check other resources to check my code out. Will log the result soon.

koorosh13hm commented 10 years ago

Ok,ok, this is called Javascript : all the cons and pros.

According to Mozilla this code should work properly (which it doesn't) :

1      var myFish = new Array("angel" , "clown" , "mandarin", "surgeon");
2      var removed = myFish.splice(2 , 2 , "drum");
3      alert(removed); // mandarin,surgeon

But in the code below which would be its conversion (by omitting the referration of the result of splice to "removed" ) :

1      var myFish = new Array("angel" , "clown" , "mandarin", "surgeon");
2      myFish.splice(2 , 2 , "drum" , "bass");
3      alert(myFish); // angel,clown,drum,bass

VOILA ! And why this happens ? I couldn't figure it out. There must be something wrong with my knowledge ;)

P.S : I tried to fix it by adding "bass" to the end of splice query (in the first code example), yet no correct result was gained.

koorosh13hm commented 10 years ago

Did anyone find any clues?