1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < meta charset ="utf-8 ">
5
- < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
- < title > 生成右键菜单注册文件 - RightClickMenu</ title >
8
-
9
- < link href ="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css " rel ="stylesheet ">
10
- < link href ="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css " rel ="stylesheet ">
11
- <!--[if lt IE 9]>
12
- <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
13
- <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
14
- <![endif]-->
15
- </ head >
16
- < body >
17
-
18
- < nav class ="navbar navbar-inverse navbar-static-top ">
19
- < div class ="container ">
20
- < div class ="navbar-header ">
21
- < a class ="navbar-brand " href ="# "> RightClickMenu</ a >
22
- </ div >
23
- < ul class ="nav navbar-nav navbar-right ">
24
- < li >
25
- < a >
26
- < iframe src ="https://ghbtns.com/github-btn.html?user=GHBJayce&repo=RightClickMenu&type=star " frameborder ="0 " scrolling ="0 " width ="60px " height ="20px "> </ iframe >
27
- < iframe src ="https://ghbtns.com/github-btn.html?user=GHBJayce&repo=RightClickMenu&type=fork " frameborder ="0 " scrolling ="0 " width ="60px " height ="20px "> </ iframe >
28
- </ a >
29
- </ li >
30
- </ ul >
31
-
32
- </ div >
33
- </ nav >
34
-
35
- < div class ="container ">
36
- < h2 > 生成右键菜单注册文件 < a href ="https://ghbjayce.github.io/RightClickMenu/ " class ="pull-right h4 text-primary "> online</ a > </ h2 >
37
- < div class ="alert alert-warning h6 " role ="alert ">
38
- < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
39
- < strong > < i class ="fa fa-exclamation-triangle "> </ i > 请在本地服务器环境中使用该程序</ strong >
40
- </ div >
41
- < div class ="alert alert-info h6 " role ="alert ">
42
- < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
43
- < p > < i class ="fa fa-info-circle " style ="font-size: 20px; "> </ i > 直接点击生成按钮,能够得到一个右键菜单的小功能。</ p >
44
- < p > 右键< strong > 选中文件或文件夹</ strong > 能够复制选中目标的路径,可以放心下载到本地环境中导入使用。</ p >
45
- </ div >
46
- < br >
47
- < form class ="form-horizontal ">
48
- < div class ="form-group ">
49
- < label for ="itemName " class ="col-sm-2 control-label "> 注册表名</ label >
50
- < div class ="col-sm-10 ">
51
- < input type ="text " class ="form-control " id ="itemName " placeholder ="在注册表显示的注册名称 " value ="CopyPath ">
52
- </ div >
53
- </ div >
54
- < div class ="form-group ">
55
- < label for ="showName " class ="col-sm-2 control-label "> 右键菜单名</ label >
56
- < div class ="col-sm-10 ">
57
- < input type ="text " class ="form-control " id ="showName " placeholder ="右键菜单显示的名称 " value ="复制目标路径 ">
58
- </ div >
59
- </ div >
60
- < div class ="form-group ">
61
- < label for ="path " class ="col-sm-2 control-label "> 程序路径</ label >
62
- < div class ="col-sm-10 ">
63
- < input type ="text " class ="form-control " id ="path " placeholder ="程序路径 " value ="mshta vbscript:clipboarddata.setdata("text","%1")(close) ">
64
- <!-- <input type="file" id="path" placeholder="程序路径"> -->
65
- </ div >
66
- </ div >
67
- < div class ="form-group ">
68
- < label for ="icon " class ="col-sm-2 control-label "> 图标</ label >
69
- < div class ="col-sm-10 ">
70
- < input type ="text " class ="form-control " id ="icon " placeholder ="显示的图标,留空表示使用程序默认的图标 " value ="%SYSTEMROOT%\explorer.exe ">
71
- <!-- <input type="file" id="icon" placeholder="显示的图标"> -->
72
- </ div >
73
- </ div >
74
- < div class ="form-group ">
75
- < label for ="options " class ="col-sm-2 control-label "> 右键菜单</ label >
76
- < div class ="col-sm-10 ">
77
- < label class ="checkbox-inline ">
78
- < input type ="checkbox " name ="option " id ="inlineCheckbox1 " value ="1 "> 目录背景
79
- </ label >
80
- < label class ="checkbox-inline ">
81
- < input type ="checkbox " name ="option " id ="inlineCheckbox2 " value ="2 " checked > 选中文件夹
82
- </ label >
83
- < label class ="checkbox-inline ">
84
- < input type ="checkbox " name ="option " id ="inlineCheckbox3 " value ="3 " checked > 所有选中文件
85
- </ label >
86
- </ div >
87
- </ div >
88
- < div class ="form-group ">
89
- < label class ="col-sm-2 control-label "> < b > 目录背景</ b > < br > 按< code > shift</ code > 键出现</ label >
90
- < div class ="col-sm-10 ">
91
- < label class ="radio-inline ">
92
- < input type ="radio " name ="backgroundExtended " value =""> 是
93
- </ label >
94
- < label class ="radio-inline ">
95
- < input type ="radio " name ="backgroundExtended " value ="no " checked > 否
96
- </ label >
97
- </ div >
98
- </ div >
99
- < div class ="form-group ">
100
- < label class ="col-sm-2 control-label "> < b > 选中文件夹</ b > < br > 按< code > shift</ code > 键出现</ label >
101
- < div class ="col-sm-10 ">
102
- < label class ="radio-inline ">
103
- < input type ="radio " name ="selectedDirectory " value =""> 是
104
- </ label >
105
- < label class ="radio-inline ">
106
- < input type ="radio " name ="selectedDirectory " value ="no " checked > 否
107
- </ label >
108
- </ div >
109
- </ div >
110
- < div class ="form-group ">
111
- < label class ="col-sm-2 control-label "> < b > 所有选中文件</ b > < br > 按< code > shift</ code > 键出现</ label >
112
- < div class ="col-sm-10 ">
113
- < label class ="radio-inline ">
114
- < input type ="radio " name ="selectedAll " value =""> 是
115
- </ label >
116
- < label class ="radio-inline ">
117
- < input type ="radio " name ="selectedAll " value ="no " checked > 否
118
- </ label >
119
- </ div >
120
- </ div >
121
- < div class ="form-group ">
122
- < div class ="col-sm-offset-2 col-sm-10 ">
123
- < button type ="submit " id ="generateBtn " class ="btn btn-primary col-xs-4 "> 生成</ button >
124
- </ div >
125
- </ div >
126
- </ form >
127
- < div class ="col-sm-12 " id ="downloadWrap " style ="display: none; ">
128
- < div >
129
- < a href ="register_table_file.zip " download =""> < button class ="btn btn-success "> 下载文件</ button > </ a >
130
- </ div >
131
- < div class ="col-sm-6 ">
132
- < h5 > 创建注册表</ h5 >
133
- < pre id ="createRegText "> </ pre >
134
- </ div >
135
- < div class ="col-sm-6 ">
136
- < h5 > 删除注册表</ h5 >
137
- < pre id ="removeRegText "> </ pre >
138
- </ div >
139
- </ div >
140
- </ div >
141
-
142
- < script src ="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js "> </ script >
143
- < script src ="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js "> </ script >
144
- < script >
145
- $ ( '#generateBtn' ) . on ( 'click' , function ( ) {
146
- var options = [ ] ;
147
- var extended = {
148
- 1 : $ ( '[name="backgroundExtended"]:checked' ) . val ( ) ,
149
- 2 : $ ( '[name="selectedDirectory"]:checked' ) . val ( ) ,
150
- 3 : $ ( '[name="selectedAll"]:checked' ) . val ( )
1
+ <!DOCTYPE html> < html > < head > < meta charset =
utf-8 > < meta name =
viewport content ="
width=device-width,initial-scale=1 "
> < title > right-click-menu-front
</ title > < link rel =
stylesheet href =
https://cdn.bootcss.com/font-awesome/5.8.1/css/all.min.css integrity =
sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf crossorigin =
anonymous > < link rel =
stylesheet href =
https://cdn.bootcss.com/element-ui/2.6.1/theme-chalk/index.css > < link rel =
stylesheet href =
https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css > < link rel =
stylesheet href =
https://unpkg.com/[email protected] /dist/bootstrap-vue.min.css > < link rel =
stylesheet href =
https://unpkg.com/[email protected] /dist/antd.min.css > < style > label {
2
+ margin-bottom : initial
151
3
}
152
-
153
- $ ( "input[name='option']:checked" ) . each ( function ( i ) {
154
- options [ i ] = $ ( this ) . val ( ) ;
155
- } ) ;
156
-
157
- $ . ajax ( {
158
- url : './php/index.php' ,
159
- type : 'post' ,
160
- data : {
161
- item_name : $ ( '#itemName' ) . val ( ) ,
162
- show_name : $ ( '#showName' ) . val ( ) ,
163
- path : $ ( '#path' ) . val ( ) ,
164
- icon : $ ( '#icon' ) . val ( ) ,
165
- extended : JSON . stringify ( extended ) ,
166
- options : JSON . stringify ( options )
167
- } ,
168
- success : function ( res ) {
169
- $ ( '#downloadWrap' ) . show ( ) ;
170
- res = JSON . parse ( res ) ;
171
- $ ( '#createRegText' ) . text ( res . create_reg_text ) ;
172
- $ ( '#removeRegText' ) . text ( res . remove_reg_text ) ;
173
- }
174
- } ) ;
175
- return false ;
176
- } ) ;
177
- </ script >
178
- </ body >
179
- </ html >
4
+ .anticon svg {
5
+ vertical-align : initial
6
+ }
</ style > < link href =
./static/css/app.css rel =
stylesheet > </ head > < body class =
bg-light > < div id =
app > </ div > < script src =
https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js > </ script > < script src =
https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js > </ script > < script src =
https://unpkg.com/j-weapons/dist/j-weapons.min.js > </ script > < script src =
https://cdn.bootcss.com/vue/2.6.8/vue.min.js > </ script > < script src =
https://cdn.bootcss.com/vue-router/3.0.2/vue-router.min.js > </ script > < script src =
https://cdn.bootcss.com/element-ui/2.6.1/index.js > </ script > < script src =
https://unpkg.com/[email protected] /dist/bootstrap-vue.min.js > </ script > < script src =
https://unpkg.com/[email protected] /dist/antd.min.js > </ script > < script src =
https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js > </ script > < script type =
text/javascript src =
./static/js/manifest.js > </ script > < script type =
text/javascript src =
./static/js/vendor.js > </ script > < script type =
text/javascript src =
./static/js/app.js > </ script > </ body > </ html >
0 commit comments