split script.js into a "common.js" that is useful for other pages and regular "script.js" for only the main page
parent
2d867f327c
commit
3518c04c09
@ -0,0 +1,18 @@
|
||||
var rootURL = '/parts/'
|
||||
|
||||
function overlay_in() {
|
||||
$('.shadow').css({'display' : 'block'});
|
||||
$('.overlay').css({'display' : 'block'});
|
||||
$('.shadow').animate({'opacity' : 0.7});
|
||||
$('.overlay').animate({'opacity' : 1.0, 'top' : '5%'});
|
||||
}
|
||||
|
||||
function overlay_out() {
|
||||
$('.shadow').animate({'opacity' : 0.0}, function () {
|
||||
$('.overlay').css({'display' : 'none'});
|
||||
});
|
||||
$('.overlay').animate({'opacity' : 0.0, 'top' : '0'}, function () {
|
||||
$('.shadow').css({'display' : 'none'});
|
||||
});
|
||||
end_edit();
|
||||
}
|
Loading…
Reference in new issue