Last active
December 22, 2015 01:58
-
-
Save keltanas/6399553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Это вставить например, в "верхняя часть сайта" | |
<a href="#" id="blind">Версия</a> | |
<script> | |
$(function(){ | |
$('#blind') // ссылается на <a href="#" id="blind"></a> | |
.click(function(){ | |
$('body').toggleClass('blind'); | |
return false; | |
}); | |
}); | |
</script> | |
в стилях ссылаемся на body как body.blind | |
body.blind { | |
font-size: 16pt; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment