Lines 972-991
Note that permanent location is a code, and location may be an authval.
Link Here
|
972 |
} |
972 |
} |
973 |
// If more that one slide is present, add a navigation link |
973 |
// If more that one slide is present, add a navigation link |
974 |
// for activating the slide |
974 |
// for activating the slide |
975 |
if( coverSlides.length > 1 ){ |
975 |
var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>"); |
976 |
var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>"); |
976 |
if( index == 0 ){ |
977 |
if( index == 0 ){ |
977 |
// Set the first navigation link as active |
978 |
// Set the first navigation link as active |
978 |
$(covernav).addClass("nav-active"); |
979 |
$(covernav).addClass("nav-active"); |
|
|
980 |
} |
981 |
$(covernav).html("<i class=\"fa fa-circle\"></i>"); |
982 |
$("#cover-slides").append( covernav ); |
983 |
} |
979 |
} |
|
|
980 |
$(covernav).html("<i class=\"fa fa-circle\"></i>"); |
981 |
$("#cover-slides").append( covernav ); |
984 |
} |
982 |
} |
985 |
} |
983 |
} |
986 |
}); |
984 |
}); |
987 |
if( $(".cover-image:visible").length < 1 ){ |
985 |
if( $(".cover-image:visible").length < 1 ){ |
988 |
$("#cover-slides").remove(); |
986 |
$("#cover-slides").remove(); |
|
|
987 |
} else if( $(".cover-image:visible").length == 1 ){ |
988 |
$(".cover-nav").remove(); |
989 |
$("#cover-slides").addClass("cover-slides"); |
990 |
} else { |
991 |
$("#cover-slides").addClass("cover-slides"); |
989 |
} |
992 |
} |
990 |
|
993 |
|
991 |
$("#editions img").each(function(i){ |
994 |
$("#editions img").each(function(i){ |
Lines 1159-1166
Note that permanent location is a code, and location may be an authval.
Link Here
|
1159 |
link = $(this).attr("href"); |
1162 |
link = $(this).attr("href"); |
1160 |
openWindow(link,"Print spine label",400,400); |
1163 |
openWindow(link,"Print spine label",400,400); |
1161 |
}); |
1164 |
}); |
1162 |
$("#cover-slides").on("click",".cover-nav", function(){ |
1165 |
$("#cover-slides").on("click",".cover-nav", function(e){ |
1163 |
// Adding click handler for cover image navigation links |
1166 |
// Adding click handler for cover image navigation links |
|
|
1167 |
e.preventDefault(); |
1164 |
var num = $(this).data("num"); |
1168 |
var num = $(this).data("num"); |
1165 |
$(".cover-nav").removeClass("nav-active"); |
1169 |
$(".cover-nav").removeClass("nav-active"); |
1166 |
$(this).addClass("nav-active"); |
1170 |
$(this).addClass("nav-active"); |