1 Star 0 Fork 1

personFORK/flythings-doc

forked from 中科世为/flythings-doc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vendor.js 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
pengzc 提交于 2023-09-23 14:01 . fix
require(["gitbook"], function(gitbook) {
gitbook.events.bind("start", function(e, config) {
});
// Notify pageview
gitbook.events.bind("page.change", function() {
docSetupIdeDownloadUrl();
docSetupCopyright();
docSetupIndexPage();
docSetupDemoLink();
});
});
function docSetupIdeDownloadUrl() {
link_ide = $("#ide-download");
if (link_ide != null) {
if ("developer.flythings.cn" == document.domain) {
link_ide.attr("href", "https://download.flythings.cn/ide/flythings-ide-win32-win32-x86-zkswe-setup.zip");
} else if ("docs.flythings.cn" == document.domain) {
link_ide.attr("href", "https://download.flythings.cn/ide/flythings-ide-win32-win32-x86-community-setup.zip");
} else {
}
}
}
function docSetupCopyright() {
spancopyright = $("span.copyright").first();
if (spancopyright != null) {
if ("developer.flythings.cn" == document.domain) {
spancopyright.html('Copyright &copy 2020 <a target="_blank" href="http://www.zkswe.com" > <b>深圳市中科世为科技有限公司</b></a>');
} else if ("docs.flythings.cn" == document.domain) {
} else {
}
}
}
function docSetupIndexPage() {
customLink = $("a.custom-link").first();
if (customLink != null) {
customLink.attr("href", window.location.href.slice(0,window.location.href.length - window.location.pathname.length));
}
}
function docSetupDemoLink() {
if ("docs.flythings.cn" == document.domain) {
$("li[data-path='demo_download.html']").first().remove();
$("a[href^='demo_download.html']").each(
function(){
txt=$(this).text();
$(this).replaceWith(txt);
}
);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/person-study/flythings-doc.git
git@gitee.com:person-study/flythings-doc.git
person-study
flythings-doc
flythings-doc
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385