把html压缩成dll,dll_module.html

隐心进程管理器-模块查看

html, body {

width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden;-webkit-user-select: none;

}

.top {

width: 100%; height: calc(100% - 24px); overflow: auto;

}

.process-table {

width: 100%; height: 100%; font-size: 12px; background-color: #e5e5e5;

}

.process-table th {

height: 23px; font-size: 13px;text-align: left; padding: 1px 5px; word-break: keep-all; white-space: nowrap;

font-weight: 500; text-shadow: 1px 1px 1px #bdbdbd; color: #000000;background-color: #f5f5f5;

}

.process-table td {

height: 21px; padding: 1px 5px; text-align: left; word-break: keep-all; white-space: nowrap; cursor: default;

}

.process-table .dtr {

background-color: #ffffff; color: #3c3c3c; text-shadow: 1px 1px 1px #e0e0e0;

}

.child-table tr {

background-color: #fffed3; color: #3c3c3c; text-shadow: 1px 1px 1px #e0e0e0;

}

.process-table tr.dtr:hover {

background-color: #fff45c; color: #0e0a44; text-shadow: 1px 1px 1px #cecece;

}

.process-table tr.dtr.active {

background-color: #00cf0a !important; color: #ffffff !important; text-shadow: 1px 1px 1px #005a24 !important;

}

.process-table tr.htr.active {

background-color: #ffee95; color: #ffffff; text-shadow: 1px 1px 1px #e4c033;

}

.process-table tr.dtr.open {

background-color: #d0d0d0; color: #000000; text-shadow: 1px 1px 1px #868686;

}

.process-table th.sort {

cursor: pointer;

}

.process-table th.sort:hover {

background-color: #FFEB3B;

}

.process-table .coltd {

padding: 5px;

}

.bottom {

height: 23px; font-size: 12px; line-height: 20px; border-top: 1px solid #c3c3c3;cursor: default;

}

.bottom > div {

float: left; padding: 0 10px; height: 20px; margin-top:2px; border-right: 1px solid #dddddd;cursor: default;

}

.child-table {

width: 100%; height: 100%; font-size: 12px; background-color: #cfded2;

}

.hidden {

display: none;

}

.process-table .itd{background-color: #ffffff !important;}

.clone-table {

position: fixed; z-index: 2; top: 0px; left: 0;background-color: #dddddd;width: 100%;

}

.clone th {

height: 23px; font-size: 13px; text-align: left; word-break: keep-all; white-space: nowrap; font-weight: 500;

background-color: #f3f3f3; text-shadow: 1px 1px 1px #bdbdbd; color: #000000;cursor: default;

}

#contentmenu {

position: absolute;

width: 160px;

padding: 5px 2px;

background: #ffffff;

border: 1px solid #f0f0f0;

box-shadow: 2px 2px 4px 1px #b9b9b9;

top: 10px;

left: 10px;

border-radius: 3px;

}

.mitem {

width: calc(100% - 22px);

height: 25px;

border: 1px solid #ffffff;

border-radius: 3px;

font-size: 13px;

line-height: 27px;

padding: 0 10px;

cursor: pointer;

float: left;

color: #5c6073

}

.mitem:hover {color: #0b99e6; border: 1px solid #d1dde8;}

.msplit {

width: 100%;

height: 2px;

margin-top: 2px;

float: left;

border-top: 1px solid #e6e6e6;

}

.mitem.disable {color: #d6d6d6;cursor: default;}

模块名称  模块句柄  模块大小  模块路径  

模块数: 0
所属进程ID:
所属进程名称:

var sIndex = -1;

var orderType = -1;

var orderWay = 1;

var data = [];

var currPid = 0;

function render(){

$('#data-body').html('');

var tpl = document.getElementById('tr.tpl').innerHTML;

var htmls = [];

for(var i = 0; i < data.length; i++){

data[i]['index'] = i;

try{

data[i].path = ee.utils.unicode4ToAnsi(data[i].path);

}catch(ex1){

data[i].path = decodeURIComponent(unescape(data[i].path));

}

try{

data[i].name = ee.utils.unicode4ToAnsi(data[i].name);

}catch(ex1){

data[i].name = decodeURIComponent(unescape(data[i].name));

}

htmls.push(parse(tpl, data[i]));

}

$('#data-body').html(htmls.join(''));

}

function parse(tpl, param){

return tpl.replace(/\{[a-zA-Z0-9]+\}/g, function(a, b){

return param[a.replace(/[\{\}]+/g, "")];

});

}

function setModuleData(arr, isf){

if(arr){

try{

if(arr && arr.length){

$('.threadnum span').text(arr.length);

data = arr;

if(orderType != -1){

order(orderType, orderWay);

} else {

render();

}

if(isf){

layer.msg('对象数据已更新');

}

}

}catch(e){

alert('error:' + e);

}

}

}

function setPInfo(pid, pname){

$('.cpuuse span').text(pid);

$('.memoryuse span').text(pname);

}

function pageLoaded(){

loadModuleList();

}

function loadModuleList(flag){

ee.processAllModule({"pid": currPid}, function(ret){

if(ret.list){

setModuleData(ret.list, flag);

}

});

}

function compare(str1, str2){

if(str1 == str2){

return true;

}

if(!str1 || !str2){

return str1 == str2;

}

str3 = str1.toLowerCase();

str4 = str2.toLowerCase();

return str3.indexOf(str4) != -1;

}

function showSearch(){

if($('.layui-layer').length){

return;

}

layer.prompt({title: '输入模块信息(支持模糊匹配),并确认', formType: 0}, function(str, index){

layer.close(index);

searchData(str);

});

}

function searchData(str){

for(var i = 0; i < data.length; i++){

if(data[i].hwnd == str || compare(data[i].name, str)){

$('.dtr').removeClass('active');

$('.dtr.row' + i).addClass('active');

$('.top').scrollTop(24 * i);

return;

}

}

layer.msg('模块不存在');

}

function order(index, o){

data.sort(function(a, b){

if(index == 0){

return o > 0 ? a.name.localeCompare(b.name, 'zh-CN') : b.name.localeCompare(a.name, 'zh-CN');

} else if(index == 1){

return parseInt(a.hwnd) < parseInt(b.hwnd) ? o : -o;

} else if(index == 2){

return parseInt(a.size) < parseInt(b.size) ? o : -o;

} else if(index == 3){

return o > 0 ? a.path.localeCompare(b.path, 'zh-CN') : b.path.localeCompare(a.path, 'zh-CN');

}

return 0;

});

render();

}

function showModuleMenu(x, y, processId, parentId, name, winHwnd){

//contentmenu

var $menu = $('#contentmenu');

var h = $menu.height();

var maxh = $('body').height();

$menu.css({"left": x, "top": y + h > maxh ? y - h - 13 : y}).removeClass('hidden');

}

window.onload = function(){

var searchurl = document.location.search.substring(1);

var arr = searchurl.split('&');

currPid = arr[0].replace('pid=', '');

var name = arr[1].replace('name=', '');

setPInfo(currPid, decodeURIComponent(name));

pageLoaded();

var winWidth = $(window).width();

var selectIndex = -1;

$('#data-body').on('mousedown', '.dtr', function(e){

var that = $(this);

$('.dtr').removeClass('active');

that.addClass('active');

selectIndex = that.data('index');

$('#contentmenu').addClass('hidden');

});

$('#data-body').on('mouseup', '.dtr', function(e){

if(e.button == 2){ // 鼠标右键

var obj = data[selectIndex];

if(obj){

setTimeout(function(){

showModuleMenu(e.clientX, e.clientY, obj.name, obj.hwnd, obj.size);

}, 50);

}

}

});

$('th.sort').on('click', function(){

var that = $(this);

var od = parseInt(that.data('id'));

$('.sort span').text('');

if(that.hasClass('sort-down')){

$('.sort').removeClass('sort-up').removeClass('sort-down');

that.addClass('sort-up');

that.find('span').text('↑');

orderType = od;

orderWay = -1;

} else {

$('.sort').removeClass('sort-up').removeClass('sort-down');

that.addClass('sort-down');

that.find('span').text('↓');

orderType = od;

orderWay = 1;

}

order(orderType, orderWay);

resizeTh();

});

$('.top').scroll(function(){

var topx = $('.top').scrollTop();

var leftx = $('.top').scrollLeft();

if(topx > 25){

if(!$('.clone-table').length){

var $thead = $('#process_table thead');

var $table = $('

');

$('.top').append($table.append($thead .clone().addClass('clone')));

$('.clone th').removeClass('sort');

$('.clone th span').text(' ');

$('.clone').css({width: $thead.width() + 'px', height: $thead.height() + 'px'})

$('.clone th').each(function(i, e){

if(i < 3){

$(this).css({

"width": $('#process_table thead th:eq('+ i +')').width(),

"min-width": $('#process_table thead th:eq('+ i +')').width(),

});

}

$(this).css('padding', '1px 5px');

});

}

$('.clone-table').show();

} else {

$('.clone-table').hide();

}

if(leftx > 0){

$('.clone-table').css({

left: (-leftx) + 'px',

width: 'calc(100% + ' + leftx + 'px)'

});

} else {

$('.clone-table').css({

left: '0px',

width: '100%'

});

}

});

$(window).on('resize', function(e){

var newWidth = $(window).width();

if(winWidth != newWidth){

winWidth = newWidth;

resizeTh();

}

});

$('body').on('keyup', '.layui-layer-input', function(e){

if(e.keyCode == 13){

if(!$(this).val()){

return;

}

layer.closeAll();

searchData($(this).val());

}

});

$('.mitem').on('click', function(){

var that = $(this);

if(!that.hasClass('disable')){

if(that.hasClass('opendir')){

if(data[selectIndex].path){

ee.fileLocationFile({"path": data[selectIndex].path});

}

} else if(that.hasClass('copyhwnd')){

if(data[selectIndex].hwnd){

ee.clipboardSetText({"text": "" + data[selectIndex].hwnd}, function(r){

r.status && layer.msg('复制成功');

});

}

} else if(that.hasClass('copyname')){

if(data[selectIndex].name){

ee.clipboardSetText({"text": data[selectIndex].name}, function(r){

r.status && layer.msg('复制成功');

});

}

} else if(that.hasClass('copypath')){

if(data[selectIndex].path){

ee.clipboardSetText({"text": data[selectIndex].path}, function(r){

r.status && layer.msg('复制成功');

});

}

} else if(that.hasClass('search')){

showSearch();

} else if(that.hasClass('flush')){

loadModuleList(true);

}

$('#contentmenu').addClass('hidden');

}

});

}

function resizeTh(){

var $thead = $('#process_table thead');

$('.clone').css({width: $thead.width() + 'px', height: $thead.height() + 'px'})

$('.clone th').each(function(i, e){

if(i < 3){

$(this).css({

"width": $('#process_table thead th:eq('+ i +')').width(),

"min-width": $('#process_table thead th:eq('+ i +')').width(),

});

}

$(this).css('padding', '1px 5px');

});

}

{name}{hwnd}{size}{path}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值