Team:Tec-Monterrey

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<html>
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
-
</a>.
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
<a href="https://2011.igem.org/wiki/index.php?title=Team:Tec-Monterrey&action=edit"> Editar</a>
+
<title>wiki</title>
-
</html>
+
-
 
+
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
-
<head>
+
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
-
<title>Untitled Document</title>
+
-
 
+
<style type="text/css">
<style type="text/css">
-
body{
+
<!--
-
background-color:#555555;
+
body {
-
}
+
font: 100%/1.4 Tahoma, Geneva, sans-serif;
-
.maincontainer {
+
background-image: url(https://static.igem.org/mediawiki/igem.org/2/24/V2fondo.png);
-
height: 768px;
+
margin: 0;
-
width: 1024px;
+
padding: 0;
-
background-color: #FFF;
+
margin-left: 10%;
-
margin-left:auto;
+
margin-right: 10%;
-
margin-right:auto;
+
color: #013469;
-
}
+
-
.texto {
+
-
float: left;
+
-
height: 257px;
+
-
width: 712px;
+
-
background-color: #E5E5E5;
+
-
background-image: url(https://static.igem.org/mediawiki/2011/6/6d/Espaciotextopaginav1.png);
+
-
background-repeat: no-repeat;
+
-
background-position: center center;
+
}
}
-
.banner {
+
/* ~~ Element/tag selectors ~~ */
-
float: left;
+
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
-
height: 111px;
+
padding: 0;
-
width: 606px;
+
margin: 0;
-
background-image: url(https://static.igem.org/mediawiki/2011/4/49/Bannerpaginav1.png);
+
-
background-repeat: no-repeat;
+
-
background-color: #333;
+
-
background-position: center center;
+
}
}
-
.language {
+
h1, h2, h3, h4, h5, h6, p {
-
float: left;
+
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
-
height: 111px;
+
padding-right: 10px;
-
width: 262px;
+
padding-left: 10px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
-
background-color: #E5E5E5;
+
-
background-image: url(https://static.igem.org/mediawiki/2011/8/8d/Espacioidiomapaginav1.png);
+
-
background-repeat: no-repeat;
+
-
background-position: center center;
+
}
}
-
.maincontainer .texto div {
+
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
-
font-family: Tahoma, Geneva, sans-serif;
+
border: none;
-
font-size: 18px;
+
-
color: #E5E5E5;
+
}
}
-
.maincontainer .texto div p a {
+
 
-
text-decoration: underline;
+
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
-
font-family: Tahoma, Geneva, sans-serif;
+
a:link {
-
color: #E5E5E5;
+
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
 +
color: #F90;
}
}
-
.maincontainer .texto div p a:hover {
+
a:visited {
-
color: #4ECDC4;
+
color: #c02355;
text-decoration: underline;
text-decoration: underline;
 +
}
 +
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
 +
text-decoration: none;
}
}
-
 
+
/* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
-
.menubar {
+
.container {
-
float: left;
+
width: 90%;
-
height: 657px;
+
max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
-
width: 156px;
+
min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
-
}
+
background: #FFF;
-
.searchlogo {
+
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
-
float: right;
+
overflow: hidden; /* this declaration makes the .container clear all floated columns within it. */
-
height: 768px;
+
-
width: 156px;
+
-
}
+
-
.video {
+
-
float: left;
+
-
height: 400px;
+
-
width: 712px;
+
-
background-color: #E5E5E5;
+
-
background-image: url(https://static.igem.org/mediawiki/2011/5/5b/Espaciovideopaginav1.png);
+
-
background-repeat: no-repeat;
+
-
background-position: center center;
+
}
}
 +
/* ~~ These are the columns for the layout. ~~
-
</style>
+
1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
-
<script type="text/javascript">
+
2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.
-
var Spry;
+
-
if (!Spry) Spry = {};
+
-
if (!Spry.Widget) Spry.Widget = {};
+
-
Spry.Widget.CollapsiblePanel = function(element, opts)
+
3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
-
{
+
-
this.element = this.getElement(element);
+
-
this.focusElement = null;
+
-
this.hoverClass = "CollapsiblePanelTabHover";
+
-
this.openClass = "CollapsiblePanelOpen";
+
-
this.closedClass = "CollapsiblePanelClosed";
+
-
this.focusedClass = "CollapsiblePanelFocused";
+
-
this.enableAnimation = true;
+
-
this.enableKeyboardNavigation = true;
+
-
this.animator = null;
+
-
this.hasFocus = false;
+
-
this.contentIsOpen = true;
+
-
this.openPanelKeyCode = Spry.Widget.CollapsiblePanel.KEY_DOWN;
+
4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.
-
this.closePanelKeyCode = Spry.Widget.CollapsiblePanel.KEY_UP;
+
-
Spry.Widget.CollapsiblePanel.setOptions(this, opts);
+
*/
 +
.sidebar1 {
 +
float: left;
 +
width: 20%;
 +
background: #FFF;
 +
padding-bottom: 10px;
-
this.attachBehaviors();
+
}
-
};
+
.content {
 +
 +
padding: 10px 0;
 +
width: 80%;
 +
float: left;
 +
background: #FFF;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.getElement = function(ele)
+
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
-
{
+
.content ul, .content ol {  
-
if (ele && (typeof ele == "string"))
+
padding: 0 15px 15px 40px;
-
return document.getElementById(ele);
+
/* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
-
return ele;
+
}
-
};
+
-
Spry.Widget.CollapsiblePanel.prototype.addClassName = function(ele, className)
+
/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
-
{
+
ul.nav {
-
if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) != -1))
+
list-style: none; /* this removes the list marker */
-
return;
+
border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
-
ele.className += (ele.className ? " " : "") + className;
+
margin-bottom: 15px; /* this creates the space between the navigation on the content below */
-
};
+
}
 +
ul.nav li {
 +
border-bottom: 1px solid #FFF; /* this creates the button separation */
 +
 +
}
 +
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
 +
padding: 5px 5px 5px 15px;
 +
display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
 +
text-decoration: none;
 +
background: #FFF;
 +
color:#013469;;
 +
 +
}
 +
ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
 +
background: #f6af1b; /*float amarillo*/
 +
color: #FFF;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.removeClassName = function(ele, className)
+
/* ~~miscellaneous float/clear classes~~ */
-
{
+
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
-
if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) == -1))
+
float: right;
-
return;
+
margin-left: 8px;
-
ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
+
}
-
};
+
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
 +
float: left;
 +
margin-right: 8px;
 +
}
 +
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the overflow:hidden on the .container is removed */
 +
clear:both;
 +
height:0;
 +
font-size: 1px;
 +
line-height: 0px;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.hasClassName = function(ele, className)
+
/* panel */
 +
.panel, .panelcollapsed
{
{
-
if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
+
margin: 5px;
-
return false;
+
width: auto;
-
return true;
+
-moz-border-radius: 4px;
-
};
+
-webkit-border-radius: 4px;
 +
border-top-width: 1px;
 +
border-right-width: 1px;
 +
border-bottom-width: 1px;
 +
border-left-width: 1px;
 +
padding-bottom: 5px;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.setDisplay = function(ele, display)
+
/* panel heading */
 +
.panel h2, .panelcollapsed h2
{
{
-
if( ele )
+
font-weight: normal;
-
ele.style.display = display;
+
margin: 0px;
-
};
+
padding: 4px;
 +
-moz-border-radius: 3px;
 +
-webkit-border-radius: 3px;
 +
}
-
Spry.Widget.CollapsiblePanel.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
+
/* panel heading on rollover */
-
{
+
.panel h2:hover, .panelcollapsed h2:hover {
-
if (!optionsObj)
+
background-color: #FC3;
-
return;
+
color: #FFF;
-
for (var optionName in optionsObj)
+
}
-
{
+
-
if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
+
-
continue;
+
-
obj[optionName] = optionsObj[optionName];
+
-
}
+
-
};
+
-
Spry.Widget.CollapsiblePanel.prototype.onTabMouseOver = function(e)
+
/* heading of a collapsed panel */
 +
.panelcollapsed h2
{
{
-
this.addClassName(this.getTab(), this.hoverClass);
+
background-image: url(arrow-dn.gif);
-
return false;
+
background-repeat: no-repeat;
-
};
+
background-position: 280px;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.onTabMouseOut = function(e)
+
/* panel content - do not set borders or paddings */
 +
.panelcontent
{
{
-
this.removeClassName(this.getTab(), this.hoverClass);
+
overflow: hidden;
-
return false;
+
font-size: 12px;
-
};
+
}
-
Spry.Widget.CollapsiblePanel.prototype.open = function()
+
/* collapsed panel content */
-
{
+
.panelcollapsed .panelcontent { display: none; }
-
this.contentIsOpen = true;
+
-
if (this.enableAnimation)
+
-
{
+
-
if (this.animator)
+
-
this.animator.stop();
+
-
this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, true, { duration: this.duration, fps: this.fps, transition: this.transition });
+
-
this.animator.start();
+
-
}
+
-
else
+
-
this.setDisplay(this.getContent(), "block");
+
-
this.removeClassName(this.element, this.closedClass);
+
-->
-
this.addClassName(this.element, this.openClass);
+
</style><!--[if lte IE 7]>
-
};
+
<style>
 +
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
 +
ul.nav a { zoom: 1; }  /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
 +
</style>
 +
<![endif]-->
-
Spry.Widget.CollapsiblePanel.prototype.close = function()
+
<script type="text/javascript">
-
{
+
<!--
-
this.contentIsOpen = false;
+
-
if (this.enableAnimation)
+
-
{
+
-
if (this.animator)
+
-
this.animator.stop();
+
-
this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, false, { duration: this.duration, fps: this.fps, transition: this.transition });
+
-
this.animator.start();
+
-
}
+
-
else
+
-
this.setDisplay(this.getContent(), "none");
+
-
this.removeClassName(this.element, this.openClass);
+
function changeImg(n) {
-
this.addClassName(this.element, this.closedClass);
+
-
};
+
//url goes here
 +
var imgname = new Array();
 +
imgname[0] = "/a.jpg";
 +
imgname[1] = "/b.jpg";
 +
imgname[2] = "/c.jpg";
 +
imgname[3] = "/d.jpg";
 +
imgname[4] = "/e.jpg";
 +
 +
var name = imgname[n];
 +
document.getElementById('imagered').src=name;
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.onTabClick = function(e)
+
// -----------------------------------------------------------------------------------------------
-
{
+
// PANELS
-
if (this.isOpen())
+
var PANEL_NORMAL_CLASS    = "panel";
-
this.close();
+
var PANEL_COLLAPSED_CLASS = "panelcollapsed";
-
else
+
var PANEL_HEADING_TAG    = "h2";
-
this.open();
+
var PANEL_CONTENT_CLASS  = "panelcontent";
-
 
+
var PANEL_COOKIE_NAME    = "panels";
-
this.focus();
+
var PANEL_ANIMATION_DELAY = 20; /*ms*/
-
 
+
var PANEL_ANIMATION_STEPS = 10;
-
return this.stopPropagation(e);
+
-
};
+
-
Spry.Widget.CollapsiblePanel.prototype.onFocus = function(e)
+
function setUpPanels()
{
{
-
this.hasFocus = true;
+
loadSettings();
-
this.addClassName(this.element, this.focusedClass);
+
-
return false;
+
// get all headings
-
};
+
var headingTags = document.getElementsByTagName(PANEL_HEADING_TAG);
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.onBlur = function(e)
+
-
{
+
-
this.hasFocus = false;
+
-
this.removeClassName(this.element, this.focusedClass);
+
-
return false;
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanel.KEY_UP = 38;
+
-
Spry.Widget.CollapsiblePanel.KEY_DOWN = 40;
+
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.onKeyDown = function(e)
+
-
{
+
-
var key = e.keyCode;
+
-
if (!this.hasFocus || (key != this.openPanelKeyCode && key != this.closePanelKeyCode))
+
-
return true;
+
-
 
+
-
if (this.isOpen() && key == this.closePanelKeyCode)
+
-
this.close();
+
-
else if ( key == this.openPanelKeyCode)
+
-
this.open();
+
-
return this.stopPropagation(e);
+
// go through all tags
-
};
+
for (var i=0; i<headingTags.length; i++)
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.stopPropagation = function(e)
+
-
{
+
-
if (e.preventDefault) e.preventDefault();
+
-
else e.returnValue = false;
+
-
if (e.stopPropagation) e.stopPropagation();
+
-
else e.cancelBubble = true;
+
-
return false;
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.attachPanelHandlers = function()
+
-
{
+
-
var tab = this.getTab();
+
-
if (!tab)
+
-
return;
+
-
 
+
-
var self = this;
+
-
Spry.Widget.CollapsiblePanel.addEventListener(tab, "click", function(e) { return self.onTabClick(e); }, false);
+
-
Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseover", function(e) { return self.onTabMouseOver(e); }, false);
+
-
Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseout", function(e) { return self.onTabMouseOut(e); }, false);
+
-
 
+
-
if (this.enableKeyboardNavigation)
+
{
{
-
// XXX: IE doesn't allow the setting of tabindex dynamically. This means we can't
+
var el = headingTags[i];
-
// rely on adding the tabindex attribute if it is missing to enable keyboard navigation
+
-
// by default.
+
-
 
+
-
// Find the first element within the tab container that has a tabindex or the first
+
-
// anchor tag.
+
-
var tabIndexEle = null;
+
// make sure it's the heading inside a panel
-
var tabAnchorEle = null;
+
if (el.parentNode.className != PANEL_NORMAL_CLASS && el.parentNode.className != PANEL_COLLAPSED_CLASS)
-
 
+
continue;
-
this.preorderTraversal(tab, function(node) {
+
-
if (node.nodeType == 1 /* NODE.ELEMENT_NODE */)
+
// get the text value of the tag
-
{
+
var name = el.firstChild.nodeValue;
-
var tabIndexAttr = tab.attributes.getNamedItem("tabindex");
+
-
if (tabIndexAttr)
+
// look for the name in loaded settings, apply the normal/collapsed class
-
{
+
if (panelsStatus[name] == "false")
-
tabIndexEle = node;
+
el.parentNode.className = PANEL_COLLAPSED_CLASS;
-
return true;
+
else
-
}
+
if (panelsStatus[name] == "true")
-
if (!tabAnchorEle && node.nodeName.toLowerCase() == "a")
+
el.parentNode.className = PANEL_NORMAL_CLASS;
-
tabAnchorEle = node;
+
else
-
}
+
-
return false;
+
-
});
+
-
 
+
-
if (tabIndexEle)
+
-
this.focusElement = tabIndexEle;
+
-
else if (tabAnchorEle)
+
-
this.focusElement = tabAnchorEle;
+
-
 
+
-
if (this.focusElement)
+
{
{
-
Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "focus", function(e) { return self.onFocus(e); }, false);
+
// if no saved setting, see the initial setting
-
Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "blur", function(e) { return self.onBlur(e); }, false);
+
panelsStatus[name] = (el.parentNode.className == PANEL_NORMAL_CLASS) ? "true" : "false";
-
Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "keydown", function(e) { return self.onKeyDown(e); }, false);
+
}
}
 +
 +
// add the click behavor to headings
 +
el.onclick = function()
 +
{
 +
var target    = this.parentNode;
 +
var name      = this.firstChild.nodeValue;
 +
var collapsed = (target.className == PANEL_COLLAPSED_CLASS);
 +
saveSettings(name, collapsed?"true":"false");
 +
animateTogglePanel(target, collapsed);
 +
};
}
}
-
};
+
}
-
Spry.Widget.CollapsiblePanel.addEventListener = function(element, eventType, handler, capture)
+
/**
 +
* Start the expand/collapse animation of the panel
 +
* @param panel reference to the panel div
 +
*/
 +
function animateTogglePanel(panel, expanding)
{
{
-
try
+
// find the .panelcontent div
 +
var elements = panel.getElementsByTagName("div");
 +
var panelContent = null;
 +
for (var i=0; i<elements.length; i++)
{
{
-
if (element.addEventListener)
+
if (elements[i].className == PANEL_CONTENT_CLASS)
-
element.addEventListener(eventType, handler, capture);
+
-
else if (element.attachEvent)
+
-
element.attachEvent("on" + eventType, handler);
+
-
}
+
-
catch (e) {}
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.preorderTraversal = function(root, func)
+
-
{
+
-
var stopTraversal = false;
+
-
if (root)
+
-
{
+
-
stopTraversal = func(root);
+
-
if (root.hasChildNodes())
+
{
{
-
var child = root.firstChild;
+
panelContent = elements[i];
-
while (!stopTraversal && child)
+
break;
-
{
+
-
stopTraversal = this.preorderTraversal(child, func);
+
-
try { child = child.nextSibling; } catch (e) { child = null; }
+
-
}
+
}
}
}
}
-
return stopTraversal;
+
-
};
+
// make sure the content is visible before getting its height
 +
panelContent.style.display = "block";
 +
 +
// get the height of the content
 +
var contentHeight = panelContent.offsetHeight;
 +
 +
// if panel is collapsed and expanding, we must start with 0 height
 +
if (expanding)
 +
panelContent.style.height = "0px";
 +
 +
var stepHeight = contentHeight / PANEL_ANIMATION_STEPS;
 +
var direction = (!expanding ? -1 : 1);
 +
 +
setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
 +
}
-
Spry.Widget.CollapsiblePanel.prototype.attachBehaviors = function()
+
/**
 +
* Change the height of the target
 +
* @param panelContent reference to the panel content to change height
 +
* @param iteration current iteration; animation will be stopped when iteration reaches PANEL_ANIMATION_STEPS
 +
* @param stepHeight height increment to be added/substracted in one step
 +
* @param direction 1 for expanding, -1 for collapsing
 +
*/
 +
function animateStep(panelContent, iteration, stepHeight, direction)
{
{
-
var panel = this.element;
+
if (iteration<PANEL_ANIMATION_STEPS)
-
var tab = this.getTab();
+
-
var content = this.getContent();
+
-
 
+
-
if (this.contentIsOpen || this.hasClassName(panel, this.openClass))
+
{
{
-
this.addClassName(panel, this.openClass);
+
panelContent.style.height = Math.round(((direction>0) ? iteration : 10 - iteration) * stepHeight) +"px";
-
this.removeClassName(panel, this.closedClass);
+
iteration++;
-
this.setDisplay(content, "block");
+
setTimeout(function(){animateStep(panelContent,iteration,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
-
this.contentIsOpen = true;
+
}
}
else
else
{
{
-
this.removeClassName(panel, this.openClass);
+
// set class for the panel
-
this.addClassName(panel, this.closedClass);
+
panelContent.parentNode.className = (direction<0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS;
-
this.setDisplay(content, "none");
+
// clear inline styles
-
this.contentIsOpen = false;
+
panelContent.style.display = panelContent.style.height = "";
}
}
 +
}
-
this.attachPanelHandlers();
+
// -----------------------------------------------------------------------------------------------
-
};
+
// Load-Save
-
 
+
// -----------------------------------------------------------------------------------------------
-
Spry.Widget.CollapsiblePanel.prototype.getTab = function()
+
/**
 +
* Reads the "panels" cookie if exists, expects data formatted as key:value|key:value... puts in panelsStatus object
 +
*/
 +
function loadSettings()
{
{
-
return this.getElementChildren(this.element)[0];
+
// prepare the object that will keep the panel statuses
-
};
+
panelsStatus = {};
-
 
+
-
Spry.Widget.CollapsiblePanel.prototype.getContent = function()
+
// find the cookie name
-
{
+
var start = document.cookie.indexOf(PANEL_COOKIE_NAME + "=");
-
return this.getElementChildren(this.element)[1];
+
if (start == -1) return;
-
};
+
-
 
+
// starting point of the value
-
Spry.Widget.CollapsiblePanel.prototype.isOpen = function()
+
start += PANEL_COOKIE_NAME.length+1;
-
{
+
-
return this.contentIsOpen;
+
// find end point of the value
-
};
+
var end = document.cookie.indexOf(";", start);
-
 
+
if (end == -1) end = document.cookie.length;
-
Spry.Widget.CollapsiblePanel.prototype.getElementChildren = function(element)
+
-
{
+
// get the value, split into key:value pairs
-
var children = [];
+
var cookieValue = unescape(document.cookie.substring(start, end));
-
var child = element.firstChild;
+
var panelsData = cookieValue.split("|");
-
while (child)
+
 +
// split each key:value pair and put in object
 +
for (var i=0; i< panelsData.length; i++)
{
{
-
if (child.nodeType == 1 /* Node.ELEMENT_NODE */)
+
var pair = panelsData[i].split(":");
-
children.push(child);
+
panelsStatus[pair[0]] = pair[1];
-
child = child.nextSibling;
+
}
}
-
return children;
+
}
-
};
+
-
Spry.Widget.CollapsiblePanel.prototype.focus = function()
+
function expandAll()
{
{
-
if (this.focusElement && this.focusElement.focus)
+
for (var key in panelsStatus)
-
this.focusElement.focus();
+
saveSettings(key, "true");
-
};
+
 +
setUpPanels();
 +
}
-
/////////////////////////////////////////////////////
+
function collapseAll()
-
 
+
-
Spry.Widget.CollapsiblePanel.PanelAnimator = function(panel, doOpen, opts)
+
{
{
-
this.timer = null;
+
for (var key in panelsStatus)
-
this.interval = 0;
+
saveSettings(key, "false");
 +
 +
setUpPanels();
 +
}
-
this.fps = 60;
+
/**
-
this.duration = 500;
+
* Takes data from the panelsStatus object, formats as key:value|key:value... and puts in cookie valid for 365 days
-
this.startTime = 0;
+
* @param key key name to save
-
 
+
* @paeam value key value
-
this.transition = Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition;
+
*/
-
 
+
function saveSettings(key, value)
-
this.onComplete = null;
+
-
 
+
-
this.panel = panel;
+
-
this.content = panel.getContent();
+
-
this.doOpen = doOpen;
+
-
 
+
-
Spry.Widget.CollapsiblePanel.setOptions(this, opts, true);
+
-
 
+
-
this.interval = Math.floor(1000 / this.fps);
+
-
 
+
-
var c = this.content;
+
-
 
+
-
var curHeight = c.offsetHeight ? c.offsetHeight : 0;
+
-
this.fromHeight = (doOpen && c.style.display == "none") ? 0 : curHeight;
+
-
 
+
-
if (!doOpen)
+
-
this.toHeight = 0;
+
-
else
+
-
{
+
-
if (c.style.display == "none")
+
-
{
+
-
// The content area is not displayed so in order to calculate the extent
+
-
// of the content inside it, we have to set its display to block.
+
-
 
+
-
c.style.visibility = "hidden";
+
-
c.style.display = "block";
+
-
}
+
-
 
+
-
// Clear the height property so we can calculate
+
-
// the full height of the content we are going to show.
+
-
 
+
-
c.style.height = "";
+
-
this.toHeight = c.offsetHeight;
+
-
}
+
-
 
+
-
this.distance = this.toHeight - this.fromHeight;
+
-
this.overflow = c.style.overflow;
+
-
 
+
-
c.style.height = this.fromHeight + "px";
+
-
c.style.visibility = "visible";
+
-
c.style.overflow = "hidden";
+
-
c.style.display = "block";
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition = function(time, begin, finish, duration) { time /= duration; return begin + ((2 - time) * time * finish); };
+
-
 
+
-
Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.start = function()
+
{
{
-
var self = this;
+
// put the new value in the object
-
this.startTime = (new Date).getTime();
+
panelsStatus[key] = value;
-
this.timer = setTimeout(function() { self.stepAnimation(); }, this.interval);
+
-
};
+
// create an array that will keep the key:value pairs
 +
var panelsData = [];
 +
for (var key in panelsStatus)
 +
panelsData.push(key+":"+panelsStatus[key]);
 +
 +
// set the cookie expiration date 1 year from now
 +
var today = new Date();
 +
var expirationDate = new Date(today.getTime() + 365 * 1000 * 60 * 60 * 24);
 +
// write the cookie
 +
document.cookie = PANEL_COOKIE_NAME + "=" + escape(panelsData.join("|")) + ";expires=" + expirationDate.toGMTString();
 +
}
-
Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stop = function()
+
// -----------------------------------------------------------------------------------------------
 +
// Register setUpPanels to be executed on load
 +
if (window.addEventListener)
{
{
-
if (this.timer)
+
// the "proper" way
-
{
+
window.addEventListener("load", setUpPanels, false);
-
clearTimeout(this.timer);
+
}
-
 
+
else
-
// If we're killing the timer, restore the overflow property.
+
if (window.attachEvent)
-
 
+
-
this.content.style.overflow = this.overflow;
+
-
}
+
-
 
+
-
this.timer = null;
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stepAnimation = function()
+
{
{
-
var curTime = (new Date).getTime();
+
// the IE way
-
var elapsedTime = curTime - this.startTime;
+
window.attachEvent("onload", setUpPanels);
-
 
+
}
-
if (elapsedTime >= this.duration)
+
-->
-
{
+
-
if (!this.doOpen)
+
-
this.content.style.display = "none";
+
-
this.content.style.overflow = this.overflow;
+
-
this.content.style.height = this.toHeight + "px";
+
-
if (this.onComplete)
+
-
this.onComplete();
+
-
return;
+
-
}
+
-
 
+
-
var ht = this.transition(elapsedTime, this.fromHeight, this.distance, this.duration);
+
-
 
+
-
this.content.style.height = ((ht < 0) ? 0 : ht) + "px";
+
-
 
+
-
var self = this;
+
-
this.timer = setTimeout(function() { self.stepAnimation(); }, this.interval);
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup = function(element, opts)
+
-
{
+
-
this.element = this.getElement(element);
+
-
this.opts = opts;
+
-
 
+
-
this.attachBehaviors();
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.setOptions = Spry.Widget.CollapsiblePanel.prototype.setOptions;
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.getElement = Spry.Widget.CollapsiblePanel.prototype.getElement;
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.getElementChildren = Spry.Widget.CollapsiblePanel.prototype.getElementChildren;
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.setElementWidget = function(element, widget)
+
-
{
+
-
if (!element || !widget)
+
-
return;
+
-
if (!element.spry)
+
-
element.spry = new Object;
+
-
element.spry.collapsiblePanel = widget;
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.getElementWidget = function(element)
+
-
{
+
-
return (element && element.spry && element.spry.collapsiblePanel) ? element.spry.collapsiblePanel : null;
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.getPanels = function()
+
-
{
+
-
if (!this.element)
+
-
return [];
+
-
return this.getElementChildren(this.element);
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.getPanel = function(panelIndex)
+
-
{
+
-
return this.getPanels()[panelIndex];
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.attachBehaviors = function()
+
-
{
+
-
if (!this.element)
+
-
return;
+
-
 
+
-
var cpanels = this.getPanels();
+
-
var numCPanels = cpanels.length;
+
-
for (var i = 0; i < numCPanels; i++)
+
-
{
+
-
var cpanel = cpanels[i];
+
-
this.setElementWidget(cpanel, new Spry.Widget.CollapsiblePanel(cpanel, this.opts));
+
-
}
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.openPanel = function(panelIndex)
+
-
{
+
-
var w = this.getElementWidget(this.getPanel(panelIndex));
+
-
if (w && !w.isOpen())
+
-
w.open();
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.closePanel = function(panelIndex)
+
-
{
+
-
var w = this.getElementWidget(this.getPanel(panelIndex));
+
-
if (w && w.isOpen())
+
-
w.close();
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.openAllPanels = function()
+
-
{
+
-
var cpanels = this.getPanels();
+
-
var numCPanels = cpanels.length;
+
-
for (var i = 0; i < numCPanels; i++)
+
-
{
+
-
var w = this.getElementWidget(cpanels[i]);
+
-
if (w && !w.isOpen())
+
-
w.open();
+
-
}
+
-
};
+
-
 
+
-
Spry.Widget.CollapsiblePanelGroup.prototype.closeAllPanels = function()
+
-
{
+
-
var cpanels = this.getPanels();
+
-
var numCPanels = cpanels.length;
+
-
for (var i = 0; i < numCPanels; i++)
+
-
{
+
-
var w = this.getElementWidget(cpanels[i]);
+
-
if (w && w.isOpen())
+
-
w.close();
+
-
}
+
-
};
+
-
 
+
-
 
+
</script>
</script>
 +
</head><body>
-
<script type="text/javascript">
+
<div class="container">
-
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
+
-
var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2");
+
<div class="topbar">
-
var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3");
+
    <div style="background-color:#FFF;">
-
var CollapsiblePanel4 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel4");
+
-
</script>
+
-
 
+
<!--this will hold the search bar languages and logos -->
-
<style type="text/css">
+
    <p> <img src="https://static.igem.org/mediawiki/igem.org/2/20/Logotec.png" alt="ITESM" name="teclogo" width="146" height="52" id="teclogo">
-
@charset "UTF-8";
+
    <a href="https://2011.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/igem.org/7/73/Logoigemsmall.png" alt="iGEM" name="logoigem" width="70" height="61" id="logoigem"></a> </p>
-
 
+
  </div>
-
/* SpryCollapsiblePanel.css - version 0.5 - Spry Pre-Release 1.6.1 */
+
-
 
+
-
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
+
-
 
+
-
/* This is the selector for the main CollapsiblePanel container. For our
+
-
* default style, the CollapsiblePanel is responsible for drawing the borders
+
-
* around the widget.
+
-
*
+
-
* If you want to constrain the width of the CollapsiblePanel widget, set a width on
+
-
* the CollapsiblePanel container. By default, our CollapsiblePanel expands horizontally to fill
+
-
* up available space.
+
-
*
+
-
* The name of the class ("CollapsiblePanel") used in this selector is not necessary
+
-
  * to make the widget function. You can use any class name you want to style the
+
-
* CollapsiblePanel container.
+
-
*/
+
   
   
-
  @charset "UTF-8";
+
   
-
.CollapsiblePanel {
+
  <div class="sidebar1">
-
margin: 0px;
+
    <ul class="nav">
-
padding: 0px;
+
      <p>&nbsp;</p>
-
border-top-width: 0px;
+
      <!--this is our menu! D: hurrfff durrff herpa derpa-->
-
border-right-width: 0px;
+
      <li>
-
border-bottom-width: 0px;
+
      <div class="panelcollapsed">
-
border-left-width: 0px;
+
  <h2>MAIN</h2>
-
border-top-style: none;
+
    <div class="panelcontent" style="">
-
border-right-style: none;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">home</a></p>
-
border-bottom-style: none;
+
<p><a href="https://2011.igem.org/Team:Tec-Monterrey/projectdescription">abstract</a></p>
-
border-left-style: none;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">videos</a></p>
-
border-top-color: #FFF;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">step by step</a></p>
-
border-right-color: #FFF;
+
         
-
border-bottom-color: #FFF;
+
       
-
border-left-color: #FFF;
+
    </div>
-
}
+
</div>
-
 
+
      </li>
-
/* This is the selector for the CollapsiblePanelTab. This container houses
+
      <li>
-
* the title for the panel. This is also the container that the user clicks
+
     
-
* on to open or close the panel.
+
      <div class="panelcollapsed">
-
*
+
  <h2>PROJECT</h2>
-
* The name of the class ("CollapsiblePanelTab") used in this selector is not necessary
+
    <div class="panelcontent" style="">
-
* to make the widget function. You can use any class name you want to style an
+
<p><a href="https://2011.igem.org/Team:Tec-Monterrey/projectdescription">description</a></p>
-
* CollapsiblePanel panel tab container.
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">parts</a></p>
-
*/
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">modeling</a></p>
-
.CollapsiblePanelTab {
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey/safetypage">safety</a></p>
-
font: bold 0.7em sans-serif;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">notebook</a></p>
-
background-color: #FFF;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">results</a></p>
-
margin: 5px;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">achievements</a></p>
-
padding: 2px;
+
    </div>
-
cursor: pointer;
+
</div>
-
-moz-user-select: none;
+
      </li>
-
-khtml-user-select: none;
+
      <li>
-
font-family: Verdana, Geneva, sans-serif;
+
     
-
font-size: 20px;
+
     
-
font-weight: normal;
+
      <div class="panelcollapsed">
-
border-bottom-style: none;
+
  <h2>TEAM</h2>
-
}
+
    <div class="panelcontent">
-
 
+
<p><a href="https://2011.igem.org/Team:Tec-Monterrey">members</a></p>
-
/* This is the selector for a CollapsiblePanel's Content area. It's important to note that
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">gallery</a></p>
-
* you should never put any padding on the content area element if you plan to
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">profile</a></p>
-
* use the CollapsiblePanel's open/close animations. Placing a non-zero padding on the content
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">installations</a></p>
-
* element can cause the CollapsiblePanel to abruptly grow in height while the panels animate.
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">human approach</a></p>
-
*
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey/microcongreso">micro congress</a></p>
-
* The name of the class ("CollapsiblePanelContent") used in this selector is not necessary
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">friends</a></p>
-
* to make the widget function. You can use any class name you want to style a
+
    </div>
-
* CollapsiblePanel content container.
+
</div>
-
*/
+
      </li><li>
-
.CollapsiblePanelContent {
+
      <div class="panelcollapsed">
-
margin: 5px;
+
  <h2>EXTRAS</h2>
-
padding: 0px;
+
    <div class="panelcontent">
-
font-family: Verdana, Geneva, sans-serif;
+
<p><a href="https://2011.igem.org/Team:Tec-Monterrey">site map</a></p>
-
font-size: 15px;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">sponsors</a></p>
-
text-decoration: none;
+
            <p><a href="https://2011.igem.org/Team:Tec-Monterrey">follow us!</a></p>
-
list-style-type: none;
+
    </div>
-
}
+
</div>
-
.descripmainlayout .descripmenu .menubar #CollapsiblePanel3 .CollapsiblePanelContent #listaproyecto li a {
+
      </li>
-
text-decoration: none;
+
    </ul>
-
color: #333;
+
    <p>&nbsp;</p>
-
list-style-type: none;
+
-
}
+
-
 
+
-
 
+
-
/* An anchor tag can be used inside of a CollapsiblePanelTab so that the
+
-
* keyboard focus ring appears *inside* the tab instead of around the tab.
+
-
* This is an example of how to make the text within the anchor tag look
+
-
* like non-anchor (normal) text.
+
-
*/
+
-
.CollapsiblePanelTab a {
+
-
color: #333;
+
-
text-decoration: none;
+
-
}
+
-
 
+
-
/* This is an example of how to change the appearance of the panel tab that is
+
-
* currently open. The class "CollapsiblePanelOpen" is programatically added and removed
+
-
* from panels as the user clicks on the tabs within the CollapsiblePanel.
+
-
*/
+
-
.CollapsiblePanelOpen .CollapsiblePanelTab {
+
-
background-color: #4ECDC4;
+
-
}
+
-
 
+
-
/* This is an example of how to change the appearance of the panel tab when the
+
-
* CollapsiblePanel is closed. The "CollapsiblePanelClosed" class is programatically added and removed
+
-
* whenever the CollapsiblePanel is closed.
+
-
*/
+
-
 
+
-
.CollapsiblePanelClosed .CollapsiblePanelTab {
+
-
/* background-color: #EFEFEF */
+
-
}
+
-
 
+
-
/* This is an example of how to change the appearance of the panel tab as the
+
-
* mouse hovers over it. The class "CollapsiblePanelTabHover" is programatically added
+
-
* and removed from panel tab containers as the mouse enters and exits the tab container.
+
-
*/
+
-
.CollapsiblePanelTabHover,  .CollapsiblePanelOpen .CollapsiblePanelTabHover {
+
-
background-color: #4ECDC4;
+
-
}
+
-
 
+
-
/* This is an example of how to change the appearance of all the panel tabs when the
+
-
* CollapsiblePanel has focus. The "CollapsiblePanelFocused" class is programatically added and removed
+
-
* whenever the CollapsiblePanel gains or loses keyboard focus.
+
-
*/
+
-
.CollapsiblePanelFocused .CollapsiblePanelTab {
+
-
 
+
-
}
+
-
 
+
-
 
+
-
</style>
+
-
 
+
-
<style type="text/css">
+
-
@charset "utf-8";
+
-
/* CSS Document */
+
-
 
+
-
* {
+
-
margin: 0px;
+
-
padding: 0px;
+
-
}
+
-
.maincontainer .menubar #CollapsiblePanel2 .CollapsiblePanelContent #listaproyecto {
+
-
list-style-type: none;
+
-
width: 150px;
+
-
}
+
-
 
+
-
 
+
-
#listaproyecto li a {
+
-
font-family: Tahoma, Geneva, sans-serif;
+
-
color: #333;
+
-
text-decoration: none;
+
-
display: block;
+
-
height: 25px;
+
-
width: 120px;
+
-
padding-left: 20px;
+
-
list-style-type: none;
+
-
}
+
-
 
+
-
#listaproyecto li a:hover {
+
-
background-color: #4ECDC4;
+
-
list-style-type: none;
+
-
}
+
-
 
+
-
 
+
-
#listaproyecto li {
+
-
height: 25px;
+
-
width: 100px;
+
-
list-style-type: none;
+
-
}
+
-
.maincontainer .menubar #CollapsiblePanel3 .CollapsiblePanelContent p a {
+
-
font-family: Tahoma, Geneva, sans-serif;
+
-
font-size: 15px;
+
-
color: #333;
+
-
text-decoration: none;
+
-
list-style-type: none;
+
-
}
+
-
.descripmainlayout .descripmenu #CollapsiblePanel3 .CollapsiblePanelContent ul li a {
+
-
color: #333;
+
-
text-decoration: none;
+
-
list-style-type: none;
+
-
}
+
-
.CollapsiblePanelContent ul li a {
+
-
display: block;
+
-
font-family: Tahoma, Geneva, sans-serif;
+
-
color: #333;
+
-
text-decoration: none;
+
-
font-size: 15px;
+
-
height: 25px;
+
-
width: 120px;
+
-
padding-left: 20px;
+
-
list-style-type: none;
+
-
}
+
-
.descripmainlayout .descripmenu #CollapsiblePanel3 .CollapsiblePanelContent ul li a:hover {
+
-
background-color: #4ECDC4;
+
-
list-style-type: none;
+
-
}
+
-
.descripmainlayout .descripmenu #CollapsiblePanel4 .CollapsiblePanelContent ul li a:hover {
+
-
background-color: #4ECDC4;
+
-
list-style-type: none;
+
-
}
+
-
.descripmainlayout .descripmenu #CollapsiblePanel5 .CollapsiblePanelContent ul li a:hover {
+
-
background-color: #4ECDC4;
+
-
list-style-type: none;
+
-
}
+
-
 
+
-
 
+
-
</style>
+
-
 
+
-
</head>
+
-
 
+
-
<body>
+
-
<div class="maincontainer">  
+
-
  <div class="banner"> </div>  
+
-
  <div class="language"> </div>  
+
-
  <div class="searchlogo">
+
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
-
    <p><a href="https://2011.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2011/a/a1/Logoigempeginav1.png" alt="iGEM" name="logoigem" width="155" height="61" id="logoigem" />  </p>
 
-
    <p>&nbsp;</p>
 
-
      <p>&nbsp;</p>
 
-
      <p><img src="https://static.igem.org/mediawiki/2011/5/5e/Tec-Monterrey_logo.png" alt="" name="logotec" width="146" height="52" id="logotec" />    </p>
 
-
 
<p>&nbsp;</p>
<p>&nbsp;</p>
 +
    <p>&nbsp;</p>
 +
    <p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
 +
</div>
 +
 
 +
<div class="content">
 +
  <!--in sub pages, this divisions should be comments! :D-->
 +
 
 +
  <div class="banner">
 +
       
 +
    <div style="text-align: right;background-color:#FFF;">
 +
    <p>&nbsp;</p>
 +
    <p><a href="https://2011.igem.org/Team:Tec-Monterrey"><img src="https://static.igem.org/mediawiki/igem.org/4/4f/Renderbanner2.png" alt="tec monterrey 2011" name="banner" width="513" height="155" id="banner"></a></p>
 +
   
 +
    </div>
 +
   
 +
  </div> 
 +
 
 +
  <div class="imagehiglights">
 +
 
 +
  <div style="text-align: center;background-color:#FFF;">
 +
    <p>&nbsp;</p>
 +
    <p><img src="/a.jpg" alt="asd" name="image" width="300" height="300" id="imagered" longdesc="http://asdas"></p>
 +
    <table width="50%" border="1" align="center">
 +
      <tbody><tr>
 +
        <td> <a href="#" onmouseover="changeImg(0)">welcome!</a> </td>
 +
        <td> <a href="#" onmouseover="changeImg(1)">new look?</a> </td>
 +
        <td> <a href="#" onmouseover="changeImg(2)">videos</a> </td>
 +
        <td> <a href="#" onmouseover="changeImg(3)">our summer</a> </td>
 +
        <td> <a href="#" onmouseover="changeImg(4)">coming soon</a> </td>
 +
      </tr>
 +
    </tbody></table>
 +
    <p><br>
 +
    </p>
 +
    </div>
 +
 
 +
  </div>   
 +
 
 +
  <div class="commentsection">
 +
 
 +
  <div style="
 +
  text-align: center;
 +
  background:url(https://static.igem.org/mediawiki/igem.org/3/38/Textounoop.png);
 +
  background-repeat:no-repeat;
 +
  background-position:center;
 +
        background-color:#FFF;">
 +
 
 +
  <p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
 +
<p>Hello and welcome to our webpage!</p>
 +
  <p> We made a few changes since your last visit, do feel free to browse! :D </p>
 +
  <p>&nbsp;</p>
 +
  <p>&nbsp;</p>
 +
</div>
 +
 
 +
 
 +
   
 +
   
 +
  </div>
 +
 
 +
  <div class="quicklinks">
 +
 
 +
  <div style="
 +
  text-align: center;
 +
  background:url(https://static.igem.org/mediawiki/igem.org/e/ec/Topquicklink.png);
 +
  background-repeat:no-repeat;
 +
        background-position:top;
 +
  background-color:#FFF;">
 +
    <p>SUMMER 2011</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
-
<p>&nbsp;</p>
+
  <p> <a href="https://2011.igem.org/Team:Tec-Monterrey/projectdescription">
-
<p>&nbsp;</p>
+
  <img src="https://static.igem.org/mediawiki/igem.org/e/ef/Sidesquicklinkpd.png" alt="projectdescription" name="sidelinkleft" width="207" height="171" id="sidelinkleft"></a>  
-
<p>&nbsp;</p>
+
 
-
<p>&nbsp;</p>
+
    <a href="https://2011.igem.org/Team:Tec-Monterrey/microcongreso">
-
<p>&nbsp;</p>
+
     <img src="https://static.igem.org/mediawiki/igem.org/3/3c/Middlequicklink.png" alt="microcongress" name="quicklinkcenter" width="225" height="190" id="quicklinkcenter"></a>
-
<p>&nbsp;</p>
+
 
-
     <p><img src="images/igemlogo.png" alt="iGEM" name="logoigem" width="155" height="61" id="logoigem" /> </p>
+
  <a href="https://2011.igem.org/Team:Tec-Monterrey/safetypage">
-
    <p>&nbsp;</p>
+
  <img src="https://static.igem.org/mediawiki/igem.org/2/2f/Sides2quicklinkpd.png" alt="safetypage" name="sidelinkright" width="207" height="171" id="sidelinkright"></a>
-
      <p>&nbsp;</p>
+
  </p>
-
<p><img src="images/igemlogo.png" alt="iGEM" name="logoigem" width="155" height="61" id="logoigem" /> </p>
+
 
-
    <p>&nbsp;</p>
+
  </div> 
-
       <p>&nbsp;</p>
+
 
-
<p><img src="images/igemlogo.png" alt="iGEM" name="logoigem" width="155" height="61" id="logoigem" /> </p>
+
 
-
+
 
 +
  <div class="sponsors">
 +
 
 +
    <div style="text-align: center;background-color:#FFF;">
 +
       <p>Special thanks to our main sponsors ! </p>
 +
<p><img src="https://static.igem.org/mediawiki/igem.org/6/66/Logo_Promega_trans.png" alt="Promega" name="promega" width="170" height="110" id="promega">
 +
  <img src="" name="divisioncita" width="80" height="10" id="divisioncita">
 +
  <img name="uniparts" src="https://static.igem.org/mediawiki/igem.org/d/df/Uniparts-logo.gif" width="187" height="123" alt="Uniparts"></p>
 +
    </div>
 +
   
   </div>  
   </div>  
-
   <div class="menubar">
+
    
-
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
+
 
-
      <div class="CollapsiblePanelTab" tabindex="0"><a href="https://2011.igem.org/Team:Tec-Monterrey">HOME</a></div>
+
 
-
      <div class="CollapsiblePanelContent"></div>
+
  <!--uncomment this part in sub pages so you may edit properly-->
-
    </div>
+
  <!--
-
    <div id="CollapsiblePanel2" class="CollapsiblePanel">
+
  <h1>Instructions</h1>
-
      <div class="CollapsiblePanelTab" tabindex="0">PROJECT</div>
+
<p>Be aware that the CSS for these layouts is heavily commented. If you do most of your work in Design view, have a peek at the code to get tips on working with the CSS for the liquid layouts. You can remove these comments before you launch your site. To learn more about the techniques used in these CSS Layouts, read this article at Adobe's Developer Center - <a href="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts</a>.</p>
-
      <div class="CollapsiblePanelContent">
+
    <h2>Clearing</h2>
-
        <ul id="listaproyecto">
+
    <p>Because all the columns are floated, this layout uses overflow:hidden on the .container. This clearing technique forces the .container to understand where the columns end in order to show any borders or background colors you place on the .container. If you have a large element that protrudes outside the .container, it will appear to be cut off. You also won't be able to use negative margins or absolute positioning with negative values to pull elements outside the .container or they will also won't display outside the .container.</p>
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">parts</a></li>
+
     <p>If you need to use these properties, you'll need to use a different clearing method. The most reliable will be to add a &lt;br class=&quot;clearfloat&quot; /&gt; or &lt;div class=&quot;clearfloat&quot;&gt;&lt;/div&gt; after your final floated column (but before the .container closes). This will have the same clearing effect.</p>
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey/safetypage">safety</a></li>
+
    <h3>Footer</h3>
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey/projectdescription">description</a></li>
+
    <p>Adding a footer following the columns, yet still inside the .container, will cause this overflow:hidden clearing method to fail. You can place a .footer into a second .container outside the first one with no detrimental effects. The simplest choice may be to start with a layout containing headers and footers and remove the header to utilize the clearing methods in that layout type.</p>
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterreyl">modeling</a></li>
+
    <h4>Internet Explorer Conditional Comments</h4>
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">results</a></li>
+
     <p>These liquid layouts contain an Internet Explorer Conditional Comment (IECC) to correct two issues. </p>
-
        </ul>
+
     <ol>
-
      </div>
+
       <li>Browsers are inconsistent in the way they round div sizes in percent-based layouts. If the browser must render a number like 144.5px or 564.5px, they have to round it to the nearest whole number. Safari and Opera round down, Internet Explorer rounds up and Firefox rounds one column up and one down filling the container completely. These rounding issues can cause inconsistencies in some layouts. In this IECC there is a 1px negative margin to fix IE. You may move it to any of the columns (and on either the left or right) to suit your layout needs.</li>
-
     </div>
+
      <li>The zoom property was added to the anchor within the navigation list since, in some cases, extra white space will be rendered in IE6 and IE7. Zoom gives IE its proprietary hasLayout property to fix this issue.</li>
-
    <div id="CollapsiblePanel3" class="CollapsiblePanel">
+
    </ol>
-
      <div class="CollapsiblePanelTab" tabindex="0">TEAM</div>
+
     <h4>Backgrounds</h4>
-
      <div class="CollapsiblePanelContent">
+
     <p>By nature, the background color on any div will only show for the length of the content. This means if you're using a background color or border to create the look of a side column, it won't extend all the way to the footer but will stop when the content ends. If the .content div will always contain more content, you can place a border on the .content div to divide it from the column.end .content </p>-->
-
     
+
-
          <ul id="listaproyecto">
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">members</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">profile</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">gallery</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">installations</a></li>        
+
-
        </ul>
+
-
     
+
-
</div>
+
-
     </div>
+
-
     <div id="CollapsiblePanel4" class="CollapsiblePanel">
+
-
       <div class="CollapsiblePanelTab" tabindex="0">EXTRAS</div>
+
-
      <div class="CollapsiblePanelContent">
+
-
      <ul id="listaproyecto">
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">sitemap</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">human approach</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey/microcongreso">microcongreso</a></li>
+
-
          <li><a href="https://2011.igem.org/Team:Tec-Monterrey">sponsors</a></li>
+
-
          </ul>
+
-
      </div>
+
-
     </div>
+
-
  </div>
+
-
  <div class="video"> </div>
+
-
  <div class="texto">
+
-
     <p>&nbsp;</p>
+
-
    <div style="text-align: center;"></p>
+
-
      </p>&nbsp;</p>
+
-
</p>&nbsp;</p>
+
-
    <p><a href="https://2011.igem.org/Team:Tec-Monterrey/projectdescription">project description</a> and <a href="https://2011.igem.org/Team:Tec-Monterrey/safetypage">safety pages</a></p>
+
-
      <p>are  ready! </p>
+
-
        click on the link above or look for them in our menu.</p>
+
-
      </p>
+
-
  </div></div>
+
</div>
</div>
 +
  <!-- end .container --></div>
-
</body>
 
-
</html>
+
</div></div></body></html>

Revision as of 19:24, 13 July 2011

wiki

iGEM

 

 

Hello and welcome to our webpage!

We made a few changes since your last visit, do feel free to browse! :D