-
Notifications
You must be signed in to change notification settings - Fork 0
/
meus_locais.html
100 lines (84 loc) · 2.89 KB
/
meus_locais.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Adicionar Local</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, min-zoom=1, max-zoom=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/gaia/headers.css">
<!-- <link rel="stylesheet" type="text/css" href="css/gaia/buttons.css"> -->
<link rel="stylesheet" type="text/css" href="css/gaia/buttons.css">
<link rel="stylesheet" type="text/css" href="css/gaia/input_areas.css">
<link rel="stylesheet" type="text/css" href="css/gaia/action_menu.css">
<link rel="stylesheet" type="text/css" href="css/gaia/switches.css">
</head>
<body>
<form action="http:https://fadasdobem.com.br/ricardo/add.php" method="post" onsubmit="return false;">
<section role="region">
<header>
<button><span class="icon icon-back">back</span></button>
<h1>Maoe</h1>
</header>
<header>
<h2>Bem vindo!</h2>
</header>
</section>
<div style="padding:0 15px;">
<div id="lista-locais">
<div class="local">
<h2>Minha Barraca</h2>
<img src="" alt="Minha Barraca">
<p class="info"> </p>
<button>Editar</button>
</div>
</div>
<div class="novo-aqui">
<p>Notamos que você ainda não tem nenhum local cadastrado.</p>
</div>
<a href="adicionar_local.html" role="button">Adicionar Local</a>
<a href="meus_amigos.html" role="button">Locais dos meus amigos</a>
</div>
<script src="http:https://connect.facebook.net/en_US/all.js"></script>
<script src="http:https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="javascripts/base.js"></script>
<script src="javascripts/offline.js"></script>
<script>
function logout() {
FB.logout(function(response) {
window.location.href="index.html";
});
}
FB.init({
appId: '594023257280586',
status: true, cookie: false, xfbml: false, oauth: true
});
function statusFacebook() {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
connected();
} else if (response.status === 'not_authorized') {
// alert(2);
} else {
// alert(3);
}});
}
function connected() {
FB.api("/me", function (response) {
$.ajax({url:"http:https://fadasdobem.com.br/ricardo/get.php",dataType:'json',data:{fb_id:response.id},success:success});
});
}
function success (data) {
if (data.length == 0) {
$('#lista-locais').hide();
$('#novo-aqui').show();
} else {
$('#lista-locais').show();
$('#novo-aqui').hide();
}
}
statusFacebook();
$('#lista-locais').hide();
$('#novo-aqui').hide();
</script>
</body>
</html>