Last change
on this file since d3cf3a1 was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
994 bytes
|
Line | |
---|
1 | <!doctype html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8"/>
|
---|
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
---|
6 | <title>Demo</title>
|
---|
7 | <meta name="description" content=""/>
|
---|
8 | <meta name="viewport" content="width=device-width"/>
|
---|
9 | <base href="/"/>
|
---|
10 | <link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"/>
|
---|
11 | <script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>
|
---|
12 | <script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"></script>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 | <h1>Demo</h1>
|
---|
16 |
|
---|
17 | <div class="container unauthenticated">
|
---|
18 | Login With Facebook: <a href="/login">click here</a>
|
---|
19 | </div>
|
---|
20 | <div class="container authenticated" style="display:none">
|
---|
21 | Logged into Facebook as: <span id="user"></span>
|
---|
22 | </div>
|
---|
23 | </div>
|
---|
24 | <script type="text/javascript">
|
---|
25 | $.get("/user", function(data) {
|
---|
26 | $("#user").html(data.userAuthentication.details.name);
|
---|
27 | $(".unauthenticated").hide()
|
---|
28 | $(".authenticated").show()
|
---|
29 | });
|
---|
30 |
|
---|
31 | </script>
|
---|
32 | </body>
|
---|
33 | </html> |
---|
Note:
See
TracBrowser
for help on using the repository browser.