This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (99 loc) · 3.91 KB
/
index.html
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-dark.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/gl-fork-ribbon.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<title>gup #chusiang</title>
<script src="javascripts/jquery.min.js"></script>
<script src="javascripts/select-to-install.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<header>
<div class="container">
<!-- Fork me on GitLab -->
<a class="gitlab-fork-ribbon right-top" href="https://gitlab.com/chusiang/gup" data-ribbon="Fork me on GitLab" title="Fork me on GitLab" target="_blank">Fork me on GitLab</a>
<h1>gup --help</h1>
<p>
Get Ubuntu Packages with apturl and web, version 2.0</p>
</div>
</header>
<div class="container">
<section id="main_content">
<h1>
<a id="desc" class="anchor" href="#desc" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>
# Description:
</h1>
<ol>
<li>Install package with single.
<ul>
<li>Click <b>package name</b>, like <a href="apt://vim-gnome" title="GVim">me</a>.</li>
</ul>
</li> <br />
<li>Install package with batch.
<ul>
<li>Click <b>Install</b> after click some <b>checkbox</b>, like
<input class="checkbox_list" type="checkbox" value=""/>.</li>
</ul>
</li> <br />
<li>Maintain package list with <a href="./packages.json" target="_blank">./packages.json</a>.
</li>
</ol> <br />
<h1>
<a id="main" class="anchor" href="#main" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>
# Main:
</h1>
<form name="package_list" method="post" action="" enctype="text/plain">
<table>
<tr>
<th><input type='checkbox' id='click_all'/></th>
<th>Package</th>
<th>Section</th>
<th>Description</th>
</tr>
<tbody id="loop_rows"></tbody>
</table>
<div align="center">
<input type="reset" name="reset_button" id="reset_button" value="Reset" class="btn btn-red"/>
<input type="button" name="install_button" id="install_button" value="Install" class="btn btn-grey"/ >
</div>
</form>
</section>
</div>
<br />
<footer>
<small>Coypright © from 2015 <a href='http://note.drx.tw/p/about-chu-siang-lai.html' target='_blank'>chusiang</a> GPL v2 or later.</small>
</footer>
<script>
$.getJSON("packages.json", function(package_data) {
var new_table = "";
for (var i = 0, l = package_data.length; i < l; i++) {
var pkg_name = package_data[i].Packages;
var section = package_data[i].Section;
var description = package_data[i].Description;
new_table += " \
<tr> \
<td align='center'> \
<input class='checkbox_list' type='checkbox' name='chkbox[]' value='" + pkg_name + "'/> \
</td> \
<td><a href=apt://'" + pkg_name + "'>" + pkg_name + "</a></td> \
<td>" + section + "</td> \
<td>" + description + "</td> \
</tr>";
}
document.getElementById("loop_rows").innerHTML = new_table;
});
</script>
</body>
</html>