Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
7472f0d0
Commit
7472f0d0
authored
Jul 01, 2018
by
Sajal Narang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pulsejet-issue71'
parents
52c092e8
98bf62b4
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
153 additions
and
175 deletions
+153
-175
app/src/main/assets/login.html
app/src/main/assets/login.html
+88
-0
app/src/main/assets/lotus.png
app/src/main/assets/lotus.png
+0
-0
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
.../main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
+54
-161
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/activity_login.xml
+11
-14
No files found.
app/src/main/assets/login.html
0 → 100644
View file @
7472f0d0
<!DOCTYPE HTML>
<html>
<head>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<style>
a
{
-webkit-tap-highlight-color
:
transparent
;
-webkit-touch-callout
:
none
;
-webkit-user-select
:
none
;
-khtml-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
}
.logodiv
{
width
:
45%
;
margin
:
0
auto
;
margin-top
:
25%
;
text-align
:
center
;
}
.logo
{
width
:
100%
;
}
.app-name
{
margin-top
:
10px
;
font-weight
:
200
;
font-size
:
1.5em
;
}
.lowerdiv
{
position
:
fixed
;
bottom
:
8%
;
left
:
0
;
width
:
100%
;
}
.logindiv
{
margin
:
0
auto
;
width
:
100%
;
text-align
:
center
;
}
a
{
color
:
black
;}
a
:link
{
color
:
black
;}
/* unvisited link */
a
:visited
{
color
:
black
;}
/* visited link */
a
:hover
{
color
:
black
;}
/* mouse over link */
a
:active
{
color
:
black
;}
/* selected link */
.login
{
font-size
:
1.05em
;
padding
:
10px
28%
;
border-radius
:
4px
;
background-color
:
rgb
(
255
,
215
,
64
);
text-decoration
:
none
;
}
.guest
{
text-decoration
:
none
;
font-weight
:
200
;
line-height
:
1.7em
;
font-size
:
1.05em
;
}
</style>
</head>
<body>
<div
class=
"logodiv"
>
<img
src=
"lotus.png"
class=
"logo"
>
<div
class=
"app-name"
>
InstiApp
</div>
</div>
<div
class=
"lowerdiv"
>
<div
class=
"logindiv"
>
<a
class=
"login"
href=
"https://gymkhana.iitb.ac.in/sso/account/login/?next=/sso/oauth/authorize/%3Fclient_id%3DvR1pU7wXWyve1rUkg0fMS6StL1Kr6paoSmRIiLXJ%26response_type%3Dcode%26scope%3Dbasic%2520profile%2520picture%2520sex%2520ldap%2520phone%2520insti_address%2520program%2520secondary_emails%26redirect_uri=https://redirecturi"
>
LOG IN VIA SSO
</a>
<br><br>
or
<br>
<a
class=
"guest"
href=
"https://guesturi"
>
Continue as a Guest
</a>
</div>
</div>
</body>
</html>
\ No newline at end of file
app/src/main/assets/lotus.png
0 → 100644
View file @
7472f0d0
24.7 KB
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/LoginActivity.java
View file @
7472f0d0
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_login.xml
View file @
7472f0d0
...
...
@@ -4,20 +4,17 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<Button
android:id=
"@+id/guest_login"
android:layout_width=
"wrap_content"
android:layout_height=
"48dp"
android:layout_gravity=
"center"
android:text=
"Guest Login"
/>
<Button
android:id=
"@+id/ldap_login"
android:layout_width=
"wrap_content"
android:layout_height=
"48dp"
android:layout_gravity=
"center"
android:text=
"LDAP login"
/>
<WebView
android:id=
"@+id/login_webview"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentLeft=
"true"
android:layout_alignParentStart=
"true"
android:layout_alignParentBottom=
"true"
android:layout_alignParentRight=
"true"
android:layout_alignParentTop=
"false"
android:layout_alignWithParentIfMissing=
"false"
>
</WebView>
</LinearLayout>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment