A Pen by Tyler Fowle

Thumbnail
This awesome code was written by tylerfowle, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright tylerfowle ©

Technologies

  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Tyler Fowle</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
  
  
</head>

<body>

  <button>Add</button>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/tylerfowle/a-pen-by-tyler-fowle-MrOaXW */
$("button").on("click", function(){
  $("body").append("<h2>Headline</h2>");
});

$(window).resize(function(){
  $("h2").css("color","red");
});

Comments