mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
frio: a short contact informations will be provided at the second nav bar by scrolling down (on pages where vcard is available)
This commit is contained in:
parent
710822dca7
commit
53fb8b1181
12 changed files with 652 additions and 1 deletions
|
@ -120,7 +120,31 @@ $(document).ready(function(){
|
|||
// initialize the bootstrap-select
|
||||
$('.selectpicker').selectpicker();
|
||||
|
||||
// append the vcard-short-info to the second nav after passing the element
|
||||
// with .p-addr (vcard). Use scrollspy to get the scroll position.
|
||||
if( $("aside .vcard .p-addr").length) {
|
||||
$(".vcard .p-addr").scrollspy({
|
||||
min: $(".vcard .p-addr").position().top - 50,
|
||||
onLeaveTop: function onLeave(element) {
|
||||
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
|
||||
$("#vcard-short-info").fadeOut(500);
|
||||
|
||||
},
|
||||
onEnter: function(element) {
|
||||
$("#vcard-short-info").appendTo("#nav-short-info");
|
||||
$("#vcard-short-info").fadeIn(500);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// move the forum contact information of the network page into the second navbar
|
||||
if( $(".network-content-wrapper > #viewcontact_wrapper-network").length) {
|
||||
// get the contact-wrapper element and append it to the second nav bar
|
||||
// Note: We need the first() element with this class since at the present time we
|
||||
// store also the js template information in the html code and thats why
|
||||
// there are two elements with this class but we don't want the js template
|
||||
$(".network-content-wrapper > #viewcontact_wrapper-network .contact-wrapper").first().appendTo("#nav-short-info");
|
||||
}
|
||||
});
|
||||
//function commentOpenUI(obj, id) {
|
||||
// $(document).unbind( "click.commentOpen", handler );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue