$('#close, #underlay'). Click(function() { var $videos = $('. Vid'); $f($videos.
Filter(':visible')0). Api('pause'); $videos.hide(); $('. Vim, #close, #container, #underlay').
FadeOut(400, function () { $videos.first().show(); }); }).
Matt the function I posted works perfectly- pausing the visible video and all. The issue pertains to that previous question. I'll edit the question and make it more clear.To be brief, now that the video replacement within the #fire div works (thanks to you!
) i've run into another issue. When I close and reopen the #fire div, the #behind video is visible, not #regular.So i'm thinking an if/then that says IF the div closing is #fire, then reset it with #regular shown and #behind hidden. Honestly, I don't have any idea of how to do this correctly, let alone efficiently.
– technopeasant Apr 16 at 6:51 Sorry, it's late and I should have gone to bed after answering your previous question. Have a look at my edit. – MДΓΓ БДLL Apr 16 at 7:10 @Matt tell me about it!
Clearly you have a deep understanding.. I really appreciate the help. Your edit half-works. Fades everything out appropriately, but when call #fire no video is in it at all.
In my code the videos are never specifically hidden, just the containers that they're in.So #regular needs to be "shown" before the entire #fire div is hidden – technopeasant Apr 16 at 15:31 @Matt forgot to mention that I understand your answer and how it theoretically solves the problem by filtering the variable and all that.. Some little hitch in it or something. – technopeasant Apr 16 at 15:37 Sorry, I don't understand what the problem is/what you're trying to get it to do. Mind putting together a jsfiddle to demonstrate the problem?
I started one but clearly it's missing some pieces: jsfiddle. Net/mattball/YQFS8 – MДΓΓ БДLL Apr 16 at 21:08.
Just think about what happens in your code and in what order: The #fire element appears with #regular video in front. Then #regular video is faded out, so now #behind is visible Then #fire is faded out, so it is not visible anymore. #regular still explicitly faded out as well.
#fire is opened again. #regular still explicitly faded out, that's why #behind is visible. You should add a check whether #regular is visible or not either when #fire is shown or when it is closed.
Yeah, the logic makes sense. I'm struggling with a method to change the order back when the #fire div is faded out. Any ideas?
– technopeasant Apr 16 at 6:55.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.