Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moving to trunk

git-svn-id: http://www.danielnorton.com/svn/opensrc/slpjq/trunk@9 e13d3cbb-0351-4081-91ff-4cc11ee021ac
  • Loading branch information...
commit 6c8b61b6235d6f6ef1037c56be205c3c327dde79 1 parent 592adba
@danorton authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 slpjq/js/slpjq.js
View
32 slpjq/js/slpjq.js
@@ -0,0 +1,32 @@
+// $Id$
+//
+// JavaScript slider commands
+//
+// Original Author: Jérémie Tisseau
+// http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/
+//
+// Modifications for Drupal © 2010 teeny-tiny websites
+// http://www.teenytinywebsites.com
+//
+// Distributed under the terms of the GNU General Public License, version 3.0
+// http://www.gnu.org/licenses/gpl-3.0.html
+
+$(document).ready(function() {
+
+ // Expand Panel
+ $("#slpjq_open").click(function(){
+ $("div#slpjq_panel").slideDown(Drupal.settings.slpjq.slidePeriod);
+
+ });
+
+ // Collapse Panel
+ $("#slpjq_close").click(function(){
+ $("div#slpjq_panel").slideUp(Drupal.settings.slpjq.slidePeriod);
+ });
+
+ // Switch buttons from "Log In | Join" to "Close Panel" on click
+ $("#slpjq_toggle a").click(function(){
+ $("#slpjq_toggle a").toggle();
+ });
+
+});
Please sign in to comment.
Something went wrong with that request. Please try again.