I’m trying to implement the following jQuery to a custom CSS and I’m getting a CORs error:
<script>
jQuery("#button-left").click(function(){
if(jQuery('input[type=radio]:checked')){
jQuery( "#button-left" ).append( "<style>#button-left label{background-color: green;}</style>" );
jQuery( "#button-right" ).append( "<style>#button-left label{background-color: red;}</style>" );
}
})
</script>
It appears to be some sort of problem with gstatic, maybe Google Fonts?