Putting the js inside ready function
This commit is contained in:
parent
1244f937e6
commit
81c538d82d
1 changed files with 14 additions and 11 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
|
$(document).ready(function(){
|
||||||
var count = 0;
|
var count = 0;
|
||||||
$('#gallery-btn').click(function(){
|
$('#gallery-btn').click(function(){
|
||||||
if(count == 0){
|
if(count == 0){
|
||||||
|
|
@ -27,6 +28,8 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue