all repos — themeswitcher @ f5818864c52b9b5f3fc387ea2a8e6202b725e1b9

themeswitcher.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
<!-- <head> needs to contain the alternative style sheet -->
<style media="all">
    # normal CSS
</style>
<style id="css_alt" media="speech">
    # alt CSS
</style>


<!-- include this into the <body> to have controls -->            
<form class="theme" aria-hidden="true">
    <span>
        🔆
    </span>
    <span>
        <input name="colorscheme" value="dark" id="darkscheme" type="radio">
        <label for="darkscheme">dark</label>
    </span>
    <span>
        <input name="colorscheme" value="light" id="lightscheme" type="radio">
        <label for="lightscheme">light</label>
    </span>
</form>