Template:Kyoto Foreground

From 2011.igem.org

(Difference between revisions)
m
 
(48 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<style>
<style>
 +
 +
p {
 +
margin: 0px;
 +
}
#globalWrapper {
#globalWrapper {
Line 10: Line 14:
#content {
#content {
  color:#000000;
  color:#000000;
-
  width:813px;
+
min-height: 600px;
-
  padding: 5px;
+
  width:773px;
 +
  padding: 5px 25px;
  margin: 0px;
  margin: 0px;
  float: right;
  float: right;
-
font-family: 'Arial';
 
}
}
Line 28: Line 32:
}
}
 +
/******* FOREGROUND *******/
#foreground{
#foreground{
  position: fixed;
  position: fixed;
Line 36: Line 41:
}
}
-
#header {
+
/******* header *******/
-
margin: 0px;
+
-
padding: 0px;
+
-
margin-left: -6px;
+
-
height: 155px;
+
-
width: 825px;
+
-
border-bottom: 1px solid #000000;
+
-
background-color: #000000;
+
-
}
+
-
 
+
-
#header a {
+
-
width: 100%;
+
-
}
+
-
 
+
-
#header a img {
+
-
float: right;
+
-
}
+
-
 
+
#top-section {
#top-section {
  height: 0px;
  height: 0px;
Line 63: Line 51:
  float: right;
  float: right;
}
}
 +
#p-logo {
#p-logo {
  display: none;
  display: none;
}
}
-
/******** menu ********/
+
#header {
-
#menu li ul {
+
top: 0px;  padding: 5px;
-
margin: 0px;
+
margin: -5px auto auto -26px;
-
padding: 0px;
+
height: 154px;  width: 815px;
 +
border-bottom: 1px solid #000000;
 +
background-color: #aaccaa;
 +
}
 +
 
 +
.top_panel {
 +
    background-color: #000000;
 +
}
 +
.top_panel * {
 +
    margin: 0px !important;
 +
}
 +
.top_panel a img {
 +
    float: right;
 +
}
 +
 
 +
.e_coli * { margin: 0px !important }
 +
.e_coli img { width: 100% }
 +
 
 +
/******* GALLERY *******/
 +
#gallery {
 +
    position: absolute;
 +
    width: 815px !important;
 +
    height: 154px !important;
 +
    padding: 0px;
 +
    overflow : hidden;
 +
    background-color: #ffffff;
 +
}
 +
 
 +
#gallery_base {
 +
    position: absolute;
 +
    width: 100%;
 +
    height: 100%;
 +
    padding:0px;
 +
    margin: 0px;
 +
}
 +
 
 +
.gallery_panel {
 +
    position: absolute;
 +
    width: 100%;
 +
    height: 100%;
 +
    margin: 0px;
 +
    padding: 0px;
 +
}
 +
 
 +
.gallery_panel * {
 +
    margin: 10px;
 +
}
 +
 
 +
.red {
 +
    color: #00ffff;
 +
    background-color: #aa0000;
}
}
 +
/******** MENU ********/
#menu {
#menu {
  position: absolute;
  position: absolute;
Line 90: Line 130:
}
}
-
#menu li a{
+
#menu li ul {
 +
margin: 0px;
 +
padding: 0px;
 +
}
 +
 
 +
#menu li a, .menu-header {
  display:block;
  display:block;
  width:132px;
  width:132px;
Line 106: Line 151:
}
}
-
/******** main ********/
 
-
 
-
#main {
 
-
height: auto;
 
-
min-height: 600px;
 
-
padding: 0px 25px 0px 25px;
 
-
float: right;
 
-
}
 
</style>
</style>
 +
 +
<div id="header">
 +
    <div id="gallery">
 +
        <div id="gallery_base">
 +
            <div class="gallery_panel top_panel">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/9/9f/Light_beiz.jp_M31367.jpg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/b/bd/Head_gallery1.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/8/88/Head_gallery2.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/5/5e/Head_gallery3.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/2/2d/Head_gallery4.jpeg">
 +
                </a>
 +
            </div>
 +
            <div class="gallery_panel e_coli">
 +
                <a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 +
                    <img src="https://static.igem.org/mediawiki/2011/0/0d/Head_gallery5.jpeg">
 +
                </a>
 +
            </div>
 +
        </div>
 +
    </div>
 +
</div>
 +
<!-- end header -->
<div id ="foreground">
<div id ="foreground">
<ul id ="menu">
<ul id ="menu">
-
<li><a class="menu-header home" href="https://2011.igem.org/Team:Kyoto">Home</a></li>
+
    <li><img src="https://static.igem.org/mediawiki/2011/3/37/KyotoLogo.png" style="width:100%; padding-bottom: 10px;"></li>
-
<li><a class="menu-header project" href="https://2011.igem.org/Team:Kyoto/Project">Project</a>
+
    <li><a class="menu-header home" href="https://2011.igem.org/Team:Kyoto">Home</a></li>
-
  <ul>
+
    <li><span class="menu-header project">Project</span>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Hunger">Hunger</a></li>
+
        <ul>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Luminescence">Luminescence</a></li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Hunger">Hunger</a></li>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Digestion">Digestion</a></li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Hunger/Modeling">Hunger Modeling</a></li>
-
  </ul>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Capture">Capture</a></li>
-
</li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Digestion">Digestion</a></li>
-
<li><a class="menu-header consideration" href="#">Consideration</a>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Digestion/Modeling">Digestion Modeling</a></li>
-
  <ul>
+
        </ul>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Safety">Safety</a></li>
+
    </li>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/HumanPractice">Human Practice</a></li>
+
    <li><span class="menu-header consideration">Consideration</span>
-
  </ul>
+
        <ul>
-
</li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Safety">Safety</a></li>
-
<li><a class="menu-header parts" href="https://2011.igem.org/Team:Kyoto/Parts">Parts</a></li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/HumanPractice">Human Practice</a></li>
-
<li><a class="menu-header team" href="https://2011.igem.org/Team:Kyoto/Team">Team</a></li>
+
        </ul>
-
<li><a class="menu-header notebook" href="https://2011.igem.org/Team:Kyoto/Notebook">Notebook</a>
+
    </li>
-
  <ul>
+
    <li><span class="menu-header method">Method</span>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Lab Work">Lab Work</a></li>
+
        <ul>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Diary">Diary</a></li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Parts">Parts</a></li>
-
  <li><a href="https://2011.igem.org/Team:Kyoto/Protocol">Protocol</a></li>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Protocol">Protocol</a></li>
-
  </ul>
+
            <li><a href="https://2011.igem.org/Team:Kyoto/Material">Material</a></li>
-
</li>
+
        </ul>
-
<li><a class="menu-header acknowledgement" href="https://2011.igem.org/Team:Kyoto/Acknowledgement">Acknowledgement</a></li>
+
    </li>
 +
    <li><a class="menu-header team" href="https://2011.igem.org/Team:Kyoto/Team">Team</a></li>
 +
    <li><span class="menu-header notebook">Notebook</span>
 +
        <ul>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Lab Work">Lab Work</a></li>
 +
            <li><a href="https://2011.igem.org/Team:Kyoto/Diary">Diary</a></li>
 +
        </ul>
 +
    </li>
 +
    <li><a class="menu-header acknowledgement" href="https://2011.igem.org/Team:Kyoto/Acknowledgement">Acknowledgement</a></li>
 +
    <li><a class="menu-header criteria" href="https://2011.igem.org/Team:Kyoto/Criteria">Criteria</a></li>
</ul>
</ul>
<!-- end menu -->
<!-- end menu -->
</div>
</div>
<!-- end foreground -->
<!-- end foreground -->
-
 
-
<div id="header">
 
-
<a href="https://2011.igem.org/Team:Kyoto" title="return to main page.">
 
-
  <img src="https://static.igem.org/mediawiki/2011/2/27/%E4%BA%AC%E5%A4%A7%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E5%85%89.jpg">
 
-
</a>
 
-
</div>
 
-
<!-- end header -->
 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
<script type="text/javascript">
-
$(document).ready(function() {
 
  $("#menu").accordion({
  $("#menu").accordion({
   header: ".menu-header",
   header: ".menu-header",
Line 165: Line 241:
   active:$(".</html>{{{active_page|home}}}<html>")
   active:$(".</html>{{{active_page|home}}}<html>")
  });
  });
 +
function init() {
 +
    var panels = $(".gallery_panel");
 +
    var c = panels.first();
 +
    var left = 0;
 +
    for (var i = 0; i < panels.length; i++) {
 +
        c.css("left",left+"px");
 +
        left += c.outerWidth();
 +
        c = c.next();
 +
    }
 +
}
 +
 +
function change(change_time, delay_time) {
 +
    var c = $(".gallery_panel").first();
 +
    gallery_unit(c,0, change_time, delay_time);
 +
}
 +
 +
function gallery_unit(c, left, change_time, delay_time) {
 +
    var b = $("#gallery_base");
 +
    b.animate({
 +
        left : left + "px"
 +
    },change_time,function() {
 +
    }).delay(delay_time);
 +
    left -= c.outerWidth();
 +
    c = c.next(".gallery_panel");
 +
    if (!c.is(".gallery_panel")) {
 +
        c = $(".gallery_panel").first();
 +
        left = 0;
 +
    }
 +
    gallery_unit(c, left,change_time,delay_time);
 +
}
 +
$(document).ready(function() {
 +
init();
 +
change(800,5000);
});
});
</script>
</script>
</html>
</html>

Latest revision as of 21:20, 5 October 2011