jQuery Practice 3

In this example below you will see how to do a jQuery Practice 3 with some HTML / CSS and Javascript

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

Technologies

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

<head>
  <meta charset="UTF-8">
  <title> jQuery Practice 3</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <button id="goLeft1"></button>
<button id="goRight1"></button>
<button id= "goLeft2"></button>
<button id="goRight2"></button>
<div id="canvas"><img src="http://www.nextstepconnections.com/wp/wp-content/uploads/2016/02/pictures.4ever.eu-hong-kong-159071.jpg"></div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script>

  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/210296/jquery-practice-3-bpxWxK */
#goLeft1{
   background-color: red; 
    border: none;
    padding: 15px 32px;
    font-size: 16px;
}
#goRight1{
   background-color: yellow; 
    border: none;
    padding: 15px 32px;
    font-size: 16px;
}
#goLeft2{
   background-color: green; 
    border: none;
    padding: 15px 32px;
    font-size: 16px;
}
#goRight2{
   background-color: blue; 
    border: none;
    padding: 15px 32px;
    font-size: 16px;
}
#canvas{
  width:1300px;
  height:300px;
  background-color: black;
}




/*Downloaded from https://www.codeseek.co/210296/jquery-practice-3-bpxWxK */
$("#goLeft1").click(function(){
  $("#canvas").toggle();
  $("background").css("")
});

Comments