Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #154 from cfpb/loading
Browse files Browse the repository at this point in the history
Loading icon
  • Loading branch information
wpears authored Aug 23, 2017
2 parents eaf5c1a + d24055c commit c1143a8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
8 changes: 7 additions & 1 deletion keycloak/themes/hmda/login/register.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ function getInstitutions(domain) {
);
}
},
data: { domain: domain }
data: { domain: domain },
beforeSend: function() {
$('#institutions').html(
'<div class="LoadingIconWrapper">' +
'<img src="${url.resourcesPath}/img/LoadingIcon.png" class="LoadingIcon" alt="Loading"></img>' +
'</div>');
}
})
.done(function(data, status, xhr) {
buildList(data.institutions);
Expand Down
35 changes: 35 additions & 0 deletions keycloak/themes/hmda/login/resources/css/hmda.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,38 @@ fieldset fieldset legend {
font-weight: 700;
padding: 3px 0;
}

.LoadingIconWrapper {
-webkit-transform: rotateX(180deg);
width: 3em;
margin: 0 auto;
transform: rotateX(180deg);
}

.LoadingIcon {
background-image: url('/img/LoadingIcon.png');
width: 3em;
animation: loading-spin 2s infinite linear;
}

@-webkit-keyframes loading-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-359deg);
transform: rotate(-359deg);
}
}

@keyframes loading-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-359deg);
transform: rotate(-359deg);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c1143a8

Please sign in to comment.