Team:SUSTC-Shenzhen-A DengLuo index 02

From 2012.igem.org

(Difference between revisions)
(Blanked the page)
 
Line 1: Line 1:
-
<html xmlns="http://www.w3.org/1999/xhtml">
 
-
<head>
 
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
-
<title>************************</title>
 
-
<meta name="keywords" content="scene, clean, professional, layout, free website templates, CSS, HTML" />
 
-
<meta name="description" content="Scene Template is a clean and professional website layout for free download." />
 
-
 
-
 
-
<style type="text/css">
 
-
 
-
 
-
 
-
<!--我们需要先把igem原网站的一些东西删掉-->
 
-
#globalWrapper {width: 100%;  }
 
-
#top-section {width: 100%; height:100%; border:none;}
 
-
#p-logo {display:none;}
 
-
#search-controls {display:none;}
 
-
.printfooter {display:none;}
 
-
#footer-box {border:none;}
 
-
.firstHeading {display:none;}
 
-
#content { border:none;  }
 
-
#bodyContent {border:none;  }
 
-
 
-
<!--删除完毕-->
 
-
 
-
 
-
 
-
/*
 
-
* Color, Border, and Button Rules
 
-
*/
 
-
.contentslider {
 
-
  padding: 0; /* This acts as a border for the content slider */
 
-
  background: none; /* This is the color of said border */
 
-
    overflow:hidden;
 
-
}
 
-
.cs_wrapper, .cs_article {
 
-
/*  background-color: none;  Background color for the entries */
 
-
}
 
-
.cs_leftBtn, .cs_rightBtn {
 
-
margin-top: 50px;
 
-
  width:52px; /* Should be as wide as the button graphic being used */
 
-
/*  background: none;  This will probably match the contentslider bg color */
 
-
}
 
-
 
-
/*
 
-
* Article styles (font, color, etc.)
 
-
*
 
-
* If textResize is set to TRUE, sizing shouldn't need to be touched. However,
 
-
* depending on the sizes you have defined, additional tweaking may be
 
-
* required in order to get the text to display properly.
 
-
*/
 
-
 
-
/*
 
-
******************************************************************************
 
-
* These styles may be affected by the plugin, so avoid changing them if
 
-
* it's not absolutely necessary.
 
-
******************************************************************************
 
-
*/
 
-
.contentslider {
 
-
  position:relative;
 
-
  display:block;
 
-
  width: 535px;
 
-
  height: 233px;
 
-
  margin:0 auto;
 
-
  overflow:hidden;
 
-
}
 
-
.cs_wrapper {
 
-
  position:relative;
 
-
  display:block;
 
-
  width:100%;
 
-
  height:100%;
 
-
  margin:0;
 
-
  padding:0;
 
-
  overflow:hidden;
 
-
}
 
-
.cs_slider {
 
-
  position:absolute;
 
-
  width:10000px;
 
-
  height:100%;
 
-
  margin:0;
 
-
  padding:0;
 
-
    overflow:hidden;
 
-
}
 
-
.cs_article {
 
-
  float:left;
 
-
  position:relative;
 
-
  top:0;
 
-
  left:0;
 
-
  display:block;
 
-
  width: 535px;
 
-
  height: 233px;
 
-
  margin:0 auto;
 
-
  padding: 0;
 
-
/* background-color: none; */
 
-
    overflow:hidden;
 
-
}
 
-
 
-
.cs_article img {
 
-
float: left;
 
-
}
 
-
 
-
.cs_leftBtn, .cs_rightBtn {
 
-
  position:absolute;
 
-
  top: 0px;
 
-
  height: 233px;
 
-
  padding:0;
 
-
  z-index:10000;
 
-
}
 
-
.cs_leftBtn {
 
-
  left:0;
 
-
  outline:0;
 
-
}
 
-
.cs_rightBtn {
 
-
  right:0;
 
-
  outline:0;
 
-
}
 
-
.cs_leftBtn img, .cs_rightBtn img {
 
-
  border:0;
 
-
  position:relative;
 
-
  top: 10px;
 
-
  margin:0;
 
-
}
 
-
 
-
 
-
 
-
 
-
 
-
 
-
body {
 
-
margin: 0;
 
-
padding: 0;
 
-
line-height: 1.5em;
 
-
font-family: Tahoma, Geneva, sans-serif;
 
-
font-size: 10px;
 
-
color: #6f6f6f;
 
-
    background: #2ac5c0 url(https://static.igem.org/mediawiki/igem.org/2/24/Templatemo_body_top.jpg) repeat-x;
 
-
}
 
-
 
-
a:link, a:visited { color: #17aba6; text-decoration: underline; font-weight: bold; }
 
-
a:active, a:hover { color: #CC9900; text-decoration: none; }
 
-
 
-
p { margin: 0px; padding: 0px; }
 
-
 
-
img { margin: 0px; padding: 0px; border: none; }
 
-
 
-
.cleaner { clear: both; width: 100%; height: 0px; font-size: 0px;  }
 
-
 
-
.cleaner_h30 { clear: both; width:100%; height: 30px; }
 
-
.cleaner_h40 { clear: both; width:100%; height: 40px; }
 
-
 
-
.margin_r10 { margin-right: 10px; }
 
-
 
-
.float_l { float: left; }
 
-
.float_r { float:  right; }
 
-
 
-
 
-
#templatemo_wrapper {
 
-
width: 1024px;
 
-
margin: 0 auto;
 
-
}
 
-
 
-
#temmplatmeo_header {
 
-
height: 96px;
 
-
        margin-right: 50px
 
-
background: url(https://static.igem.org/mediawiki/2012/9/91/Templatemo_menu.jpg) no-repeat bottom;
 
-
}
 
-
 
-
/* site title */
 
-
 
-
#temmplatmeo_header  #site_title {
 
-
float: left;
 
-
width: 200px;
 
-
padding: 10px 0 0 50px;
 
-
}
 
-
 
-
 
-
#site_title a {
 
-
margin: 0px;
 
-
padding: 0px;
 
-
font-size: 30px;
 
-
color: #ffffff;
 
-
font-weight: bold;
 
-
text-decoration: none;
 
-
}
 
-
 
-
#site_title h1 a:hover {
 
-
font-weight: bold;
 
-
text-decoration: none;
 
-
}
 
-
 
-
/* end of site title */
 
-
 
-
/* menu */
 
-
 
-
#temmplatmeo_header #templatemo_menu {
 
-
float: right;
 
-
padding-top: 53px;
 
-
height: 43px;
 
-
margin-right: 70px
 
-
}
 
-
 
-
#templatemo_menu ul {
 
-
margin: 0;
 
-
padding: 0;
 
-
list-style: none;
 
-
}
 
-
 
-
#templatemo_menu ul li {
 
-
padding: 0;
 
-
margin: 0;
 
-
display: inline;
 
-
}
 
-
 
-
#templatemo_menu ul li a {
 
-
position: relative;
 
-
float: left;
 
-
display: block;
 
-
height: 33px;
 
-
width: 123px;
 
-
margin: 0 0 0 -20px;
 
-
padding: 10px 0 0 20px;
 
-
font-family: "Times New Roman", Times, serif;
 
-
text-align: center;
 
-
font-size: 16px;
 
-
text-decoration: none;
 
-
color: #fff;
 
-
font-weight: normal;
 
-
outline: none;
 
-
background:url(https://static.igem.org/mediawiki/igem.org/e/e8/Templatemo_menu_button.png) no-repeat;
 
-
}
 
-
 
-
#templatemo_menu li a:hover, #templatemo_menu li .current {
 
-
z-index: 200;
 
-
background:url(https://static.igem.org/mediawiki/2012/8/82/SUSTC_SHENZHEN_A_temp_menu_button_hover.png);
 
-
}
 
-
 
-
/* end of menu */
 
-
 
-
/* banner */
 
-
 
-
#templatemo_banner {
 
-
width: 954px;
 
-
height: 236px;
 
-
padding: 50px 35px;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/1/17/Templatemo_banner.png) no-repeat;
 
-
}
 
-
 
-
#banner_left {
 
-
float: left;
 
-
width: 365px;
 
-
color: #fff;
 
-
text-align: justify;
 
-
}
 
-
 
-
#banner_left h2 {
 
-
font-size: 28px;
 
-
font-weight: normal;
 
-
margin-top: 0;
 
-
}
 
-
 
-
#banner_left a {
 
-
color: #1cc9c4;
 
-
}
 
-
 
-
#banner_right {
 
-
position: relative;
 
-
float: right;
 
-
width: 517px;
 
-
height: 215px;
 
-
padding: 9px;
 
-
margin-right: 30px;
 
-
overflow: hidden;
 
-
}
 
-
 
-
#banner_right span {
 
-
position: absolute;
 
-
width: 535px;
 
-
height: 233px;
 
-
top: 0;
 
-
left: 0;
 
-
z-index: 800;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/6/62/Templatemo_banner_image_frame.png) no-repeat;
 
-
}
 
-
/* end of banner */
 
-
 
-
/* content */
 
-
 
-
#templatemo_content {
 
-
 
-
clear: both;
 
-
width: 900px;
 
-
padding: 35px 62px 15px 62px;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/8/89/Templatemo_content_bg.png) repeat-y center;
 
-
}
 
-
 
-
#content_bottom {
 
-
width: 1024px;
 
-
height: 6px;
 
-
background: url(images/templatemo_content_bottom.png) no-repeat;
 
-
}
 
-
 
-
.float_l_img {
 
-
float: left;
 
-
margin: 3px 15px 5px 0;
 
-
}
 
-
 
-
#templatemo_content h2 {
 
-
color: #9ea0a1;
 
-
font-weight: normal;
 
-
font-size: 25px;
 
-
margin: 0 0 25px 0;
 
-
}
 
-
 
-
#templatemo_content p {
 
-
margin-bottom: 6px;
 
-
text-align: justify;
 
-
}
 
-
 
-
#templatemo_content strong {
 
-
color: #17aba6;
 
-
font-weight: bold;
 
-
}
 
-
 
-
#templatemo_content .services_list {
 
-
margin: 20px 150px 0 0;
 
-
padding: 0;
 
-
list-style: none;
 
-
}
 
-
 
-
#templatemo_content .services_list li {
 
-
margin: 0 0 5px 0;
 
-
padding: 4px 0 5px 15px;
 
-
border-bottom: 1px dashed #c7c7c7;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/a/ac/List_icon.png) no-repeat center left;
 
-
}
 
-
 
-
.section_w900 {
 
-
clear: both;
 
-
width: 900px;
 
-
}
 
-
 
-
.section_w580 {
 
-
width: 580px;
 
-
}
 
-
 
-
.section_w280 {
 
-
float: right;
 
-
width: 280px;
 
-
}
 
-
 
-
.services_section {
 
-
clear: both;
 
-
padding: 20px;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/3/3e/Templatemo_services.jpg) no-repeat top center;
 
-
}
 
-
 
-
.testimonial {
 
-
 
-
height: 160px;
 
-
padding: 60px 20px 20px 70px;
 
-
margin-bottom: 30px;
 
-
overflow: hidden;
 
-
background:url(https://static.igem.org/mediawiki/igem.org/8/81/Templatemo_testimonial.png) no-repeat;
 
-
text-align: justify;
 
-
}
 
-
 
-
.twitter {
 
-
width: 280px;
 
-
height: 180px;
 
-
overflow: hidden;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/a/a4/Templatemo_twitter.jpg) no-repeat center;
 
-
text-align: justify;
 
-
}
 
-
 
-
.twitter ul {
 
-
margin: 0;
 
-
padding: 70px 30px 30px 30px;
 
-
list-style: none;
 
-
}
 
-
 
-
.twitter ul li {
 
-
margin: 0 0 10px 0;
 
-
padding: 0;
 
-
}
 
-
 
-
.twitter ul li span {
 
-
clear: both;
 
-
display: block;
 
-
font-style: italic;
 
-
color: #26aba7;
 
-
}
 
-
 
-
.showcase {
 
-
margin: 0;
 
-
padding: 0;
 
-
list-style: none;
 
-
}
 
-
 
-
.showcase li {
 
-
margin: 0;
 
-
padding: 0;
 
-
display: block;
 
-
float: left;
 
-
width: 180px;
 
-
height: 196px;
 
-
margin: 0 13px 12px 0;
 
-
background: url(https://static.igem.org/mediawiki/igem.org/0/0d/Templatemo_portfolio_frame.jpg) no-repeat;
 
-
}
 
-
 
-
.showcase li a {
 
-
display: block;
 
-
margin: 20px;
 
-
text-decoration: none;
 
-
}
 
-
 
-
.showcase li a img {
 
-
margin-bottom: 5px;
 
-
}
 
-
 
-
.showcase li a span {
 
-
margin-top: 5px;
 
-
color: #5e5e5e;
 
-
font-weight: normal;
 
-
}
 
-
/* end of content */
 
-
 
-
/* footer */
 
-
 
-
#templatemo_footer {
 
-
clear: both;
 
-
width: 1000px;
 
-
padding: 10px 12px;
 
-
margin: 0 auto;
 
-
color: #252525;
 
-
text-align: center;
 
-
}
 
-
 
-
#templatemo_footer a {
 
-
font-weight: normal;
 
-
color: #252525;
 
-
text-decoration: underline;
 
-
}
 
-
 
-
/* end of footer */
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
</style>
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
</head>
 
-
<body>
 
-
 
-
<div id="templatemo_wrapper">
 
-
<div id="temmplatmeo_header">
 
-
  <div id="site_title">
 
-
          <a href="#" target="_parent">
 
-
            <img src="https://static.igem.org/mediawiki/igem.org/2/2f/Templatemo_logo.png" alt="Scene Template" />
 
-
            </a>
 
-
        </div>
 
-
   
 
-
    <div id="templatemo_menu">
 
-
       
 
-
            <ul>
 
-
                <li><a href="index.html" class="current">Home</a></li>
 
-
                <li><a href="#">About1</a></li>
 
-
                <li><a href="#">About2</a></li>
 
-
                <li><a href="portfolio.html">Portfolio</a></li>
 
-
                <li><a href="#">Contact Us</a></li>
 
-
            </ul>   
 
-
       
 
-
        </div> <!-- end of templatemo_menu -->
 
-
   
 
-
    </div> <!-- end of templatemo_header -->
 
-
   
 
-
  <div id="templatemo_banner">
 
-
   
 
-
  <div id="banner_left">
 
-
        <h2>SUSTC  TEAM</h2>
 
-
            <p>Vivamus a velit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
 
-
 
-
Curabitur quis velit quis tortor tincidunt aliquet. Vivamus leo velit, convallis id, ultrices sit amet, tempor a,
 
-
 
-
libero.</p>
 
-
            <p>&nbsp;</p>
 
-
            <p>Mauris quis nulla sed ipsum pretium sagittis. Suspendisse feugiat. Ut sodales libero ut odio. Maecenas
 
-
 
-
venenatis metus eu est. In sed risus ac felis varius bibendum. Nulla imperdiet congue metus. Vestibulum dapibus tortor.
 
-
 
-
<a href="#">Read More</a></p>
 
-
  </div>
 
-
       
 
-
      <div id="banner_right"><span></span>
 
-
       
 
-
        <div id="one" class="contentslider">
 
-
          <div class="cs_wrapper">
 
-
              <div class="cs_slider">
 
-
               
 
-
                  <div class="cs_article">
 
-
                        <img src="https://static.igem.org/mediawiki/igem.org/d/dc/Templatemo_image_01.jpg" alt="Seagulls" />
 
-
              </div>
 
-
                   
 
-
                    <div class="cs_article">
 
-
                      <img src="https://static.igem.org/mediawiki/igem.org/7/7b/Templatemo_image_02.jpg" alt="Seagull" />
 
-
              </div>
 
-
                   
 
-
                    <div class="cs_article">
 
-
                      <img src="https://static.igem.org/mediawiki/igem.org/c/c1/Templatemo_image_03.jpg" alt="Seagull" />
 
-
          </div>
 
-
                   
 
-
                  <div class="cs_article">
 
-
                      <a href="#" target="_parent">
 
-
                      <img src="https://static.igem.org/mediawiki/igem.org/8/87/Templatemo_image_04.jpg" alt="Seagulls" />
 
-
                      </a>
 
-
                </div>
 
-
             
 
-
              </div><!-- End cs_slider -->
 
-
          </div><!-- End cs_wrapper -->
 
-
        </div><!-- End contentslider -->
 
-
 
-
<!-- Site JavaScript -->
 
-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
 
-
 
-
 
-
 
-
 
-
<Script Language="JavaScript">
 
-
 
-
/*
 
-
* 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.
 
-
*
 
-
*/
 
-
 
-
 
-
 
-
 
-
 
-
(function($) {
 
-
  $.fn.ContentSlider = function(options)
 
-
  {
 
-
    var defaults = {
 
-
      leftBtn : 'https://static.igem.org/mediawiki/2012/1/1c/Templatemo_left_nav.png',
 
-
      rightBtn : 'https://static.igem.org/mediawiki/2012/1/15/Templatemo_right_nav.png',
 
-
      width : '535px',
 
-
      height : '233px',
 
-
      speed : 400,
 
-
      easing : 'easeOutExpo',
 
-
      textResize : false,
 
-
      IE_h2 : '26px',
 
-
      IE_p : '11px'
 
-
    }
 
-
    var defaultWidth = defaults.width;
 
-
    var o = $.extend(defaults, options);
 
-
    var w = parseInt(o.width);
 
-
    var n = this.children('.cs_wrapper').children('.cs_slider').children('.cs_article').length;
 
-
    var x = -1*w*n+w; // Minimum left value
 
-
    var p = parseInt(o.width)/parseInt(defaultWidth);
 
-
    var thisInstance = this.attr('id');
 
-
    var inuse = false; // Prevents colliding animations
 
-
 
-
    function moveSlider(d, b)
 
-
    {
 
-
      var l = parseInt(b.siblings('.cs_wrapper').children('.cs_slider').css('left'));
 
-
      if(isNaN(l)) {
 
-
        var l = 0;
 
-
      }
 
-
      var m = (d=='left') ? l-w : l+w;
 
-
      if(m<=0&&m>=x) {
 
-
        b
 
-
          .siblings('.cs_wrapper')
 
-
            .children('.cs_slider')
 
-
              .animate({ 'left':m+'px' }, o.speed, o.easing, function() {
 
-
                inuse=false;
 
-
              });
 
-
 
-
        if(b.attr('class')=='cs_leftBtn') {
 
-
          var thisBtn = $('#'+thisInstance+' .cs_leftBtn');
 
-
          var otherBtn = $('#'+thisInstance+' .cs_rightBtn');
 
-
        } else {
 
-
          var thisBtn = $('#'+thisInstance+' .cs_rightBtn');
 
-
          var otherBtn = $('#'+thisInstance+' .cs_leftBtn');
 
-
        }
 
-
        if(m==0||m==x) {
 
-
          thisBtn.animate({ 'opacity':'0' }, o.speed, o.easing, function() { thisBtn.hide(); });
 
-
        }
 
-
        if(otherBtn.css('opacity')=='0') {
 
-
          otherBtn.show().animate({ 'opacity':'1' }, { duration:o.speed, easing:o.easing });
 
-
        }
 
-
      }
 
-
    }
 
-
 
-
    function vCenterBtns(b)
 
-
    {
 
-
      // Safari and IE don't seem to like the CSS used to vertically center
 
-
      // the buttons, so we'll force it with this function
 
-
      var mid = parseInt(o.height)/0 ;
 
-
      b
 
-
        .find('.cs_leftBtn img').css({ 'top':mid+'px', 'padding':0 }).end()
 
-
        .find('.cs_rightBtn img').css({ 'top':mid+'px', 'padding':0 });
 
-
    }
 
-
 
-
    return this.each(function() {
 
-
      $(this)
 
-
        // Set the width and height of the div to the defined size
 
-
        .css({
 
-
          width:o.width,
 
-
          height:o.height
 
-
        })
 
-
        // Add the buttons to move left and right
 
-
        .prepend('<a href="#" class="cs_leftBtn"><img src="'+o.leftBtn+'" /></a>')
 
-
        .append('<a href="#" class="cs_rightBtn"><img src="'+o.rightBtn+'" /></a>')
 
-
        // Dig down to the article div elements
 
-
        .find('.cs_article')
 
-
          // Set the width and height of the div to the defined size
 
-
          .css({
 
-
            width:o.width,
 
-
            height:o.height
 
-
          })
 
-
          .end()
 
-
        // Animate the entrance of the buttons
 
-
        .find('.cs_leftBtn')
 
-
          .css('opacity','0')
 
-
          .hide()
 
-
          .end()
 
-
        .find('.cs_rightBtn')
 
-
          .hide()
 
-
          .animate({ 'width':'show' });
 
-
 
-
      // Resize the font to match the bounding box
 
-
      if(o.textResize===true) {
 
-
        var h2FontSize = $(this).find('h2').css('font-size');
 
-
        var pFontSize = $(this).find('p').css('font-size');
 
-
        $.each(jQuery.browser, function(i) {
 
-
          if($.browser.msie) {
 
-
            h2FontSize = o.IE_h2;
 
-
            pFontSize = o.IE_p;
 
-
          }
 
-
        });
 
-
        $(this).find('h2').css({ 'font-size' : parseFloat(h2FontSize)*p+'px', 'margin-left' : '66%' });
 
-
        $(this).find('p').css({ 'font-size' : parseFloat(pFontSize)*p+'px', 'margin-left' : '66%' });
 
-
        $(this).find('.readmore').css({ 'font-size' : parseFloat(pFontSize)*p+'px', 'margin-left' : '66%' });
 
-
      }
 
-
 
-
      // Store a copy of the button in a variable to pass to moveSlider()
 
-
      var leftBtn = $(this).children('.cs_leftBtn');
 
-
      leftBtn.bind('click', function() {
 
-
        if(inuse===false) {
 
-
          inuse = true;
 
-
          moveSlider('right', leftBtn);
 
-
        }
 
-
        return false; // Keep the link from firing
 
-
      });
 
-
 
-
      // Store a copy of the button in a variable to pass to moveSlider()
 
-
      var rightBtn = $(this).children('.cs_rightBtn');
 
-
      rightBtn.bind('click', function() {
 
-
        if(inuse===false) {
 
-
          inuse=true;
 
-
          moveSlider('left', rightBtn);
 
-
        }
 
-
        return false; // Keep the link from firing
 
-
      });
 
-
 
-
      vCenterBtns($(this)); // This is a CSS fix function.
 
-
    });
 
-
  }
 
-
})(jQuery)
 
-
</Script>
 
-
 
-
 
-
 
-
 
-
<script type="text/javascript">
 
-
$(function() {
 
-
$('#one').ContentSlider({
 
-
width : '535px',
 
-
height : '233px',
 
-
speed : 800,
 
-
easing : 'easeInOutQuart'
 
-
});
 
-
});
 
-
</script>
 
-
 
-
       
 
-
      </div>  <!-- end of slider -->
 
-
 
-
   
 
-
   
 
-
    </div> <!-- end of templatemo_banner -->
 
-
 
-
 
-
</div> <!-- end of templatemo_wrapper -->
 
-
 
-
</body>
 
-
 
-
</html>
 

Latest revision as of 09:26, 13 September 2012