Skip to content

Instantly share code, notes, and snippets.

View dusblinov's full-sized avatar

Andrei Blinov dusblinov

View GitHub Profile
$('.flat-toggle').on('click', function() {
$(this).toggleClass('on');
});
$(document).ready(function(){
$('.flat-toggle').on('click', function() {
if ($(this).hasClass('on')) {
$(this).removeClass('on');
} else {
$(this).addClass('on');