Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
be45918a
Unverified
Commit
be45918a
authored
Feb 14, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
parent
7c915ce0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
10 deletions
+35
-10
src/main/webapp/css/default-init.css
src/main/webapp/css/default-init.css
+17
-1
src/main/webapp/start.ftl
src/main/webapp/start.ftl
+18
-9
No files found.
src/main/webapp/css/default-init.css
View file @
be45918a
...
@@ -227,12 +227,28 @@ input[type=text]:focus {
...
@@ -227,12 +227,28 @@ input[type=text]:focus {
display
:
none
;
display
:
none
;
}
}
#github
span
{
.github__text
{
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#999
;
color
:
#999
;
}
}
.github__text
ul
{
display
:
none
;
text-align
:
left
;
margin
:
5px
auto
0
;
width
:
280px
;
padding-left
:
24px
;
box-sizing
:
border-box
;
}
.github__link
{
font-size
:
12px
;
text-decoration
:
underline
;
margin-top
:
10px
;
display
:
block
;
}
/* start content-reset */
/* start content-reset */
.content-reset
{
.content-reset
{
word-wrap
:
break-word
;
word-wrap
:
break-word
;
...
...
src/main/webapp/start.ftl
View file @
be45918a
...
@@ -32,22 +32,31 @@
...
@@ -32,22 +32,31 @@
<img src="${staticServePath}/images/github.png"/>
<img src="${staticServePath}/images/github.png"/>
</div>
</div>
<br>
<br>
<label>
<label
class="github__text"
>
<input type="checkbox" checked id="isAgreenCheck">
<input type="checkbox" checked id="isAgreenCheck">
是否愿意在 GitHub 上收藏该项目并关注<a href="https://github.com/88250" target="_blank">开发者</a>
是否愿意在 GitHub 上收藏该项目、关注<a href="https://github.com/88250" target="_blank">开发者</a>并加入
<a href="https://github.com/b3log" target="_blank">B3log</a> 开源组织
</label>
</label>
<br><br>
<br>
<button class="hover startAction">${useGitHubAccountLoginLabel}</button>
<button class="startAction">${useGitHubAccountLoginLabel}</button><br>
<a class="github__link" href="javascript:$('ul').slideToggle()">查看 GitHub 数据使用说明</a>
<div class="github__text">
<ul>
<li>获取用户名、昵称、头像、邮箱用于账号初始化</li>
<li>获取公开仓库信息用于展示</li>
<li>我们不会对你的数据进行任何写入操作</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript">
<script type="text/javascript">
(function () {
(function () {
try {
try {
$('.startAction').click(function () {
$('.startAction').click(function () {
var isAgreen = $('#isAgreenCheck').prop('checked') ? '0' : '1'
var isAgreen = $('#isAgreenCheck').prop('checked') ? '0' : '1'
window.location.href = '${servePath}/oauth/github/redirect?referer=${referer}__' + isAgreen;
window.location.href = '${servePath}/oauth/github/redirect?referer=${referer}__' + isAgreen
$('#github').addClass('github--loading')
$('#github').addClass('github--loading')
})
})
} catch (e) {
} catch (e) {
document.querySelector('.main').innerHTML = "${staticErrorLabel}"
document.querySelector('.main').innerHTML = "${staticErrorLabel}"
}
}
...
...
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