代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>日志视图</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="tag"><a href='https://gitee.com/MrMarko/log_view'><img src='https://gitee.com/MrMarko/log_view/widgets/widget_1.svg' alt='Fork me on Gitee'></img></a></div>
<div style="height:30px;"></div>
<div class="layui-fluid">
<div class="layui-row">
<div class="layui-col-md3 layui-col-md-offset4">
<form class="layui-form" action="" method="get">
<div class="layui-form-item">
<label class="layui-form-label"><i class="layui-icon layui-icon-search"><input type="reset" value="" style="display:none"></i></label>
<div class="layui-input-block">
<input type="text" name="search" value='<?=@$_GET['search']?>' placeholder="请输入搜索内容" autocomplete="off" class="layui-input">
</div>
</div>
<input type="hidden" name="file" value='<?=@$_GET['file']?>'>
<input type="hidden" name="type" value='<?=@$_GET['type']?>'>
</form>
</div>
</div>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space30">
<div class="layui-col-md2">
<div class="layui-card">
<div class="layui-card-header">类型</div>
<div class="layui-card-body">
<fieldset class="layui-elem-field">
<legend>工具</legend>
<div class="layui-field-box">
<div class="layui-row" style="text-align: center">
<div class="layui-col-md12" style="margin-bottom: 10px">
<label>刷新秒数</label>
</div>
<div class="layui-col-md12">
<div class="layui-input-inline">
<input type="number" id="retime_input" value="5" min="0" class="layui-input" style="text-align: center">
</div>
</div>
<div class="layui-col-md12" style="margin-top:20px">
<button class="layui-btn layui-btn-sm" onclick="refresh(this)">
<i class="layui-icon layui-icon-refresh-3 layui-anim" data-anim="layui-anim-rotate"></i>持续刷新
</button>
</div>
</div>
</div>
</fieldset>
<!-- 侧边导航 -->
<div class="layui-collapse" lay-accordion id="left_box">
</div>
</div>
</div>
</div>
<div class="layui-col-md10">
<div class="layui-row grid-demo grid-demo-bg1">
<!-- 数据表格 -->
<table id="log" lay-filter="test"></table>
</div>
</div>
</div>
<script src="./node_modules/layui-src/src/layui.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="./node_modules/jquery.json-viewer/json-viewer/jquery.json-viewer.js"></script>
<!-- <script src="./node_modules/js-search/dist/umd/js-search.js"></script>-->
<script src="js/main.js"></script>
<!-- 类型模板 -->
<script type="text/html" id="statusTel">
{{# if(d.status == '成功'){ }}
<span class="layui-badge layui-bg-green">{{d.status}}</span>
{{# }else if(d.status == '信息'){ }}
<span class="layui-badge layui-bg-blue">{{d.status}}</span>
{{# }else if(d.status == '警告'){ }}
<span class="layui-badge layui-bg-orange">{{d.status}}</span>
{{# }else if(d.status == '错误'){ }}
<span class="layui-badge">{{d.status}}</span>
{{# } else { }}
暂无相应类型
{{# } }}
</script>
<!-- 工具箱模板-->
<script type="text/html" id="barDemo">
<a class="layui-btn" lay-event="detail">详情</a>
<!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
<!-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
</script>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。