Commit cdce31b7 authored by Van's avatar Van

🐛 github 重复提交

parent 5e0d4b9e
...@@ -274,8 +274,25 @@ button:active { ...@@ -274,8 +274,25 @@ button:active {
margin-left: 10px; margin-left: 10px;
} }
#github { #github {
position: relative;
text-align: center; text-align: center;
} }
#github.github--loading:after {
content: "Loading...";
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: 7;
background-color: rgba(255, 255, 255, 0.6);
font-size: 22px;
text-align: center;
padding-top: 135px;
color: #000;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
}
#github .github__icon { #github .github__icon {
display: block; display: block;
} }
......
This diff is collapsed.
...@@ -29,10 +29,12 @@ ...@@ -29,10 +29,12 @@
<div id="init"> <div id="init">
<div id="github"> <div id="github">
<a class="github__icon" href="${servePath}/oauth/github/redirect"> <div class="github__icon"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">
<img src="${staticServePath}/images/github-init.gif"/> <img src="${staticServePath}/images/github-init.gif"/>
</a> </div>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button> <button class="hover"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br> <br>
<span onclick="$('#github').hide();$('#user').show()">${useLocalAccountLabel}</span> <span onclick="$('#github').hide();$('#user').show()">${useLocalAccountLabel}</span>
</div> </div>
......
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
${loginLabel} ${loginLabel}
</h2> </h2>
<div id="github"> <div id="github">
<a class="github__icon" href="${servePath}/oauth/github/redirect"> <div class="github__icon"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">
<img src="${staticServePath}/images/github-init.gif"/> <img src="${staticServePath}/images/github-init.gif"/>
</a> </div>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button> <button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br> <br>
<span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span> <span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span>
</div> </div>
......
...@@ -22,10 +22,12 @@ ...@@ -22,10 +22,12 @@
<@commonPage "${registerSoloUserLabel}!"> <@commonPage "${registerSoloUserLabel}!">
<h2>${registerSoloUserLabel}</h2> <h2>${registerSoloUserLabel}</h2>
<div id="github"> <div id="github">
<a class="github__icon" href="${servePath}/oauth/github/redirect"> <div class="github__icon" href="${servePath}/oauth/github/redirect"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">
<img src="${staticServePath}/images/github-init.gif"/> <img src="${staticServePath}/images/github-init.gif"/>
</a> </div>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button> <button class="hover"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br> <br>
<span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span> <span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment