-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#134 Login screen has create option, removed server.
- Loading branch information
Showing
3 changed files
with
93 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<html class="no-js" lang="en" dir="ltr"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"> | ||
|
@@ -12,77 +12,95 @@ | |
<meta name="apple-mobile-web-app-title" content="CaSS"> | ||
<meta name="application-name" content="CaSS"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CaSS Explorer</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>CaSS</title> | ||
<link rel="stylesheet" href="css/jquery-ui.min.css"> | ||
<link rel="stylesheet" href="css/foundation.min.css"> | ||
<link rel="stylesheet" href="css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="css/cass-ui.css"> | ||
</head> | ||
|
||
<body class="login"> | ||
<div id="cassUiLoginContainer"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x"> | ||
<div class="cell medium-6 medium-offset-3"> | ||
<h1><img class="loginHeaderImg" src="img/CASS-Logo-website-white.png"> Explorer</h1> | ||
</div> | ||
<div class="credentials cell medium-6 medium-offset-3"> | ||
<label>Username | ||
<input id="cassUiLoginUsername" type="text" onkeypress="checkForLoginInputEnter(event)" placeholder="Username" value=""> | ||
</label> | ||
<label>Password | ||
<input id="cassUiLoginPassword" type="password" onkeypress="checkForLoginInputEnter(event)" placeholder="Password" value=""> | ||
</label> | ||
</div> | ||
<div class="credentials cell medium-6 medium-offset-3"> | ||
<div class="grid-x grid-padding-x"> | ||
<div class="cell medium-6"> | ||
<label>Server | ||
<select id="cassUiLoginServer"> | ||
<option value="autoDetect">Local System</option> | ||
<option value="https://sandbox.cassproject.org/api/">CaSS Sandbox</option> | ||
<option value="https://dev.cassproject.org/api/">CaSS Dev</option> | ||
</select> | ||
</label> | ||
</div> | ||
<div class="cell medium-4 medium-offset-2 text-right"> | ||
<button id="cassUiLoginBtn" onclick="attemptCassUiLogin()" type="button" class="warning button expanded">Log in</button> | ||
</div> | ||
<div id="cassUiLoginContainer"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x"> | ||
<div class="cell medium-6 medium-offset-3"> | ||
<h1><img class="loginHeaderImg" src="img/CASS-Logo-website-white.png"></h1> | ||
</div> | ||
<div class="credentials cell medium-6 medium-offset-3"> | ||
<label>Username | ||
<input id="cassUiLoginUsername" type="text" onkeypress="checkForLoginInputEnter(event)" | ||
placeholder="Username" value=""> | ||
</label> | ||
<label>Password | ||
<input id="cassUiLoginPassword" type="password" onkeypress="checkForLoginInputEnter(event)" | ||
placeholder="Password" value=""> | ||
</label> | ||
<label class="createScreen" style="display:none;">Name (Optional) | ||
<input id="cassUiLoginName" type="text" onkeypress="checkForLoginInputEnter(event)" | ||
placeholder="Name" value=""> | ||
</label> | ||
<label class="createScreen" style="display:none;">Email Address (Optional) | ||
<input id="cassUiLoginEmail" type="text" onkeypress="checkForLoginInputEnter(event)" | ||
placeholder="[email protected]" value=""> | ||
</label> | ||
</div> | ||
<div class="credentials cell medium-6 medium-offset-3"> | ||
<div class="grid-x grid-padding-x"> | ||
<div class="loginScreen cell medium-6 text-right"> | ||
<button id="cassUiLoginInitBtn" onclick="$('.createScreen').show();$('.loginScreen').hide();createAccount = true;" type="button" | ||
class="button expanded">Create Account | ||
</button> | ||
</div> | ||
<div class="createScreen cell medium-6 text-right" style="display:none;"> | ||
<button id="cassUiCreateInitBtn" onclick="$('.createScreen').hide();$('.loginScreen').show();createAccount = false;" type="button" | ||
class=" button expanded">Log in | ||
</button> | ||
</div> | ||
<div class="createScreen cell medium-6 text-right" style="display:none;"> | ||
<button id="cassUiCreateBtn" onclick="attemptCassUiLogin()" type="button" | ||
class="warning button expanded">Create Account | ||
</button> | ||
</div> | ||
<div class="loginScreen cell medium-6 text-right"> | ||
<button id="cassUiLoginBtn" onclick="attemptCassUiLogin()" type="button" | ||
class="warning button expanded">Log in | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="grid-x"> | ||
<div id="cassUiLoginBusyCtr" class="cell" style="display:none"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x grid-padding-y"> | ||
<div class="cell medium-12 text-center"> | ||
<img class="cassUiBusyImg" src="img/CASS-loading-white-128px.gif" /> | ||
</div> | ||
</div> | ||
<div class="grid-x"> | ||
<div id="cassUiLoginBusyCtr" class="cell" style="display:none"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x grid-padding-y"> | ||
<div class="cell medium-12 text-center"> | ||
<img class="cassUiBusyImg" src="img/CASS-loading-white-128px.gif"/> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="cassUiLoginErrorCtr" class="cell" style="display:none"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x grid-padding-y"> | ||
<div class="cell medium-12 text-center cassUiError"> | ||
<i class="fa fa-exclamation-triangle"></i> | ||
<h5 id="cassUiLoginErrorText"></h5> | ||
</div> | ||
</div> | ||
<div id="cassUiLoginErrorCtr" class="cell" style="display:none"> | ||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x grid-padding-y"> | ||
<div class="cell medium-12 text-center cassUiError"> | ||
<i class="fa fa-exclamation-triangle"></i> | ||
<h5 id="cassUiLoginErrorText"></h5> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="js/vendor/jquery.js"></script> | ||
<script src="js/vendor/foundation.js"></script> | ||
<script src="js/cass/cass.min.js"></script> | ||
<script src="/auth/js/keycloak.js"></script> | ||
<script src="js/util/cass-ui-util.js"></script> | ||
<script src="js/util/cass-ui-session-util.js"></script> | ||
<script src="js/page/cass-ui-login.js"></script> | ||
<script src="js/vendor/jquery.js"></script> | ||
<script src="js/vendor/foundation.js"></script> | ||
<script src="js/cass/cass.min.js"></script> | ||
<script src="/auth/js/keycloak.js"></script> | ||
<script src="js/util/cass-ui-util.js"></script> | ||
<script src="js/util/cass-ui-session-util.js"></script> | ||
<script src="js/page/cass-ui-login.js"></script> | ||
|
||
</body> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters