reinit
This commit is contained in:
commit
ced6c67fcc
664 changed files with 115177 additions and 0 deletions
12
html/jbreadcrumb/.project
Normal file
12
html/jbreadcrumb/.project
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>jQuery Plugins</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.aptana.ide.project.nature.web</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
208
html/jbreadcrumb/.tmp_jBreadCrumb.html.84957~
Normal file
208
html/jbreadcrumb/.tmp_jBreadCrumb.html.84957~
Normal file
|
@ -0,0 +1,208 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>CompareNetworks jQuery'd Bread Crumb - jBreadCrumb</title>
|
||||
<link rel="stylesheet" href="Styles/Base.css" type="text/css">
|
||||
<link rel="stylesheet" href="Styles/BreadCrumb.css" type="text/css">
|
||||
<script src="js/jquery.js" type="text/javascript" language="JavaScript">
|
||||
</script>
|
||||
<script src="js/jquery.easing.1.3.js" type="text/javascript" language="JavaScript">
|
||||
</script>
|
||||
<script src="js/jquery.jBreadCrumb.js" type="text/javascript" language="JavaScript">
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb0").jBreadCrumb();
|
||||
jQuery("#breadCrumb1").jBreadCrumb();
|
||||
jQuery("#breadCrumb2").jBreadCrumb();
|
||||
jQuery("#breadCrumb3").jBreadCrumb();
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1>CompareNetworks jQuery'd Bread Crumb - jBreadCrumb</h1>
|
||||
<!-- Bread Crumb Code - Be sure to include the chevronOverlay element so we can load the semi transparend png -->
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb0" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb1" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™ Kit (MGS™ Kit) from Finnzymes Oy
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb2" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™ Kit (MGS™ Kit) from Finnzymes Oy. Ok, let's get ridiculously long here, we all know it happens.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb3" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chevronOverlay main">
|
||||
</div>
|
||||
<!-- End Bread Crumb Code -->
|
||||
<div class="writeup module">
|
||||
<div class="description">
|
||||
<h2>Explanation</h2>
|
||||
<p>
|
||||
This collapsible breadcrumb was developed to deal with deeply nested, verbosely named pages. Rather than limit the amount of elements shown on the sever side, we decided to go with a client side solution for usability and SEO reasons. It also turned out nice to look at and fun to play with.
|
||||
</p>
|
||||
<p>
|
||||
It is smart in the sense that it collapses based upon the amount and length of the elements in the set. The breadcrumb uses a semitransparent .png overlay to achieve the gradient effect seen on the elements. Visually, it helps to show a "peek" at what is underneath.
|
||||
</p>
|
||||
<p>
|
||||
Oh, and it's compatible with ie 6, ie 7 and all standards compliant browsers.
|
||||
</p>
|
||||
<p>
|
||||
To use the plugin, it's as simple as the code below.
|
||||
</p>
|
||||
<pre>jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb").jBreadCrumb();
|
||||
})</pre>
|
||||
<p>
|
||||
The only additional jQuery plugin required is the <a href="http://gsgd.co.uk/sandbox/jquery/easing/" title="jQuery Easing">easing plugin</a>
|
||||
written by GSGD. The plugin uses Robert Penner's wonderful easing equations that anyone from a flash background is familiar with, I love 'easeOutQuad', it makes things so smooooth.
|
||||
</p>
|
||||
<p>
|
||||
If you don't want to use the plugin, set the options to use the normal "swing" (esentially "easeInOut") or "linear" easing provided by jQuery. The easing equations will no longer be necessary.
|
||||
</p>
|
||||
<pre>jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb").jBreadCrumb({easing:'swing'});
|
||||
})
|
||||
</pre>
|
||||
<p>
|
||||
Or, set it globally
|
||||
</p>
|
||||
<pre>
|
||||
jQuery.fn.jBreadCrumb.defaults.easing = 'linear';
|
||||
</pre>
|
||||
<p>
|
||||
There are a lot of options in there, you can adjust many of the features pretty easily through the options. Have fun with it.</p>
|
||||
<p>
|
||||
Written by Jason Roy for CompareNetworks Inc.
|
||||
</p>
|
||||
<div class="license">
|
||||
<p>
|
||||
Copyright (c) 2008 CompareNetworks Inc.
|
||||
</p>
|
||||
<p>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
</p>
|
||||
<p>
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
</p>
|
||||
<p>
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sideBar">
|
||||
<h3>Get jQuery.jBreadCrumb</h3>
|
||||
<p>
|
||||
You can download the files necessary to use the plugin here
|
||||
</p>
|
||||
<p>
|
||||
<strong><a href="jBreadCrumb.zip" title="Download jBreadCrumb Plugin">Download jBreadCrumb Plugin</a></strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
html/jbreadcrumb/Images/Chevron.gif
Normal file
BIN
html/jbreadcrumb/Images/Chevron.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 B |
BIN
html/jbreadcrumb/Images/ChevronOverlay.png
Normal file
BIN
html/jbreadcrumb/Images/ChevronOverlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 310 B |
BIN
html/jbreadcrumb/Images/IconHome.gif
Normal file
BIN
html/jbreadcrumb/Images/IconHome.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 549 B |
231
html/jbreadcrumb/Styles/Base.css
Normal file
231
html/jbreadcrumb/Styles/Base.css
Normal file
|
@ -0,0 +1,231 @@
|
|||
/* Float Clearing
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
.module:after
|
||||
{
|
||||
clear: both;
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* float clearing for IE6 */
|
||||
* html .module
|
||||
{
|
||||
height: 1%;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* float clearing for IE7 */
|
||||
* + html .module
|
||||
{
|
||||
min-height: 1%;
|
||||
}
|
||||
|
||||
|
||||
/* General Typography
|
||||
---------------------------------------------------------------------*/
|
||||
html, body
|
||||
{
|
||||
font-size: 12px;
|
||||
line-height: 21px;
|
||||
color: #444;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal;
|
||||
background:#f3f3f3;
|
||||
}
|
||||
|
||||
html > body
|
||||
{
|
||||
font-size: 12px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
|
||||
h1
|
||||
{
|
||||
font-weight: bold;
|
||||
color: #007ac3;
|
||||
font-size: 2em;
|
||||
line-height: 1em;
|
||||
margin: 1.25em 0 .75em 0;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
color: #1371aa;
|
||||
font-weight: bold;
|
||||
font-size: 1.6666em;
|
||||
line-height: 1em;
|
||||
margin: 1.25em 0 .75em 0;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
color: #1371aa;
|
||||
font-size: 1.41667em;
|
||||
line-height: 1em;
|
||||
font-weight: bold;
|
||||
margin: 1.25em 0 .75em 0;
|
||||
}
|
||||
|
||||
h4
|
||||
{
|
||||
color: #000;
|
||||
font-size: 1.1667em;
|
||||
line-height: 1em;
|
||||
font-weight: bold;
|
||||
margin: 1.25em 0 .5em 0;
|
||||
}
|
||||
|
||||
h5
|
||||
{
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
font-weight: bold;
|
||||
margin: 1.25em 0 .5em 0;
|
||||
}
|
||||
|
||||
h6
|
||||
{
|
||||
color: #000;
|
||||
font-size: 1em;
|
||||
line-height: 1em;
|
||||
font-weight: bold;
|
||||
margin: 1.25em 0 .5em 0;
|
||||
}
|
||||
|
||||
strong
|
||||
{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
em
|
||||
{
|
||||
font-style: italic;
|
||||
line-height: 1.75em;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
font-size: 1em;
|
||||
line-height: 1.75em;
|
||||
margin: .25em 0 1.5em;
|
||||
}
|
||||
td, td a, th, th a, span
|
||||
{
|
||||
line-height: 1.3333em;
|
||||
}
|
||||
|
||||
blockquote
|
||||
{
|
||||
margin: .416em 0 .416em 1.1667em;
|
||||
}
|
||||
|
||||
a
|
||||
{
|
||||
color: #0e82c7;
|
||||
text-decoration: none;
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
a:hover
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
ul, ol
|
||||
{
|
||||
margin: .833em 0;
|
||||
padding-left: 2em;
|
||||
}
|
||||
ul
|
||||
{
|
||||
list-style-type: disc;
|
||||
}
|
||||
ol
|
||||
{
|
||||
list-style-type: decimal;
|
||||
}
|
||||
ul li, ol li
|
||||
{
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
dt
|
||||
{
|
||||
margin: .416em 0 0 0;
|
||||
}
|
||||
|
||||
dd
|
||||
{
|
||||
margin: .416em 0 .416em 1.1667em;
|
||||
}
|
||||
|
||||
pre, code, tt
|
||||
{
|
||||
font-family: "Andale Mono" , "Lucida Console" , "Courier New" , Courier, monospace;
|
||||
margin: .833em 0;
|
||||
}
|
||||
sub
|
||||
{
|
||||
vertical-align: sub;
|
||||
font-size: smaller;
|
||||
line-height:inherit;
|
||||
}
|
||||
|
||||
sup
|
||||
{
|
||||
vertical-align: super;
|
||||
font-size: smaller;
|
||||
line-height:inherit;
|
||||
}
|
||||
|
||||
/* Page Specific
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
#container
|
||||
{
|
||||
|
||||
margin:0 auto 10px;
|
||||
text-align:left;
|
||||
width:1000px;
|
||||
}
|
||||
.breadCrumbHolder
|
||||
{
|
||||
margin:0 0 20px 0;
|
||||
}
|
||||
pre
|
||||
{
|
||||
background:#ddd;
|
||||
border:solid 1px #fff;
|
||||
padding:10px;
|
||||
color:#111;
|
||||
}
|
||||
.description
|
||||
{
|
||||
float:left;
|
||||
width:700px;
|
||||
margin-right:20px;
|
||||
}
|
||||
.sideBar
|
||||
{
|
||||
float:left;
|
||||
background:#fff;
|
||||
border:solid 1px #dedede;
|
||||
padding:20px;
|
||||
width:238px;
|
||||
margin:50px 0 0 0;
|
||||
}
|
||||
.license p
|
||||
{
|
||||
font-size:0.83333em;
|
||||
color:#888;
|
||||
}
|
||||
|
||||
|
109
html/jbreadcrumb/Styles/BreadCrumb.css
Normal file
109
html/jbreadcrumb/Styles/BreadCrumb.css
Normal file
|
@ -0,0 +1,109 @@
|
|||
/* Float Clearing
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
.module:after
|
||||
{
|
||||
clear: both;
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* float clearing for IE6 */
|
||||
* html .module
|
||||
{
|
||||
height: 1%;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* float clearing for IE7 */
|
||||
* + html .module
|
||||
{
|
||||
min-height: 1%;
|
||||
}
|
||||
|
||||
/* Breadcrumb Styles
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
.breadCrumb
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
display: block;
|
||||
height: 21px;
|
||||
overflow: hidden;
|
||||
width: 990px;
|
||||
padding:5px;
|
||||
border:solid 1px #dedede;
|
||||
background:#fff;
|
||||
}
|
||||
.breadCrumb ul
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 21px;
|
||||
display: block;
|
||||
}
|
||||
.breadCrumb ul li
|
||||
{
|
||||
display: block;
|
||||
float: left;
|
||||
position: relative;
|
||||
height: 21px;
|
||||
overflow: hidden;
|
||||
line-height: 21px;
|
||||
margin: 0px 6px 0px 0;
|
||||
padding: 0px 10px 0px 0;
|
||||
font-size: .9167em;
|
||||
background: url(../Images/Chevron.gif) no-repeat 100% 0;
|
||||
}
|
||||
.breadCrumb ul li div.chevronOverlay
|
||||
{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
.breadCrumb ul li span
|
||||
{
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
.breadCrumb ul li a
|
||||
{
|
||||
display: block;
|
||||
position: relative;
|
||||
height: 21px;
|
||||
line-height: 21px;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
}
|
||||
.breadCrumb ul li.first a
|
||||
{
|
||||
height: 16px !important;
|
||||
text-indent:-1000em;
|
||||
width:16px;
|
||||
padding: 0;
|
||||
margin-top: 2px;
|
||||
overflow: hidden;
|
||||
background:url(../Images/IconHome.gif) no-repeat 0 0;
|
||||
}
|
||||
.breadCrumb ul li.first a:hover
|
||||
{
|
||||
background-position: 0 -16px;
|
||||
}
|
||||
.breadCrumb ul li.last
|
||||
{
|
||||
background: none;
|
||||
margin-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.chevronOverlay
|
||||
{
|
||||
display: none;
|
||||
background: url(../Images/ChevronOverlay.png) no-repeat 100% 0;
|
||||
width: 13px;
|
||||
height: 20px;
|
||||
}
|
210
html/jbreadcrumb/jBreadCrumb.html
Normal file
210
html/jbreadcrumb/jBreadCrumb.html
Normal file
|
@ -0,0 +1,210 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>CompareNetworks jQuery'd Bread Crumb - jBreadCrumb</title>
|
||||
<link rel="stylesheet" href="Styles/Base.css" type="text/css">
|
||||
<link rel="stylesheet" href="Styles/BreadCrumb.css" type="text/css">
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
|
||||
</script>
|
||||
<script src="js/jquery.easing.1.3.js" type="text/javascript" language="JavaScript">
|
||||
</script>
|
||||
<script src="js/jquery.jBreadCrumb.1.1.js" type="text/javascript" language="JavaScript">
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb0").jBreadCrumb();
|
||||
jQuery("#breadCrumb1").jBreadCrumb();
|
||||
jQuery("#breadCrumb2").jBreadCrumb();
|
||||
jQuery("#breadCrumb3").jBreadCrumb();
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1>CompareNetworks jQuery'd Bread Crumb - jBreadCrumb</h1>
|
||||
<!-- Bread Crumb Code - Be sure to include the chevronOverlay element so we can load the semi transparend png -->
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb0" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb1" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™ Kit (MGS™ Kit) from Finnzymes Oy
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb2" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Product Discovery</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Life Science Products / Laboratory Supplies</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Kits and Assays</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Mutagenesis Kits</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™ Kit (MGS™ Kit) from Finnzymes Oy. Ok, let's get ridiculously long here, we all know it happens.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="breadCrumbHolder module">
|
||||
<div id="breadCrumb3" class="breadCrumb module">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Biocompare Home</a>
|
||||
</li>
|
||||
<li>
|
||||
Mutation Generation System™
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chevronOverlay main">
|
||||
</div>
|
||||
<!-- End Bread Crumb Code -->
|
||||
<div class="writeup module">
|
||||
<div class="description">
|
||||
<h2>Update - jBreadCrumb 1.1</h2>
|
||||
With a little help from jquery user "mikejbond", the chevron overlay div no longer needs to be part of the HTML, it is inserted dynamically. You may still want include it if you want to cache image on page load. Also, the easing plugn is no longer required, the animation will default to "swing" easing. I still recommend "easeOutQuad" for the best looking animation, but it's not necessary.<h2>Explanation</h2>
|
||||
<p>
|
||||
This collapsible breadcrumb was developed to deal with deeply nested, verbosely named pages. Rather than limit the amount of elements shown on the sever side, we decided to go with a client side solution for usability and SEO reasons. It also turned out nice to look at and fun to play with.
|
||||
</p>
|
||||
<p>
|
||||
It is smart in the sense that it collapses based upon the amount and length of the elements in the set. The breadcrumb uses a semitransparent .png overlay to achieve the gradient effect seen on the elements. Visually, it helps to show a "peek" at what is underneath.
|
||||
</p>
|
||||
<p>
|
||||
Oh, and it's compatible with ie 6, ie 7 and all standards compliant browsers.
|
||||
</p>
|
||||
<p>
|
||||
To use the plugin, it's as simple as the code below.
|
||||
</p>
|
||||
<pre>jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb").jBreadCrumb();
|
||||
})</pre>
|
||||
<p>
|
||||
The only additional jQuery plugin required is the <a href="http://gsgd.co.uk/sandbox/jquery/easing/" title="jQuery Easing">easing plugin</a>
|
||||
written by GSGD. The plugin uses Robert Penner's wonderful easing equations that anyone from a flash background is familiar with, I love 'easeOutQuad', it makes things so smooooth.
|
||||
</p>
|
||||
<p>
|
||||
If you don't want to use the plugin, set the options to use the normal "swing" (esentially "easeInOut") or "linear" easing provided by jQuery. The easing equations will no longer be necessary.
|
||||
</p>
|
||||
<pre>jQuery(document).ready(function()
|
||||
{
|
||||
jQuery("#breadCrumb").jBreadCrumb({easing:'swing'});
|
||||
})
|
||||
</pre>
|
||||
<p>
|
||||
Or, set it globally
|
||||
</p>
|
||||
<pre>
|
||||
jQuery.fn.jBreadCrumb.defaults.easing = 'linear';
|
||||
</pre>
|
||||
<p>
|
||||
There are a lot of options in there, you can adjust many of the features pretty easily through the options. Have fun with it.
|
||||
</p>
|
||||
<p>
|
||||
Written by Jason Roy for CompareNetworks Inc.
|
||||
</p>
|
||||
<div class="license">
|
||||
<p>
|
||||
Copyright (c) 2008 CompareNetworks Inc.
|
||||
</p>
|
||||
<p>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
</p>
|
||||
<p>
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
</p>
|
||||
<p>
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sideBar">
|
||||
<h3>Get jQuery.jBreadCrumb</h3>
|
||||
<p>
|
||||
You can download the files necessary to use the plugin here
|
||||
</p>
|
||||
<p>
|
||||
<strong><a href="jBreadCrumb.zip" title="Download jBreadCrumb Plugin">Download jBreadCrumb Plugin</a></strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
205
html/jbreadcrumb/js/jquery.easing.1.3.js
Normal file
205
html/jbreadcrumb/js/jquery.easing.1.3.js
Normal file
|
@ -0,0 +1,205 @@
|
|||
/*
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
*
|
||||
* TERMS OF USE - jQuery Easing
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2008 George McGinley Smith
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
// t: current time, b: begInnIng value, c: change In value, d: duration
|
||||
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
||||
|
||||
jQuery.extend( jQuery.easing,
|
||||
{
|
||||
def: 'easeOutQuad',
|
||||
swing: function (x, t, b, c, d) {
|
||||
//alert(jQuery.easing.default);
|
||||
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
||||
},
|
||||
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;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
*
|
||||
* TERMS OF USE - EASING EQUATIONS
|
||||
*
|
||||
* Open source under the BSD License.
|
||||
*
|
||||
* Copyright © 2001 Robert Penner
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* Neither the name of the author nor the names of contributors may be used to endorse
|
||||
* or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
240
html/jbreadcrumb/js/jquery.jBreadCrumb.1.1.js
Normal file
240
html/jbreadcrumb/js/jquery.jBreadCrumb.1.1.js
Normal file
|
@ -0,0 +1,240 @@
|
|||
/**
|
||||
* @author Jason Roy for CompareNetworks Inc.
|
||||
* Thanks to mikejbond for suggested udaptes
|
||||
*
|
||||
* Version 1.1
|
||||
* Copyright (c) 2009 CompareNetworks Inc.
|
||||
*
|
||||
* Licensed under the MIT license:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
*/
|
||||
(function($)
|
||||
{
|
||||
|
||||
// Private variables
|
||||
|
||||
var _options = {};
|
||||
var _container = {};
|
||||
var _breadCrumbElements = {};
|
||||
var _autoIntervalArray = [];
|
||||
var _easingEquation;
|
||||
|
||||
// Public functions
|
||||
|
||||
jQuery.fn.jBreadCrumb = function(options)
|
||||
{
|
||||
_options = $.extend({}, $.fn.jBreadCrumb.defaults, options);
|
||||
|
||||
return this.each(function()
|
||||
{
|
||||
_container = $(this);
|
||||
setupBreadCrumb();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
// Private functions
|
||||
|
||||
function setupBreadCrumb()
|
||||
{
|
||||
//Check if easing plugin exists. If it doesn't, use "swing"
|
||||
if(typeof(jQuery.easing) == 'object')
|
||||
{
|
||||
_easingEquation = 'easeOutQuad'
|
||||
}
|
||||
else
|
||||
{
|
||||
_easingEquation = 'swing'
|
||||
}
|
||||
|
||||
//The reference object containing all of the breadcrumb elements
|
||||
_breadCrumbElements = jQuery(_container).find('li');
|
||||
|
||||
//Keep it from overflowing in ie6 & 7
|
||||
jQuery(_container).find('ul').wrap('<div style="overflow:hidden; position:relative; width: ' + jQuery(_container).css("width") + ';"><div>');
|
||||
//Set an arbitrary width width to avoid float drop on the animation
|
||||
jQuery(_container).find('ul').width(5000);
|
||||
|
||||
//If the breadcrumb contains nothing, don't do anything
|
||||
if (_breadCrumbElements.length > 0)
|
||||
{
|
||||
jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]).addClass('last');
|
||||
jQuery(_breadCrumbElements[0]).addClass('first');
|
||||
|
||||
//If the breadcrumb object length is long enough, compress.
|
||||
|
||||
if (_breadCrumbElements.length > _options.minimumCompressionElements)
|
||||
{
|
||||
compressBreadCrumb();
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
function compressBreadCrumb()
|
||||
{
|
||||
|
||||
// Factor to determine if we should compress the element at all
|
||||
var finalElement = jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]);
|
||||
|
||||
|
||||
// If the final element is really long, compress more elements
|
||||
if (jQuery(finalElement).width() > _options.maxFinalElementLength)
|
||||
{
|
||||
if (_options.beginingElementsToLeaveOpen > 0)
|
||||
{
|
||||
_options.beginingElementsToLeaveOpen--;
|
||||
|
||||
}
|
||||
if (_options.endElementsToLeaveOpen > 0)
|
||||
{
|
||||
_options.endElementsToLeaveOpen--;
|
||||
}
|
||||
}
|
||||
// If the final element is within the short and long range, compress to the default end elements and 1 less beginning elements
|
||||
if (jQuery(finalElement).width() < _options.maxFinalElementLength && jQuery(finalElement).width() > _options.minFinalElementLength)
|
||||
{
|
||||
if (_options.beginingElementsToLeaveOpen > 0)
|
||||
{
|
||||
_options.beginingElementsToLeaveOpen--;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var itemsToRemove = _breadCrumbElements.length - 1 - _options.endElementsToLeaveOpen;
|
||||
|
||||
// We compress only elements determined by the formula setting below
|
||||
|
||||
//TODO : Make this smarter, it's only checking the final elements length. It could also check the amount of elements.
|
||||
jQuery(_breadCrumbElements[_breadCrumbElements.length - 1]).css(
|
||||
{
|
||||
background: 'none'
|
||||
});
|
||||
|
||||
$(_breadCrumbElements).each(function(i, listElement)
|
||||
{
|
||||
if (i > _options.beginingElementsToLeaveOpen && i < itemsToRemove)
|
||||
{
|
||||
|
||||
jQuery(listElement).find('a').wrap('<span></span>').width(jQuery(listElement).find('a').width() + 10);
|
||||
|
||||
// Add the overlay png.
|
||||
jQuery(listElement).append(jQuery('<div class="' + _options.overlayClass + '"></div>').css(
|
||||
{
|
||||
display: 'block'
|
||||
})).css(
|
||||
{
|
||||
background: 'none'
|
||||
});
|
||||
if (isIE6OrLess())
|
||||
{
|
||||
fixPNG(jQuery(listElement).find('.' + _options.overlayClass).css(
|
||||
{
|
||||
width: '20px',
|
||||
right: "-1px"
|
||||
}));
|
||||
}
|
||||
var options =
|
||||
{
|
||||
id: i,
|
||||
width: jQuery(listElement).width(),
|
||||
listElement: jQuery(listElement).find('span'),
|
||||
isAnimating: false,
|
||||
element: jQuery(listElement).find('span')
|
||||
|
||||
};
|
||||
jQuery(listElement).bind('mouseover', options, expandBreadCrumb).bind('mouseout', options, shrinkBreadCrumb);
|
||||
jQuery(listElement).find('a').unbind('mouseover', expandBreadCrumb).unbind('mouseout', shrinkBreadCrumb);
|
||||
listElement.autoInterval = setInterval(function()
|
||||
{
|
||||
clearInterval(listElement.autoInterval);
|
||||
jQuery(listElement).find('span').animate(
|
||||
{
|
||||
width: _options.previewWidth
|
||||
}, _options.timeInitialCollapse, _options.easing);
|
||||
}, (150 * (i - 2)));
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
function expandBreadCrumb(e)
|
||||
{
|
||||
var elementID = e.data.id;
|
||||
var originalWidth = e.data.width;
|
||||
jQuery(e.data.element).stop();
|
||||
jQuery(e.data.element).animate(
|
||||
{
|
||||
width: originalWidth
|
||||
},
|
||||
{
|
||||
duration: _options.timeExpansionAnimation,
|
||||
easing: _options.easing,
|
||||
queue: false
|
||||
});
|
||||
return false;
|
||||
|
||||
};
|
||||
|
||||
function shrinkBreadCrumb(e)
|
||||
{
|
||||
var elementID = e.data.id;
|
||||
jQuery(e.data.element).stop();
|
||||
jQuery(e.data.element).animate(
|
||||
{
|
||||
width: _options.previewWidth
|
||||
},
|
||||
{
|
||||
duration: _options.timeCompressionAnimation,
|
||||
easing: _options.easing,
|
||||
queue: false
|
||||
});
|
||||
return false;
|
||||
};
|
||||
|
||||
function isIE6OrLess()
|
||||
{
|
||||
var isIE6 = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent);
|
||||
return isIE6;
|
||||
};
|
||||
// Fix The Overlay for IE6
|
||||
function fixPNG(element)
|
||||
{
|
||||
var image;
|
||||
if (jQuery(element).is('img'))
|
||||
{
|
||||
image = jQuery(element).attr('src');
|
||||
}
|
||||
else
|
||||
{
|
||||
image = $(element).css('backgroundImage');
|
||||
image.match(/^url\(["']?(.*\.png)["']?\)$/i);
|
||||
image = RegExp.$1;
|
||||
;
|
||||
}
|
||||
$(element).css(
|
||||
{
|
||||
'backgroundImage': 'none',
|
||||
'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='" + image + "')"
|
||||
});
|
||||
};
|
||||
|
||||
// Public global variables
|
||||
|
||||
jQuery.fn.jBreadCrumb.defaults =
|
||||
{
|
||||
maxFinalElementLength: 400,
|
||||
minFinalElementLength: 200,
|
||||
minimumCompressionElements: 4,
|
||||
endElementsToLeaveOpen: 1,
|
||||
beginingElementsToLeaveOpen: 1,
|
||||
timeExpansionAnimation: 800,
|
||||
timeCompressionAnimation: 500,
|
||||
timeInitialCollapse: 600,
|
||||
easing: _easingEquation,
|
||||
overlayClass: 'chevronOverlay',
|
||||
previewWidth: 5
|
||||
};
|
||||
|
||||
})(jQuery);
|
3655
html/jbreadcrumb/js/jquery.js
vendored
Normal file
3655
html/jbreadcrumb/js/jquery.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