feat: 初始化导航网站项目
添加 Flask 导航站应用,包含 Docker 部署配置、SQLite 数据库、静态资源及 CI/CD 流水线。
这个提交包含在:
@@ -0,0 +1,27 @@
|
||||
|
||||
// common.js
|
||||
|
||||
// menu
|
||||
$(document).ready(function () {
|
||||
// fix menu when passed
|
||||
$('.masthead').visibility({
|
||||
once: false,
|
||||
onBottomPassed: function () {
|
||||
$('.fixed.menu').transition('fade in');
|
||||
},
|
||||
onBottomPassedReverse: function () {
|
||||
$('.fixed.menu').transition('fade out');
|
||||
}
|
||||
});
|
||||
// create sidebar and attach to menu open
|
||||
$('.ui.sidebar').sidebar('attach events', '.toc.item');
|
||||
// avatar
|
||||
let avatarId = $('#username').attr("data-user")
|
||||
fetch('https://api.multiavatar.com/'
|
||||
+JSON.stringify(avatarId))
|
||||
.then(res => res.text())
|
||||
.then(svg => $('#user-avatar').html(svg))
|
||||
});
|
||||
|
||||
// masthead background
|
||||
$('.ui.inverted.masthead.segment').addClass(`bg${Math.ceil(Math.random() * 14)}`).removeClass('zoomed');
|
||||
在新工单中引用
屏蔽一个用户