A Pen by Aston Lit

Thumbnail
This awesome code was written by ASTON_GAMER, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ASTON_GAMER ©
  • HTML
  • CSS
  • JavaScript
    <p> This is a Paragraph</p>
<button> Click here!!!</button>

/*Downloaded from https://www.codeseek.co/ASTON_GAMER/a-pen-by-aston-lit-RjxWwO */
    .main{
  font-size : 500%;
    color: red;
}


/*Downloaded from https://www.codeseek.co/ASTON_GAMER/a-pen-by-aston-lit-RjxWwO */
    var addOrRemove = true;

$("button").click(function(){
if(addOrRemove){
  $("p").addClass("main");
  addOrRemove = false;
} else {
  $("p").removeClass("main")
  addOrRemove = true;
}  
  
})


Comments