File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+
4+ < head >
5+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js "> </ script >
6+ < script >
7+ $ ( document ) . ready ( function ( ) {
8+ $ ( "#upFlip" ) . click ( function ( ) {
9+ $ ( "#panel" ) . slideUp ( ) ;
10+ } ) ;
11+
12+ $ ( "#downFlip" ) . click ( function ( ) {
13+ $ ( "#panel" ) . slideDown ( "slow" ) ;
14+ } ) ;
15+ $ ( "#flip" ) . click ( function ( ) {
16+ $ ( "#panel" ) . slideToggle ( "slow" ) ;
17+ } ) ;
18+ } ) ;
19+ </ script >
20+ < style >
21+ # panel ,
22+ # flip ,
23+ # upFlip ,
24+ # downFlip {
25+ padding : 5px ;
26+ text-align : center;
27+ background-color : # e5eecc ;
28+ border : solid 1px # c3c3c3 ;
29+ }
30+
31+ # panel {
32+ padding : 50px ;
33+ display : none;
34+ }
35+ </ style >
36+ </ head >
37+
38+ < body >
39+
40+ < div id ="downFlip "> Click to slide down panel</ div >
41+ < div id ="upFlip "> Click to slide up panel</ div >
42+ < div id ="flip "> Click to slide the panel down or up</ div >
43+ < div id ="panel "> Hello world!</ div >
44+
45+ </ body >
46+
47+ </ html >
You can’t perform that action at this time.
0 commit comments