A Pen by ukpa

Thumbnail
This awesome code was written by ukpa, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ukpa ©
  • HTML
  • CSS
  • JavaScript
    <body>
  <div class="container-fluid">
  <div class="row">
    <div class="col-md-6">
      <h1 class = "text-primary">Wikipedia Viewer</h1>
      <input type="search" class="form-control" name ="query" placeholder="Search">
      <input type="submit" class="btn btn-primary ss">
      <div class ="list">
      </div>
    </div>
    <div class="col-md-6"></div>
    
  </div>
  </div>
</body>

/*Downloaded from https://www.codeseek.co/ukpa/a-pen-by-ukpa-xZoEmW */
    h1{
  text-align:center;
}
.form-control{
  padding:10px;
  margin:20px;
}


/*Downloaded from https://www.codeseek.co/ukpa/a-pen-by-ukpa-xZoEmW */
    $(document).ready(function(){
  $(".ss").hide();
  $('.form-control').keypress(function (e) {
  if (e.which == 13) {
    $(".ss").click();
    return false;//<---- Add this line
  }
});
  $(".form-control").submit(function(ev){
    alert("ssup bitches");
  })
})

Comments