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.7-optimized-s390.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.7-optimized-s390.patch"> |
135 |
el4 |
136 |
</a> |
137 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el5/f/zlib-1.2.7-optimized-s390.patch"> |
138 |
el5 |
139 |
</a> |
140 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-optimized-s390.patch"> |
141 |
el6 |
142 |
</a> |
143 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/epel7/f/zlib-1.2.7-optimized-s390.patch"> |
144 |
epel7 |
145 |
</a> |
146 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f10/f/zlib-1.2.7-optimized-s390.patch"> |
147 |
f10 |
148 |
</a> |
149 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f11/f/zlib-1.2.7-optimized-s390.patch"> |
150 |
f11 |
151 |
</a> |
152 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f12/f/zlib-1.2.7-optimized-s390.patch"> |
153 |
f12 |
154 |
</a> |
155 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f13/f/zlib-1.2.7-optimized-s390.patch"> |
156 |
f13 |
157 |
</a> |
158 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f14/f/zlib-1.2.7-optimized-s390.patch"> |
159 |
f14 |
160 |
</a> |
161 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f15/f/zlib-1.2.7-optimized-s390.patch"> |
162 |
f15 |
163 |
</a> |
164 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f16/f/zlib-1.2.7-optimized-s390.patch"> |
165 |
f16 |
166 |
</a> |
167 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f17/f/zlib-1.2.7-optimized-s390.patch"> |
168 |
f17 |
169 |
</a> |
170 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f18/f/zlib-1.2.7-optimized-s390.patch"> |
171 |
f18 |
172 |
</a> |
173 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f19/f/zlib-1.2.7-optimized-s390.patch"> |
174 |
f19 |
175 |
</a> |
176 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f20/f/zlib-1.2.7-optimized-s390.patch"> |
177 |
f20 |
178 |
</a> |
179 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f21/f/zlib-1.2.7-optimized-s390.patch"> |
180 |
f21 |
181 |
</a> |
182 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f22/f/zlib-1.2.7-optimized-s390.patch"> |
183 |
f22 |
184 |
</a> |
185 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f23/f/zlib-1.2.7-optimized-s390.patch"> |
186 |
f23 |
187 |
</a> |
188 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f24/f/zlib-1.2.7-optimized-s390.patch"> |
189 |
f24 |
190 |
</a> |
191 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f25/f/zlib-1.2.7-optimized-s390.patch"> |
192 |
f25 |
193 |
</a> |
194 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f26/f/zlib-1.2.7-optimized-s390.patch"> |
195 |
f26 |
196 |
</a> |
197 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f27/f/zlib-1.2.7-optimized-s390.patch"> |
198 |
f27 |
199 |
</a> |
200 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f28/f/zlib-1.2.7-optimized-s390.patch"> |
201 |
f28 |
202 |
</a> |
203 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f7/f/zlib-1.2.7-optimized-s390.patch"> |
204 |
f7 |
205 |
</a> |
206 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f8/f/zlib-1.2.7-optimized-s390.patch"> |
207 |
f8 |
208 |
</a> |
209 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f9/f/zlib-1.2.7-optimized-s390.patch"> |
210 |
f9 |
211 |
</a> |
212 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/fc6/f/zlib-1.2.7-optimized-s390.patch"> |
213 |
fc6 |
214 |
</a> |
215 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/master/f/zlib-1.2.7-optimized-s390.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.7-optimized-s390.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.7-optimized-s390.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.7-optimized-s390.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.7-optimized-s390.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.7-optimized-s390.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 -upr zlib-1.2.7.orig/deflate.c zlib-1.2.7/deflate.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.7.orig/deflate.c» 2012-10-04 12:18:50.750427902 +0200</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.7/deflate.c» 2012-10-04 12:20:04.222190460 +0200</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">@@ -1150,15 +1150,16 @@ local void lm_init (s)</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> /* For 80x86 and 680x0, an optimized version will be provided in match.asm or</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> * match.S. The code will be functionally equivalent.</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">-local uInt longest_match(s, cur_match)</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: #00A000; background-color: #ddffdd">+local uInt longest_match(s, pcur_match)</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> deflate_state *s;</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">- IPos cur_match; /* current match */</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><span style="color: #00A000; background-color: #ddffdd">+ IPos pcur_match; /* current match */</span></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> {</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><span style="color: #00A000; background-color: #ddffdd">+ ptrdiff_t cur_match = pcur_match; /* extend to pointer width */</span></pre></td> |
300 |
</tr> |
301 |
<tr><td class="cell1"><a id="_15" href="#_15" data-line-number="15"></a></td> |
302 |
<td class="cell2"><pre> unsigned chain_length = s->max_chain_length;/* max hash chain length */</pre></td> |
303 |
</tr> |
304 |
<tr><td class="cell1"><a id="_16" href="#_16" data-line-number="16"></a></td> |
305 |
<td class="cell2"><pre> register Bytef *scan = s->window + s->strstart; /* current string */</pre></td> |
306 |
</tr> |
307 |
<tr><td class="cell1"><a id="_17" href="#_17" data-line-number="17"></a></td> |
308 |
<td class="cell2"><pre> register Bytef *match; /* matched string */</pre></td> |
309 |
</tr> |
310 |
<tr><td class="cell1"><a id="_18" href="#_18" data-line-number="18"></a></td> |
311 |
<td class="cell2"><pre> register int len; /* length of current match */</pre></td> |
312 |
</tr> |
313 |
<tr><td class="cell1"><a id="_19" href="#_19" data-line-number="19"></a></td> |
314 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- int best_len = s->prev_length; /* best match length so far */</span></pre></td> |
315 |
</tr> |
316 |
<tr><td class="cell1"><a id="_20" href="#_20" data-line-number="20"></a></td> |
317 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ ptrdiff_t best_len = s->prev_length; /* best match length so far */</span></pre></td> |
318 |
</tr> |
319 |
<tr><td class="cell1"><a id="_21" href="#_21" data-line-number="21"></a></td> |
320 |
<td class="cell2"><pre> int nice_match = s->nice_match; /* stop if match long enough */</pre></td> |
321 |
</tr> |
322 |
<tr><td class="cell1"><a id="_22" href="#_22" data-line-number="22"></a></td> |
323 |
<td class="cell2"><pre> IPos limit = s->strstart > (IPos)MAX_DIST(s) ?</pre></td> |
324 |
</tr> |
325 |
<tr><td class="cell1"><a id="_23" href="#_23" data-line-number="23"></a></td> |
326 |
<td class="cell2"><pre> s->strstart - (IPos)MAX_DIST(s) : NIL;</pre></td> |
327 |
</tr> |
328 |
<tr><td class="cell1"><a id="_24" href="#_24" data-line-number="24"></a></td> |
329 |
<td class="cell2"><pre><span style="color: #800080; font-weight: bold">@@ -1173,12 +1174,12 @@ local uInt longest_match(s, cur_match)</span></pre></td> |
330 |
</tr> |
331 |
<tr><td class="cell1"><a id="_25" href="#_25" data-line-number="25"></a></td> |
332 |
<td class="cell2"><pre> * Try with and without -DUNALIGNED_OK to check.</pre></td> |
333 |
</tr> |
334 |
<tr><td class="cell1"><a id="_26" href="#_26" data-line-number="26"></a></td> |
335 |
<td class="cell2"><pre> */</pre></td> |
336 |
</tr> |
337 |
<tr><td class="cell1"><a id="_27" href="#_27" data-line-number="27"></a></td> |
338 |
<td class="cell2"><pre> register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;</pre></td> |
339 |
</tr> |
340 |
<tr><td class="cell1"><a id="_28" href="#_28" data-line-number="28"></a></td> |
341 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- register ush scan_start = *(ushf*)scan;</span></pre></td> |
342 |
</tr> |
343 |
<tr><td class="cell1"><a id="_29" href="#_29" data-line-number="29"></a></td> |
344 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- register ush scan_end = *(ushf*)(scan+best_len-1);</span></pre></td> |
345 |
</tr> |
346 |
<tr><td class="cell1"><a id="_30" href="#_30" data-line-number="30"></a></td> |
347 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ register uInt scan_start = *(ushf*)scan;</span></pre></td> |
348 |
</tr> |
349 |
<tr><td class="cell1"><a id="_31" href="#_31" data-line-number="31"></a></td> |
350 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ register uInt scan_end = *(ushf*)(scan+best_len-1);</span></pre></td> |
351 |
</tr> |
352 |
<tr><td class="cell1"><a id="_32" href="#_32" data-line-number="32"></a></td> |
353 |
<td class="cell2"><pre> #else</pre></td> |
354 |
</tr> |
355 |
<tr><td class="cell1"><a id="_33" href="#_33" data-line-number="33"></a></td> |
356 |
<td class="cell2"><pre> register Bytef *strend = s->window + s->strstart + MAX_MATCH;</pre></td> |
357 |
</tr> |
358 |
<tr><td class="cell1"><a id="_34" href="#_34" data-line-number="34"></a></td> |
359 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- register Byte scan_end1 = scan[best_len-1];</span></pre></td> |
360 |
</tr> |
361 |
<tr><td class="cell1"><a id="_35" href="#_35" data-line-number="35"></a></td> |
362 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- register Byte scan_end = scan[best_len];</span></pre></td> |
363 |
</tr> |
364 |
<tr><td class="cell1"><a id="_36" href="#_36" data-line-number="36"></a></td> |
365 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ register uInt scan_end1 = scan[best_len-1];</span></pre></td> |
366 |
</tr> |
367 |
<tr><td class="cell1"><a id="_37" href="#_37" data-line-number="37"></a></td> |
368 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ register uInt scan_end = scan[best_len];</span></pre></td> |
369 |
</tr> |
370 |
<tr><td class="cell1"><a id="_38" href="#_38" data-line-number="38"></a></td> |
371 |
<td class="cell2"><pre> #endif</pre></td> |
372 |
</tr> |
373 |
<tr><td class="cell1"><a id="_39" href="#_39" data-line-number="39"></a></td> |
374 |
<td class="cell2"><pre> </pre></td> |
375 |
</tr> |
376 |
<tr><td class="cell1"><a id="_40" href="#_40" data-line-number="40"></a></td> |
377 |
<td class="cell2"><pre> /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.</pre></td> |
378 |
</tr> |
379 |
</table></div> |
380 |
</div> |
381 |
</div> <!-- end .card--> |
382 |
|
383 |
|
384 |
</div> |
385 |
</div> |
386 |
|
387 |
<div class="footer p-t-1 p-b-1"> |
388 |
<div class="container"> |
389 |
<p class="text-muted credit"> |
390 |
Copyright © 2014-2018 Red Hat |
391 |
<a href="https://pagure.io/pagure">pagure</a> — |
392 |
4.0.4 — <a href="https://docs.pagure.org/pagure/usage/index.html">Documentation</a> |
393 |
</p> |
394 |
<p><a href="/ssh_info">SSH Hostkey/Fingerprint</a></p> |
395 |
</div> |
396 |
</div> |
397 |
|
398 |
<script type="text/javascript" |
399 |
src="/static/vendor/jquery/jquery.min.js"> |
400 |
</script> |
401 |
<script type="text/javascript" |
402 |
src="/static/vendor/jquery-ui/jquery-ui.min.js"> |
403 |
</script> |
404 |
<script type="text/javascript" |
405 |
src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.js"> |
406 |
</script> |
407 |
<script type="text/javascript"> |
408 |
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'}); |
409 |
</script> |
410 |
|
411 |
<script type="text/javascript" |
412 |
src="/static/vendor/lazyload/lazyload.min.js"> |
413 |
</script> |
414 |
<script type="text/javascript"> |
415 |
window.addEventListener("load", function(event) { |
416 |
lazyload(); |
417 |
}); |
418 |
|
419 |
$(document).ready(function() { |
420 |
var currentWatchStatusButton = $('#unwatch_button'); |
421 |
currentWatchStatusButton.prepend('<span class="oi" data-glyph="circle-check" style="padding-right:0.5em"></span>'); |
422 |
$('.watch-menu a').not(currentWatchStatusButton).css('padding-left', '2.85em'); |
423 |
|
424 |
$(".watch-menu a").click(function(){ |
425 |
var selectedValue = $(this).attr('id'); |
426 |
var watchProjectForm = $("#watch_project"); |
427 |
var action = watchProjectForm.attr('action'); |
428 |
|
429 |
if (selectedValue === "watch_issues_button") { |
430 |
action = action.replace('/settings/0', '/settings/1'); |
431 |
} else if (selectedValue === "watch_commits_button") { |
432 |
action = action.replace('/settings/0', '/settings/2'); |
433 |
} else if (selectedValue === "watch_issues_commits_button") { |
434 |
action = action.replace('/settings/0', '/settings/3'); |
435 |
} else if (selectedValue === "reset_button") { |
436 |
action = action.replace('/settings/0', '/settings/-1'); |
437 |
} |
438 |
|
439 |
watchProjectForm.attr('action', action); |
440 |
watchProjectForm.submit(); |
441 |
}); |
442 |
}); |
443 |
</script> |
444 |
|
445 |
<script type="text/javascript"> |
446 |
function updateHighlight() { |
447 |
var cls = "highlighted-line"; |
448 |
$('.' + cls).removeClass(cls) |
449 |
if (location.hash !== '') { |
450 |
var lines = location.hash.substr(2).split('-').map(function (x) { return parseInt(x, 10) }); |
451 |
for (var i = lines[lines.length - 1]; i >= lines[0]; i--) { |
452 |
$('[data-line-number=' + i + ']').closest('tr').addClass(cls); |
453 |
} |
454 |
return lines; |
455 |
} |
456 |
return []; |
457 |
} |
458 |
$(document).ready(function () { |
459 |
var lines = updateHighlight(); |
460 |
if (lines) { |
461 |
var offset = $('[data-line-number=' + lines[0] + ']').offset().top; |
462 |
$('html, body').animate({scrollTop: offset}, 200); |
463 |
} |
464 |
}); |
465 |
$(window).on('hashchange', updateHighlight); |
466 |
var selected = []; |
467 |
$("[data-line-number]").click(function (ev) { |
468 |
var line = $(this).attr('data-line-number'); |
469 |
if (ev.shiftKey) { |
470 |
selected = selected.slice(-1).concat(line); |
471 |
} else { |
472 |
selected = [line]; |
473 |
} |
474 |
|
475 |
var hash = '_' + selected[0]; |
476 |
if (selected.length === 2) { |
477 |
hash = '_' + Math.min(selected[0], selected[1]) + '-' + Math.max(selected[0], selected[1]); |
478 |
} |
479 |
window.location.hash = hash; |
480 |
return false; |
481 |
}); |
482 |
</script> |
483 |
|
484 |
|
485 |
</body> |
486 |
</html> |