1 |
jpp |
1.1 |
<!DOCTYPE html> |
2 |
|
|
<html lang='en'> |
3 |
|
|
<head> |
4 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
5 |
|
|
<title>Tree - rpms/clamav - Pagure</title> |
6 |
|
|
<link rel="shortcut icon" type="image/vnd.microsoft.icon" |
7 |
|
|
href="/static/favicon.ico"/> |
8 |
|
|
<link href="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css" |
9 |
|
|
type="text/css" rel="stylesheet" /> |
10 |
|
|
<link href="/static/pagure.css" |
11 |
|
|
type="text/css" rel="stylesheet" /> |
12 |
|
|
<link href="/static/vendor/open-iconic/css/open-iconic.min.css" |
13 |
|
|
type="text/css" rel="stylesheet" /> |
14 |
|
|
<link href="/static/fonts/fonts.css" |
15 |
|
|
rel="stylesheet" type="text/css" /> |
16 |
|
|
<link href="/static/vendor/hack_fonts/css/hack-extended.min.css" |
17 |
|
|
type="text/css" rel="stylesheet" /> |
18 |
|
|
</head> |
19 |
|
|
<body id="home"> |
20 |
|
|
<!-- start masthead --> |
21 |
|
|
<div class="masthead"> |
22 |
|
|
<div class="container"> |
23 |
|
|
<div class="row"> |
24 |
|
|
<div class="col-sm-3"> |
25 |
|
|
<a href="/"> |
26 |
|
|
<img height=40px src="/static/pagure-logo.png" |
27 |
|
|
alt="pagure Logo" id="pagureLogo"/> |
28 |
|
|
</a> |
29 |
|
|
</div> |
30 |
|
|
<div class="col-sm-9"> |
31 |
|
|
<div class="row"> |
32 |
|
|
|
33 |
|
|
<nav class="navbar navbar-light p-t-0 p-b-0"> |
34 |
|
|
<div class="container"> |
35 |
|
|
<ul class="nav navbar-nav nav-underline pull-xs-right"> |
36 |
|
|
<li class="nav-item p-l-1"> |
37 |
|
|
<a class="nav-link btn btn-primary" href="/login/?next=https://src.fedoraproject.org/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.5-minizip-fixuncrypt.patch">Log In</a> |
38 |
|
|
</li> |
39 |
|
|
</ul> |
40 |
|
|
</div> |
41 |
|
|
</nav> |
42 |
|
|
|
43 |
|
|
</div> |
44 |
|
|
</div> |
45 |
|
|
</div> |
46 |
|
|
</div> |
47 |
|
|
</div><!-- close masthead--> |
48 |
|
|
|
49 |
|
|
<div class="bodycontent p-b-3"> |
50 |
|
|
|
51 |
|
|
|
52 |
|
|
<div class="repo-header p-t-1"> |
53 |
|
|
<div class="container"> |
54 |
|
|
<header> |
55 |
|
|
<h2 class="repo-name m-b-0"> |
56 |
|
|
<a href="/user/robert"><span class="oi" data-glyph="fork"> |
57 |
|
|
</span>robert</a>/<a href="/projects/rpms/%2A">rpms</a>/<a href="/fork/robert/rpms/clamav">clamav</a> |
58 |
|
|
</h2> |
59 |
|
|
|
60 |
|
|
<div class="m-t-0"> |
61 |
|
|
Forked from |
62 |
|
|
<a href="/rpms/clamav"> |
63 |
|
|
rpms/clamav |
64 |
|
|
</a> |
65 |
|
|
</div> |
66 |
|
|
<div class="projectinfo m-t-1 m-b-1"> |
67 |
|
|
The clamav rpms </div> |
68 |
|
|
</header> |
69 |
|
|
|
70 |
|
|
<ul class="nav nav-tabs nav-small"> |
71 |
|
|
<li class="nav-item"> |
72 |
|
|
<a class="nav-link" href="/fork/robert/rpms/clamav"> |
73 |
|
|
<span class="oi hidden-md-up" data-glyph="home"></span> |
74 |
|
|
<span class="hidden-sm-down">Overview</span> |
75 |
|
|
</a> |
76 |
|
|
</li> |
77 |
|
|
|
78 |
|
|
<li class="nav-item"> |
79 |
|
|
<a class="nav-link" href="/fork/robert/rpms/clamav/commits/el6"> |
80 |
|
|
<span class="oi hidden-md-up" data-glyph="spreadsheet"> |
81 |
|
|
</span><span class="hidden-sm-down">Commits</span> |
82 |
|
|
</a> |
83 |
|
|
</li> |
84 |
|
|
|
85 |
|
|
<li class="nav-item"> |
86 |
|
|
<a class="active nav-link" href="/fork/robert/rpms/clamav/tree/el6"> |
87 |
|
|
<span class="oi hidden-md-up" data-glyph="file"></span> |
88 |
|
|
<span class="hidden-sm-down">Files</span> |
89 |
|
|
</a> |
90 |
|
|
</li> |
91 |
|
|
|
92 |
|
|
<li class="nav-item"> |
93 |
|
|
<a class="nav-link" href="/fork/robert/rpms/clamav/releases"> |
94 |
|
|
<span class="oi hidden-md-up" data-glyph="box"></span> |
95 |
|
|
<span class="hidden-sm-down">Releases</span> |
96 |
|
|
</a> |
97 |
|
|
</li> |
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
<li class="nav-item"> |
102 |
|
|
<a class="nav-link" href="/fork/robert/rpms/clamav/stats"> |
103 |
|
|
<span class="oi hidden-md-up" data-glyph="task"></span> |
104 |
|
|
<span class="hidden-sm-down">Stats </span> |
105 |
|
|
</a> |
106 |
|
|
</li> |
107 |
|
|
|
108 |
|
|
|
109 |
|
|
</ul> |
110 |
|
|
</div> |
111 |
|
|
</div> |
112 |
|
|
|
113 |
|
|
<div class="container p-t-3"> |
114 |
|
|
<div class="row m-b-1"> |
115 |
|
|
<div class="col-sm-6"> |
116 |
|
|
<h3> |
117 |
|
|
Files |
118 |
|
|
</h3> |
119 |
|
|
</div> |
120 |
|
|
|
121 |
|
|
<div class="col-sm-6"> |
122 |
|
|
<div class="pull-xs-right"> |
123 |
|
|
<div class="button-label button-label-default"> |
124 |
|
|
<span class="oi" data-glyph="fork"></span> |
125 |
|
|
robert/clamav |
126 |
|
|
|
127 |
|
|
</div> |
128 |
|
|
<div class="btn-group"> |
129 |
|
|
<button type="button" class="btn btn-secondary btn-sm dropdown-toggle" |
130 |
|
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
131 |
|
|
<span class="oi" data-glyph="random"> </span> el6 |
132 |
|
|
</button> |
133 |
|
|
<div class="dropdown-menu dropdown-menu-right"> |
134 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el4/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
135 |
|
|
el4 |
136 |
|
|
</a> |
137 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el5/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
138 |
|
|
el5 |
139 |
|
|
</a> |
140 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
141 |
|
|
el6 |
142 |
|
|
</a> |
143 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/epel7/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
144 |
|
|
epel7 |
145 |
|
|
</a> |
146 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f10/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
147 |
|
|
f10 |
148 |
|
|
</a> |
149 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f11/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
150 |
|
|
f11 |
151 |
|
|
</a> |
152 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f12/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
153 |
|
|
f12 |
154 |
|
|
</a> |
155 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f13/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
156 |
|
|
f13 |
157 |
|
|
</a> |
158 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f14/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
159 |
|
|
f14 |
160 |
|
|
</a> |
161 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f15/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
162 |
|
|
f15 |
163 |
|
|
</a> |
164 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f16/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
165 |
|
|
f16 |
166 |
|
|
</a> |
167 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f17/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
168 |
|
|
f17 |
169 |
|
|
</a> |
170 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f18/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
171 |
|
|
f18 |
172 |
|
|
</a> |
173 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f19/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
174 |
|
|
f19 |
175 |
|
|
</a> |
176 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f20/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
177 |
|
|
f20 |
178 |
|
|
</a> |
179 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f21/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
180 |
|
|
f21 |
181 |
|
|
</a> |
182 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f22/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
183 |
|
|
f22 |
184 |
|
|
</a> |
185 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f23/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
186 |
|
|
f23 |
187 |
|
|
</a> |
188 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f24/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
189 |
|
|
f24 |
190 |
|
|
</a> |
191 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f25/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
192 |
|
|
f25 |
193 |
|
|
</a> |
194 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f26/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
195 |
|
|
f26 |
196 |
|
|
</a> |
197 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f27/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
198 |
|
|
f27 |
199 |
|
|
</a> |
200 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f28/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
201 |
|
|
f28 |
202 |
|
|
</a> |
203 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f7/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
204 |
|
|
f7 |
205 |
|
|
</a> |
206 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f8/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
207 |
|
|
f8 |
208 |
|
|
</a> |
209 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f9/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
210 |
|
|
f9 |
211 |
|
|
</a> |
212 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/fc6/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
213 |
|
|
fc6 |
214 |
|
|
</a> |
215 |
|
|
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/master/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
216 |
|
|
master |
217 |
|
|
</a> |
218 |
|
|
</div> |
219 |
|
|
</div> |
220 |
|
|
</div> |
221 |
|
|
</div> |
222 |
|
|
</div> |
223 |
|
|
<div class="card"> |
224 |
|
|
<div class="card-header"> |
225 |
|
|
<ol class="breadcrumb"> |
226 |
|
|
<li> |
227 |
|
|
<a href="/fork/robert/rpms/clamav/tree/el6"> |
228 |
|
|
<span class="oi" data-glyph="random"> |
229 |
|
|
</span> el6 |
230 |
|
|
</a> |
231 |
|
|
</li> |
232 |
|
|
<li class="active"> |
233 |
|
|
<span class="oi" data-glyph="file"> |
234 |
|
|
</span> zlib-1.2.5-minizip-fixuncrypt.patch |
235 |
|
|
</li> |
236 |
|
|
</ol> |
237 |
|
|
</div> |
238 |
|
|
|
239 |
|
|
<div class="card-block p-a-0"> |
240 |
|
|
<div class="file-button-bar"> |
241 |
|
|
<form class="btn btn-sm" method="POST" name="fork_project" |
242 |
|
|
action="/fork_edit/fork/robert/rpms/clamav/edit/el6/f/zlib-1.2.5-minizip-fixuncrypt.patch"> |
243 |
|
|
<button class="btn btn-sm btn-secondary" |
244 |
|
|
onclick="fork_project.submit();"> |
245 |
|
|
Fork and Edit |
246 |
|
|
</button> |
247 |
|
|
|
248 |
|
|
</form> |
249 |
|
|
|
250 |
|
|
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.5-minizip-fixuncrypt.patch" title="View as blob">Blob</a> |
251 |
|
|
|
252 |
|
|
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blame/zlib-1.2.5-minizip-fixuncrypt.patch?identifier=el6" title="View git blame">Blame</a> |
253 |
|
|
|
254 |
|
|
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/raw/el6/f/zlib-1.2.5-minizip-fixuncrypt.patch" title="View as raw">Raw</a> |
255 |
|
|
</div> |
256 |
|
|
|
257 |
|
|
<div class="highlight"> |
258 |
|
|
<table class="code_table"> |
259 |
|
|
<tr><td class="cell1"><a id="_1" href="#_1" data-line-number="1"></a></td> |
260 |
|
|
<td class="cell2"><pre><span></span><span style="color: #000080; font-weight: bold">diff -up zlib-1.2.5/contrib/minizip/unzip.c.fixuncrypt zlib-1.2.5/contrib/minizip/unzip.c</span></pre></td> |
261 |
|
|
</tr> |
262 |
|
|
<tr><td class="cell1"><a id="_2" href="#_2" data-line-number="2"></a></td> |
263 |
|
|
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">--- zlib-1.2.5/contrib/minizip/unzip.c.fixuncrypt» 2011-11-11 12:13:56.335867758 -0500</span></pre></td> |
264 |
|
|
</tr> |
265 |
|
|
<tr><td class="cell1"><a id="_3" href="#_3" data-line-number="3"></a></td> |
266 |
|
|
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+++ zlib-1.2.5/contrib/minizip/unzip.c» 2011-11-11 12:14:01.747799372 -0500</span></pre></td> |
267 |
|
|
</tr> |
268 |
|
|
<tr><td class="cell1"><a id="_4" href="#_4" data-line-number="4"></a></td> |
269 |
|
|
<td class="cell2"><pre><span style="color: #800080; font-weight: bold">@@ -68,10 +68,6 @@</span></pre></td> |
270 |
|
|
</tr> |
271 |
|
|
<tr><td class="cell1"><a id="_5" href="#_5" data-line-number="5"></a></td> |
272 |
|
|
<td class="cell2"><pre> #include <stdlib.h></pre></td> |
273 |
|
|
</tr> |
274 |
|
|
<tr><td class="cell1"><a id="_6" href="#_6" data-line-number="6"></a></td> |
275 |
|
|
<td class="cell2"><pre> #include <string.h></pre></td> |
276 |
|
|
</tr> |
277 |
|
|
<tr><td class="cell1"><a id="_7" href="#_7" data-line-number="7"></a></td> |
278 |
|
|
<td class="cell2"><pre> </pre></td> |
279 |
|
|
</tr> |
280 |
|
|
<tr><td class="cell1"><a id="_8" href="#_8" data-line-number="8"></a></td> |
281 |
|
|
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">-#ifndef NOUNCRYPT</span></pre></td> |
282 |
|
|
</tr> |
283 |
|
|
<tr><td class="cell1"><a id="_9" href="#_9" data-line-number="9"></a></td> |
284 |
|
|
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- #define NOUNCRYPT</span></pre></td> |
285 |
|
|
</tr> |
286 |
|
|
<tr><td class="cell1"><a id="_10" href="#_10" data-line-number="10"></a></td> |
287 |
|
|
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">-#endif</span></pre></td> |
288 |
|
|
</tr> |
289 |
|
|
<tr><td class="cell1"><a id="_11" href="#_11" data-line-number="11"></a></td> |
290 |
|
|
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">-</span></pre></td> |
291 |
|
|
</tr> |
292 |
|
|
<tr><td class="cell1"><a id="_12" href="#_12" data-line-number="12"></a></td> |
293 |
|
|
<td class="cell2"><pre> #include "zlib.h"</pre></td> |
294 |
|
|
</tr> |
295 |
|
|
<tr><td class="cell1"><a id="_13" href="#_13" data-line-number="13"></a></td> |
296 |
|
|
<td class="cell2"><pre> #include "unzip.h"</pre></td> |
297 |
|
|
</tr> |
298 |
|
|
<tr><td class="cell1"><a id="_14" href="#_14" data-line-number="14"></a></td> |
299 |
|
|
<td class="cell2"><pre> </pre></td> |
300 |
|
|
</tr> |
301 |
|
|
</table></div> |
302 |
|
|
</div> |
303 |
|
|
</div> <!-- end .card--> |
304 |
|
|
|
305 |
|
|
|
306 |
|
|
</div> |
307 |
|
|
</div> |
308 |
|
|
|
309 |
|
|
<div class="footer p-t-1 p-b-1"> |
310 |
|
|
<div class="container"> |
311 |
|
|
<p class="text-muted credit"> |
312 |
|
|
Copyright © 2014-2018 Red Hat |
313 |
|
|
<a href="https://pagure.io/pagure">pagure</a> — |
314 |
|
|
4.0.4 — <a href="https://docs.pagure.org/pagure/usage/index.html">Documentation</a> |
315 |
|
|
</p> |
316 |
|
|
<p><a href="/ssh_info">SSH Hostkey/Fingerprint</a></p> |
317 |
|
|
</div> |
318 |
|
|
</div> |
319 |
|
|
|
320 |
|
|
<script type="text/javascript" |
321 |
|
|
src="/static/vendor/jquery/jquery.min.js"> |
322 |
|
|
</script> |
323 |
|
|
<script type="text/javascript" |
324 |
|
|
src="/static/vendor/jquery-ui/jquery-ui.min.js"> |
325 |
|
|
</script> |
326 |
|
|
<script type="text/javascript" |
327 |
|
|
src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.js"> |
328 |
|
|
</script> |
329 |
|
|
<script type="text/javascript"> |
330 |
|
|
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'}); |
331 |
|
|
</script> |
332 |
|
|
|
333 |
|
|
<script type="text/javascript" |
334 |
|
|
src="/static/vendor/lazyload/lazyload.min.js"> |
335 |
|
|
</script> |
336 |
|
|
<script type="text/javascript"> |
337 |
|
|
window.addEventListener("load", function(event) { |
338 |
|
|
lazyload(); |
339 |
|
|
}); |
340 |
|
|
|
341 |
|
|
$(document).ready(function() { |
342 |
|
|
var currentWatchStatusButton = $('#unwatch_button'); |
343 |
|
|
currentWatchStatusButton.prepend('<span class="oi" data-glyph="circle-check" style="padding-right:0.5em"></span>'); |
344 |
|
|
$('.watch-menu a').not(currentWatchStatusButton).css('padding-left', '2.85em'); |
345 |
|
|
|
346 |
|
|
$(".watch-menu a").click(function(){ |
347 |
|
|
var selectedValue = $(this).attr('id'); |
348 |
|
|
var watchProjectForm = $("#watch_project"); |
349 |
|
|
var action = watchProjectForm.attr('action'); |
350 |
|
|
|
351 |
|
|
if (selectedValue === "watch_issues_button") { |
352 |
|
|
action = action.replace('/settings/0', '/settings/1'); |
353 |
|
|
} else if (selectedValue === "watch_commits_button") { |
354 |
|
|
action = action.replace('/settings/0', '/settings/2'); |
355 |
|
|
} else if (selectedValue === "watch_issues_commits_button") { |
356 |
|
|
action = action.replace('/settings/0', '/settings/3'); |
357 |
|
|
} else if (selectedValue === "reset_button") { |
358 |
|
|
action = action.replace('/settings/0', '/settings/-1'); |
359 |
|
|
} |
360 |
|
|
|
361 |
|
|
watchProjectForm.attr('action', action); |
362 |
|
|
watchProjectForm.submit(); |
363 |
|
|
}); |
364 |
|
|
}); |
365 |
|
|
</script> |
366 |
|
|
|
367 |
|
|
<script type="text/javascript"> |
368 |
|
|
function updateHighlight() { |
369 |
|
|
var cls = "highlighted-line"; |
370 |
|
|
$('.' + cls).removeClass(cls) |
371 |
|
|
if (location.hash !== '') { |
372 |
|
|
var lines = location.hash.substr(2).split('-').map(function (x) { return parseInt(x, 10) }); |
373 |
|
|
for (var i = lines[lines.length - 1]; i >= lines[0]; i--) { |
374 |
|
|
$('[data-line-number=' + i + ']').closest('tr').addClass(cls); |
375 |
|
|
} |
376 |
|
|
return lines; |
377 |
|
|
} |
378 |
|
|
return []; |
379 |
|
|
} |
380 |
|
|
$(document).ready(function () { |
381 |
|
|
var lines = updateHighlight(); |
382 |
|
|
if (lines) { |
383 |
|
|
var offset = $('[data-line-number=' + lines[0] + ']').offset().top; |
384 |
|
|
$('html, body').animate({scrollTop: offset}, 200); |
385 |
|
|
} |
386 |
|
|
}); |
387 |
|
|
$(window).on('hashchange', updateHighlight); |
388 |
|
|
var selected = []; |
389 |
|
|
$("[data-line-number]").click(function (ev) { |
390 |
|
|
var line = $(this).attr('data-line-number'); |
391 |
|
|
if (ev.shiftKey) { |
392 |
|
|
selected = selected.slice(-1).concat(line); |
393 |
|
|
} else { |
394 |
|
|
selected = [line]; |
395 |
|
|
} |
396 |
|
|
|
397 |
|
|
var hash = '_' + selected[0]; |
398 |
|
|
if (selected.length === 2) { |
399 |
|
|
hash = '_' + Math.min(selected[0], selected[1]) + '-' + Math.max(selected[0], selected[1]); |
400 |
|
|
} |
401 |
|
|
window.location.hash = hash; |
402 |
|
|
return false; |
403 |
|
|
}); |
404 |
|
|
</script> |
405 |
|
|
|
406 |
|
|
|
407 |
|
|
</body> |
408 |
|
|
</html> |