5. Create the Main JavaScript Module and Insert Other Modules Tutorial

preview_player
Показать описание
Learn to take a modular approach to your reusable external JavaScript library of scripts. In this lesson we create the main JavaScript module which is the file that will be called into every page of the web site.
Рекомендации по теме
Комментарии
Автор

Here it is the expand_retract.js code, in case you are looking for it:

function expand(element) {
var target =
var h = target.offsetHeight;
var sh = target.scrollHeight;
var loopTimer = setTimeout('expand(\''+element+'\')', 8);
if(h < sh){
h += 5;
} else {
clearTimeout(loopTimer);
}
target.style.height = h+"px";
}

function retract(element){
var target =
var h = target.offsetHeight;
var loopTimer = setTimeout('retract(\''+element+'\')', 8);
if(h > 0){
target.style.height = "0px";
clearTimeout(loopTimer);
}
target.style.height = h+"px";
}

AOBComputer
Автор

So, Im sitting here watching a bunch of your videos. Which by the way:
You have a great style, fast paced, humorous, light, and INTERESTING!!!!.

But then, I say to myself, who the **** does he sound like? Johnny *F'in" Depp.
You sir, are the Web Developers Guide taught by Johnny Depp. 

Im from NYC and I just landed a job in Texas, which I'm moving to with the wife and kids in two weeks. I've been doing this for a while, but I neglected ALOT and now I have to learn as much as humanly possible before I arrive and get called on my BS. I learned more from you in about 3 hours, than I have anywhere else, on any development topic, in the last 15 yrs. 

Thank you for your amazing tutorials!!

dtekny
Автор

This is such a high quality series of tutorials. Adam you are the master at coding and teaching. I am a true follower of your tutorials since the first web intersect. Thank a ton.

Can the folders for each person also hold video that a user can upload ?

Zorn
Автор

I am the JavaScript master now!!! and java because java and javascript are the same :)

sashaprsheer
Автор

Hello Adam, God knows how much I have learned from your tutorials. You are an awesome teacher. Thank you!
When can we expect more of this project. Is there some where other than Develop Php I should be looking for the continuation?

alexanderarman
Автор

So good! Can't wait for the next one!

LJDisparity
Автор

the only lesson i am stuck on is this one there are 4 links with code. which links do i use and where do they go. i mean it says lesson 5 but has 4 different links and four different videos. which links are the ones only for the web social network

MrMenyfaces
Автор

Great Video. When is Episode 6 coming?

ericel
Автор

I do not know how to use the new stuff from the stuff that has been replaced. Can you do a tut video on it please?
What i mean is where do i add the new Trigger CSS Transitions to Control Animations parts at? I don't understand.

DiyintheGhetto
Автор

Hey Adam Khoury love the tuts man great help, but I cant find the fade file the link you have left is not working ???

magicshroomliberety
Автор

I was on your page, and that's how I found your youtube channel. I looked for these videos of yours on your search. And apparently you haven't put them up in some places. And when I look up something it just says "0 results matching the term: web intersect in Video Tutorials" Just letting you know.

ReddayToHaveFun
Автор

ok im lost here I see 4 links with 4 sets of code. Do i use all for links or do i have to choose which one works best for me

MrMenyfaces
Автор

please, why you don't use jQuery ? tell me the reason I saw a bunch of your tutorials you use javascript

omarmakled
Автор

where can i find expand and retract js code...been search your site has been changed from what appears on the Vid mr adam

ThatoJChere
Автор

Ugh Your site has changed what code on each page do you copy and paste multi able choices of code segments. Please just place the files for download zipped or something on your site!

namelessone
Автор

I am probably being a bit of a tool here and missing something but i would like the comments on the feed posts to be able to expand and retract but cant figure out where to put my code for this, can anyone who has done this point me in the right direction, cheers mi dears

SteveD
Автор

i can't find the expand/retract and fade module, can you give me the link?, the one that embedded on the video was different, and now i'm starting to confuse!

natsudragneel
Автор

no need for expand extract js according t o the video...

sisbitzinternational
Автор

Adam did you just say "Frame work" ?! ;-)

_Garm_
Автор

Where can I find fadeEffects.js? I am searching for hours!

stephanstanisic