Difference between revisions of "Code Documentation2"

 
(175 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<html>
 
<html>
 
<style>
 
<style>
pre {margin: -2px;}
+
pre {margin: -5px;}
 
</style>
 
</style>
  
Line 8: Line 8:
  
  
 +
<div class="oneColumn">
 +
<h2> Styling </h2>
 +
</div>
  
  
 +
 +
 +
<div class="clear_id" id="Colors"></div>
  
 
<div class="oneColumn">
 
<div class="oneColumn">
 +
<h3> Color palette</h3>
  
<h2>Menu </h2>
+
<table>
  
 +
<tr height="50px" align="center" >
 +
<td width="180px" bgcolor="#e8edaa" > <h4 style="color:black;"> Lime green <br> #e8edaa</h4>  </td>
 +
<td width="180px" bgcolor="#f27631" > <h4 style="color:black;">Orange <br> #f27631 </h4> </td>
 +
<td width="180px" bgcolor="#5ba88a" > <h4 style="color:white;"> Turquoise <br> #5ba88a  </h4></td>
 +
<td width="180px" bgcolor="#e9232f" >  <h4 style="color:white ;"> Red <br> #e9232f </h4></td>
 +
<td width="180px" bgcolor="#4e606e" > <h4 style="color:white;"> Navy <br>#4e606e  </h4></td>
 +
</tr>
  
 +
</table>
  
 +
<table>
 +
<tr height="50px" align="center">
 +
<td width="180px" bgcolor="#ffffff"> <h4 style="color:black;">White <br> #ffffff</h4>  </td>
 +
<td width="180px" bgcolor="#f2f2f2"> <h4 style="color:black;">Light gray <br> #f2f2f2</h4>  </td>
 +
<td width="180px" bgcolor="#d3d3d3"> <h4 style="color:black;"> Medium gray<br>#d3d3d3</h4>  </td>
 +
<td width="180px"  bgcolor="#333333"><h4 style="color:white;">Charcoal <br> #333333</h4>  </td>
 +
<td width="180px" bgcolor="#000000"> <h4 style="color:white;">Black <br>#000000</h4>  </td>
 +
</tr>
 +
 +
</table>
 +
 +
</div>
 +
 +
 +
 +
 +
 +
 +
<div class="clear_id" id="Text"></div>
 +
 +
<div class="twoColumns">
 +
<h3> Text </h3>
 +
To write text
 +
</div>
 +
 +
 +
<div class="twoColumns">
 +
<BR><BR>
 
<pre>
 
<pre>
 +
&#60;p&#62; Text  &#60;/p&#62;
 +
</pre>
 +
</div>
  
  
&#60;div id="<b>Judging</b>">
 
  
&#60;div> &#60;a class="switch_Menus"&#62;  ◀  &#60;/a&#62; &#60;/div&#62; 
 
  
&#60;a href=" URL "&#62;
 
&#60;div class="sideMenuTitle"&#62;  <b>Judging</b>
 
&#60;/div&#62;
 
&#60;/a&#62;
 
  
&#60;div&#62;  &#60;a class="expand_subMenus"&#62;  + &#60;/a&#62; &#60;/div&#62;
+
<div class="clear_id" id="Links"></div>
  
&#60;div style="clear:both;"&#62; &#60;/div&#62;
+
<div class="twoColumns">
 +
<h3> Links </h3>
 +
<p> When creating links </p>
  
 +
<a href =""> Example </A>
 +
</div>
  
&#60;h4&#62;  Subtitle &#60;/h4&#62;
 
&#60;ul&#62;
 
  
&#60;li&#62; &#60; a href=" URL "&#62; <b> Topic 1</b> &#60;/a&#62;  &#60;a class="subMenu_toggle"&#62; &#60;/a&#62;
+
<div class="twoColumns">
+
<BR><BR>
&#60;div class="subMenu"&#62;
+
<pre>
 +
&#60;a href="link"&#62; LINK &#60;/a&#62;
 +
</pre>
 +
</div>
  
&#60;ul&#62;
 
&#60;a href=" <b>URL</b> "&#62;&#60;li&#62; <b>Item 1</b> &#60;/li&#62;&#60;/a&#62;
 
&#60;a href=" <b>URL</b> "&#62;&#60;li&#62; <b>Item 1</b> &#60;/li&#62;&#60;/a&#62;
 
&#60;/ul&#62;
 
  
&#60;/div&#62;
 
  
&#60;/li&#62;
 
  
&#60;li&#62; &#60;a href=""&#62;  <b>Topic 2</b> &#60;/a&#62;  &#60;/li&#62;
+
<div class="clear_id" id="Lists"></div>
  
&#60;/ul&#62;
 
  
&#60;/div&#62;  
+
<div class="fourColumns">
 +
<h3> Lists </h3>
 +
<p>Use the following example to create a simple list. </p>
 +
 
 +
<b> Painting materials </b>
 +
<ul>
 +
 
 +
  <li> Brushes </li>
 +
  <li> Acrylic paint </li>
 +
  <li> Watercolors </li>
 +
 
 +
</ul>
 +
 
 +
 
 +
</div>
 +
 
 +
 
 +
<div class="fourColumns">
 +
<pre>
 +
&#60;b&#62;Painting Materials&#60;/b&#62;
 +
 
 +
&#60;ul&#62;
 +
 
 +
&#60;li&#62; Brushes  &#60;/li&#62;
 +
&#60;li&#62; Acrylic paint &#60;/li&#62; 
 +
&#60;li&#62; Watercolors &#60;/li&#62;
 +
 
 +
&#60;/ul&#62;  
  
 
</pre>
 
</pre>
 +
</div>
 +
 +
 +
<div class="fourColumns">
 +
 +
<p>To create a numbered list, use the following example </p>
 +
<B> Things to buy: </b>
 +
<ol>
 +
 +
  <li> Milk </li>
 +
  <li> Eggs </li>
 +
  <li> Flour </li>
 +
</ol>
  
  
Line 63: Line 141:
  
  
<div class="oneColumn">
 
<h2> Color palette</h2>
 
  
<table>
+
<div class="fourColumns">
 +
<pre>
 +
&#60;b&#62;Things to buy: &#60;/b&#62;
  
<tr height="50px" align="center" >
+
&#60;ol&#62;  
<td width="180px" bgcolor="#e8edaa" > <h4 style="color:black;"> Lime green <br> #e8edaa</h4>  </td>
+
<td width="180px" bgcolor="#f27631" > <h4 style="color:black;">Orange <br> #f27631 </h4> </td>
+
<td width="180px" bgcolor="#5ba88a" > <h4 style="color:white;"> Turquoise <br> #5ba88a  </h4></td>
+
<td width="180px" bgcolor="#e9232f" >  <h4 style="color:white ;"> Red <br> #e9232f </h4></td>
+
<td width="180px" bgcolor="#4e606e" > <h4 style="color:white;"> Navy <br>#4e606e  </h4></td>
+
</tr>
+
  
</table>
+
&#60;li&#62; Milk &#60;/li&#62;
 +
&#60;li&#62; Eggs &#60;/li&#62;
 +
&#60;li&#62; Flour &#60;/li&#62;
  
<table>
+
&#60;/ol&#62;
<tr height="50px" align="center">
+
 
<td width="180px" bgcolor="#ffffff"> <h4 style="color:black;">White <br> #ffffff</h4>  </td>
+
</pre>
<td width="180px" bgcolor="#f2f2f2"> <h4 style="color:black;">Light gray <br> #f2f2f2</h4>  </td>
+
</div>
<td width="180px" bgcolor="#d3d3d3"> <h4 style="color:black;"> Medium gray<br>#d3d3d3</h4> </td>
+
 
<td width="180px"  bgcolor="#333333"><h4 style="color:white;">Charcoal <br> #333333</h4>   </td>
+
 
<td width="180px" bgcolor="#000000"> <h4 style="color:white;">Black <br>#000000</h4> </td>
+
<div class="clear"></div>
</tr>
+
 
 +
<div class="twoColumns">
 +
<h3> Nested Lists </h3>
 +
<p> Here is an example of a nested list. </p>
 +
  <ul>
 +
 
 +
      <li> Cold Colors </li>
 +
      <li> Warm Colors
 +
        <ol>
 +
            <li> Red </li>
 +
            <li> Orange </li>
 +
            <li> Yellow </li>
 +
        </ol>
 +
      </li>
 +
 
 +
  </ul>
  
</table>
 
  
 
</div>
 
</div>
 +
 +
 +
<div class="twoColumns">
 +
<pre>
 +
  &#60;ul&#62;
 +
 +
      &#60;li&#62; Cold Colors &#60;/li&#62;
 +
      &#60;li&#62; Warm Colors
 +
        &#60;ol&#62;
 +
            &#60;li&#62; Red  &#60;/li&#62;
 +
            &#60;li&#62; Orange &#60;/li&#62;
 +
            &#60;li&#62; Yellow &#60;/li&#62;
 +
        &#60;/ol&#62;
 +
      &#60;/li&#62;
 +
 +
  &#60;/ul&#62;
 +
</pre>
 +
</div>
 +
 +
 +
 +
 +
 +
 +
<div class="clear_id"  id="Titles"></div>
  
  
  
 
<div class="oneColumn">
 
<div class="oneColumn">
<h2> H titles </h2>
+
<h3> H titles </h3>
 +
 
 +
<pre>
 +
  &#60;h2&#62; Title &#60;/h2&#62;
 +
</pre>
 
</div>
 
</div>
  
Line 131: Line 248:
  
  
 +
<div class="clear_id"  id="Tables"></div>
  
 +
<div class="twoColumns">
  
 +
<h3> Tables</h3>
 +
<p> Tables created within in a page already have styling and will display:</p>
 +
<table>
 +
<tr>
 +
<th> Header 1  </th> <th> Header 2 </th>
 +
</tr>
  
 +
<tr>
 +
<td> Content A 1 </td> <td>Content B 1 </td>
 +
</tr>
  
 
+
<tr>
<div class="oneColumn">
+
<td> Content A 2 </td> <td>Content B 2 </td>  
<h2> Basic Layout classes</h2>
+
</tr>
 +
</table>
 
</div>
 
</div>
  
  
  
<div class="oneColumn dot_border">
 
<h3> Full width Column</h3>
 
<p>Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae pro cu, ne per admodum recteque intellegat. Mea id inani nusquam tractatos, ea vei.</p>
 
</div>
 
  
<div class="clear"> </div>
+
<div class="twoColumns">
 +
<pre>
 +
&#60;table&#62;
  
 +
&#60;tr&#62;
 +
&#60;th&#62;  Header 1  &#60;/th&#62;  &#60;th&#62;  Header 2 &#60;/th&#62;
 +
&#60;/tr&#62;
  
<div class="twoColumns dot_border">
+
&#60;tr&#62; 
<h3> Half width Columns</h3>
+
&#60;td&#62;  Content A 1 &#60;/td&#62;  &#60;td&#62; Content B 1 &#60;/td&#62; 
<p>Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae.</p>
+
&#60;/tr&#62;
</div>
+
  
<div class="clear"> </div>
+
&#60;tr&#62;
 +
&#60;td&#62;  Content A 2 &#60;/td&#62;  &#60;td&#62; Content B 2 &#60;/td&#62;
 +
&#60;/tr&#62;
 +
 
 +
&#60;/table&#62;
 +
</pre>
  
<div class="threeColumns dot_border">
 
<h3> Third width Columns</h3>
 
<p>Lorem ipsum dolor sit amet, ubique vivendo his</p>
 
 
</div>
 
</div>
  
Line 165: Line 296:
  
  
<div class="clear"> </div>
+
<div class="clear_id"  id="Images"></div>
  
 +
<div class="twoColumns">
 +
<h3> Images </h3>
 +
<p>You will need to call the "photo_container" class.  Images width for the different layout classes are specified bellow. </p>
  
<div class="fourColumns dot_border">
 
<h3> Quarter width Columns</h3>
 
<p>Lorem ipsum dolor sit amet, ubique</p>
 
 
</div>
 
</div>
  
 +
<div class="twoColumns">
 +
<pre>
 +
&#60;div class="twoColumns <b class="red_text">photo_container</b>"&#62;
  
 +
&#60;img src= "<b class="red_text">URL</b>" &#62;
  
<div class="clear"> </div>
+
&#60;/div&#62;
 +
 
 +
</pre>
 +
</div>
  
  
  
 
<div class="fourColumns">
 
<div class="fourColumns">
 +
 
<h5> Full width </h5>
 
<h5> Full width </h5>
<pre>
+
<p> width = 950 px<br>
&#60;div class="oneColumn"&#62;
+
height = 300 px (suggested)
&#60;/div&#62;
+
</p>
</pre>
+
 
</div>
 
</div>
 +
  
  
 
<div class="fourColumns">
 
<div class="fourColumns">
 +
 
<h5> Half width </h5>
 
<h5> Half width </h5>
<pre>
+
<p> width = 474 px<br>
&#60;div class="twoColumns"&#62;
+
height = 300 px (suggested)
&#60;/div&#62;
+
</p>
</pre>
+
 
</div>
 
</div>
  
  
 
<div class="fourColumns">
 
<div class="fourColumns">
 +
 
<h5> Third width </h5>
 
<h5> Third width </h5>
<pre>
+
<p> width = 315 px<br>
&#60;div class="threeColumns"&#62;
+
height = 215 px (suggested)
&#60;/div&#62;
+
</p>
</pre>
+
 
</div>
 
</div>
 +
  
  
 
<div class="fourColumns">
 
<div class="fourColumns">
 +
 
<h5> Quarter width </h5>
 
<h5> Quarter width </h5>
<pre>
+
<p> width = 236 px<br>
&#60;div class="fourColumns"&#62;
+
height = 156 px (suggested)
&#60;/div&#62;
+
</p>
</pre>
+
 
</div>
 
</div>
  
  
<div class="clear"> </div>
 
  
  
<div class="oneColumn">
 
<h2> Images </h2>
 
  
  
<pre>
 
  
photo_container
 
  
</pre>
+
<div class="clear_id"  id="Button"></div>
 +
 
 +
 
 +
<div class="oneColumn">
 +
<h2> Classes </h2>
 
</div>
 
</div>
  
  
 +
<div class="twoColumns">
 +
<h3>Button </h3>
 +
<p> When naming a button, please remember to use the style convention and write it in CAPS. </p>
 +
<a href=""><div class="button">
 +
REGISTER NOW!
 +
</div></a>
 +
</div>
  
<div class="fourColumns background_gray">
+
<div class="twoColumns">
 +
<br><br>
 +
<pre>&#60;a href="<b class="red_text">URL</b>"&#62;
 +
    &#60;div class="button"&#62;
 +
        <b class="red_text">REGISTER NOW!</b>
 +
    &#60;/div&#62;
 +
&#60;/a&#62;
 +
</pre>
  
<h3> Full width </h3>
 
<h5> width = 950 px<br>
 
height = 300 px (suggested)
 
</h5>
 
 
</div>
 
</div>
  
  
 +
<div class="clear_id" id="Pop_up"></div>
  
<div class="fourColumns background_gray">
 
  
<h3> Half width </h3>
+
<div class="twoColumns">
<h5> width = 474 px<br>
+
height = 300 px (suggested)
+
</h5>
+
</div>
+
  
 +
<h3> Why ? pop up </h3>
  
<div class="fourColumns background_gray">
+
<p> The <span class="pop_why" onclick="which_why='why_schools'">?</span>  button is used to provide a more detailed explanation <br> <br>
 +
The answer code must be written in: <a href="https://2015.igem.org/Why_demo">https://2015.igem.org/Why_demo</a><br>
 +
Make sure you follow the naming convention <b> " why_NAME "</b> <br>  NAME being the title you chose for your ? and its corresponding answer. <br><br>
 +
Also make sure that "which_why"  and div id are the same so the button calls the correct answer. </p>
  
<h3> Third width </h3>
+
<br>
<h5> width = 315 px<br>
+
<div style ="padding: 15px;width: 400px;border: 3px solid #4e606e;border-radius: 3px;">
height = 215 px (suggested)
+
<div class="pop_close">×</div>  
</h5>
+
<h3> Title </h3>
 +
 
 +
<p> Text </p>
 +
</div>
 
</div>
 
</div>
  
  
 +
<div class="twoColumns">
 +
<br><br>
 +
<pre>
 +
&#60;span class="pop_why" onclick="which_why='<b class="red_text">why_NAME</b>'"&#62; 
 +
 +
&#60;/span&#62;
 +
</pre>
  
<div class="fourColumns background_gray">
+
<br><br><br><br><br><br>
 +
<pre>
 +
&#60;div id="<b class="red_text">why_NAME</b>"&#62;
 +
 
 +
&#60;h3&#62;Title &#60;/h3&#62;
 +
&#60;p>Text&#60;/p&#62;
 +
 
 +
&#60;/div&#62;
 +
</pre>
  
<h3> Quarter width </h3>
 
<h5> width = 236 px<br>
 
height = 156 px (suggested)
 
</h5>
 
 
</div>
 
</div>
 +
 +
  
  
 
<div class="clear"></div>
 
<div class="clear"></div>
  
<div class="oneColumn">
 
<h2> Styling layout </h2>
 
</div>
 
  
 +
<div class="twoColumns">
  
  
<div class="threeColumns background_gray">
+
<h3> Expandable content </h3>
<h5> Gray background </h5>
+
  
</div>
 
  
  
<div class="threeColumns full_border">
+
<div class="click_open"> <h5>Title</h5> <div class="click_icon">▼</div>
<h5> Solid Border</h5>
+
 
 +
<div class="click_content">
 +
<p> Example content </p>
  
 +
</div>
 
</div>
 
</div>
  
 +
</div>
 +
 +
 +
<div class="twoColumns">
  
<div class="threeColumns dot_border">
 
<h5> Dotted Border</h5>
 
  
 
</div>
 
</div>
Line 296: Line 462:
  
  
<div class="threeColumns">
 
<pre>
 
&#60;div class="threeColumns
 
<b>background_gray</b>"&#62;
 
  
</pre>
+
<div class="clear_id"  id="layout"></div>
 +
 
 +
 
 +
 
 +
<div class="oneColumn">
 +
<h3> Layout classes</h3>
 
</div>
 
</div>
  
  
<div class="threeColumns">
 
<pre>
 
&#60;div class="threeColumns
 
<b>full_border</b>"&#62;
 
  
</pre>
+
<div class="oneColumn dot_border">
 +
<h3> Full width Column</h3>
 +
<p>Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae pro cu, ne per admodum recteque intellegat. Mea id inani nusquam tractatos, ea vei.</p>
 
</div>
 
</div>
  
 +
<div class="clear"> </div>
  
  
<div class="threeColumns">
+
<div class="twoColumns dot_border">
<pre>  
+
<h3> Half width Columns</h3>
&#60;div class="threeColumns
+
<p>Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae.</p>
<b>dot_border</b>"&#62;
+
</div>
  
</pre>
+
<div class="clear"> </div>
 +
 
 +
<div class="threeColumns dot_border">
 +
<h3> Third width Columns</h3>
 +
<p>Lorem ipsum dolor sit amet, ubique vivendo his</p>
 
</div>
 
</div>
  
Line 326: Line 496:
  
  
 +
<div class="clear"> </div>
  
<div class="clear"></div>
 
  
<div class="twoColumns alert_box">
+
<div class="fourColumns dot_border">
<h4> Alert </h4>
+
<h3> Quarter width Columns</h3>
<p> When creating an alert !</p>
+
<p>Lorem ipsum dolor sit amet, ubique</p>
 
</div>
 
</div>
  
  
  
<div class="twoColumns highlight">
+
<div class="clear"> </div>
<h5> Highlight </h5>
+
 
<p> Hover to see ! <br> This can be used to make the whole div highlight and indicate that it is clickable</p>
+
 
 +
 
 +
<div class="fourColumns">
 +
<h5> Full width </h5>
 +
<pre>
 +
&#60;div class="<b class="red_text">oneColumn</b>"&#62;
 +
&#60;/div&#62;
 +
</pre>
 
</div>
 
</div>
  
  
 +
<div class="fourColumns">
 +
<h5> Half width </h5>
 +
<pre>
 +
&#60;div class="<b class="red_text">twoColumns</b>"&#62;
 +
&#60;/div&#62;
 +
</pre>
 +
</div>
  
<div class="clear"> </div>
+
 
 +
<div class="fourColumns">
 +
<h5> Third width </h5>
 +
<pre>
 +
&#60;div class="<b class="red_text">threeColumns</b>"&#62;
 +
&#60;/div&#62;
 +
</pre>
 +
</div>
 +
 
 +
 
 +
<div class="fourColumns">
 +
<h5> Quarter width </h5>
 +
<pre>
 +
&#60;div class="<b class="red_text">fourColumns</b>"&#62;
 +
&#60;/div&#62;
 +
</pre>
 +
</div>
  
  
  
 +
<div class="clear_id"  id="style_layout"></div>
  
 
<div class="oneColumn">
 
<div class="oneColumn">
<h2> Classes </h2>
+
<h3> Styling layout classes</h3>
 
</div>
 
</div>
  
<div class="twoColumns">
 
  
<h2 id="tables"> Tables</h2>
 
<p> Tables created within in a page already have styling and will display:</p>
 
<table>
 
<tr>
 
<th> Header 1  </th> <th> Header 2 </th>
 
</tr>
 
  
<tr>
 
<td> Content A 1 </td> <td>Content B 1 </td>
 
</tr>
 
  
<tr>  
+
<div class="fourColumns">
<td> Content A 2 </td> <td>Content B 2 </td>  
+
<h5> Gray background </h5>
</tr>
+
<p> This can be used to highlight some text</p>
</table>
+
 
</div>
 
</div>
  
  
 +
<div class="fourColumns background_gray">
 +
<p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.</p>
 +
</div>
  
  
 
<div class="twoColumns">
 
<div class="twoColumns">
<pre>
+
<pre>  
&#60;table&#62;  
+
&#60;div class="threeColumns <b class="red_text">background_gray</b>"&#62;  
  
&#60;tr&#62;
+
</pre>
&#60;th&#62;  Header 1  &#60;/th&#62;  &#60;th&#62;  Header 2 &#60;/th&#62;
+
</div>
&#60;/tr&#62;
+
  
&#60;tr&#62; 
+
<div class="clear"></div>
&#60;td&#62;  Content A 1 &#60;/td&#62;  &#60;td&#62; Content B 1 &#60;/td&#62; 
+
&#60;/tr&#62;
+
  
&#60;tr&#62;
 
&#60;td&#62;  Content A 2 &#60;/td&#62;  &#60;td&#62; Content B 2 &#60;/td&#62;
 
&#60;/tr&#62;
 
  
&#60;/table&#62;
 
</pre>
 
  
</div>
 
  
  
 +
<div class="fourColumns">
 +
<h5> Solid Border</h5>
 +
</div>
  
 +
<div class="fourColumns full_border">
 +
<p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.</p>
 +
</div>
  
 
<div class="twoColumns">
 
<div class="twoColumns">
<h2>Button </h2>
+
<pre>  
<p> When naming a button, please remember to use the style convention and write it in CAPS. </p>
+
&#60;div class="threeColumns <b class="red_text">full_border</b>"&#62;
<a href=""><div class="button">
+
BUTTON NAME
+
</div></a>
+
</div>
+
  
<div class="twoColumns">
 
<br><br>
 
<pre>&#60;a href=" URL "&#62;
 
    &#60;div class="button"&#62;
 
        BUTTON NAME
 
    &#60;/div&#62;
 
&#60;/a&#62;
 
 
</pre>
 
</pre>
 
 
</div>
 
</div>
 +
 +
  
  
 
<div class="clear"></div>
 
<div class="clear"></div>
  
 +
<div class="fourColumns">
 +
<h5> Dotted Border</h5>
 +
</div>
 +
 +
<div class="fourColumns dot_border">
 +
<p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.</p>
 +
</div>
  
 
<div class="twoColumns">
 
<div class="twoColumns">
 +
<pre>
 +
&#60;div class="threeColumns <b class="red_text">dot_border</b>"&#62;
  
<h2> Why ? pop up </h2>
+
</pre>
 +
</div>
  
<p> The <span class="pop_why" onclick="which_why='why_schools'">?</span>  button is used to provide a more detailed explanation <br> <br>
 
The answer code must be written in: <a href="https://2015.igem.org/Why_demo">https://2015.igem.org/Why_demo</a><br>
 
Make sure you follow the naming convention <b> " why_NAME "</b> <br>  NAME being the title you chose for your ? and its corresponding answer. <br><br>
 
Also make sure that "which_why"  and div id are the same so the button calls the correct answer. </p>
 
  
 +
<div class="clear"> </div>
  
  
<br>
+
<div class="fourColumns">
<div style ="padding: 15px;width: 400px;border: 3px solid #4e606e;border-radius: 3px;">
+
<h5> Alert box </h5>
<div class="pop_close">×</div>  
+
</div>
<h3> Title </h3>
+
  
<p> Text </p>
+
<div class="fourColumns alert_box">
</div>
+
<p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.</p>
 
</div>
 
</div>
  
  
 
<div class="twoColumns">
 
<div class="twoColumns">
<br><br>
 
 
<pre>
 
<pre>
&#60;span class="pop_why" onclick="which_why='why_NAME'"&#62;
+
&#60;div class="twoColumns <b class="red_text">alert_box</b>"&#62;
+
 
&#60;/span&#62;
+
 
</pre>
 
</pre>
 +
</div>
  
<br><br><br><br><br><br>
 
<pre>
 
&#60;div id="why_NAME"&#62; &#60;div class="pop_close"&#62;X&#60;/div&#62;
 
  
&#60;h3&#62;Title &#60;/h3&#62;
+
<div class="clear"> </div>
&#60;p>Text&#60;/p&#62;
+
  
&#60;/div&#62;
+
<div class="fourColumns">
</pre>
+
<h5> Highlight </h5>
 +
<p> Hover to see ! <br>  This can be used to make the whole div highlight and indicate that it is clickable</p>
 +
</div>
  
 +
<div class="fourColumns highlight">
 +
<p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. <a href="">Quo lorem periculis definitionem an</a>, quo no labores definitionem.</p>
 
</div>
 
</div>
  
  
 +
<div class="twoColumns">
 +
<pre>
 +
&#60;div class="twoColumns <b class="red_text"> highlight</b>"
 +
onClick=" parent.location= ' <b class="red_text">URL</b> '"&#62; 
 +
</pre>
 +
</div>
 +
 +
 +
 +
<div class="clear"> </div>
 +
 +
 +
 +
 +
 +
 +
 +
 +
<div class="clear_id"  id="example_layout"></div>
  
 
<div class="clear"></div>
 
<div class="clear"></div>
  
 
<div class="oneColumn">
 
<div class="oneColumn">
<h2> Layout examples</h2>
+
<h3> Examples</h3>
 
</div>
 
</div>
  
Line 525: Line 729:
  
 
<div class="threeColumns photo_container">
 
<div class="threeColumns photo_container">
 +
<a href="">
 
<img src="https://static.igem.org/mediawiki/2015/9/95/HQposter_judging.jpg" width="315px">
 
<img src="https://static.igem.org/mediawiki/2015/9/95/HQposter_judging.jpg" width="315px">
 +
</a>
  
 +
<p> Image 1.1 - text </p>
 
</div>
 
</div>
  
Line 545: Line 752:
  
  
 +
 +
 +
 +
 +
 +
 +
<div class="clear_id"  id="Menu"></div>
 +
 +
<div class="oneColumn">
 +
 +
<h2>Menu </h2>
 +
 +
<p> In this example the menu will be created for pages that have "Elements_of_Art" in their name space.</p>
 +
 +
 +
<h3> Placing your code </h3>
 +
<p> All the menus live in : <a href="https://2015.igem.org/Menu/DemoSafety">https://2015.igem.org/Menu/DemoSafety </a> 
 +
Please be careful to not delete any of the other menus, look for the section where it says "PLACE YOUR MENU HERE" to make sure everything is properly wrapped. </p>
 +
 +
 +
<h3> Activating your hub menu </h3>
 +
<p> To enable the code to know that your menu exists, you will need to add to the array that holds the list of hub menus</p>
 +
 +
<p> Got to: <a href="" > https://2016.igem.org/HQ_Hub_List</a> and add the following line </p>
 +
 +
<pre>
 +
 +
hub_list[#] ="Elements_of_Art";                                            (# stands for the next number in the list)
 +
 +
</pre>
 +
 +
 +
 +
<h3> Naming </h3>
 +
 +
<p>All pages that have "Elements_of_Art" under their namespace will have the same menu. </p>
 +
 +
 +
<ul>
 +
<b>The name has to be  exactly the same in three places:</b>
 +
<br>
 +
 +
<li> Array with the list of hub menus <br>
 +
<b>hub_list[4] ="<b class="red_text">Elements_of_Art</b>"; </b> </li>
 +
 +
<li> Menu code page
 +
<br> <b> div id="<b class="red_text">Elements_of_Art</b>" </b>
 +
 +
<li> URLs
 +
<br><b>https://2016.igem.org/<b class="red_text">Elements_of_Art </b></b></li>
 +
</ul>
 +
 +
 +
 +
 +
 +
 +
</div>
 +
 +
 +
 +
 +
<div class="fourColumns">
 +
 +
 +
<h3> Addind Section Titles</h3>
 +
The Section Title needs to be placed in the h4 tag.
 +
 +
 +
<h3> Adding a Page </h3>
 +
The first page under it is "Cold Colors".
 +
 +
 +
 +
<h3> Listing Page Sections </h3>
 +
 +
 +
 +
</div>
 +
 +
 +
 +
 +
 +
 +
<div class="twoColumns">
 +
 +
<pre>
 +
 +
&#60;div id="<b class="red_text">Elements_of_Art</b>"&#62; 
 +
 +
&#60;div> &#60;a class="switch_Menus"&#62;◀&#60;/a&#62; &#60;/div&#62; 
 +
 +
&#60;a href="<b class="red_text">URL</b>"&#62;
 +
&#60;div class="sideMenuTitle"&#62;<b class="red_text">Elements of Art</b>&#60;/div&#62;
 +
&#60;/a&#62;
 +
 +
&#60;div&#62;&#60;a class="expand_subMenus"&#62; + &#60;/a&#62;&#60;/div&#62;
 +
 +
&#60;div class="clear"&#62; &#60;/div&#62;
 +
 +
</pre>
 +
<br>
 +
 +
<pre>
 +
 +
&#60;h4&#62; <b class="red_text">Color</b>&#60;/h4&#62;
 +
 +
&#60;ul&#62;
 +
 +
&#60;a href="<b class="red_text">URL</b>"&#62;&#60;li&#62;<b class="red_text">Cold Colors</b>&#60;/li&#62;&#60;/a&#62;
 +
 +
</pre>
 +
 +
<br>
 +
 +
<pre>
 +
 +
&#60;a href="<b style="color:red">URL</b>"&#62;&#60;li&#62;<b style="color:red">Warm Colors</b>&#60;/a&#62;
 +
&#60;a class="subMenu_toggle"&#62;▼&#60;/a&#62;
 +
 +
&#60;div class="subMenu"&#62;
 +
 +
&#60;ul&#62;
 +
&#60;a href="<b style="color:red">URL</b>"&#62;&#60;li&#62;<b style="color:red">Red</b>&#60;/li&#62;&#60;/a&#62;
 +
&#60;a href="<b style="color:red">URL</b>"&#62;&#60;li&#62;<b style="color:red">Orange</b>&#60;/li&#62;&#60;/a&#62;
 +
&#60;a href="<b style="color:red">URL</b>"&#62;&#60;li&#62;<b style="color:red">Yellow</b>&#60;/li&#62;&#60;/a&#62;
 +
&#60;/ul&#62;
 +
 +
&#60;/div&#62;
 +
 +
&#60;/li&#62;
 +
 +
&#60;/ul&#62;
 +
     
 +
</pre>
 +
 +
</div>
 +
 +
 +
 +
<div class="fourColumns photo_container">
 +
<img src="https://static.igem.org/mediawiki/2016/3/3d/2016_menu_documentation_example.png" width="236px">
 +
 +
</div>
 +
 +
 +
 +
 +
<div class="clear"></div>
 +
 +
 +
 +
<div class="oneColumn">
 +
 +
<pre>
 +
&#60;div id="<b class="red_text">Elements_of_Art</b>"&#62; 
 +
 +
&#60;div>&#60;a class="switch_Menus"&#62; ◀ &#60;/a&#62; &#60;/div&#62; 
 +
 +
&#60;a href="<b class="red_text"> https://2016.igem.org/Elements_of_Art </b>"&#62;
 +
  &#60;div class="sideMenuTitle"&#62;<b class="red_text">Elements of Art</b>
 +
  &#60;/div&#62;
 +
&#60;/a&#62;
 +
 +
&#60;div&#62;&#60;a class="expand_subMenus"&#62; + &#60;/a&#62; &#60;/div&#62;
 +
 +
&#60;div class="clear"&#62;&#60;/div&#62;
 +
 +
&#60;h4&#62;<b class="red_text">Color</b>&#60;/h4&#62;
 +
 +
  &#60;ul&#62;
 +
 +
    &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Cold_Colors </b>"&#62;&#60;li&#62;<b class="red_text">Warm Colors</b>&#60;/a&#62;
 +
    &#60;a class="subMenu_toggle"&#62;▼&#60;/a&#62;
 +
      &#60;div class="subMenu"&#62;
 +
      &#60;ul&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Blue</b>"&#62;&#60;li&#62;<b class="red_text">Blue</b>&#60;/li&#62;&#60;/a&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Purple</b>"&#62;&#60;li&#62;<b class="red_text">Purple</b>&#60;/li&#62;&#60;/a&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Green</b>"&#62;&#60;li&#62;<b class="red_text">Green</b>&#60;/li&#62;&#60;/a&#62;
 +
      &#60;/ul&#62;
 +
      &#60;/div&#62;
 +
    &#60;/li&#62;
 +
 +
 +
    &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Warm_Colors </b>"&#62;&#60;li&#62;<b class="red_text">Warm Colors</b>&#60;/a&#62;
 +
    &#60;a class="subMenu_toggle"&#62;▼&#60;/a&#62;
 +
      &#60;div class="subMenu"&#62;
 +
      &#60;ul&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Red</b>"&#62;&#60;li&#62;<b class="red_text">Red</b>&#60;/li&#62;&#60;/a&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Orange</b>"&#62;&#60;li&#62;<b class="red_text">Orange</b>&#60;/li&#62;&#60;/a&#62;
 +
        &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Yellow</b>"&#62;&#60;li&#62;<b class="red_text">Yellow</b>&#60;/li&#62;&#60;/a&#62;
 +
      &#60;/ul&#62;
 +
      &#60;/div&#62;
 +
    &#60;/li&#62;
 +
 +
  &#60;/ul&#62;
 +
 +
 +
&#60;h4&#62;<b class="red_text">Line</b>&#60;/h4&#62;
 +
 +
  &#60;ul&#62;
 +
 +
    &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Line/Direction</b>"&#62;&#60;li&#62;<b class="red_text">Direction</b>&#60;/li&#62;&#60;/a&#62;
 +
 +
    &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Line/Width</b>"&#62;&#60;li&#62;<b class="red_text">Width</b>&#60;/li&#62;&#60;/a&#62;
 +
 +
    &#60;a href="<b class="red_text">https://2016.igem.org/Elements_of_Art/Line/Length</b>"&#62;&#60;li&#62;<b class="red_text">Length</b>&#60;/li&#62;&#60;/a&#62;
 +
 +
  &#60;/ul&#62;
 +
 +
 +
&#60;/div&#62;
 +
 +
</pre>
 +
</div>
  
  

Latest revision as of 17:45, 30 November 2015

×

Loading ...

Styling

Color palette

Lime green
#e8edaa

Orange
#f27631

Turquoise
#5ba88a

Red
#e9232f

Navy
#4e606e

White
#ffffff

Light gray
#f2f2f2

Medium gray
#d3d3d3

Charcoal
#333333

Black
#000000

Text

To write text


<p> Text  </p>

Links

When creating links

Example


<a href="link"> LINK </a>

Lists

Use the following example to create a simple list.

Painting materials
  • Brushes
  • Acrylic paint
  • Watercolors
<b>Painting Materials</b>

<ul> 

 <li> Brushes  </li> 
 <li> Acrylic paint </li>  
 <li> Watercolors </li> 

</ul> 

To create a numbered list, use the following example

Things to buy:
  1. Milk
  2. Eggs
  3. Flour
<b>Things to buy: </b>

<ol> 

 <li> Milk </li> 
 <li> Eggs </li> 
 <li> Flour </li> 

</ol> 

Nested Lists

Here is an example of a nested list.

  • Cold Colors
  • Warm Colors
    1. Red
    2. Orange
    3. Yellow
   <ul>

      <li> Cold Colors </li> 
      <li> Warm Colors 
         <ol>
            <li> Red  </li>
            <li> Orange </li>
            <li> Yellow </li>
         </ol>
      </li>

   </ul>

H titles

   <h2> Title </h2>

H1 Title

Used only on the first title of the page.

H4 Title

Used for red highlight text

H2 Title

Used for the main item titles of the page.

H5 Title

Highlighting text, similar to bold.

H3 Title

Used for subtitles

H6 Title

Not used

Tables

Tables created within in a page already have styling and will display:

Header 1 Header 2
Content A 1 Content B 1
Content A 2 Content B 2
<table> 

<tr> 
<th>  Header 1  </th>  <th>  Header 2 </th> 
</tr> 

<tr>  
<td>  Content A 1 </td>  <td> Content B 1 </td>  
</tr> 

<tr> 
<td>  Content A 2 </td>  <td> Content B 2 </td> 
</tr> 

</table> 

Images

You will need to call the "photo_container" class. Images width for the different layout classes are specified bellow.

 
<div class="twoColumns photo_container">

<img src= "URL" >

</div>

Full width

width = 950 px
height = 300 px (suggested)

Half width

width = 474 px
height = 300 px (suggested)

Third width

width = 315 px
height = 215 px (suggested)

Quarter width

width = 236 px
height = 156 px (suggested)

Classes

Button

When naming a button, please remember to use the style convention and write it in CAPS.

REGISTER NOW!


<a href="URL">
    <div class="button"> 	
        REGISTER NOW!
    </div>
</a>

Why ? pop up

The ? button is used to provide a more detailed explanation

The answer code must be written in: https://2015.igem.org/Why_demo
Make sure you follow the naming convention " why_NAME "
NAME being the title you chose for your ? and its corresponding answer.

Also make sure that "which_why" and div id are the same so the button calls the correct answer.


×

Title

Text



<span class="pop_why" onclick="which_why='why_NAME'">  
?  
</span> 






<div id="why_NAME"> 

<h3>Title </h3> 
<p>Text</p> 

</div> 

Expandable content

Title

Example content

Layout classes

Full width Column

Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae pro cu, ne per admodum recteque intellegat. Mea id inani nusquam tractatos, ea vei.

Half width Columns

Lorem ipsum dolor sit amet, ubique vivendo his at, eruditi officiis molestiae.

Third width Columns

Lorem ipsum dolor sit amet, ubique vivendo his

Quarter width Columns

Lorem ipsum dolor sit amet, ubique

Full width
<div class="oneColumn"> 
</div> 
Half width
<div class="twoColumns"> 
</div> 
Third width
<div class="threeColumns"> 
</div> 
Quarter width
<div class="fourColumns"> 
</div> 

Styling layout classes

Gray background

This can be used to highlight some text

Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.

 
<div class="threeColumns background_gray"> 

Solid Border

Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.

 
<div class="threeColumns full_border"> 

Dotted Border

Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.

 
<div class="threeColumns dot_border"> 

Alert box

Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.

<div class="twoColumns alert_box">

Highlight

Hover to see !
This can be used to make the whole div highlight and indicate that it is clickable

Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.

<div class="twoColumns  highlight"
onClick=" parent.location= ' URL '">  

Examples

Title

Per ut minim iriure aliquid, eam posse dicunt impetus id. Deleniti reprimique ut vel, consul ignota te eos, his facete equidem pertinacia et. Laoreet detracto scribentur has an, ad vis elitr vituperata. Nec at copiosae consectetuer, regione consulatu ius ne, nec laboramus consectetuer te. Ex homero labores adversarium pri, sanctus assentior vis ea. Postea convenire vituperata nam ne, ius vocibus phaedrum consequat in, scaevola honestatis nec id. Has te verterem constituam, sed omnes fuisset an.
Sea blandit sadipscing reprehendunt et.

Deadlines

Header 1 Header 2
Content A 1 Content B 1
Content A 2 Content B 2

Register

Per ut minim iriure aliquid, eam posse dicunt impetus id.



REGISTER

Image 1.1 - text

Title

Per ut minim iriure aliquid, ? eam posse dicunt impetus id. Deleniti reprimique ut vel, consul ignota te eos, his facete equidem pertinacia et. Laoreet detracto scribentur has an, ad vis elitr vituperata. Nec at copiosae consectetuer, regione consulatu ius ne, nec laboramus consectetuer te.

Title

Per ut minim iriure aliquid, eam posse dicunt impetus id. Deleniti reprimique ut vel, consul ignota te eos, his facete equidem pertinacia et. Laoreet detracto scribentur has an, ad vis elitr vituperata. Nec at copiosae consectetuer, regione consulatu ius ne, nec laboramus consectetuer te.

Menu

In this example the menu will be created for pages that have "Elements_of_Art" in their name space.

Placing your code

All the menus live in : https://2015.igem.org/Menu/DemoSafety Please be careful to not delete any of the other menus, look for the section where it says "PLACE YOUR MENU HERE" to make sure everything is properly wrapped.

Activating your hub menu

To enable the code to know that your menu exists, you will need to add to the array that holds the list of hub menus

Got to: https://2016.igem.org/HQ_Hub_List and add the following line


hub_list[#] ="Elements_of_Art";                                            (# stands for the next number in the list) 

Naming

All pages that have "Elements_of_Art" under their namespace will have the same menu.

    The name has to be exactly the same in three places:
  • Array with the list of hub menus
    hub_list[4] ="Elements_of_Art";
  • Menu code page
    div id="Elements_of_Art"
  • URLs
    https://2016.igem.org/Elements_of_Art

Addind Section Titles

The Section Title needs to be placed in the h4 tag.

Adding a Page

The first page under it is "Cold Colors".

Listing Page Sections


<div id="Elements_of_Art">  

<div> <a class="switch_Menus">◀</a> </div>  

<a href="URL"> 
<div class="sideMenuTitle">Elements of Art</div> 
</a> 

<div><a class="expand_subMenus"> + </a></div> 

<div class="clear"> </div> 



<h4> Color</h4> 

<ul> 

<a href="URL"><li>Cold Colors</li></a>



<a href="URL"><li>Warm Colors</a>
<a class="subMenu_toggle">▼</a> 			
		
<div class="subMenu"> 

<ul> 			
<a href="URL"><li>Red</li></a> 
<a href="URL"><li>Orange</li></a> 
<a href="URL"><li>Yellow</li></a> 
</ul> 

</div> 

</li> 

</ul>
      
<div id="Elements_of_Art">  

 <div><a class="switch_Menus"> ◀ </a> </div>  

 <a href=" https://2016.igem.org/Elements_of_Art "> 
   <div class="sideMenuTitle">Elements of Art
   </div> 
 </a> 

 <div><a class="expand_subMenus"> + </a> </div> 

 <div class="clear"></div> 

 <h4>Color</h4> 

  <ul> 

    <a href="https://2016.igem.org/Elements_of_Art/Color/Cold_Colors "><li>Warm Colors</a> 
     <a class="subMenu_toggle">▼</a> 			
      <div class="subMenu"> 
       <ul> 			
        <a href="https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Blue"><li>Blue</li></a> 
        <a href="https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Purple"><li>Purple</li></a> 
        <a href="https://2016.igem.org/Elements_of_Art/Color/Cold_Colors#Green"><li>Green</li></a> 
       </ul> 
      </div> 
    </li> 


    <a href="https://2016.igem.org/Elements_of_Art/Color/Warm_Colors "><li>Warm Colors</a> 
     <a class="subMenu_toggle">▼</a> 			
      <div class="subMenu"> 
       <ul> 			
        <a href="https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Red"><li>Red</li></a> 
        <a href="https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Orange"><li>Orange</li></a> 
        <a href="https://2016.igem.org/Elements_of_Art/Color/Warm_Colors#Yellow"><li>Yellow</li></a> 
       </ul> 
      </div> 
    </li> 

  </ul>


 <h4>Line</h4> 

  <ul> 

    <a href="https://2016.igem.org/Elements_of_Art/Line/Direction"><li>Direction</li></a>

    <a href="https://2016.igem.org/Elements_of_Art/Line/Width"><li>Width</li></a>

    <a href="https://2016.igem.org/Elements_of_Art/Line/Length"><li>Length</li></a>

  </ul> 


</div>