Team:AHUT China/Humanpractice

From 2013.igem.org

(Difference between revisions)
Line 268: Line 268:
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
-
// SpryAccordion.js - version 0.17 - Spry Pre-Release 1.6.1
 
-
//
 
-
// Copyright (c) 2006. Adobe Systems Incorporated.
 
-
// 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 Adobe Systems Incorporated nor the names of its
 
-
//    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.
 
-
 
(function() { // BeginSpryComponent
(function() { // BeginSpryComponent
Line 430: Line 401:
Spry.Widget.Accordion.prototype.closePanel = function()
Spry.Widget.Accordion.prototype.closePanel = function()
{
{
-
// The accordion can only ever have one panel open at any
 
-
// give time, so this method only closes the current panel.
 
-
// If the accordion is in fixed panel heights mode, this
 
-
// method does nothing.
 
-
 
if (!this.useFixedPanelHeights && this.currentPanel)
if (!this.useFixedPanelHeights && this.currentPanel)
{
{
Line 583: Line 549:
this.addClassName(panel, this.openClass);
this.addClassName(panel, this.openClass);
-
// Attempt to set up the height of the default panel. We don't want to
+
-
// do any dynamic panel height calculations here because our accordion
+
-
// or one of its parent containers may be display:none.
+
-
 
+
if (content)
if (content)
{
{
if (this.useFixedPanelHeights)
if (this.useFixedPanelHeights)
{
{
-
// We are in fixed panel height mode and the user passed in
+
-
// a panel height for us to use.
+
-
+
if (this.fixedPanelHeight)
if (this.fixedPanelHeight)
content.style.height = this.fixedPanelHeight + "px";
content.style.height = this.fixedPanelHeight + "px";
Line 599: Line 560:
else
else
{
{
-
// We are in variable panel height mode, but since we can't
+
-
// calculate the panel height here, we just set the height to
+
-
// auto so that it expands to show all of its content.
+
-
+
content.style.height = "auto";
content.style.height = "auto";
}
}
Line 627: Line 585:
for (var i = 0; i < panels.length; i++)
for (var i = 0; i < panels.length; i++)
this.initPanel(panels[i], i == this.defaultPanel);
this.initPanel(panels[i], i == this.defaultPanel);
-
 
-
// Advanced keyboard navigation requires the tabindex attribute
 
-
// on the top-level element.
 
this.enableKeyboardNavigation = (this.enableKeyboardNavigation && this.element.attributes.getNamedItem("tabindex"));
this.enableKeyboardNavigation = (this.enableKeyboardNavigation && this.element.attributes.getNamedItem("tabindex"));
Line 829: Line 784:
})(); // EndSpryComponent
})(); // EndSpryComponent
-
 
</script>
</script>
</head>
</head>

Revision as of 01:20, 26 September 2013

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 无标题文档