Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.36 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.  
  5.     <title>Ølhuset</title>
  6.     <!-- Required meta tags -->
  7.     <meta charset="utf-8">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  9.  
  10.     <link rel="stylesheet" href="animate.css">
  11.  
  12.    
  13.     <script src="https://code.jquery.com/jquery-3.2.1.min.js"
  14.            integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
  15.            crossorigin="anonymous"></script>
  16.     <!-- Bootstrap CSS -->
  17.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
  18.  
  19.  
  20.  
  21.     <script>
  22.             $(document).ready(function () {
  23.                 $("#bars").click(function () {
  24.  
  25.                     $.ajax({
  26.                         type: "GET",
  27.                         dataType: "json",
  28.                         url: "http://localhost:50207/api/bars"
  29.                     }).then(function (data) {
  30.                         alert(JSON.stringify(data));
  31.                         alert("data[0].barId: " + data[0].barId);
  32.                         alert("data[1].barName: " + data[1].barName);
  33.                     });
  34.                     return false;
  35.                 });
  36.             });
  37.     </script>
  38.  
  39.     <script>
  40.         $(document).ready(function () {
  41.             $.ajax({
  42.             type: "POST",
  43.             url: "serverUrl",
  44.             data: formData,
  45.             success: function(){},
  46.             dataType: "json",
  47.             contentType: "application/json"
  48.             });
  49.         });
  50.  
  51.     </script>
  52.  
  53. </head>
  54.  
  55. <body>
  56.  
  57.     <div class="panel panel-default">
  58.  
  59.  
  60.         <div class="container">
  61.  
  62.  
  63.             <div style="height:200px"></div>
  64.  
  65.  
  66.             <div class="row">
  67.  
  68.                 <div class="col-sm"></div>
  69.  
  70.                 <h1 class="animated fadeInUp"> Welcome to Ølhuset </h1>
  71.                
  72.                 <div class="col-sm"></div>
  73.  
  74.             </div>
  75.  
  76.  
  77.             <div style="height:50px"></div>
  78.            
  79.            
  80.             <div class="row">
  81.                
  82.                 <div class="col-sm"></div>
  83.  
  84.  
  85.                 <form id="loginForm">
  86.                     <div class="form-group">
  87.                         <label for="password">Password:</label>
  88.                         <input type="password" name="password" class="form-control" id="password">
  89.  
  90.                     </div>
  91.                     <div class="form-group">
  92.  
  93.                         <button  class=" btn btn-primary" id="login" onclick="window.location.href='WarehousePage.html'">Log in</button>
  94.                     </div>
  95.                 </form>
  96.                
  97.                 <div class="col-sm"></div>
  98.            
  99.             </div>
  100.  
  101.         </div>
  102.  
  103.  
  104.     </div>
  105.  
  106.  
  107.     <!-- Optional JavaScript -->
  108.     <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  109.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
  110.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
  111. </body>
  112. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement