Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <title>Ølhuset</title>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" href="animate.css">
- <script src="https://code.jquery.com/jquery-3.2.1.min.js"
- integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
- crossorigin="anonymous"></script>
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
- <script>
- $(document).ready(function () {
- $("#bars").click(function () {
- $.ajax({
- type: "GET",
- dataType: "json",
- url: "http://localhost:50207/api/bars"
- }).then(function (data) {
- alert(JSON.stringify(data));
- alert("data[0].barId: " + data[0].barId);
- alert("data[1].barName: " + data[1].barName);
- });
- return false;
- });
- });
- </script>
- <script>
- $(document).ready(function () {
- $.ajax({
- type: "POST",
- url: "serverUrl",
- data: formData,
- success: function(){},
- dataType: "json",
- contentType: "application/json"
- });
- });
- </script>
- </head>
- <body>
- <div class="panel panel-default">
- <div class="container">
- <div style="height:200px"></div>
- <div class="row">
- <div class="col-sm"></div>
- <h1 class="animated fadeInUp"> Welcome to Ølhuset </h1>
- <div class="col-sm"></div>
- </div>
- <div style="height:50px"></div>
- <div class="row">
- <div class="col-sm"></div>
- <form id="loginForm">
- <div class="form-group">
- <label for="password">Password:</label>
- <input type="password" name="password" class="form-control" id="password">
- </div>
- <div class="form-group">
- <button class=" btn btn-primary" id="login" onclick="window.location.href='WarehousePage.html'">Log in</button>
- </div>
- </form>
- <div class="col-sm"></div>
- </div>
- </div>
- </div>
- <!-- Optional JavaScript -->
- <!-- jQuery first, then Popper.js, then Bootstrap JS -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement