Team:Freiburg/Templates/html/js.html
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<button class="invertbutton" onclick="invertColors();">Inv.</button> | <button class="invertbutton" onclick="invertColors();">Inv.</button> | ||
<script> | <script> | ||
- | + | function invertColors() { | |
- | + | ||
var $html = $('html'); | var $html = $('html'); | ||
$html.toggleClass('inverted-colors'); | $html.toggleClass('inverted-colors'); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}; | }; | ||
(function(){ | (function(){ |
Revision as of 20:02, 14 October 2014