highlight ver2.0

This commit is contained in:
2020-01-19 09:09:25 +08:00
parent 8f5cfeeb14
commit edaf7eb0e4
90 changed files with 7448 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<!-- 代码高亮 -->
<?php $setting = setting_get('Last_highlight'); ?>
<link rel="stylesheet" type="text/css" href="plugin/Last_highlight/styles/<?php echo $setting['view']; ?>.css?v1.0"/>
<script src="plugin/Last_highlight/js/highlight.pack.js?v2.0"></script>
<script>
$(function(){
if ("<?php echo $setting['fold']; ?>" == "on"){
$("code").animate({maxHeight:'320px'}); // 开启折叠
$("code").click(function() { $(this).animate({maxHeight:'100%'},"slow"); }); // 点击展开
}
});
</script>