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 79: Line 78:
  
 
  function SwapStyle2(sheet) {
 
  function SwapStyle2(sheet) {
document.getElementById('Stylish').setAttribute('href', sheet);
 
  
 
     var Banner= document.getElementById('Banner');
 
     var Banner= document.getElementById('Banner');
Line 142: Line 140:
 
<script>
 
<script>
 
$(document).ready(function(){
 
$(document).ready(function(){
 +
 +
 +
$('#BUTTON').click(function (){
 +
  $('link[href="https://2015.igem.org/Team:RHIT/StyleSheet1?action=raw&ctype=text/css"]').attr('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"]').attr('href','https://2015.igem.org/Team:RHIT/StyleSheet1?action=raw&ctype=text/css');
 +
});
 
   
 
   
 
/*---------Slide toggle---------*/
 
/*---------Slide toggle---------*/

Revision as of 13:37, 13 August 2015