-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (100 loc) · 3.85 KB
/
index.html
File metadata and controls
107 lines (100 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<title>在线易语言代码可视化解析-魔帆博客[MorFans Lab]</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdn.bootcss.com/material-design-lite/1.3.0/material.min.css">
<script src="https://cdn.bootcss.com/material-design-lite/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="ecode.css">
<script src="ecode.js"></script>
<style>
#codeshow {
overflow: hidden;
width: 100%;
float: left;
clear: left;
margin-top: 20px;
}
</style>
<script>
function run() {
document.getElementById("codeshow_ecode_1").innerHTML = document.getElementById("code").value;
trans("codeshow");
}
window.onload = run;
</script>
</head>
<body class="mdl-color--grey-200">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">魔帆易语言在线代码可视化解析</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="http://lab.morfans.cn/">返回 MorFans Lab</a>
<a class="mdl-navigation__link" href="http://morfans.cn/">魔帆博客</a>
</nav>
</div>
</header>
<main class="mdl-layout__content">
<div class="page-content">
<div class="mdl-grid">
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--top mdl-cell--12-col">
<div class="mdl-card__title mdl-color--red mdl-color-text--white">代码</div>
<div class="mdl-card__supporting-text">
<div class="mdl-textfield mdl-js-textfield" style="width:100%">
<textarea class="mdl-textfield__input" type="text" rows="10" id="code">
.版本 2
.子程序 GetProcessHandle, 整数型
.参数 lpProcessName, 文本型
.局部变量 hSnapShot, 整数型
.局部变量 dwRet, 整数型
.局部变量 prHandle, 整数型
.局部变量 pe32, PROCESSENTRY32
hSnapShot = CreateToolhelp32Snapshot (#TH32CS_SNAPALL, 0)
.如果真 (hSnapShot = 0)
信息框 (“获得进程快照失败”, 0, )
返回 (dwRet)
.如果真结束
pe32.dwSize = 1024
prHandle = Process32First (hSnapShot, pe32)
.判断循环首 (prHandle ≠ 0)
.判断开始 (到文本 (pe32.szExeFile) = lpProcessName)
dwRet = pe32.th32ProcessID
跳出循环 ()
.默认
prHandle = Process32Next (hSnapShot, pe32)
.判断结束
.判断循环尾 ()
CloseHandle (hSnapShot)
返回 (dwRet)
</textarea>
<label class="mdl-textfield__label" for="code">代码</label>
</div>
</div>
<div class="mdl-card__actions mdl-card--border">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" onclick="javascript:run()">解析</a>
</div>
</div>
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--top mdl-cell--12-col">
<div class="mdl-card__title mdl-color--green mdl-color-text--white">解析结果</div>
<div class="mdl-card__supporting-text">
<div id="codeshow">
<div id="codeshow_ecode_1"></div>
</div>
</div>
</div>
</div>
</div>
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer__left-section">
<div class="mdl-logo">MorFans Lab</div>
<ul class="mdl-mini-footer__link-list">
<li>使用 <a href="https://getmdl.io/" target="_blank">Material Design Lite</a></li>
</ul>
</div>
</footer>
</main>
</div>
</body>
</html>