]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/theme.php
smooth the comix comment box
[friendica.git] / view / theme / dispy / theme.php
index a7aec1c1a4f9041a368aa4e6626e0198c7340c69..26e07b1f76b81692fb222c42c176ed20316628a4 100644 (file)
@@ -1,5 +1,17 @@
 <?php
-$a->theme_info = array();
+
+/*
+ * Name: Dispy
+ * Description: Dispy, Friendica theme
+ * Version: 0.9
+ * Author: unknown
+ * Maintainer: Simon <http://simon.kisikew.org/>
+ */
+
+
+$a->theme_info = array(
+       'extends' => 'dispy'
+);
 
 $a->page['htmlhead'] .= <<< EOT
 <script>
@@ -52,6 +64,26 @@ $(document).ready(function() {
             $('#drop-' + id).addClass('iconspacer'); }
         );
 
+       // click outside notifications menu closes it
+       $('html').click(function() {
+               $('#nav-notifications-linkmenu').removeClass('selected');
+               document.getElementById("nav-notifications-menu").style.display = "none";
+       });
+
+       $('#nav-notifications-linkmenu').click(function(event) {
+               event.stopPropagation();
+       });
+       // click outside profiles menu closes it
+       $('html').click(function() {
+               $('#profiles-menu-trigger').removeClass('selected');
+               document.getElementById("profiles-menu").style.display = "none";
+       });
+
+       $('#profiles-menu').click(function(event) {
+               event.stopPropagation();
+       });
+
+       // main function in toolbar functioning
     function toggleToolbar() {
         if ( $('#nav-floater').is(':visible') ) {
             $('#nav-floater').slideUp('fast');
@@ -65,13 +97,32 @@ $(document).ready(function() {
             });
         }
     };
+       // our trigger for the toolbar button
     $('.floaterflip').click(function() {
         toggleToolbar();
         return false;
     });
+
+       // (attempt) to change the text colour in a top post
+       $('#profile-jot-text').focusin(function() {
+               $(this).css({color: '#eec'});
+       });
+
+/*     $('#profile-photo-wrapper').mouseover(function() {
+               $('.profile-edit-side-div').css({display: 'block'});
+       }).mouseout(function() {
+               $('.profile-edit-side-div').css({display: 'none'});
+               return false;
+       });
+
+       $('img.photo').mouseover(function() {
+               $('.profile-edit-side-div').css({display: 'block'});
+       }).mouseout(function() {
+               $('.profile-edit-side-div').css({display: 'none'});
+               return false;
+       });*/
+
 });
 </script>
 EOT;
 
-$a->page['footer'] .= <<<EOFooter
-EOFooter;