5 * Description: Dispy Dark, Friendica theme
7 * Author: Simon <http://simon.kisikew.org/>
8 * Maintainer: Simon <http://simon.kisikew.org/>
12 $a->theme_info = array(
13 'extends' => 'dispy-dark'
16 $a->page['htmlhead'] .= <<< EOT
18 $(document).ready(function() {
19 $('.group-edit-icon').hover(
21 $(this).addClass('icon');
22 $(this).removeClass('iconspacer'); },
25 $(this).removeClass('icon');
26 $(this).addClass('iconspacer'); }
29 $('.sidebar-group-element').hover(
31 id = $(this).attr('id');
32 $('#edit-' + id).addClass('icon');
33 $('#edit-' + id).removeClass('iconspacer'); },
36 id = $(this).attr('id');
37 $('#edit-' + id).removeClass('icon');
38 $('#edit-' + id).addClass('iconspacer'); }
41 $('.savedsearchdrop').hover(
43 $(this).addClass('drop');
44 $(this).addClass('icon');
45 $(this).removeClass('iconspacer'); },
48 $(this).removeClass('drop');
49 $(this).removeClass('icon');
50 $(this).addClass('iconspacer'); }
53 $('.savedsearchterm').hover(
55 id = $(this).attr('id');
56 $('#drop-' + id).addClass('icon');
57 $('#drop-' + id).addClass('drophide');
58 $('#drop-' + id).removeClass('iconspacer'); },
61 id = $(this).attr('id');
62 $('#drop-' + id).removeClass('icon');
63 $('#drop-' + id).removeClass('drophide');
64 $('#drop-' + id).addClass('iconspacer'); }
67 // click outside notifications menu closes it
68 $('html').click(function() {
69 $('#nav-notifications-linkmenu').removeClass('selected');
70 document.getElementById("nav-notifications-menu").style.display = "none";
73 $('#nav-notifications-linkmenu').click(function(event) {
74 event.stopPropagation();
77 // main function in toolbar functioning
78 function toggleToolbar() {
79 if ( $('#nav-floater').is(':visible') ) {
80 $('#nav-floater').slideUp('fast');
81 $('.floaterflip').css({
82 backgroundPosition: '-210px -60px'
85 $('#nav-floater').slideDown('fast');
86 $('.floaterflip').css({
87 backgroundPosition: '-190px -60px'
91 // our trigger for the toolbar button
92 $('.floaterflip').click(function() {
97 // (attempt) to change the text colour in a top post
98 $('#profile-jot-text').focusin(function() {
99 $(this).css({color: '#eec'});
102 // make auto-complete work in more places
103 $(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
105 /* $('#profile-photo-wrapper').mouseover(function() {
106 $('.profile-edit-side-div').css({display: 'block'});
107 }).mouseout(function() {
108 $('.profile-edit-side-div').css({display: 'none'});
112 $('img.photo').mouseover(function() {
113 $('.profile-edit-side-div').css({display: 'block'});
114 }).mouseout(function() {
115 $('.profile-edit-side-div').css({display: 'none'});