split script.js into a "common.js" that is useful for other pages and regular "script.js" for only the main page
This commit is contained in:
@@ -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();
|
||||
}
|
||||
@@ -1,22 +1,3 @@
|
||||
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();
|
||||
}
|
||||
|
||||
function init_edit(partID) {
|
||||
$('table#details tr#location td p').hide();
|
||||
$('table#details tr#location td select').show();
|
||||
|
||||
Reference in New Issue
Block a user