Difference between revisions of "Team:Cambridge-JIC/Wiki Design"
Simonhkswan (Talk | contribs) |
Simonhkswan (Talk | contribs) |
||
Line 27: | Line 27: | ||
<h3> Using CSS and JS </h2> | <h3> Using CSS and JS </h2> | ||
<p>As iGEM teams are unable to upload and refer to CSS and Javascript files, styling your webpages takes a different method to the standard way. Instead, we have uploaded pages that end in _CSS and _JS that are linked in the html of our other pages. To use a page as a file, simply put the code in HTML and refer to the URL with:</p> | <p>As iGEM teams are unable to upload and refer to CSS and Javascript files, styling your webpages takes a different method to the standard way. Instead, we have uploaded pages that end in _CSS and _JS that are linked in the html of our other pages. To use a page as a file, simply put the code in HTML and refer to the URL with:</p> | ||
− | + | <code> < script src="//2015.igem.org/Team:YourTeam/file_js?action=raw&ctype=text/javascript">< /script ></code> | |
− | <code> < script src="//2015.igem.org/Team:YourTeam/file_js?action=raw&ctype=text/javascript"></script ></code> | + | |
<p> | <p> | ||
for javascript and:</p> | for javascript and:</p> | ||
<code>< link href="//2015.igem.org/Team:YourTeam/file_css?action=raw&ctype=text/css" rel="stylesheet" ></code> | <code>< link href="//2015.igem.org/Team:YourTeam/file_css?action=raw&ctype=text/css" rel="stylesheet" ></code> | ||
− | + | <p>for css. This takes the raw code that was entered as if it was an uploaded file.</p> | |
<h3> Bootstrapping your Wiki <h3> | <h3> Bootstrapping your Wiki <h3> | ||
Revision as of 22:45, 18 September 2015