|
Lines 986-996
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 986 |
$(covernav).addClass("nav-active"); |
986 |
$(covernav).addClass("nav-active"); |
| 987 |
} |
987 |
} |
| 988 |
$(covernav).html("<i class=\"fa fa-circle\"></i>"); |
988 |
$(covernav).html("<i class=\"fa fa-circle\"></i>"); |
| 989 |
$("#cover-slides").append( covernav ); |
989 |
$("#cover-slides").addClass("cover-slides").append( covernav ); |
| 990 |
} |
990 |
} |
| 991 |
} |
991 |
} |
| 992 |
} |
992 |
} |
| 993 |
}); |
993 |
}); |
|
|
994 |
if( $(".cover-image").length < 2 ){ |
| 995 |
/* Don't show controls for switching between covers if there is only 1 */ |
| 996 |
$(".cover-nav").remove(); |
| 997 |
} |
| 994 |
if( $(".cover-image:visible").length < 1 ){ |
998 |
if( $(".cover-image:visible").length < 1 ){ |
| 995 |
$("#cover-slides").remove(); |
999 |
$("#cover-slides").remove(); |
| 996 |
} |
1000 |
} |
|
Lines 1166-1172
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1166 |
link = $(this).attr("href"); |
1170 |
link = $(this).attr("href"); |
| 1167 |
openWindow(link,"Print spine label",400,400); |
1171 |
openWindow(link,"Print spine label",400,400); |
| 1168 |
}); |
1172 |
}); |
| 1169 |
$("#cover-slides").on("click",".cover-nav", function(){ |
1173 |
$("#cover-slides").on("click",".cover-nav", function(e){ |
|
|
1174 |
e.preventDefault(); |
| 1170 |
// Adding click handler for cover image navigation links |
1175 |
// Adding click handler for cover image navigation links |
| 1171 |
var num = $(this).data("num"); |
1176 |
var num = $(this).data("num"); |
| 1172 |
$(".cover-nav").removeClass("nav-active"); |
1177 |
$(".cover-nav").removeClass("nav-active"); |