This commit is contained in:
chenyang
2022-07-10 16:54:17 +08:00
parent 9368c48c10
commit 1c9fa3a938
+28 -5
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jsmind</title>
<title>导图详情</title>
<link rel="shortcut icon" href="/static/abl1b-qks1b-001.ico"/>
<link rel="stylesheet" type="text/css" href="/static/js/jsmind.css">
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
@@ -11,6 +11,14 @@
width: calc(100vw);
height: calc(100vh - 50px);
}
.un_selected {
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
}
</style>
<script src="/static/js/jquery-1.11.3.min.js"></script>
<script src="/static/js/jsmind.js"></script>
@@ -20,6 +28,7 @@
<script src="/static/js/jsmind.coop.js?d="></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="/static/js/mind/c_m_m.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"></script> <!-- 图标相关-->
<!-- js 压缩: https://www.toptal.com/developers/javascript-minifier -->
<script>
const fetch = function () {
@@ -129,17 +138,31 @@
mind.data = data
}
this.jm.show(mind)
},
/**收藏或者取消收藏*/
star: function () {
const coop_mind_id = this.coop_mind_id
console.log(coop_mind_id)
}
}
const xxObj = new fetch()
xxObj.loadMind()
$(function () {
const xxObj = new fetch()
xxObj.loadMind()
window.xxObj = xxObj
})
</script>
</head>
<body>
<!-- -->
<input type="button" value="折叠" onclick="xxObj.collapse_all()" style="position: absolute;top: 0px;z-index: 1000;">
<input type="button" value="展开" onclick="xxObj.expand_all()" style="position: absolute;top: 40px;z-index: 1000;">
<div style="position: absolute;top: 0px;z-index: 1000;cursor: pointer;" onclick="xxObj.collapse_all()"><span data-feather="folder-minus"></span><span class="un_selected">折叠</span></div>
<div style="position: absolute;top: 0px;left:80px;z-index: 1000;cursor: pointer;" onclick="xxObj.expand_all()"><span data-feather="folder-plus"></span><span class="un_selected">展开</span></div>
<div style="position: absolute;top: 0px;left:160px;z-index: 1000;cursor: pointer;" onclick="xxObj.star()"><span data-feather="star"></span><span class="un_selected">收藏</span></div>
<h3 id="h1" style="text-align: center;max-height: 40px;"></h3>
<div id="jsmind_container"></div>
</body>
<script>
if (window.feather) {
window.feather.replace();
}
</script>
</html>