Difference between revisions of "Template:RHIT"

Line 41: Line 41:
  
 
             function SwapStyle1(sheet) {
 
             function SwapStyle1(sheet) {
 +
  document.getElementById('Stylish').setAttribute('href', sheet);
  
 
     var Banner= document.getElementById('Banner');
 
     var Banner= document.getElementById('Banner');
Line 78: Line 79:
  
 
  function SwapStyle2(sheet) {
 
  function SwapStyle2(sheet) {
 +
  document.getElementById('Stylish').setAttribute('href', sheet);
  
 
     var Banner= document.getElementById('Banner');
 
     var Banner= document.getElementById('Banner');
Line 141: Line 143:
 
$(document).ready(function(){
 
$(document).ready(function(){
  
 
$('#BUTTON').click(function (){
 
  $('link[href="https://2015.igem.org/Team:RHIT/StyleSheet1?action=raw&ctype=text/css"]').({href : "https://2015.igem.org/Team:RHIT/StyleSheet2?action=raw&ctype=text/css"});
 
});
 
$('#BUTTON2').click(function (){
 
  $('link[href="https://2015.igem.org/Team:RHIT/StyleSheet2?action=raw&ctype=text/css"]').({href : "https://2015.igem.org/Team:RHIT/StyleSheet1?action=raw&ctype=text/css"});
 
});
 
 
   
 
   
 
/*---------Slide toggle---------*/
 
/*---------Slide toggle---------*/

Revision as of 13:45, 13 August 2015