/*function invertColor() { light_mode = 'false'; var classList = document.getElementById("body-ramella").classList; $.each(classList, function (index, item) { if (item === 'light-mode') { light_mode = 'true'; } }); $.ajax({ method: "POST", url: "https://www.ramellagraniti.com/assets/ajax/themeColor.php", dataType: "JSON", data: "light-mode=" + light_mode, success: function(data) { if(data.ok == 'add') { $("#body-ramella").addClass(data.message); }else{ $("#body-ramella").removeClass(data.message); } } }); }*/