Line 3: | Line 3: | ||
<head> | <head> | ||
<script> | <script> | ||
+ | //Hi Welcome to the NavPage | ||
+ | // In order to add your link, please See the comments in the function Called Main. | ||
+ | |||
+ | |||
$(document).ready(() => { | $(document).ready(() => { | ||
+ | function Main(){ | ||
+ | |||
+ | //Generate an array for each letter; | ||
+ | var charCode = 65; | ||
+ | for(i = 0; i<26; i++){ | ||
+ | entryBlocks[i]= new letterEntry(String.fromCharCode(charCode+i),"",""); | ||
+ | } | ||
+ | //-------------------------------------------------------------------------- | ||
+ | //ADD LINKS TO YOUR PAGES HERE USING THIS FORMAT | ||
+ | |||
+ | // addLink("Name of text that will act as link/name of page,URL to your page"); | ||
+ | |||
+ | // It's important to not include a space between the comma, | ||
+ | // It doesn't matter which order you place the link, just as long as it is before the arrayToList(); call | ||
+ | //--------------------------------------------------------------------- | ||
+ | addLink("Home Page,https://2018.igem.org/Team:Purdue"); | ||
+ | addLink("Project Design,https://2018.igem.org/Team:Purdue/Design"); | ||
+ | addLink("Project Description,https://2018.igem.org/Team:Purdue/Description"); | ||
+ | addLink("Integrated Human Practices,https://2018.igem.org/Team:Purdue/Human_Practices"); | ||
+ | |||
+ | arrayToList(); | ||
+ | //now a tags are made, time to place them in an unordered list | ||
+ | atagsInList(); | ||
+ | } | ||
+ | |||
+ | |||
function letterEntry(letter, Header,Url_name, a){ | function letterEntry(letter, Header,Url_name, a){ | ||
this.letter=letter; | this.letter=letter; | ||
Line 24: | Line 54: | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
function addLink(Name_Url){ | function addLink(Name_Url){ |
Revision as of 18:15, 13 June 2018