Difference between revisions of "Code Documentation2"
(24 intermediate revisions by the same user not shown) | |||
Line 308: | Line 308: | ||
<div class="twoColumns <b class="red_text">photo_container</b>"> | <div class="twoColumns <b class="red_text">photo_container</b>"> | ||
− | <img src= " URL " > | + | <img src= "<b class="red_text">URL</b>" > |
</div> | </div> | ||
Line 358: | Line 358: | ||
− | + | ||
<div class="clear_id" id="Button"></div> | <div class="clear_id" id="Button"></div> | ||
+ | |||
+ | <div class="oneColumn"> | ||
+ | <h2> Classes </h2> | ||
+ | </div> | ||
Line 369: | Line 373: | ||
<p> When naming a button, please remember to use the style convention and write it in CAPS. </p> | <p> When naming a button, please remember to use the style convention and write it in CAPS. </p> | ||
<a href=""><div class="button"> | <a href=""><div class="button"> | ||
− | + | REGISTER NOW! | |
</div></a> | </div></a> | ||
</div> | </div> | ||
Line 375: | Line 379: | ||
<div class="twoColumns"> | <div class="twoColumns"> | ||
<br><br> | <br><br> | ||
− | <pre><a href=" URL "> | + | <pre><a href="<b class="red_text">URL</b>"> |
<div class="button"> | <div class="button"> | ||
− | + | <b class="red_text">REGISTER NOW!</b> | |
</div> | </div> | ||
</a> | </a> | ||
Line 410: | Line 414: | ||
<br><br> | <br><br> | ||
<pre> | <pre> | ||
− | <span class="pop_why" onclick="which_why='why_NAME'"> | + | <span class="pop_why" onclick="which_why='<b class="red_text">why_NAME</b>'"> |
? | ? | ||
</span> | </span> | ||
Line 417: | Line 421: | ||
<br><br><br><br><br><br> | <br><br><br><br><br><br> | ||
<pre> | <pre> | ||
− | <div id=" | + | <div id="<b class="red_text">why_NAME</b>"> |
<h3>Title </h3> | <h3>Title </h3> | ||
Line 430: | Line 434: | ||
+ | <div class="clear"></div> | ||
+ | <div class="twoColumns"> | ||
+ | <h3> Expandable content </h3> | ||
+ | <div class="click_open"> <h5>Title</h5> <div class="click_icon">▼</div> | ||
+ | |||
+ | <div class="click_content"> | ||
+ | <p> Example content </p> | ||
+ | |||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="twoColumns"> | ||
+ | |||
+ | |||
+ | </div> | ||
Line 491: | Line 513: | ||
<h5> Full width </h5> | <h5> Full width </h5> | ||
<pre> | <pre> | ||
− | <div class="oneColumn"> | + | <div class="<b class="red_text">oneColumn</b>"> |
</div> | </div> | ||
</pre> | </pre> | ||
Line 500: | Line 522: | ||
<h5> Half width </h5> | <h5> Half width </h5> | ||
<pre> | <pre> | ||
− | <div class="twoColumns"> | + | <div class="<b class="red_text">twoColumns</b>"> |
</div> | </div> | ||
</pre> | </pre> | ||
Line 509: | Line 531: | ||
<h5> Third width </h5> | <h5> Third width </h5> | ||
<pre> | <pre> | ||
− | <div class="threeColumns"> | + | <div class="<b class="red_text">threeColumns</b>"> |
</div> | </div> | ||
</pre> | </pre> | ||
Line 518: | Line 540: | ||
<h5> Quarter width </h5> | <h5> Quarter width </h5> | ||
<pre> | <pre> | ||
− | <div class="fourColumns"> | + | <div class="<b class="red_text">fourColumns</b>"> |
</div> | </div> | ||
</pre> | </pre> | ||
Line 536: | Line 558: | ||
<div class="fourColumns"> | <div class="fourColumns"> | ||
<h5> Gray background </h5> | <h5> Gray background </h5> | ||
− | |||
<p> This can be used to highlight some text</p> | <p> This can be used to highlight some text</p> | ||
</div> | </div> | ||
Line 542: | Line 563: | ||
<div class="fourColumns background_gray"> | <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> | ||
Line 550: | Line 570: | ||
<pre> | <pre> | ||
<div class="threeColumns <b class="red_text">background_gray</b>"> | <div class="threeColumns <b class="red_text">background_gray</b>"> | ||
+ | |||
</pre> | </pre> | ||
</div> | </div> | ||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | |||
Line 560: | Line 585: | ||
<div class="fourColumns full_border"> | <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> | ||
− | |||
− | |||
<div class="twoColumns"> | <div class="twoColumns"> | ||
<pre> | <pre> | ||
<div class="threeColumns <b class="red_text">full_border</b>"> | <div class="threeColumns <b class="red_text">full_border</b>"> | ||
+ | |||
</pre> | </pre> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | <div class="clear"></div> | ||
<div class="fourColumns"> | <div class="fourColumns"> | ||
Line 578: | Line 605: | ||
<div class="fourColumns dot_border"> | <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> | ||
− | |||
− | |||
<div class="twoColumns"> | <div class="twoColumns"> | ||
<pre> | <pre> | ||
<div class="threeColumns <b class="red_text">dot_border</b>"> | <div class="threeColumns <b class="red_text">dot_border</b>"> | ||
+ | |||
</pre> | </pre> | ||
</div> | </div> | ||
Line 594: | Line 619: | ||
− | <div class=" | + | <div class="fourColumns"> |
− | < | + | <h5> Alert box </h5> |
− | <p> | + | </div> |
+ | |||
+ | <div class="fourColumns alert_box"> | ||
+ | <p> Lorem ipsum dolor sit amet, duo labitur nostrum consulatu ex. Quo lorem periculis definitionem an, quo no labores definitionem.</p> | ||
</div> | </div> | ||
Line 603: | Line 631: | ||
<pre> | <pre> | ||
<div class="twoColumns <b class="red_text">alert_box</b>"> | <div class="twoColumns <b class="red_text">alert_box</b>"> | ||
+ | |||
</pre> | </pre> | ||
</div> | </div> | ||
+ | |||
<div class="clear"> </div> | <div class="clear"> </div> | ||
− | + | <div class="fourColumns"> | |
− | <div class=" | + | |
<h5> Highlight </h5> | <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> | <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> | ||
Line 621: | Line 654: | ||
</pre> | </pre> | ||
</div> | </div> | ||
+ | |||
+ | |||
<div class="clear"> </div> | <div class="clear"> </div> | ||
Line 697: | Line 732: | ||
<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> | </a> | ||
+ | |||
+ | <p> Image 1.1 - text </p> | ||
</div> | </div> | ||
Line 727: | Line 764: | ||
<h2>Menu </h2> | <h2>Menu </h2> | ||
− | <p> All the menus live in : <a href=""> </a> | + | <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> | ||
Line 734: | Line 815: | ||
<div class="fourColumns"> | <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> | ||
Latest revision as of 17:45, 30 November 2015
Loading ...
Styling
Color palette
Lime green |
Orange |
Turquoise |
Red |
Navy |
White |
Light gray |
Medium gray |
Charcoal |
Black |
Text
To write text<p> Text </p>
<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:- Milk
- Eggs
- 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
- Red
- Orange
- 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
<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 |
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>