Commit cdce31b7 authored by Van's avatar Van

🐛 github 重复提交

parent 5e0d4b9e
......@@ -274,8 +274,25 @@ button:active {
margin-left: 10px;
}
#github {
position: relative;
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 {
display: block;
}
......
This diff is collapsed.
......@@ -29,10 +29,12 @@
<div id="init">
<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"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button>
</div>
<button class="hover"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br>
<span onclick="$('#github').hide();$('#user').show()">${useLocalAccountLabel}</span>
</div>
......
......@@ -24,10 +24,11 @@
${loginLabel}
</h2>
<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"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button>
</div>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br>
<span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span>
</div>
......
......@@ -22,10 +22,12 @@
<@commonPage "${registerSoloUserLabel}!">
<h2>${registerSoloUserLabel}</h2>
<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"/>
</a>
<button class="hover" onclick="window.location.href = '${servePath}/oauth/github/redirect'">${useGitHubAccountLoginLabel}</button>
</div>
<button class="hover"
onclick="window.location.href = '${servePath}/oauth/github/redirect';$('#github').addClass('github--loading')">${useGitHubAccountLoginLabel}</button>
<br>
<span onclick="$('#github').hide();$('.form').show()">${useLocalAccountLabel}</span>
</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