mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-02 03:47:50 +08:00
优化文档样式
This commit is contained in:
parent
4550ad74c8
commit
939568c7b1
@ -119,8 +119,13 @@ StpUtil.switchTo(10044); // 将当前会话身份临时切换为其它账号
|
||||
|
||||
|
||||
## 开源仓库 Star 趋势
|
||||
|
||||
<p class="un-dec-a-pre"></p>
|
||||
|
||||
[![giteye-chart](https://chart.giteye.net/gitee/dromara/sa-token/77YQZ6UK.png 'Gitee')](https://giteye.net/chart/77YQZ6UK)
|
||||
|
||||
<p class="un-dec-a-pre"></p>
|
||||
|
||||
[![github-chart](https://starchart.cc/dromara/sa-token.svg 'GitHub')](https://starchart.cc/dromara/sa-token)
|
||||
|
||||
如果 Sa-Token 帮助到了您,希望您可以为其点上一个 `star`:
|
||||
@ -160,6 +165,8 @@ StpUtil.switchTo(10044); // 将当前会话身份临时切换为其它账号
|
||||
## 贡献者名单
|
||||
感谢每一个为 Sa-Token 贡献代码的小伙伴
|
||||
|
||||
<p class="un-dec-a-pre"></p>
|
||||
|
||||
[![Giteye chart](https://chart.giteye.net/gitee/dromara/sa-token/CGZ7GT8E.png)](https://giteye.net/chart/CGZ7GT8E)
|
||||
|
||||
## 交流群
|
||||
|
@ -65,6 +65,16 @@
|
||||
<div class="wwads-cn wwads-vertical" data-id="88" style="max-width:150px"></div>
|
||||
</div>
|
||||
|
||||
<!-- UI逐渐显现 -->
|
||||
<style type="text/css">
|
||||
body{opacity: 0.01; transition: opacity 0.5s; background-color: #FFF;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
setTimeout(function() {
|
||||
document.body.style.opacity = 1;
|
||||
}, 1);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var saTokenTopVersion = '1.28.0'; // Sa-Token最新版本
|
||||
var name = '<img style="width: 60px; height: 60px; vertical-align: middle;" src="logo.png" alt="logo" /> ';
|
||||
@ -192,7 +202,39 @@
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
<script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
// 弹出提示
|
||||
function show() {
|
||||
var not_alert_time = localStorage.getItem('not_alert_time');
|
||||
if (not_alert_time != null && not_alert_time != '') {
|
||||
not_alert_time = parseInt(not_alert_time);
|
||||
// var t = 1000 * 60 * 60 * 24 * 30;
|
||||
var t = 1000 * 60 * 60 * 24;
|
||||
// var t = 1000 * 5;
|
||||
if (new Date().getTime() < not_alert_time + t) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 弹出
|
||||
var str = '<p style="color: #000;">《2021年度OSC中国最佳开源项目评选》<b style="color:red;">第二轮投票</b> 开始了(第一轮投票已清空),希望大家可以为 <b style="color:red;">Sa-Token</b> 投上一票,感谢! ❤️❤️❤️' +
|
||||
'<br><a href="https://www.oschina.net/project/top_cn_2021/?id=520" target="_blank">https://www.oschina.net/project/top_cn_2021/?id=520</a>' +
|
||||
'<br><br>PS:点击 确定/取消 后近期不再弹出此信息</p>';
|
||||
layer.confirm(str, {btn: ['好的!', '残忍拒绝'], title: '支持 Sa-Token '}, function() {
|
||||
console.log('点击了确定');
|
||||
localStorage.setItem('not_alert_time', new Date().getTime() + '');
|
||||
window.open('https://www.oschina.net/project/top_cn_2021/?id=520');
|
||||
layer.closeAll();
|
||||
}, function() {
|
||||
console.log('点击了取消');
|
||||
layer.closeAll();
|
||||
localStorage.setItem('not_alert_time', new Date().getTime() + '');
|
||||
});
|
||||
}
|
||||
show();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -115,4 +115,20 @@ blockquote code {font-weight: 400;}
|
||||
/* 赞助列表 */
|
||||
.zanzhu-pre+table tr td:nth-child(2){
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
/* --a-color: #42b983; */
|
||||
--a-color: #01a252;
|
||||
--a-hover-color: #0969da;
|
||||
}
|
||||
|
||||
/* 超链接样式 */
|
||||
#main *:not(h1,h2,h3,h4,h5,h6) a{font-weight: 400; text-decoration: none; font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;}
|
||||
#main *:not(h1,h2,h3,h4,h5,h6) a{color: var(--a-color); border-bottom: 1px var(--a-color) solid;}
|
||||
#main *:not(h1,h2,h3,h4,h5,h6) a:hover{color: var(--a-hover-color); border-bottom: 1px var(--a-hover-color) solid;}
|
||||
|
||||
#main .un-dec-a-pre+p a,
|
||||
#main p[align=center] a{border-bottom:0px;}
|
||||
|
||||
|
@ -154,6 +154,3 @@ body{font-size: 16px; color: #34495E; font-family: "Source Sans Pro","Helvetica
|
||||
100%{background-position: 0% 50%;}
|
||||
} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -382,6 +382,16 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- UI逐渐显现 -->
|
||||
<style type="text/css">
|
||||
body{opacity: 0.01; transition: opacity 0.5s;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
setTimeout(function() {
|
||||
document.body.style.opacity = 1;
|
||||
}, 1);
|
||||
</script>
|
||||
|
||||
<!-- 搜索引擎自动提交 -->
|
||||
<script>
|
||||
@ -482,5 +492,37 @@
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// 弹出提示
|
||||
function show() {
|
||||
var not_alert_time = localStorage.getItem('not_alert_time');
|
||||
if (not_alert_time != null && not_alert_time != '') {
|
||||
not_alert_time = parseInt(not_alert_time);
|
||||
// var t = 1000 * 60 * 60 * 24 * 30;
|
||||
var t = 1000 * 60 * 60 * 24;
|
||||
// var t = 1000 * 5;
|
||||
if (new Date().getTime() < not_alert_time + t) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 弹出
|
||||
var str = '<p style="color: #000;">《2021年度OSC中国最佳开源项目评选》<b style="color:red;">第二轮投票</b> 开始了(第一轮投票已清空),希望大家可以为 <b style="color:red;">Sa-Token</b> 投上一票,感谢! ❤️❤️❤️' +
|
||||
'<br><a href="https://www.oschina.net/project/top_cn_2021/?id=520" target="_blank">https://www.oschina.net/project/top_cn_2021/?id=520</a>' +
|
||||
'<br><br>PS:点击 确定/取消 后近期不再弹出此信息</p>';
|
||||
layer.confirm(str, {btn: ['好的!', '残忍拒绝'], title: '支持 Sa-Token '}, function() {
|
||||
console.log('点击了确定');
|
||||
localStorage.setItem('not_alert_time', new Date().getTime() + '');
|
||||
window.open('https://www.oschina.net/project/top_cn_2021/?id=520');
|
||||
layer.closeAll();
|
||||
}, function() {
|
||||
console.log('点击了取消');
|
||||
layer.closeAll();
|
||||
localStorage.setItem('not_alert_time', new Date().getTime() + '');
|
||||
});
|
||||
}
|
||||
show();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user