- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
// ================================================ SET UP DISPLAY OF FIRST SLIDE (CHECK FOR ANCHOR LINK) ============================================================
var anchorLink = self.document.location.hash;
switch (anchorLink)
{
// Intro
case "#panel-00-00": var currentSlide = 1; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','none'); $('#slides_holder').css('left','0px'); animateSlide(currentSlide); break;
// Table of Contents
case "#panel-00-01": var currentSlide = 2; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','none'); $('#slides_holder').css('left','-776px'); animateSlide(currentSlide); break;
// Chapter 1
case "#panel-01-00": var currentSlide = 3; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,3); $('#slides_holder').css('left','-1552px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-01": var currentSlide = 4; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,4); $('#slides_holder').css('left','-2328px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-02": var currentSlide = 5; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,5); $('#slides_holder').css('left','-3104px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-03": var currentSlide = 6; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,6); $('#slides_holder').css('left','-3880px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-04": var currentSlide = 7; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,7); $('#slides_holder').css('left','-4656px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-05": var currentSlide = 8; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,8); $('#slides_holder').css('left','-5432px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-06": var currentSlide = 9; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,9); $('#slides_holder').css('left','-6208px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-01-07": var currentSlide = 10; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(3,10); $('#slides_holder').css('left','-6984px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
/* ... Ещё таких же 4 чаптера по 7-10 слайдов ... */
// Quiz
case "#panel-06-00": var currentSlide = 51; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(51,51); $('#slides_holder').css('left','-38800px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
case "#panel-06-01": var currentSlide = 52; $('.slide'+(currentSlide)+'_object').css('display','none'); $('#module_menu').css('display','block'); highlightNavItems(51,51); $('#slides_holder').css('left','-38800px'); $('.slide'+currentSlide+'_object').css('display','block'); animateSlide(currentSlide); break;
// Intro (user has accessed "main" page)
default: var currentSlide = 1; $('#module_menu').css('display','none'); break;
}
Вот такой прислали слайдер на переделку, главный код опущен, но стиль такой же.