frio: bind short-info scrollspy on class fn (insteadof p-addr)
This commit is contained in:
parent
18e3e814b8
commit
605399032d
|
@ -156,9 +156,9 @@ $(document).ready(function(){
|
||||||
|
|
||||||
// append the vcard-short-info to the second nav after passing the element
|
// append the vcard-short-info to the second nav after passing the element
|
||||||
// with .p-addr (vcard). Use scrollspy to get the scroll position.
|
// with .p-addr (vcard). Use scrollspy to get the scroll position.
|
||||||
if( $("aside .vcard .p-addr").length) {
|
if( $("aside .vcard .fn").length) {
|
||||||
$(".vcard .p-addr").scrollspy({
|
$(".vcard .fn").scrollspy({
|
||||||
min: $(".vcard .p-addr").position().top - 50,
|
min: $(".vcard .p-addr").position().top - 70,
|
||||||
onLeaveTop: function onLeave(element) {
|
onLeaveTop: function onLeave(element) {
|
||||||
$("#vcard-short-info").fadeOut(500, function () {
|
$("#vcard-short-info").fadeOut(500, function () {
|
||||||
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
|
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user