first global commit
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 55
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js
|
||||
END
|
||||
jquery.checkbox.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 74
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.checkbox.js
|
||||
END
|
||||
animateClass.compressed.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 82
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/animateClass.compressed.js
|
||||
END
|
||||
jquery.mousewheel.pack.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 81
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.mousewheel.pack.js
|
||||
END
|
||||
jScrollPane.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 70
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jScrollPane.js
|
||||
END
|
||||
jquery.easing.1.2.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 76
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.easing.1.2.js
|
||||
END
|
||||
AC_OETags.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/AC_OETags.js
|
||||
END
|
||||
swfobject.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/swfobject.js
|
||||
END
|
||||
jqminmax-compressed.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 78
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jqminmax-compressed.js
|
||||
END
|
||||
jScrollPane*.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 71
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jScrollPane*.js
|
||||
END
|
||||
jquery.cookie.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 72
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.cookie.js
|
||||
END
|
||||
jScrollPane.css
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 71
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jScrollPane.css
|
||||
END
|
||||
jquery.color.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 71
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.color.js
|
||||
END
|
||||
jqem-compressed.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 74
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jqem-compressed.js
|
||||
END
|
||||
interface.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/interface.js
|
||||
END
|
||||
animateStyle.compressed.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 82
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/animateStyle.compressed.js
|
||||
END
|
||||
jquery.dimensions.pack.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 81
|
||||
/svn/mdld/!svn/ver/1/sites/all/modules/custom/jqplug/js/jquery.dimensions.pack.js
|
||||
END
|
||||
@@ -0,0 +1,572 @@
|
||||
9
|
||||
|
||||
dir
|
||||
1
|
||||
http://192.168.1.122/svn/mdld/sites/all/modules/custom/jqplug/js
|
||||
http://192.168.1.122/svn/mdld
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
svn:special svn:externals svn:needs-lock
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
5345f8a9-ac18-4ae0-b042-0c8c2e191c0c
|
||||
|
||||
jquery.checkbox.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
3826dcfc83aec33b4ad3d888e55d83d9
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2116
|
||||
|
||||
animateClass.compressed.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
c89e1d04a84a2c828eff6544d3477ae0
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2898
|
||||
|
||||
jquery.mousewheel.pack.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
206df8978990c8423331ba07f73ef284
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1781
|
||||
|
||||
jScrollPane.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
eb0371b4cc58b9fcf4a3a1bec6419188
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
17397
|
||||
|
||||
jquery.easing.1.2.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
6c0edab4dbbc8ab1b4dcd05cc2b26a09
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
4757
|
||||
|
||||
AC_OETags.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
593f918ab82a3b908fa4b4f1c0f71a3f
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
has-props
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8088
|
||||
|
||||
swfobject.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
b58ba837a6ae52321cdaadb813b7ae6e
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8868
|
||||
|
||||
jqminmax-compressed.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
54f79dbab017711e0e20d9daa46a44c3
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1958
|
||||
|
||||
jScrollPane*.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
d41d8cd98f00b204e9800998ecf8427e
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
0
|
||||
|
||||
jquery.cookie.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
384772142d1907d7d3aea3ac11fad9d0
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
4246
|
||||
|
||||
jScrollPane.css
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
9d281fcbd7e527cd671c5a86dbcc0c2e
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1033
|
||||
|
||||
jquery.color.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
8738618224090e7a179a6248cb00d1bb
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
3660
|
||||
|
||||
jqem-compressed.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
4f588f9f0193037a077deaee0c430f18
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1724
|
||||
|
||||
interface.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
847407c01f884853efd73974931e2195
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
has-props
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
79413
|
||||
|
||||
animateStyle.compressed.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
4c54eeaa5d6a10d3ff298b6cd699d822
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2773
|
||||
|
||||
jquery.dimensions.pack.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-07-08T17:23:12.000000Z
|
||||
4fdd4bc72ee834bc132ddaa05a7ec018
|
||||
2009-07-08T17:22:35.498919Z
|
||||
1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2239
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,5 @@
|
||||
K 14
|
||||
svn:executable
|
||||
V 0
|
||||
|
||||
END
|
||||
@@ -0,0 +1,5 @@
|
||||
K 14
|
||||
svn:executable
|
||||
V 0
|
||||
|
||||
END
|
||||
@@ -0,0 +1,276 @@
|
||||
// Flash Player Version Detection - Rev 1.6
|
||||
// Detect Client Browser type
|
||||
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
|
||||
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
|
||||
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
|
||||
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
|
||||
|
||||
function ControlVersion()
|
||||
{
|
||||
var version;
|
||||
var axo;
|
||||
var e;
|
||||
|
||||
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
|
||||
|
||||
try {
|
||||
// version will be set for 7.X or greater players
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
||||
version = axo.GetVariable("$version");
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 6.X players only
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
|
||||
// installed player is some revision of 6.0
|
||||
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
|
||||
// so we have to be careful.
|
||||
|
||||
// default to the first public version
|
||||
version = "WIN 6,0,21,0";
|
||||
|
||||
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
|
||||
axo.AllowScriptAccess = "always";
|
||||
|
||||
// safe to call for 6.0r47 or greater
|
||||
version = axo.GetVariable("$version");
|
||||
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 4.X or 5.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
||||
version = axo.GetVariable("$version");
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 3.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
||||
version = "WIN 3,0,18,0";
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!version)
|
||||
{
|
||||
try {
|
||||
// version will be set for 2.X player
|
||||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
|
||||
version = "WIN 2,0,0,11";
|
||||
} catch (e) {
|
||||
version = -1;
|
||||
}
|
||||
}
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
// JavaScript helper required to detect Flash Player PlugIn version information
|
||||
function GetSwfVer(){
|
||||
// NS/Opera version >= 3 check for Flash plugin in plugin array
|
||||
var flashVer = -1;
|
||||
|
||||
if (navigator.plugins != null && navigator.plugins.length > 0) {
|
||||
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
|
||||
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
|
||||
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
|
||||
var descArray = flashDescription.split(" ");
|
||||
var tempArrayMajor = descArray[2].split(".");
|
||||
var versionMajor = tempArrayMajor[0];
|
||||
var versionMinor = tempArrayMajor[1];
|
||||
var versionRevision = descArray[3];
|
||||
if (versionRevision == "") {
|
||||
versionRevision = descArray[4];
|
||||
}
|
||||
if (versionRevision[0] == "d") {
|
||||
versionRevision = versionRevision.substring(1);
|
||||
} else if (versionRevision[0] == "r") {
|
||||
versionRevision = versionRevision.substring(1);
|
||||
if (versionRevision.indexOf("d") > 0) {
|
||||
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
|
||||
}
|
||||
}
|
||||
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
|
||||
//alert("flashVer="+flashVer);
|
||||
}
|
||||
}
|
||||
// MSN/WebTV 2.6 supports Flash 4
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
|
||||
// WebTV 2.5 supports Flash 3
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
|
||||
// older WebTV supports Flash 2
|
||||
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
|
||||
else if ( isIE && isWin && !isOpera ) {
|
||||
flashVer = ControlVersion();
|
||||
}
|
||||
return flashVer;
|
||||
}
|
||||
|
||||
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
|
||||
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
|
||||
{
|
||||
versionStr = GetSwfVer();
|
||||
if (versionStr == -1 ) {
|
||||
return false;
|
||||
} else if (versionStr != 0) {
|
||||
if(isIE && isWin && !isOpera) {
|
||||
// Given "WIN 2,0,0,11"
|
||||
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
|
||||
tempString = tempArray[1]; // "2,0,0,11"
|
||||
versionArray = tempString.split(","); // ['2', '0', '0', '11']
|
||||
} else {
|
||||
versionArray = versionStr.split(".");
|
||||
}
|
||||
var versionMajor = versionArray[0];
|
||||
var versionMinor = versionArray[1];
|
||||
var versionRevision = versionArray[2];
|
||||
|
||||
// is the major.revision >= requested major.revision AND the minor version >= requested minor
|
||||
if (versionMajor > parseFloat(reqMajorVer)) {
|
||||
return true;
|
||||
} else if (versionMajor == parseFloat(reqMajorVer)) {
|
||||
if (versionMinor > parseFloat(reqMinorVer))
|
||||
return true;
|
||||
else if (versionMinor == parseFloat(reqMinorVer)) {
|
||||
if (versionRevision >= parseFloat(reqRevision))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function AC_AddExtension(src, ext)
|
||||
{
|
||||
if (src.indexOf('?') != -1)
|
||||
return src.replace(/\?/, ext+'?');
|
||||
else
|
||||
return src + ext;
|
||||
}
|
||||
|
||||
function AC_Generateobj(objAttrs, params, embedAttrs)
|
||||
{
|
||||
var str = '';
|
||||
if (isIE && isWin && !isOpera)
|
||||
{
|
||||
str += '<object ';
|
||||
for (var i in objAttrs)
|
||||
str += i + '="' + objAttrs[i] + '" ';
|
||||
for (var i in params)
|
||||
str += '><param name="' + i + '" value="' + params[i] + '" /> ';
|
||||
str += '></object>';
|
||||
} else {
|
||||
str += '<embed ';
|
||||
for (var i in embedAttrs)
|
||||
str += i + '="' + embedAttrs[i] + '" ';
|
||||
str += '> </embed>';
|
||||
}
|
||||
|
||||
document.write(str);
|
||||
}
|
||||
|
||||
function AC_FL_RunContent(){
|
||||
var ret =
|
||||
AC_GetArgs
|
||||
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
|
||||
, "application/x-shockwave-flash"
|
||||
);
|
||||
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
|
||||
}
|
||||
|
||||
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
|
||||
var ret = new Object();
|
||||
ret.embedAttrs = new Object();
|
||||
ret.params = new Object();
|
||||
ret.objAttrs = new Object();
|
||||
for (var i=0; i < args.length; i=i+2){
|
||||
var currArg = args[i].toLowerCase();
|
||||
|
||||
switch (currArg){
|
||||
case "classid":
|
||||
break;
|
||||
case "pluginspage":
|
||||
ret.embedAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
case "src":
|
||||
case "movie":
|
||||
args[i+1] = AC_AddExtension(args[i+1], ext);
|
||||
ret.embedAttrs["src"] = args[i+1];
|
||||
ret.params[srcParamName] = args[i+1];
|
||||
break;
|
||||
case "onafterupdate":
|
||||
case "onbeforeupdate":
|
||||
case "onblur":
|
||||
case "oncellchange":
|
||||
case "onclick":
|
||||
case "ondblClick":
|
||||
case "ondrag":
|
||||
case "ondragend":
|
||||
case "ondragenter":
|
||||
case "ondragleave":
|
||||
case "ondragover":
|
||||
case "ondrop":
|
||||
case "onfinish":
|
||||
case "onfocus":
|
||||
case "onhelp":
|
||||
case "onmousedown":
|
||||
case "onmouseup":
|
||||
case "onmouseover":
|
||||
case "onmousemove":
|
||||
case "onmouseout":
|
||||
case "onkeypress":
|
||||
case "onkeydown":
|
||||
case "onkeyup":
|
||||
case "onload":
|
||||
case "onlosecapture":
|
||||
case "onpropertychange":
|
||||
case "onreadystatechange":
|
||||
case "onrowsdelete":
|
||||
case "onrowenter":
|
||||
case "onrowexit":
|
||||
case "onrowsinserted":
|
||||
case "onstart":
|
||||
case "onscroll":
|
||||
case "onbeforeeditfocus":
|
||||
case "onactivate":
|
||||
case "onbeforedeactivate":
|
||||
case "ondeactivate":
|
||||
case "type":
|
||||
case "codebase":
|
||||
ret.objAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
case "id":
|
||||
case "width":
|
||||
case "height":
|
||||
case "align":
|
||||
case "vspace":
|
||||
case "hspace":
|
||||
case "class":
|
||||
case "title":
|
||||
case "accesskey":
|
||||
case "name":
|
||||
case "tabindex":
|
||||
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
|
||||
break;
|
||||
default:
|
||||
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
|
||||
}
|
||||
}
|
||||
ret.objAttrs["classid"] = classid;
|
||||
if (mimeType) ret.embedAttrs["type"] = mimeType;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('18.1N.1i=q(z,s,X){c V=[];c p=[];P 18(d).1j(q(){17(c i=0;i<d.A.F(" ").u;i++){8(d.A.F(" ")[i]==z)P}c N={};c m=(s&&r s!="O")?s:X;c j=($(d).o("l")||\'\');8(r j==\'K\')j=j["E"];c h=d.1l(1m);$(h).1f($(d).1f());$(h).J("1n","1o").J("R","1p");$(d.1q).1r(h);8(r s!="O")$(h).10(0).A=d.A;t $(h).10(0).A="";$(h).W(z);8(Q.L){c w=Q.L.1d(d,11);c g=Q.L.1d(h,11)}t{c w=d.19;c g=h.19}8(y.v!=T)v.U("1s 1A 1t 1u "+z+" 1v 1w 1x 1y:");17(c n 1z g){8(r g[n]!="q"&&g[n]&&n.G("1B")==-1&&n.G("u")==-1&&g[n]!=w[n]){8(n.G("1C")==-1&&n.G("1D")==-1){8(!1E(9(g[n].D(/S/,"")))){8(w.R!="1a"||(w.R=="1a"&&n!="1G"&&n!="1H"&&n!="1I"&&n!="1J")){8(y.v!=T)v.U(n+": "+9(g[n].D(/S/,"")));N[n]=9(g[n].D(/S/,""))}}}t{12(d,n,w[n],g[n],m,j);8(y.v!=T)v.U(n+": "+g[n])}}}$(d).1M(N,m,q(){8(r s=="O")$(d).1h(s);$(d).W(z);8(r $(d).o("l")==\'K\'){$(d).o("l")["E"]="";$(d).o("l")["E"]=j}t{$(d).o("l",j)}$(h).1k()})});q 12(C,f,a,b,m,j){c k,e;8(a=="Z"){e=[x,x,x]}t{8(a.6(0,3)=="B")e=a.6(4).D(/\\)/,"").F(",");8(a.6(0,1)=="#"&&a.u==7)e=[9(a.6(1,2),16),9(a.6(3,2),16),9(a.6(5,2),16)];8(a.6(0,1)=="#"&&a.u==4)e=[9(a.6(1,1)+a.6(1,1),16),9(a.6(2,1)+a.6(2,1),16),9(a.6(3,1)+a.6(3,1),16)];8(a.6(0,3)!="B"&&a.6(0,1)!="#")e=M(a)}8(b=="Z"){k=[x,x,x]}t{8(b.6(0,3)=="B")k=b.6(4).D(/\\)/,"").F(",");8(b.6(0,1)=="#"&&b.u==7)k=[9(b.6(1,2),16),9(b.6(3,2),16),9(b.6(5,2),16)];8(b.6(0,1)=="#"&&b.u==4)k=[9(b.6(1,1)+b.6(1,1),16),9(b.6(2,1)+b.6(2,1),16),9(b.6(3,1)+b.6(3,1),16)];8(b.6(0,3)!="B"&&b.6(0,1)!="#")k=M(b)}c 1e=9(k[0])-9(e[0]);c 1g=9(k[1])-9(e[1]);c Y=9(k[2])-9(e[2]);p[f]=0;V[f]=y.1F(1b,1c);q 1b(){p[f]=p[f]+1c;c 14=H.I(9(e[0])+(1e/m)*p[f]);c 13=H.I(9(e[1])+(1g/m)*p[f]);c 15=H.I(9(e[2])+(Y/m)*p[f]);$(C).J(f,"B("+14+","+13+","+15+")");8(p[f]==m){y.1K(V[f]);8(r $(C).o("l")==\'K\'){$(C).o("l")["E"]="";$(C).o("l")["E"]=j}}};q M(1L){P[0,0,0]}}};',62,112,'||||||substr||if|parseInt|oldColor|newColor|var|this|oSC|prop|newStyle|dummyEl||oldStyleAttr|nSC|style|aniDuration||attr|colorTimers|function|typeof|c2|else|length|console|oldStyle|255|window|c1|className|rgb|that|replace|cssText|split|indexOf|Math|round|css|object|defaultView|colorToArray|aniObj|string|return|document|position|px|undefined|log|colorIntervals|addClass|c3|diffB|transparent|get|null|animateColor|newG|newR|newB||for|jQuery|currentStyle|static|intervalColor|20|getComputedStyle|diffR|html|diffG|removeClass|animateClass|each|remove|cloneNode|true|visibility|hidden|absolute|parentNode|append|Animating|to|class|with|the|following|properties|in|element|Moz|Color|color|isNaN|setInterval|left|top|bottom|right|clearInterval|cColor|animate|fn'.split('|'),0,{}))
|
||||
@@ -0,0 +1 @@
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c B=[];T.1w.1g=s(L,10){c K=[];c o=[];17 T(d).1h(s(){c Q={};c m=10;c k=($(d).j("h")||\'\');9(A k==\'I\')k=k["y"];9(B[d]==H)17;p B[d]=H;c l=d.1i(H);$(l).V($(d).V());$(d.1j).1k(l);$(l).j("h",L);$(l).D("19","1m").D("E","1n");9(J.M){c t=J.M.12(d,15);c e=J.M.12(l,15)}p{c t=d.Y;c e=l.Y}9(x.q!=P)q.F("1o 1v 1p h "+L+" 1q 1r 1s 1t:");1u(c n 1x e){9(A e[n]!="s"&&e[n]&&n.C("1y")==-1&&n.C("w")==-1&&e[n]!=t[n]){9(n.C("1z")==-1&&n.C("1A")==-1){9(!1B(8(e[n].u(/N/,"")))){9(t.E!="13"||(t.E=="13"&&n!="1C"&&n!="1D"&&n!="1E"&&n!="1G")){9(x.q!=P)q.F(n+": "+8(e[n].u(/N/,"")));Q[n]=8(e[n].u(/N/,""))}}p{9(n!="19"&&n!="E")$(d).D(n,e[n])}}p{X(d,n,t[n],e[n],m,k);9(x.q!=P)q.F(n+": "+e[n])}}}$(d).1d(Q,m,s(){9(A $(d).j("h")==\'I\'){$(d).j("h")["y"]="";$(d).j("h")["y"]=k}p{$(d).j("h",k)}$(l).1e();B[d]=1f})});s X(v,g,a,b,m,k){c i,f;9(a=="U"){f=[r,r,r]}p{9(a.6(0,3)=="z")f=a.6(4).u(/\\)/,"").W(",");9(a.6(0,1)=="#"&&a.w==7)f=[8(a.6(1,2),16),8(a.6(3,2),16),8(a.6(5,2),16)];9(a.6(0,1)=="#"&&a.w==4)f=[8(a.6(1,1)+a.6(1,1),16),8(a.6(2,1)+a.6(2,1),16),8(a.6(3,1)+a.6(3,1),16)];9(a.6(0,3)!="z"&&a.6(0,1)!="#")f=11(a)}9(b=="U"){i=[r,r,r]}p{9(b.6(0,3)=="z")i=b.6(4).u(/\\)/,"").W(",");9(b.6(0,1)=="#"&&b.w==7)i=[8(b.6(1,2),16),8(b.6(3,2),16),8(b.6(5,2),16)];9(b.6(0,1)=="#"&&b.w==4)i=[8(b.6(1,1)+b.6(1,1),16),8(b.6(2,1)+b.6(2,1),16),8(b.6(3,1)+b.6(3,1),16)];9(b.6(0,3)!="z"&&b.6(0,1)!="#")i=11(b)}c R=8(i[0])-8(f[0]);c S=8(i[1])-8(f[1]);c Z=8(i[2])-8(f[2]);o[g]=0;K[g]=x.1F(1a,1b);s 1a(){o[g]=o[g]+1b;c 14=O.G(8(f[0])+(R/m)*o[g]);c 18=O.G(8(f[1])+(S/m)*o[g]);c 1c=O.G(8(f[2])+(Z/m)*o[g]);$(v).D(g,"z("+14+","+18+","+1c+")");9(o[g]==m){x.1l(K[g]);9(A $(v).j("h")==\'I\'){$(v).j("h")["y"]="";$(v).j("h")["y"]=k}}}}};',62,105,'||||||substr||parseInt|if|oldColor|newColor|var|this|newStyle|oSC|prop|style|nSC|attr|oldStyleAttr|dummyEl|aniDuration||colorTimers|else|console|255|function|oldStyle|replace|that|length|window|cssText|rgb|typeof|animateStyleIsRunning|indexOf|css|position|log|round|true|object|document|colorIntervals|c1|defaultView|px|Math|undefined|aniString|diffR|diffG|jQuery|transparent|html|split|animateColor|currentStyle|diffB|c2|colorToArray|getComputedStyle|static|newR|null||return|newG|visibility|intervalColor|20|newB|animate|remove|false|animateStyle|each|cloneNode|parentNode|append|clearInterval|hidden|absolute|Animating|to|with|the|following|properties|for|element|fn|in|Moz|Color|color|isNaN|left|top|bottom|setInterval|right'.split('|'),0,{}))
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,65 @@
|
||||
|
||||
.jScrollPaneContainer {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.jScrollPaneTrack {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
background: #aaa;
|
||||
}
|
||||
.jScrollPaneDrag {
|
||||
position: absolute;
|
||||
background: #666;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
}
|
||||
.jScrollPaneDragTop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.jScrollPaneDragBottom {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
a.jScrollArrowUp {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
right: 0;
|
||||
text-indent: -2000px;
|
||||
overflow: hidden;
|
||||
/*background-color: #666;*/
|
||||
height: 9px;
|
||||
}
|
||||
a.jScrollArrowUp:hover {
|
||||
/*background-color: #f60;*/
|
||||
}
|
||||
|
||||
a.jScrollArrowDown {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
text-indent: -2000px;
|
||||
overflow: hidden;
|
||||
/*background-color: #666;*/
|
||||
height: 9px;
|
||||
}
|
||||
a.jScrollArrowDown:hover {
|
||||
/*background-color: #f60;*/
|
||||
}
|
||||
a.jScrollActiveArrowButton, a.jScrollActiveArrowButton:hover {
|
||||
/*background-color: #f00;*/
|
||||
}
|
||||
@@ -0,0 +1,508 @@
|
||||
/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* See http://kelvinluck.com/assets/jquery/jScrollPane/
|
||||
* $Id: jScrollPane.js 47 2009-02-08 17:56:16Z kelvin.luck $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Replace the vertical scroll bars on any matched elements with a fancy
|
||||
* styleable (via CSS) version. With JS disabled the elements will
|
||||
* gracefully degrade to the browsers own implementation of overflow:auto.
|
||||
* If the mousewheel plugin has been included on the page then the scrollable areas will also
|
||||
* respond to the mouse wheel.
|
||||
*
|
||||
* @example jQuery(".scroll-pane").jScrollPane();
|
||||
*
|
||||
* @name jScrollPane
|
||||
* @type jQuery
|
||||
* @param Object settings hash with options, described below.
|
||||
* scrollbarWidth - The width of the generated scrollbar in pixels
|
||||
* scrollbarMargin - The amount of space to leave on the side of the scrollbar in pixels
|
||||
* wheelSpeed - The speed the pane will scroll in response to the mouse wheel in pixels
|
||||
* showArrows - Whether to display arrows for the user to scroll with
|
||||
* arrowSize - The height of the arrow buttons if showArrows=true
|
||||
* animateTo - Whether to animate when calling scrollTo and scrollBy
|
||||
* dragMinHeight - The minimum height to allow the drag bar to be
|
||||
* dragMaxHeight - The maximum height to allow the drag bar to be
|
||||
* animateInterval - The interval in milliseconds to update an animating scrollPane (default 100)
|
||||
* animateStep - The amount to divide the remaining scroll distance by when animating (default 3)
|
||||
* maintainPosition- Whether you want the contents of the scroll pane to maintain it's position when you re-initialise it - so it doesn't scroll as you add more content (default true)
|
||||
* scrollbarOnLeft - Display the scrollbar on the left side? (needs stylesheet changes, see examples.html)
|
||||
* reinitialiseOnImageLoad - Whether the jScrollPane should automatically re-initialise itself when any contained images are loaded
|
||||
* @return jQuery
|
||||
* @cat Plugins/jScrollPane
|
||||
* @author Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.jScrollPane = {
|
||||
active : []
|
||||
};
|
||||
$.fn.jScrollPane = function(settings)
|
||||
{
|
||||
settings = $.extend({}, $.fn.jScrollPane.defaults, settings);
|
||||
|
||||
var rf = function() { return false; };
|
||||
|
||||
return this.each(
|
||||
function()
|
||||
{
|
||||
var $this = $(this);
|
||||
// Switch the element's overflow to hidden to ensure we get the size of the element without the scrollbars [http://plugins.jquery.com/node/1208]
|
||||
$this.css('overflow', 'hidden');
|
||||
var paneEle = this;
|
||||
|
||||
if ($(this).parent().is('.jScrollPaneContainer')) {
|
||||
var currentScrollPosition = settings.maintainPosition ? $this.position().top : 0;
|
||||
var $c = $(this).parent();
|
||||
var paneWidth = $c.innerWidth();
|
||||
var paneHeight = $c.outerHeight();
|
||||
var trackHeight = paneHeight;
|
||||
$('>.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown', $c).remove();
|
||||
$this.css({'top':0});
|
||||
} else {
|
||||
var currentScrollPosition = 0;
|
||||
this.originalPadding = $this.css('paddingTop') + ' ' + $this.css('paddingRight') + ' ' + $this.css('paddingBottom') + ' ' + $this.css('paddingLeft');
|
||||
this.originalSidePaddingTotal = (parseInt($this.css('paddingLeft')) || 0) + (parseInt($this.css('paddingRight')) || 0);
|
||||
var paneWidth = $this.innerWidth();
|
||||
var paneHeight = $this.innerHeight();
|
||||
var trackHeight = paneHeight;
|
||||
$this.wrap(
|
||||
$('<div></div>').attr(
|
||||
{'className':'jScrollPaneContainer'}
|
||||
).css(
|
||||
{
|
||||
'height':paneHeight+'px',
|
||||
'width':paneWidth+'px'
|
||||
}
|
||||
)
|
||||
);
|
||||
// deal with text size changes (if the jquery.em plugin is included)
|
||||
// and re-initialise the scrollPane so the track maintains the
|
||||
// correct size
|
||||
$(document).bind(
|
||||
'emchange',
|
||||
function(e, cur, prev)
|
||||
{
|
||||
$this.jScrollPane(settings);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
if (settings.reinitialiseOnImageLoad) {
|
||||
// code inspired by jquery.onImagesLoad: http://plugins.jquery.com/project/onImagesLoad
|
||||
// except we re-initialise the scroll pane when each image loads so that the scroll pane is always up to size...
|
||||
// TODO: Do I even need to store it in $.data? Is a local variable here the same since I don't pass the reinitialiseOnImageLoad when I re-initialise?
|
||||
var $imagesToLoad = $.data(paneEle, 'jScrollPaneImagesToLoad') || $('img', $this);
|
||||
var loadedImages = [];
|
||||
|
||||
if ($imagesToLoad.length) {
|
||||
$imagesToLoad.each(function(i, val) {
|
||||
$(this).bind('load', function() {
|
||||
if($.inArray(i, loadedImages) == -1){ //don't double count images
|
||||
loadedImages.push(val); //keep a record of images we've seen
|
||||
$imagesToLoad = $.grep($imagesToLoad, function(n, i) {
|
||||
return n != val;
|
||||
});
|
||||
$.data(paneEle, 'jScrollPaneImagesToLoad', $imagesToLoad);
|
||||
settings.reinitialiseOnImageLoad = false;
|
||||
$this.jScrollPane(settings); // re-initialise
|
||||
}
|
||||
}).each(function(i, val) {
|
||||
if(this.complete || this.complete===undefined) {
|
||||
//needed for potential cached images
|
||||
this.src = this.src;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
var p = this.originalSidePaddingTotal;
|
||||
|
||||
var cssToApply = {
|
||||
'height':'auto',
|
||||
'width':paneWidth - settings.scrollbarWidth - settings.scrollbarMargin - p + 'px'
|
||||
}
|
||||
|
||||
if(settings.scrollbarOnLeft) {
|
||||
cssToApply.paddingLeft = settings.scrollbarMargin + settings.scrollbarWidth + 'px';
|
||||
} else {
|
||||
cssToApply.paddingRight = settings.scrollbarMargin + 'px';
|
||||
}
|
||||
|
||||
$this.css(cssToApply);
|
||||
|
||||
var contentHeight = $this.outerHeight();
|
||||
var percentInView = paneHeight / contentHeight;
|
||||
|
||||
if (percentInView < .99) {
|
||||
var $container = $this.parent();
|
||||
$container.append(
|
||||
$('<div></div>').attr({'className':'jScrollPaneTrack'}).css({'width':settings.scrollbarWidth+'px'}).append(
|
||||
$('<div></div>').attr({'className':'jScrollPaneDrag'}).css({'width':settings.scrollbarWidth+'px'}).append(
|
||||
$('<div></div>').attr({'className':'jScrollPaneDragTop'}).css({'width':settings.scrollbarWidth+'px'}),
|
||||
$('<div></div>').attr({'className':'jScrollPaneDragBottom'}).css({'width':settings.scrollbarWidth+'px'})
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
var $track = $('>.jScrollPaneTrack', $container);
|
||||
var $drag = $('>.jScrollPaneTrack .jScrollPaneDrag', $container);
|
||||
|
||||
if (settings.showArrows) {
|
||||
|
||||
var currentArrowButton;
|
||||
var currentArrowDirection;
|
||||
var currentArrowInterval;
|
||||
var currentArrowInc;
|
||||
var whileArrowButtonDown = function()
|
||||
{
|
||||
if (currentArrowInc > 4 || currentArrowInc%4==0) {
|
||||
positionDrag(dragPosition + currentArrowDirection * mouseWheelMultiplier);
|
||||
}
|
||||
currentArrowInc ++;
|
||||
};
|
||||
var onArrowMouseUp = function(event)
|
||||
{
|
||||
$('html').unbind('mouseup', onArrowMouseUp);
|
||||
currentArrowButton.removeClass('jScrollActiveArrowButton');
|
||||
clearInterval(currentArrowInterval);
|
||||
};
|
||||
var onArrowMouseDown = function() {
|
||||
$('html').bind('mouseup', onArrowMouseUp);
|
||||
currentArrowButton.addClass('jScrollActiveArrowButton');
|
||||
currentArrowInc = 0;
|
||||
whileArrowButtonDown();
|
||||
currentArrowInterval = setInterval(whileArrowButtonDown, 100);
|
||||
};
|
||||
$container
|
||||
.append(
|
||||
$('<a></a>')
|
||||
.attr({'href':'javascript:;', 'className':'jScrollArrowUp'})
|
||||
.css({'width':settings.scrollbarWidth+'px'})
|
||||
.html('Scroll up')
|
||||
.bind('mousedown', function()
|
||||
{
|
||||
currentArrowButton = $(this);
|
||||
currentArrowDirection = -1;
|
||||
onArrowMouseDown();
|
||||
this.blur();
|
||||
return false;
|
||||
})
|
||||
.bind('click', rf),
|
||||
$('<a></a>')
|
||||
.attr({'href':'javascript:;', 'className':'jScrollArrowDown'})
|
||||
.css({'width':settings.scrollbarWidth+'px'})
|
||||
.html('Scroll down')
|
||||
.bind('mousedown', function()
|
||||
{
|
||||
currentArrowButton = $(this);
|
||||
currentArrowDirection = 1;
|
||||
onArrowMouseDown();
|
||||
this.blur();
|
||||
return false;
|
||||
})
|
||||
.bind('click', rf)
|
||||
);
|
||||
var $upArrow = $('>.jScrollArrowUp', $container);
|
||||
var $downArrow = $('>.jScrollArrowDown', $container);
|
||||
if (settings.arrowSize) {
|
||||
trackHeight = paneHeight - settings.arrowSize - settings.arrowSize;
|
||||
$track
|
||||
.css({'height': trackHeight+'px', top:settings.arrowSize+'px'})
|
||||
} else {
|
||||
var topArrowHeight = $upArrow.height();
|
||||
settings.arrowSize = topArrowHeight;
|
||||
trackHeight = paneHeight - topArrowHeight - $downArrow.height();
|
||||
$track
|
||||
.css({'height': trackHeight+'px', top:topArrowHeight+'px'})
|
||||
}
|
||||
}
|
||||
|
||||
var $pane = $(this).css({'position':'absolute', 'overflow':'visible'});
|
||||
|
||||
var currentOffset;
|
||||
var maxY;
|
||||
var mouseWheelMultiplier;
|
||||
// store this in a seperate variable so we can keep track more accurately than just updating the css property..
|
||||
var dragPosition = 0;
|
||||
var dragMiddle = percentInView*paneHeight/2;
|
||||
|
||||
// pos function borrowed from tooltip plugin and adapted...
|
||||
var getPos = function (event, c) {
|
||||
var p = c == 'X' ? 'Left' : 'Top';
|
||||
return event['page' + c] || (event['client' + c] + (document.documentElement['scroll' + p] || document.body['scroll' + p])) || 0;
|
||||
};
|
||||
|
||||
var ignoreNativeDrag = function() { return false; };
|
||||
|
||||
var initDrag = function()
|
||||
{
|
||||
ceaseAnimation();
|
||||
currentOffset = $drag.offset(false);
|
||||
currentOffset.top -= dragPosition;
|
||||
maxY = trackHeight - $drag[0].offsetHeight;
|
||||
mouseWheelMultiplier = 2 * settings.wheelSpeed * maxY / contentHeight;
|
||||
};
|
||||
|
||||
var onStartDrag = function(event)
|
||||
{
|
||||
initDrag();
|
||||
dragMiddle = getPos(event, 'Y') - dragPosition - currentOffset.top;
|
||||
$('html').bind('mouseup', onStopDrag).bind('mousemove', updateScroll);
|
||||
if ($.browser.msie) {
|
||||
$('html').bind('dragstart', ignoreNativeDrag).bind('selectstart', ignoreNativeDrag);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
var onStopDrag = function()
|
||||
{
|
||||
$('html').unbind('mouseup', onStopDrag).unbind('mousemove', updateScroll);
|
||||
dragMiddle = percentInView*paneHeight/2;
|
||||
if ($.browser.msie) {
|
||||
$('html').unbind('dragstart', ignoreNativeDrag).unbind('selectstart', ignoreNativeDrag);
|
||||
}
|
||||
};
|
||||
var positionDrag = function(destY)
|
||||
{
|
||||
destY = destY < 0 ? 0 : (destY > maxY ? maxY : destY);
|
||||
dragPosition = destY;
|
||||
$drag.css({'top':destY+'px'});
|
||||
var p = destY / maxY;
|
||||
$this.data('jScrollPanePosition', (paneHeight-contentHeight)*-p);
|
||||
$pane.css({'top':((paneHeight-contentHeight)*p) + 'px'});
|
||||
$this.trigger('scroll');
|
||||
if (settings.showArrows) {
|
||||
$upArrow[destY == 0 ? 'addClass' : 'removeClass']('disabled');
|
||||
$downArrow[destY == maxY ? 'addClass' : 'removeClass']('disabled');
|
||||
}
|
||||
};
|
||||
var updateScroll = function(e)
|
||||
{
|
||||
positionDrag(getPos(e, 'Y') - currentOffset.top - dragMiddle);
|
||||
};
|
||||
|
||||
var dragH = Math.max(Math.min(percentInView*(paneHeight-settings.arrowSize*2), settings.dragMaxHeight), settings.dragMinHeight);
|
||||
|
||||
$drag.css(
|
||||
{'height':dragH+'px'}
|
||||
).bind('mousedown', onStartDrag);
|
||||
|
||||
var trackScrollInterval;
|
||||
var trackScrollInc;
|
||||
var trackScrollMousePos;
|
||||
var doTrackScroll = function()
|
||||
{
|
||||
if (trackScrollInc > 8 || trackScrollInc%4==0) {
|
||||
positionDrag((dragPosition - ((dragPosition - trackScrollMousePos) / 2)));
|
||||
}
|
||||
trackScrollInc ++;
|
||||
};
|
||||
var onStopTrackClick = function()
|
||||
{
|
||||
clearInterval(trackScrollInterval);
|
||||
$('html').unbind('mouseup', onStopTrackClick).unbind('mousemove', onTrackMouseMove);
|
||||
};
|
||||
var onTrackMouseMove = function(event)
|
||||
{
|
||||
trackScrollMousePos = getPos(event, 'Y') - currentOffset.top - dragMiddle;
|
||||
};
|
||||
var onTrackClick = function(event)
|
||||
{
|
||||
initDrag();
|
||||
onTrackMouseMove(event);
|
||||
trackScrollInc = 0;
|
||||
$('html').bind('mouseup', onStopTrackClick).bind('mousemove', onTrackMouseMove);
|
||||
trackScrollInterval = setInterval(doTrackScroll, 100);
|
||||
doTrackScroll();
|
||||
return false;
|
||||
};
|
||||
|
||||
$track.bind('mousedown', onTrackClick);
|
||||
|
||||
$container.bind(
|
||||
'mousewheel',
|
||||
function (event, delta) {
|
||||
initDrag();
|
||||
ceaseAnimation();
|
||||
var d = dragPosition;
|
||||
positionDrag(dragPosition - delta * mouseWheelMultiplier);
|
||||
var dragOccured = d != dragPosition;
|
||||
return !dragOccured;
|
||||
}
|
||||
);
|
||||
|
||||
var _animateToPosition;
|
||||
var _animateToInterval;
|
||||
function animateToPosition()
|
||||
{
|
||||
var diff = (_animateToPosition - dragPosition) / settings.animateStep;
|
||||
if (diff > 1 || diff < -1) {
|
||||
positionDrag(dragPosition + diff);
|
||||
} else {
|
||||
positionDrag(_animateToPosition);
|
||||
ceaseAnimation();
|
||||
}
|
||||
}
|
||||
var ceaseAnimation = function()
|
||||
{
|
||||
if (_animateToInterval) {
|
||||
clearInterval(_animateToInterval);
|
||||
delete _animateToPosition;
|
||||
}
|
||||
};
|
||||
var scrollTo = function(pos, preventAni)
|
||||
{
|
||||
if (typeof pos == "string") {
|
||||
$e = $(pos, $this);
|
||||
if (!$e.length) return;
|
||||
pos = $e.offset().top - $this.offset().top;
|
||||
}
|
||||
$container.scrollTop(0);
|
||||
ceaseAnimation();
|
||||
var maxScroll = contentHeight - paneHeight;
|
||||
pos = pos > maxScroll ? maxScroll : pos;
|
||||
$this.data('jScrollPaneMaxScroll', maxScroll);
|
||||
var destDragPosition = pos/maxScroll * maxY;
|
||||
if (preventAni || !settings.animateTo) {
|
||||
positionDrag(destDragPosition);
|
||||
} else {
|
||||
_animateToPosition = destDragPosition;
|
||||
_animateToInterval = setInterval(animateToPosition, settings.animateInterval);
|
||||
}
|
||||
};
|
||||
$this[0].scrollTo = scrollTo;
|
||||
|
||||
$this[0].scrollBy = function(delta)
|
||||
{
|
||||
var currentPos = -parseInt($pane.css('top')) || 0;
|
||||
scrollTo(currentPos + delta);
|
||||
};
|
||||
|
||||
initDrag();
|
||||
|
||||
scrollTo(-currentScrollPosition, true);
|
||||
|
||||
// Deal with it when the user tabs to a link or form element within this scrollpane
|
||||
$('*', this).bind(
|
||||
'focus',
|
||||
function(event)
|
||||
{
|
||||
var $e = $(this);
|
||||
|
||||
// loop through parents adding the offset top of any elements that are relatively positioned between
|
||||
// the focused element and the jScrollPaneContainer so we can get the true distance from the top
|
||||
// of the focused element to the top of the scrollpane...
|
||||
var eleTop = 0;
|
||||
|
||||
while ($e[0] != $this[0]) {
|
||||
eleTop += $e.position().top;
|
||||
$e = $e.offsetParent();
|
||||
}
|
||||
|
||||
var viewportTop = -parseInt($pane.css('top')) || 0;
|
||||
var maxVisibleEleTop = viewportTop + paneHeight;
|
||||
var eleInView = eleTop > viewportTop && eleTop < maxVisibleEleTop;
|
||||
if (!eleInView) {
|
||||
var destPos = eleTop - settings.scrollbarMargin;
|
||||
if (eleTop > viewportTop) { // element is below viewport - scroll so it is at bottom.
|
||||
destPos += $(this).height() + 15 + settings.scrollbarMargin - paneHeight;
|
||||
}
|
||||
scrollTo(destPos);
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
if (location.hash) {
|
||||
scrollTo(location.hash);
|
||||
}
|
||||
|
||||
// use event delegation to listen for all clicks on links and hijack them if they are links to
|
||||
// anchors within our content...
|
||||
$(document).bind(
|
||||
'click',
|
||||
function(e)
|
||||
{
|
||||
$target = $(e.target);
|
||||
if ($target.is('a')) {
|
||||
var h = $target.attr('href');
|
||||
if (h && h.substr(0, 1) == '#') {
|
||||
scrollTo(h);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
$.jScrollPane.active.push($this[0]);
|
||||
|
||||
} else {
|
||||
$this.css(
|
||||
{
|
||||
'height':paneHeight+'px',
|
||||
'width':paneWidth-this.originalSidePaddingTotal+'px',
|
||||
'padding':this.originalPadding
|
||||
}
|
||||
);
|
||||
// remove from active list?
|
||||
$this.parent().unbind('mousewheel');
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
};
|
||||
|
||||
$.fn.jScrollPaneRemove = function()
|
||||
{
|
||||
$(this).each(function()
|
||||
{
|
||||
$this = $(this);
|
||||
var $c = $this.parent();
|
||||
if ($c.is('.jScrollPaneContainer')) {
|
||||
$this.css(
|
||||
{
|
||||
'top':'',
|
||||
'height':'',
|
||||
'width':'',
|
||||
'padding':'',
|
||||
'overflow':'',
|
||||
'position':''
|
||||
}
|
||||
);
|
||||
$c.after($this).remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$.fn.jScrollPane.defaults = {
|
||||
scrollbarWidth : 10,
|
||||
scrollbarMargin : 5,
|
||||
wheelSpeed : 18,
|
||||
showArrows : false,
|
||||
arrowSize : 0,
|
||||
animateTo : false,
|
||||
dragMinHeight : 1,
|
||||
dragMaxHeight : 99999,
|
||||
animateInterval : 100,
|
||||
animateStep: 3,
|
||||
maintainPosition: true,
|
||||
scrollbarOnLeft: false,
|
||||
reinitialiseOnImageLoad: false
|
||||
};
|
||||
|
||||
// clean up the scrollTo expandos
|
||||
$(window)
|
||||
.bind('unload', function() {
|
||||
var els = $.jScrollPane.active;
|
||||
for (var i=0; i<els.length; i++) {
|
||||
els[i].scrollTo = els[i].scrollBy = null;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,2 @@
|
||||
// jQEm v0.2: http://davecardwell.co.uk/javascript/jquery/plugins/jquery-em/
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};while(c--){if(k[c]){p=p.replace(new RegExp(e(c),'g'),k[c])}}return p}('× ¢(){¿ ¾={\'²\':¢(»){£ »!=¤?¡.²=»:¡.²},\'¬\':¢(){£ ¡.¬()},\'«\':¢(¥){£ ¡.«(¥)},\'¯\':¢(¥){£ ¡.¯(¥)},\'¨\':¢(,¶){£ ¡.¨(,¶)},\'ª\':¢(){£ ¡.ª},\'³\':¢(¸){£ ¸?¡.³=¸:¡.³},\'©\':¢(){£ ¡.©()},\'°\':¢(){£ ¡.°()},\'§\':¢(){£ ¡.§},\'±\':¢(){£ ¡.±}};$.Ã=¾;¿ ¡={\'e\':$(Á.Ç(\'i\')),\'ª\':·,\'´\':¤,\'§\':¤,\'³\':È,\'½\':¤,\'±\':¤,\'²\':Å,\'¬\':¬,\'«\':«,\'¯\':¯,\'¨\':¨,\'º\':¢(){¡.¨(·);£\'¼\'},\'©\':©,\'°\':°};$(Á).É(¢(){¦(¡.²)¬()});¢ ¬(){$(\'Ê\').Ë(¡.e.Ì({\'Í\':\'Î\',\'Ï\':\'-¼\',\'Ð\':\'Ñ\',\'Ó\':\'Ô\',\'®\':\'¼\'}));¡.´=(¡.e.µ!=¤&&¡.e.µ.Â!=¤);¡.©()};¢ «(¥){¡.e.«(\'¹\',¥)};¢ ¯(¥){¡.e.¯(\'¹\',¥)};¢ ¨(,¶){¦(==¤)=·;¦(||¡.e.®()!=¡.§){¡.±=¡.§;¡.§=¡.e.®();$.Æ.¨(\'¹\',¶)}};¢ ©(){¦(¡.ª)£;¡.§=¡.±=¡.e.®();¦(¡.´){¡.e.µ.Â(\'®\',\'$.Ã.º();\')}À{¡.½=Ä.Ò(¡.º,¡.³)}¡.ª=Å};¢ °(){¦(!¡.ª)£;¦(¡.´){¡.e.µ.Õ(\'®\')}À{Ä.Ö(¡.½)}}}();',55,55,'Private|function|return|undefined|callback|if|current|trigger|start|active|bind|init|force|width|unbind|stop|previous|auto|delay|canExp|style|args|false|milliseconds|emchange|update|bool|1em|iid|Public|var|else|document|setExpression|jqem|window|true|event|createElement|100|ready|body|prepend|css|display|block|left|position|absolute|setInterval|visibility|hidden|removeExpression|removeInterval|new'.split('|')))
|
||||
@@ -0,0 +1,3 @@
|
||||
/* jQMinMax v0.1 - Copyright (c) 2006 Dave Cardwell (http://davecardwell.co.uk/)
|
||||
Released under the MIT License (http://www.opensource.org/licenses/mit-license.php) */
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('u m(){$.5={D:y,v:y};$(G).12(m(){8 h=G.W(\'I\');$(h).e({\'3\':\'J\',\'6-3\':\'K\'});$(\'L\').M(h);$.5.v=(h.s&&h.s==2);$(h).N();b($.5.v)o;$.5.D=O;$.5.A();$(\':5\').5()});$.5.A=m(){8 p=u E(\'6-3\',\'6-4\',\'9-3\',\'9-4\');8 5=u E();Q(8 i=0;i<p.R;i++){8 n="$.e(a,\'"+p[i]+"\')!=\'S\'&&"+"$.e(a,\'"+p[i]+"\')!=\'z\'&&"+"$.e(a,\'"+p[i]+"\')!=f.g";b(p[i].U(2)==\'x\')n+="&&$.e(a,\'"+p[i]+"\')!=\'X\'";$.n[\':\'][p[i]]=n;5[i]=\'(\'+n+\')\'}$.n[\':\'][\'5\']=5.Y(\'||\')};$.Z.5=m(){o $(c).10(m(){8 7={\'6-3\':r(c,\'6-3\'),\'9-3\':r(c,\'9-3\'),\'6-4\':r(c,\'6-4\'),\'9-4\':r(c,\'9-4\')};8 3=c.s;8 4=c.w;8 k=3;8 l=4;b(7[\'9-3\']!=f.g&&k>7[\'9-3\'])k=7[\'9-3\'];b(7[\'6-3\']!=f.g&&k<7[\'6-3\'])k=7[\'6-3\'];b(7[\'9-4\']!=f.g&&l>7[\'9-4\'])l=7[\'9-4\'];b(7[\'6-4\']!=f.g&&l<7[\'6-4\'])l=7[\'6-4\'];b(k!=3)$(c).e(\'3\',k);b(l!=4)$(c).e(\'4\',l)})};m r(t,p){8 q=$(t).e(p);b(q==f.g||q==\'z\')o f.g;8 j;j=q.B(/^\\+?(\\d*(?:\\.\\d+)?)%$/);b(j){o T.V(C((/3$/.h(p)?$(t).F().H(0).s:$(t).F().H(0).w)*j[1]/P))}j=q.B(/^\\+?(\\d*(?:\\.\\d+)?)(?:11)?$/);b(j){o C(j[1])}o f.g}}();',62,65,'|||width|height|minmax|min|constraint|var|max||if|this||css|window|undefined|test||result|newWidth|newHeight|function|expr|return||raw|calculate|offsetWidth|obj|new|native|offsetHeight||false|auto|expressions|match|Number|active|Array|parent|document|get|div|1px|2px|body|append|remove|true|100|for|length|0px|Math|charAt|round|createElement|none|join|fn|each|px|ready'.split('|'),0,{}))
|
||||
@@ -0,0 +1,91 @@
|
||||
|
||||
jQuery.fn.checkboxToggle = function(opt){
|
||||
|
||||
var check = jQuery(this).next()[0].checked == true;
|
||||
jQuery(this)
|
||||
.attr({ src: check ? opt.unchecked : opt.checked })
|
||||
.next()[0].checked = !check;
|
||||
}
|
||||
|
||||
jQuery.fn.checkbox = function(opt){
|
||||
jQuery(":checkbox", this)
|
||||
|
||||
// Hide each native checkbox
|
||||
.hide()
|
||||
|
||||
// Iterate through checkboxes and do all the magical stuff
|
||||
.each(function (){
|
||||
|
||||
jQuery("<img>")
|
||||
|
||||
// Set image attributes
|
||||
.attr({src: this.checked ? opt.checked : opt.unchecked, alt: "" })
|
||||
|
||||
//
|
||||
.click(function() {
|
||||
jQuery(this).checkboxToggle(opt);
|
||||
})
|
||||
|
||||
// Attach image
|
||||
.insertBefore(this);
|
||||
});
|
||||
}
|
||||
|
||||
jQuery.fn.cssCheckboxToggle = function(){
|
||||
jQuery(this).each(function(){
|
||||
var label = jQuery(this);
|
||||
label.toggleClass("checked");
|
||||
var check = jQuery(":checkbox[@name='"+label.attr("for")+"']")[0];
|
||||
check.checked = !check.checked;
|
||||
});
|
||||
}
|
||||
|
||||
jQuery.fn.cssCheckboxCheck = function(){
|
||||
jQuery(this).each(function(){
|
||||
var label = jQuery(this);
|
||||
label.addClass("checked");
|
||||
var check = jQuery(":checkbox[@name='"+label.attr("for")+"']")[0];
|
||||
check.checked = true;
|
||||
});
|
||||
}
|
||||
|
||||
jQuery.fn.cssCheckboxUncheck = function(){
|
||||
jQuery(this).each(function(){
|
||||
var label = jQuery(this);
|
||||
label.removeClass("checked");
|
||||
var check = jQuery(":checkbox[@name='"+label.attr("for")+"']")[0];
|
||||
check.checked = false;
|
||||
});
|
||||
}
|
||||
|
||||
jQuery.fn.cssCheckbox = function(){
|
||||
jQuery(":checkbox", this)
|
||||
|
||||
// Hide native checkboxes
|
||||
.hide()
|
||||
|
||||
// Find related labels and add all the fancy stuff
|
||||
.each(function(){
|
||||
|
||||
var check = this;
|
||||
var jlabel = jQuery("label[@for='"+jQuery(check).attr("name")+"']");
|
||||
|
||||
// Initial state check
|
||||
if (check.checked) {
|
||||
jlabel.addClass("checked");
|
||||
}
|
||||
|
||||
jlabel
|
||||
|
||||
// Label hover state
|
||||
.hover(
|
||||
function() { jQuery(this).addClass("over"); },
|
||||
function() { jQuery(this).removeClass("over"); }
|
||||
)
|
||||
|
||||
// Label click state
|
||||
.click(function(){
|
||||
jQuery(this).cssCheckboxToggle();
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* jQuery Color Animations
|
||||
* Copyright 2007 John Resig
|
||||
* Released under the MIT and GPL licenses.
|
||||
*/
|
||||
|
||||
(function(jQuery){
|
||||
|
||||
// We override the animation for all of these color styles
|
||||
jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
|
||||
jQuery.fx.step[attr] = function(fx){
|
||||
if ( fx.state == 0 ) {
|
||||
fx.start = getColor( fx.elem, attr );
|
||||
fx.end = getRGB( fx.end );
|
||||
}
|
||||
|
||||
fx.elem.style[attr] = "rgb(" + [
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
|
||||
].join(",") + ")";
|
||||
}
|
||||
});
|
||||
|
||||
// Color Conversion functions from highlightFade
|
||||
// By Blair Mitchelmore
|
||||
// http://jquery.offput.ca/highlightFade/
|
||||
|
||||
// Parse strings looking for color tuples [255,255,255]
|
||||
function getRGB(color) {
|
||||
var result;
|
||||
|
||||
// Check if we're already dealing with an array of colors
|
||||
if ( color && color.constructor == Array && color.length == 3 )
|
||||
return color;
|
||||
|
||||
// Look for rgb(num,num,num)
|
||||
if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
|
||||
return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
|
||||
|
||||
// Look for rgb(num%,num%,num%)
|
||||
if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
|
||||
return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
|
||||
|
||||
// Look for #a0b1c2
|
||||
if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
|
||||
return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
|
||||
|
||||
// Look for #fff
|
||||
if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
|
||||
return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
|
||||
|
||||
// Otherwise, we're most likely dealing with a named color
|
||||
return colors[jQuery.trim(color).toLowerCase()];
|
||||
}
|
||||
|
||||
function getColor(elem, attr) {
|
||||
var color;
|
||||
|
||||
do {
|
||||
color = jQuery.curCSS(elem, attr);
|
||||
|
||||
// Keep going until we find an element that has color, or we hit the body
|
||||
if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
|
||||
break;
|
||||
|
||||
attr = "backgroundColor";
|
||||
} while ( elem = elem.parentNode );
|
||||
|
||||
return getRGB(color);
|
||||
};
|
||||
|
||||
// Some named colors to work with
|
||||
// From Interface by Stefan Petre
|
||||
// http://interface.eyecon.ro/
|
||||
|
||||
var colors = {
|
||||
aqua:[0,255,255],
|
||||
azure:[240,255,255],
|
||||
beige:[245,245,220],
|
||||
black:[0,0,0],
|
||||
blue:[0,0,255],
|
||||
brown:[165,42,42],
|
||||
cyan:[0,255,255],
|
||||
darkblue:[0,0,139],
|
||||
darkcyan:[0,139,139],
|
||||
darkgrey:[169,169,169],
|
||||
darkgreen:[0,100,0],
|
||||
darkkhaki:[189,183,107],
|
||||
darkmagenta:[139,0,139],
|
||||
darkolivegreen:[85,107,47],
|
||||
darkorange:[255,140,0],
|
||||
darkorchid:[153,50,204],
|
||||
darkred:[139,0,0],
|
||||
darksalmon:[233,150,122],
|
||||
darkviolet:[148,0,211],
|
||||
fuchsia:[255,0,255],
|
||||
gold:[255,215,0],
|
||||
green:[0,128,0],
|
||||
indigo:[75,0,130],
|
||||
khaki:[240,230,140],
|
||||
lightblue:[173,216,230],
|
||||
lightcyan:[224,255,255],
|
||||
lightgreen:[144,238,144],
|
||||
lightgrey:[211,211,211],
|
||||
lightpink:[255,182,193],
|
||||
lightyellow:[255,255,224],
|
||||
lime:[0,255,0],
|
||||
magenta:[255,0,255],
|
||||
maroon:[128,0,0],
|
||||
navy:[0,0,128],
|
||||
olive:[128,128,0],
|
||||
orange:[255,165,0],
|
||||
pink:[255,192,203],
|
||||
purple:[128,0,128],
|
||||
violet:[128,0,128],
|
||||
red:[255,0,0],
|
||||
silver:[192,192,192],
|
||||
white:[255,255,255],
|
||||
yellow:[255,255,0]
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,96 @@
|
||||
/**
|
||||
* Cookie plugin
|
||||
*
|
||||
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a cookie with the given name and value and other optional parameters.
|
||||
*
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Set the value of a cookie.
|
||||
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
||||
* @desc Create a cookie with all available options.
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Create a session cookie.
|
||||
* @example $.cookie('the_cookie', null);
|
||||
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
||||
* used when the cookie was set.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @param String value The value of the cookie.
|
||||
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
||||
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
||||
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
||||
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
||||
* when the the browser exits.
|
||||
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
||||
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
||||
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
||||
* require a secure protocol (like HTTPS).
|
||||
* @type undefined
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the value of a cookie with the given name.
|
||||
*
|
||||
* @example $.cookie('the_cookie');
|
||||
* @desc Get the value of a cookie.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @return The value of the cookie.
|
||||
* @type String
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
jQuery.cookie = function(name, value, options) {
|
||||
if (typeof value != 'undefined') { // name and value given, set cookie
|
||||
options = options || {};
|
||||
if (value === null) {
|
||||
value = '';
|
||||
options.expires = -1;
|
||||
}
|
||||
var expires = '';
|
||||
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
||||
var date;
|
||||
if (typeof options.expires == 'number') {
|
||||
date = new Date();
|
||||
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
||||
} else {
|
||||
date = options.expires;
|
||||
}
|
||||
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
||||
}
|
||||
// CAUTION: Needed to parenthesize options.path and options.domain
|
||||
// in the following expressions, otherwise they evaluate to undefined
|
||||
// in the packed version for some reason...
|
||||
var path = options.path ? '; path=' + (options.path) : '';
|
||||
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
||||
var secure = options.secure ? '; secure' : '';
|
||||
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
||||
} else { // only name given, get cookie
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
|
||||
* $Rev: 4257 $
|
||||
*
|
||||
* Version: 1.2
|
||||
*
|
||||
* Requires: jQuery 1.2+
|
||||
*/
|
||||
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}))
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php
|
||||
*
|
||||
* Uses the built In easIng capabilities added In jQuery 1.1
|
||||
* to offer multiple easIng options
|
||||
*
|
||||
* Copyright (c) 2007 George Smith
|
||||
* Licensed under the MIT License:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
easeInQuad: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t + b;
|
||||
},
|
||||
easeOutQuad: function (x, t, b, c, d) {
|
||||
return -c *(t/=d)*(t-2) + b;
|
||||
},
|
||||
easeInOutQuad: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t + b;
|
||||
return -c/2 * ((--t)*(t-2) - 1) + b;
|
||||
},
|
||||
easeInCubic: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t + b;
|
||||
},
|
||||
easeOutCubic: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t + 1) + b;
|
||||
},
|
||||
easeInOutCubic: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t + 2) + b;
|
||||
},
|
||||
easeInQuart: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t + b;
|
||||
},
|
||||
easeOutQuart: function (x, t, b, c, d) {
|
||||
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
||||
},
|
||||
easeInOutQuart: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
||||
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
||||
},
|
||||
easeInQuint: function (x, t, b, c, d) {
|
||||
return c*(t/=d)*t*t*t*t + b;
|
||||
},
|
||||
easeOutQuint: function (x, t, b, c, d) {
|
||||
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
||||
},
|
||||
easeInOutQuint: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
||||
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
||||
},
|
||||
easeInSine: function (x, t, b, c, d) {
|
||||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
||||
},
|
||||
easeOutSine: function (x, t, b, c, d) {
|
||||
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
||||
},
|
||||
easeInOutSine: function (x, t, b, c, d) {
|
||||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
||||
},
|
||||
easeInExpo: function (x, t, b, c, d) {
|
||||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
||||
},
|
||||
easeOutExpo: function (x, t, b, c, d) {
|
||||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
||||
},
|
||||
easeInOutExpo: function (x, t, b, c, d) {
|
||||
if (t==0) return b;
|
||||
if (t==d) return b+c;
|
||||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
||||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
||||
},
|
||||
easeInCirc: function (x, t, b, c, d) {
|
||||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
||||
},
|
||||
easeOutCirc: function (x, t, b, c, d) {
|
||||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
||||
},
|
||||
easeInOutCirc: function (x, t, b, c, d) {
|
||||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
||||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
||||
},
|
||||
easeInElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
},
|
||||
easeOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
||||
},
|
||||
easeInOutElastic: function (x, t, b, c, d) {
|
||||
var s=1.70158;var p=0;var a=c;
|
||||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
||||
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
||||
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
||||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
||||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
||||
},
|
||||
easeInBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*(t/=d)*t*((s+1)*t - s) + b;
|
||||
},
|
||||
easeOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
||||
},
|
||||
easeInOutBack: function (x, t, b, c, d, s) {
|
||||
if (s == undefined) s = 1.70158;
|
||||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
||||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
||||
},
|
||||
easeInBounce: function (x, t, b, c, d) {
|
||||
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
||||
},
|
||||
easeOutBounce: function (x, t, b, c, d) {
|
||||
if ((t/=d) < (1/2.75)) {
|
||||
return c*(7.5625*t*t) + b;
|
||||
} else if (t < (2/2.75)) {
|
||||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
||||
} else if (t < (2.5/2.75)) {
|
||||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
||||
} else {
|
||||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
||||
}
|
||||
},
|
||||
easeInOutBounce: function (x, t, b, c, d) {
|
||||
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
||||
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
*
|
||||
* $LastChangedDate: 2007-12-14 23:57:10 -0600 (Fri, 14 Dec 2007) $
|
||||
* $Rev: 4163 $
|
||||
*
|
||||
* Version: 3.0
|
||||
*
|
||||
* Requires: $ 1.2.2+
|
||||
*/
|
||||
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.6.j.4={L:5(){9 b=$.6.j.4.i;7($.8.f)$(2).o(\'y.4\',5(a){$.d(2,\'h\',{x:a.x,l:a.l,s:a.s,r:a.r})});7(2.q)2.q(($.8.f?\'v\':\'4\'),b,n);m 2.w=b},D:5(){9 a=$.6.j.4.i;$(2).k(\'y.4\');7(2.u)2.u(($.8.f?\'v\':\'4\'),a,n);m 2.w=5(){};$.A(2,\'h\')},i:5(a){9 c=U.T.S.P(O,1);a=$.6.N(a||M.6);$.t(a,$.d(2,\'h\')||{});9 b=0,K=J;7(a.e)b=a.e/I;7(a.p)b=-a.p/3;7($.8.H)b=-a.e;a.d=a.d||{};a.G="4";c.z(b);c.z(a);g $.6.F.E(2,c)}};$.Q.t({4:5(a){g a?2.o("4",a):2.R("4")},C:5(a){g 2.k("4",a)}})})(B);',57,57,'||this||mousewheel|function|event|if|browser|var||||data|wheelDelta|mozilla|return|mwcursorposdata|handler|special|unbind|pageY|else|false|bind|detail|addEventListener|clientY|clientX|extend|removeEventListener|DOMMouseScroll|onmousewheel|pageX|mousemove|unshift|removeData|jQuery|unmousewheel|teardown|apply|handle|type|opera|120|true|returnValue|setup|window|fix|arguments|call|fn|trigger|slice|prototype|Array'.split('|'),0,{}))
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user