Initial checkin
This commit is contained in:
commit
d75eb444fc
4304 changed files with 369634 additions and 0 deletions
23
js/javascript/.svn/all-wcprops
Normal file
23
js/javascript/.svn/all-wcprops
Normal file
|
@ -0,0 +1,23 @@
|
|||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 37
|
||||
/astat/!svn/ver/1/trunk/js/javascript
|
||||
END
|
||||
prototype.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 50
|
||||
/astat/!svn/ver/1/trunk/js/javascript/prototype.js
|
||||
END
|
||||
effects.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 48
|
||||
/astat/!svn/ver/1/trunk/js/javascript/effects.js
|
||||
END
|
||||
accordion.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 50
|
||||
/astat/!svn/ver/1/trunk/js/javascript/accordion.js
|
||||
END
|
130
js/javascript/.svn/entries
Normal file
130
js/javascript/.svn/entries
Normal file
|
@ -0,0 +1,130 @@
|
|||
9
|
||||
|
||||
dir
|
||||
34
|
||||
http://svn.astat.org/astat/trunk/js/javascript
|
||||
http://svn.astat.org/astat
|
||||
|
||||
|
||||
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
svn:special svn:externals svn:needs-lock
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bb7ccd2a-c66b-0410-9765-967ca6f03dfc
|
||||
|
||||
prototype.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:33.000000Z
|
||||
e0bf5db66aa88e1a4779bd427b583fef
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
99594
|
||||
|
||||
effects.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:33.000000Z
|
||||
be6dba6cd4a57fc1dade9b547fc614d9
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
37872
|
||||
|
||||
accordion.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:33.000000Z
|
||||
72766c3b97d2e49d680a75775ba83390
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
6784
|
||||
|
1
js/javascript/.svn/format
Normal file
1
js/javascript/.svn/format
Normal file
|
@ -0,0 +1 @@
|
|||
9
|
243
js/javascript/.svn/text-base/accordion.js.svn-base
Normal file
243
js/javascript/.svn/text-base/accordion.js.svn-base
Normal file
|
@ -0,0 +1,243 @@
|
|||
// accordion.js v2.0
|
||||
//
|
||||
// Copyright (c) 2007 stickmanlabs
|
||||
// Author: Kevin P Miller | http://www.stickmanlabs.com
|
||||
//
|
||||
// Accordion is freely distributable under the terms of an MIT-style license.
|
||||
//
|
||||
// I don't care what you think about the file size...
|
||||
// Be a pro:
|
||||
// http://www.thinkvitamin.com/features/webapps/serving-javascript-fast
|
||||
// http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
|
||||
//
|
||||
/*
|
||||
2-2-2008 Trey Aughenbaugh
|
||||
made a few updates based on the comments from here.
|
||||
http://stickmanlabs.com/2007/07/12/accordion-v10-released/#comments
|
||||
|
||||
-Updated it to work with new version of Prototype 1.6 and scriptaculous 1.8
|
||||
-Updated to remove flicker
|
||||
Added ability to have a callback function.
|
||||
Useful for making AJAX calls.
|
||||
Also Added the ability to specifiy which call will get executed each time.
|
||||
Use the ID sttribute of the DIV for reference. REQUIRED for callback.
|
||||
|
||||
/*
|
||||
/*-----------------------------------------------------------------------------------------------*/
|
||||
|
||||
if (typeof Effect == 'undefined')
|
||||
throw("accordion.js requires including script.aculo.us' effects.js library!");
|
||||
|
||||
var accordion = Class.create();
|
||||
accordion.prototype = {
|
||||
|
||||
//
|
||||
// Setup the Variables
|
||||
//
|
||||
showAccordion : null,
|
||||
currentAccordion : null,
|
||||
duration : null,
|
||||
effects : [],
|
||||
animating : false,
|
||||
AlreadyActivated: [], //Added by Trey
|
||||
//
|
||||
// Initialize the accordions
|
||||
//
|
||||
initialize: function(container, options) {
|
||||
if (!$(container)) {
|
||||
throw(container+" doesn't exist!");
|
||||
return false;
|
||||
}
|
||||
|
||||
this.options = Object.extend({
|
||||
resizeSpeed : 8,
|
||||
classNames : {
|
||||
toggle : 'accordion_toggle',
|
||||
toggleActive : 'accordion_toggle_active',
|
||||
content : 'accordion_content'
|
||||
},
|
||||
defaultSize : {
|
||||
height : null,
|
||||
width : null
|
||||
},
|
||||
direction : 'vertical',
|
||||
onEvent : 'click',
|
||||
onActivate: null, //Added by Trey: CallBack Function called when Tab is activated, sends elemet.
|
||||
RepeatActivate: {} //Added by Trey
|
||||
}, options || {});
|
||||
|
||||
this.duration = ((11-this.options.resizeSpeed)*0.15);
|
||||
this.AlreadyActivated =[]; //Added by Trey
|
||||
var accordions = $$('#'+container+' .'+this.options.classNames.toggle);
|
||||
accordions.each(function(accordion) {
|
||||
Event.observe(accordion, this.options.onEvent, this.activate.bind(this, accordion), false);
|
||||
if (this.options.onEvent == 'click') {
|
||||
accordion.onclick = function() {return false;};
|
||||
}
|
||||
|
||||
if (this.options.direction == 'horizontal') {
|
||||
var options = {width: '0px'};
|
||||
} else {
|
||||
var options = {height: '0px'};
|
||||
}
|
||||
//options.merge({display: 'none'});
|
||||
Object.extend(options, {display: 'none'});
|
||||
|
||||
this.currentAccordion = $(accordion.next(0)).setStyle(options);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
//
|
||||
// Activate an accordion
|
||||
//
|
||||
activate : function(accordion) {
|
||||
if (this.animating) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.effects = [];
|
||||
|
||||
this.currentAccordion = $(accordion.next(0));
|
||||
this.currentAccordion.setStyle({
|
||||
display: 'block'
|
||||
});
|
||||
|
||||
this.currentAccordion.previous(0).addClassName(this.options.classNames.toggleActive);
|
||||
|
||||
if (this.options.direction == 'horizontal') {
|
||||
this.scaling = {
|
||||
scaleX: true,
|
||||
scaleY: false
|
||||
};
|
||||
} else {
|
||||
this.scaling = {
|
||||
scaleX: false,
|
||||
scaleY: true
|
||||
};
|
||||
}
|
||||
|
||||
if (this.currentAccordion == this.showAccordion) {
|
||||
this.deactivate();
|
||||
} else {
|
||||
|
||||
//This was added by Trey Aughenbaugh
|
||||
//Allows calling a function before activating a new Menu
|
||||
var bolCall = true;
|
||||
var elementid = $(this.currentAccordion).id
|
||||
var AA = this.AlreadyActivated.indexOf(elementid);
|
||||
var RA = this.options.RepeatActivate[elementid];
|
||||
if (RA != undefined)
|
||||
{
|
||||
if ( AA != -1 )
|
||||
{
|
||||
if ( RA != undefined )
|
||||
bolCall = RA;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.AlreadyActivated.push(elementid);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.onActivate && bolCall)
|
||||
this.options.onActivate(this.currentAccordion) ;
|
||||
|
||||
//My Code Updates End Here.......................Orig Call Below.
|
||||
this._handleAccordion();
|
||||
}
|
||||
},
|
||||
//
|
||||
// Deactivate an active accordion
|
||||
//
|
||||
deactivate : function() {
|
||||
var options = {
|
||||
duration: this.duration,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal,
|
||||
queue: {
|
||||
position: 'end',
|
||||
scope: 'accordionAnimation'
|
||||
},
|
||||
scaleMode: {
|
||||
originalHeight: this.options.defaultSize.height ? this.options.defaultSize.height : this.currentAccordion.scrollHeight,
|
||||
originalWidth: this.options.defaultSize.width ? this.options.defaultSize.width : this.currentAccordion.scrollWidth
|
||||
},
|
||||
afterFinish: function() {
|
||||
this.showAccordion.setStyle({
|
||||
height: '0px',
|
||||
display: 'none'
|
||||
});
|
||||
this.showAccordion = null;
|
||||
this.animating = false;
|
||||
}.bind(this)
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.showAccordion.previous(0).removeClassName(this.options.classNames.toggleActive);
|
||||
|
||||
new Effect.Scale(this.showAccordion, 0, options);
|
||||
},
|
||||
|
||||
//
|
||||
// Handle the open/close actions of the accordion
|
||||
//
|
||||
_handleAccordion : function() {
|
||||
var options = {
|
||||
sync: true,
|
||||
scaleFrom: 0,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal,
|
||||
scaleMode: {
|
||||
originalHeight: this.options.defaultSize.height ? this.options.defaultSize.height : this.currentAccordion.scrollHeight,
|
||||
originalWidth: this.options.defaultSize.width ? this.options.defaultSize.width : this.currentAccordion.scrollWidth
|
||||
}
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.effects.push(
|
||||
new Effect.Scale(this.currentAccordion, 100, options)
|
||||
);
|
||||
|
||||
if (this.showAccordion) {
|
||||
this.showAccordion.previous(0).removeClassName(this.options.classNames.toggleActive);
|
||||
|
||||
options = {
|
||||
sync: true,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.effects.push(
|
||||
new Effect.Scale(this.showAccordion, 0, options)
|
||||
);
|
||||
}
|
||||
|
||||
new Effect.Parallel(this.effects, {
|
||||
duration: this.duration,
|
||||
queue: {
|
||||
position: 'end',
|
||||
scope: 'accordionAnimation'
|
||||
},
|
||||
beforeStart: function() {
|
||||
this.animating = true;
|
||||
}.bind(this),
|
||||
afterFinish: function() {
|
||||
if (this.showAccordion) {
|
||||
this.showAccordion.setStyle({
|
||||
display: 'none'
|
||||
});
|
||||
}
|
||||
$(this.currentAccordion).setStyle({
|
||||
height: 'auto'
|
||||
});
|
||||
this.showAccordion = this.currentAccordion;
|
||||
this.animating = false;
|
||||
}.bind(this)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
1090
js/javascript/.svn/text-base/effects.js.svn-base
Normal file
1090
js/javascript/.svn/text-base/effects.js.svn-base
Normal file
File diff suppressed because it is too large
Load diff
3278
js/javascript/.svn/text-base/prototype.js.svn-base
Normal file
3278
js/javascript/.svn/text-base/prototype.js.svn-base
Normal file
File diff suppressed because it is too large
Load diff
243
js/javascript/accordion.js
Normal file
243
js/javascript/accordion.js
Normal file
|
@ -0,0 +1,243 @@
|
|||
// accordion.js v2.0
|
||||
//
|
||||
// Copyright (c) 2007 stickmanlabs
|
||||
// Author: Kevin P Miller | http://www.stickmanlabs.com
|
||||
//
|
||||
// Accordion is freely distributable under the terms of an MIT-style license.
|
||||
//
|
||||
// I don't care what you think about the file size...
|
||||
// Be a pro:
|
||||
// http://www.thinkvitamin.com/features/webapps/serving-javascript-fast
|
||||
// http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files
|
||||
//
|
||||
/*
|
||||
2-2-2008 Trey Aughenbaugh
|
||||
made a few updates based on the comments from here.
|
||||
http://stickmanlabs.com/2007/07/12/accordion-v10-released/#comments
|
||||
|
||||
-Updated it to work with new version of Prototype 1.6 and scriptaculous 1.8
|
||||
-Updated to remove flicker
|
||||
Added ability to have a callback function.
|
||||
Useful for making AJAX calls.
|
||||
Also Added the ability to specifiy which call will get executed each time.
|
||||
Use the ID sttribute of the DIV for reference. REQUIRED for callback.
|
||||
|
||||
/*
|
||||
/*-----------------------------------------------------------------------------------------------*/
|
||||
|
||||
if (typeof Effect == 'undefined')
|
||||
throw("accordion.js requires including script.aculo.us' effects.js library!");
|
||||
|
||||
var accordion = Class.create();
|
||||
accordion.prototype = {
|
||||
|
||||
//
|
||||
// Setup the Variables
|
||||
//
|
||||
showAccordion : null,
|
||||
currentAccordion : null,
|
||||
duration : null,
|
||||
effects : [],
|
||||
animating : false,
|
||||
AlreadyActivated: [], //Added by Trey
|
||||
//
|
||||
// Initialize the accordions
|
||||
//
|
||||
initialize: function(container, options) {
|
||||
if (!$(container)) {
|
||||
throw(container+" doesn't exist!");
|
||||
return false;
|
||||
}
|
||||
|
||||
this.options = Object.extend({
|
||||
resizeSpeed : 8,
|
||||
classNames : {
|
||||
toggle : 'accordion_toggle',
|
||||
toggleActive : 'accordion_toggle_active',
|
||||
content : 'accordion_content'
|
||||
},
|
||||
defaultSize : {
|
||||
height : null,
|
||||
width : null
|
||||
},
|
||||
direction : 'vertical',
|
||||
onEvent : 'click',
|
||||
onActivate: null, //Added by Trey: CallBack Function called when Tab is activated, sends elemet.
|
||||
RepeatActivate: {} //Added by Trey
|
||||
}, options || {});
|
||||
|
||||
this.duration = ((11-this.options.resizeSpeed)*0.15);
|
||||
this.AlreadyActivated =[]; //Added by Trey
|
||||
var accordions = $$('#'+container+' .'+this.options.classNames.toggle);
|
||||
accordions.each(function(accordion) {
|
||||
Event.observe(accordion, this.options.onEvent, this.activate.bind(this, accordion), false);
|
||||
if (this.options.onEvent == 'click') {
|
||||
accordion.onclick = function() {return false;};
|
||||
}
|
||||
|
||||
if (this.options.direction == 'horizontal') {
|
||||
var options = {width: '0px'};
|
||||
} else {
|
||||
var options = {height: '0px'};
|
||||
}
|
||||
//options.merge({display: 'none'});
|
||||
Object.extend(options, {display: 'none'});
|
||||
|
||||
this.currentAccordion = $(accordion.next(0)).setStyle(options);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
//
|
||||
// Activate an accordion
|
||||
//
|
||||
activate : function(accordion) {
|
||||
if (this.animating) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.effects = [];
|
||||
|
||||
this.currentAccordion = $(accordion.next(0));
|
||||
this.currentAccordion.setStyle({
|
||||
display: 'block'
|
||||
});
|
||||
|
||||
this.currentAccordion.previous(0).addClassName(this.options.classNames.toggleActive);
|
||||
|
||||
if (this.options.direction == 'horizontal') {
|
||||
this.scaling = {
|
||||
scaleX: true,
|
||||
scaleY: false
|
||||
};
|
||||
} else {
|
||||
this.scaling = {
|
||||
scaleX: false,
|
||||
scaleY: true
|
||||
};
|
||||
}
|
||||
|
||||
if (this.currentAccordion == this.showAccordion) {
|
||||
this.deactivate();
|
||||
} else {
|
||||
|
||||
//This was added by Trey Aughenbaugh
|
||||
//Allows calling a function before activating a new Menu
|
||||
var bolCall = true;
|
||||
var elementid = $(this.currentAccordion).id
|
||||
var AA = this.AlreadyActivated.indexOf(elementid);
|
||||
var RA = this.options.RepeatActivate[elementid];
|
||||
if (RA != undefined)
|
||||
{
|
||||
if ( AA != -1 )
|
||||
{
|
||||
if ( RA != undefined )
|
||||
bolCall = RA;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.AlreadyActivated.push(elementid);
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.onActivate && bolCall)
|
||||
this.options.onActivate(this.currentAccordion) ;
|
||||
|
||||
//My Code Updates End Here.......................Orig Call Below.
|
||||
this._handleAccordion();
|
||||
}
|
||||
},
|
||||
//
|
||||
// Deactivate an active accordion
|
||||
//
|
||||
deactivate : function() {
|
||||
var options = {
|
||||
duration: this.duration,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal,
|
||||
queue: {
|
||||
position: 'end',
|
||||
scope: 'accordionAnimation'
|
||||
},
|
||||
scaleMode: {
|
||||
originalHeight: this.options.defaultSize.height ? this.options.defaultSize.height : this.currentAccordion.scrollHeight,
|
||||
originalWidth: this.options.defaultSize.width ? this.options.defaultSize.width : this.currentAccordion.scrollWidth
|
||||
},
|
||||
afterFinish: function() {
|
||||
this.showAccordion.setStyle({
|
||||
height: '0px',
|
||||
display: 'none'
|
||||
});
|
||||
this.showAccordion = null;
|
||||
this.animating = false;
|
||||
}.bind(this)
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.showAccordion.previous(0).removeClassName(this.options.classNames.toggleActive);
|
||||
|
||||
new Effect.Scale(this.showAccordion, 0, options);
|
||||
},
|
||||
|
||||
//
|
||||
// Handle the open/close actions of the accordion
|
||||
//
|
||||
_handleAccordion : function() {
|
||||
var options = {
|
||||
sync: true,
|
||||
scaleFrom: 0,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal,
|
||||
scaleMode: {
|
||||
originalHeight: this.options.defaultSize.height ? this.options.defaultSize.height : this.currentAccordion.scrollHeight,
|
||||
originalWidth: this.options.defaultSize.width ? this.options.defaultSize.width : this.currentAccordion.scrollWidth
|
||||
}
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.effects.push(
|
||||
new Effect.Scale(this.currentAccordion, 100, options)
|
||||
);
|
||||
|
||||
if (this.showAccordion) {
|
||||
this.showAccordion.previous(0).removeClassName(this.options.classNames.toggleActive);
|
||||
|
||||
options = {
|
||||
sync: true,
|
||||
scaleContent: false,
|
||||
transition: Effect.Transitions.sinoidal
|
||||
};
|
||||
//options.merge(this.scaling);
|
||||
Object.extend(options, this.scaling);
|
||||
|
||||
this.effects.push(
|
||||
new Effect.Scale(this.showAccordion, 0, options)
|
||||
);
|
||||
}
|
||||
|
||||
new Effect.Parallel(this.effects, {
|
||||
duration: this.duration,
|
||||
queue: {
|
||||
position: 'end',
|
||||
scope: 'accordionAnimation'
|
||||
},
|
||||
beforeStart: function() {
|
||||
this.animating = true;
|
||||
}.bind(this),
|
||||
afterFinish: function() {
|
||||
if (this.showAccordion) {
|
||||
this.showAccordion.setStyle({
|
||||
display: 'none'
|
||||
});
|
||||
}
|
||||
$(this.currentAccordion).setStyle({
|
||||
height: 'auto'
|
||||
});
|
||||
this.showAccordion = this.currentAccordion;
|
||||
this.animating = false;
|
||||
}.bind(this)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
1090
js/javascript/effects.js
vendored
Normal file
1090
js/javascript/effects.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
3278
js/javascript/prototype.js
vendored
Normal file
3278
js/javascript/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue