-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
162 lines (149 loc) · 3.99 KB
/
index.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<title>GDev</title>
<meta charset="utf-8" />
<script src="scripts/jquery/jquery-1.8.3.min.js"></script>
<!-- JQuery UI-->
<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" />
<script src="scripts/jquery/jquery-ui-1.9.2.custom.min.js"></script>
<link rel="stylesheet" href="css/960/reset.css" />
<link rel="stylesheet" href="css/960/text.css" />
<link rel="stylesheet" href="css/960/960.css" />
<style type="text/css">
body, .container_16{
background-color: #F1F1F1;
}
#encabezado {
background-color: #F1F1F1;
height: 60px;
}
#mainContainer {
height: 650px;
background-color: #FFFFFF;
border: thin solid #D7D7D7;
}
.borde {
border: thin solid #D7D7D7;
}
.hl {
background-color: red;
}
.color {
background-color: blue;
}
.panel {
height: 200px;
}
.panel p {
font-family: Arial, sans-serif;
color: #333;
font-size: 13px;
margin-top: 100px;
}
.panel p.titulo {
font-size: 25px;
font-style: normal;
font-weight: normal;
text-align: center;
margin-top: 50px;
}
.divisor {
height: 50px;
}
.barraColores {
background: url(img/colored-bars.png) no-repeat scroll left bottom transparent;
margin-top: 50px;
}
img.middle {
vertical-align: middle;
}
.textCenter {
text-align: center;
}
a, a:visited {
color: blue;
}
</style>
<script type="text/javascript">
var clientId = '914958245698';
var apiKey = 'AIzaSyDniwD4xBZEtyIG4a3EZLsSscN7eYI7-kw';
var authUrlBase = 'https://accounts.google.com/o/oauth2/auth';
var scopes = 'https://www.googleapis.com/auth/plus.me';
<!-- Sets ApiKey y verifica si está logueado -->
function init() {
gapi.client.setApiKey(apiKey);
window.setTimeout(checkAuth,1);
}
function checkAuth() {
gapi.auth.authorize({
client_id: clientId,
scope: scopes,
immediate: true}, handleAuthResult);
}
<!-- Acción del Botón Autorizar -->
function handleAuthClick(event) {
gapi.auth.authorize({
client_id: clientId,
scope: scopes,
immediate: false}, handleAuthResult);
return false;
}
function handleAuthResult(authResult) {
if (authResult && !authResult.error) {
window.location = "/main.html"
}
}
</script>
<!-- Al Cargar la Página, Asíncronamente carga el Cliente JS de Google APIs por Performance -->
<script src="https://apis.google.com/js/client.js?onload=init"></script>
</head>
<body>
<div class="container_16">
<div class="grid_16">
<div id="encabezado">
</div>
</div>
<div class="clear"></div>
<div class="grid_16" id="mainContainer">
<div class="grid_16 divisor"> </div>
<div class="clear"></div>
<div class="grid_2 alpha">
</div>
<div class="grid_4 color panel barraColores textCenter">
<p>Comparte tu conocimiento, experiencias y proyectos. Publica tu Conocimiento!</p>
</div>
<div class="grid_4 panel" align="center">
<p class="titulo">GDev Perfiles y Proyectos</p>
<img src="img/gdg_global.jpeg" width="100px" class="middle">
</div>
<div class="grid_4 color panel barraColores textCenter">
<p>Busca desarrolladores para tu proyecto, y conoce lo que saben TODOS los miembros de tu Grupo!</p>
</div>
<div class="grid_2 omega">
</div>
<div class="clear"></div>
<div class="grid_16 divisor"> </div>
<div class="grid_16 divisor"> </div>
<div class="grid_5 alpha">
</div>
<div class="grid_6 borde" align="center">
<a href="#" data-ajax="false" id="btnAutorizar" onClick="handleAuthClick()">
<div>
<b>
Login con tu cuenta de Google <img src="img/google_oauth2_256.png" width="100px" class="middle">
</b>
</div>
</a>
</div>
<div class="grid_4 omega">
</div>
</div>
</div>
</body>
</html>