Skip to content

A quick and easy way to add a contextual ajax sliding panel to your site.

Notifications You must be signed in to change notification settings

anthonyscata/SlidePanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For a demo goto http://codebomber.com/jquery/slidepanel

#Quickstart

##Include required files

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.codebomber.panel.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.codebomber.panel.css">

#Add a panel element to your html

<div id="panel" class="cb_slide_panel">
    <div class="wrapper">
      <a class="close" href="#">Close</a>
      <div class="inner">
        <div class="wrapper"></div>
      </div>
    </div>
</div>

##Load the plugin on your element <script type="text/javascript"> $(document).ready( function(){ $('#panel').codebomber_Panel(); } ); </script>

##Add a panel trigger The href attribute is used to load external HTML content into your panel

<a href="external.php" rel="panel">Show Panel</a>

##Misc

If you pass an element to the plugin that does not currently exist in the dom, the plugin will create a default element with the above format.

About

A quick and easy way to add a contextual ajax sliding panel to your site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published