-
Notifications
You must be signed in to change notification settings - Fork 45
/
README
38 lines (27 loc) · 1.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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">
<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" id="show">Show Panel</a>
##Misc
If you pass an element to the plugin that does not currently existin the dom, the plugin will create a default element with the above format.