File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+ $ ( "#flip" ) . click ( function ( ) {
9+ $ ( "#panel" ) . slideDown ( 5000 ) ;
10+ } ) ;
11+ $ ( "#stop" ) . click ( function ( ) {
12+ $ ( "#panel" ) . stop ( ) ;
13+ } ) ;
14+ } ) ;
15+ </ script >
16+ < style >
17+ # panel ,
18+ # flip {
19+ padding : 5px ;
20+ font-size : 18px ;
21+ text-align : center;
22+ background-color : rgb (82 , 75 , 75 );
23+ color : white;
24+ border : solid 1px rgb (170 , 142 , 142 );
25+ border-radius : 3px ;
26+ }
27+
28+ # panel {
29+ padding : 50px ;
30+ display : none;
31+ }
32+ </ style >
33+ </ head >
34+
35+ < body >
36+
37+ < button id ="stop "> Stop sliding</ button >
38+
39+ < div id ="flip "> Click to slide down panel</ div >
40+ < div id ="panel "> Hello world!</ div >
41+
42+ </ body >
43+
44+ </ html >
You can’t perform that action at this time.
0 commit comments