add multidisk (has bug)

pull/62/head
qkqpttgf 2020-05-16 13:06:02 +08:00 committed by GitHub
parent 2f41e4f7b3
commit 72bcd304bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -146,6 +146,16 @@
position: absolute; position: absolute;
top: 180px; top: 180px;
} }
.more-disk{
display: inline-block;
}
.more-disk div{
list-style:none;
position:absolute;display:none;background:#fffaaa;border:0px #f7f7f7 solid;border-radius:5px;margin:-7px 0 0 0;padding:0 7px;color:#205D67;z-index:1;
}
.more-disk:hover div{display:block}
.more-disk div li{line-height:normal;}
.more-disk div li a[now]{background:#11faaa;}
</style> </style>
<div class="nexmoe-item"> <div class="nexmoe-item">
<div class="mdui-row"> <div class="mdui-row">
@ -223,7 +233,11 @@
var path = e.innerText; var path = e.innerText;
if (path.substr(path.length-1)=='/') path = path.substr(0, path.length-1); if (path.substr(path.length-1)=='/') path = path.substr(0, path.length-1);
var paths = path.split('/'); var paths = path.split('/');
//e.innerHTML = '<a href="<!--base_path-->"><!--Sitename--></a><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
e.innerHTML = '<a href="<!--base_path-->"><!--Sitename--></a><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>'; e.innerHTML = '<a href="<!--base_path-->"><!--Sitename--></a><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
<!--MultiDiskAreaStart-->
e.innerHTML += '<div class="more-disk"><span><!--DisktagNow--></span><div><!--MultiDisksStart--><li><a href="<!--MultiDisksUrl-->" <!--MultiDisksNow-->><!--MultiDisksName--></a></li><!--MultiDisksEnd--></div></div><i class="mdui-icon material-icons mdui-icon-dark" style="margin:0;">chevron_right</i>';
<!--MultiDiskAreaEnd-->
if (paths <= 2) return; if (paths <= 2) return;
for (var i = 1; i < paths.length - 1; i++) { for (var i = 1; i < paths.length - 1; i++) {
var to = path_format(root + paths.slice(0, i + 1).join('/')); var to = path_format(root + paths.slice(0, i + 1).join('/'));
@ -322,5 +336,6 @@
}); });
</script> </script>
</body> </body>
</html> </html>