PageSourceSearch

https://deltaelectronicsindia.com/js/pages/downloadCenter.js?v=20230612

js deltaelectronicsindia.com collected 2026-09-26 02:36:32 UTC 28,525 bytes, 604 lines download raw bytes

1function myFunction(x) {
2  if (x.matches) { // If media query matches
3      $('h2.name').click(function () {
4          $(this).next('div.conditionBox').toggleClass('show');
5          if ($(this).next('.conditionBox').hasClass('show')) {
6              $(this).children('strong').attr('uk-icon', 'minus');
7          } else {
8              $(this).children('strong').attr('uk-icon', 'plus');
9          }
10      });
11  } else {
12   return false;
13  }
14}
15
16var x = window.matchMedia("(max-width: 767px)");
17myFunction(x); // Call listener function at run time
18x.addListener(myFunction); // Attach listener function on state changes
19
20$(document).ready(function () {
21    var lan = "zh-TW";
22    var sort_expr = "cdate";
23    var sort_dir = "DESC";
24    if ($("#hidlang").val() !== "") {
25        lan = $("#hidlang").val();
26    }
27
28    //if ($("#hidsort_expr").val() !== "") {
29    //    sort_expr = $("#hidsort_expr").val();
30    //}
31    //if ($("#hidsort_dir").val() !== "") {
32    //    sort_dir = $("#hidsort_dir").val();
33    //}
34    if ($("#hidDownLoadCenter").val() != "") {
35        loaddowncenterdata(1, sort_expr, sort_dir, "first");
36        if ($("#hidDownloadSeries").val() !== "") {
37            if ($("#Series").val() != "") {
38                loaddowncenterdata(1, sort_expr, sort_dir, "1");
39            }
40        }
41    }
42    
43    $('#version').on('change', function (e) {
44        e.preventDefault();
45        //console.log("version");
46        loaddowncenterdata(1, sort_expr, sort_dir, "version");
47       
48    });
49
50    $('#typeid').on('change', function (e) {
51        e.preventDefault();
52      //  console.log("typeid");
53        loaddowncenterdata(1, sort_expr, sort_dir, "1");
54
55    });
56
57    $('#Series').on('change', function (e) {
58        e.preventDefault();
59      //  console.log("typeid");
60        loaddowncenterdata(1, sort_expr, sort_dir, "1");
61
62    });
63    $('#Country').on('change', function (e) {
64        e.preventDefault();
65        loaddowncenterdata(1, sort_expr, sort_dir, "1");
66
67    });
68
69    
70    //Load DwonloadCenter Data
71    function loaddowncenterdata(page, sort_expr, sort_dir, version_flag, search_type) {
72
73        var sorttext = "";
74        var oursrt = "";
75        var dropdown1 = "";
76        var dropdown2 = "";
77        var dropdown3 = "";
78        var typeid = "";
79        var q = "";
80        var country = "";
81        $("#hidshow_type").val('list');
82
83
84        if ($("#hidQuickDownload_CateID").val() === "##" || $("#hidQuickDownload_CateID").val() === "") {
85            if ($("#ascxCID").val() === "08") {
86                dropdown2 = "2101";
87            } else {
88                dropdown2 = $("#ascxCID").val();
89            }
90        } else {
91            dropdown2 = $("#hidQuickDownload_CateID").val();
92        }
93
94
95        if ($("#Series").val() != undefined) {
96            dropdown3 = $("#Series").val();
97        }
98
99       
100       
101
102        version = $("#version").val();
103        typeid = $("#typeid").val();
104        if ($("#Country").val() != undefined) {
105            country = $("#Country").val();
106        }
107        //typeid = "1,2,3,4,5,8";
108
109        var search_url = "downcenterdata_min_en.ashx";
110        if (lan === "en-US") {
111            search_url = "downcenterdata_min_en.ashx";
112        }else if (lan === "zh-TW") {
113            search_url = "downcenterdata_min.ashx";
114        } else if (lan === "zh-CN") {
115            search_url = "downcenterdata_min_China.ashx";
116        }
117
118        var hostlink = "https://www.deltaww.com/";
119        if (lan === "zh-CN") {
120            hostlink = "https://downloadcenter.delta-china.com.cn/";
121        }
122        var lan_tmp = lan;
123        if (lan.toLowerCase() == "en-us" || lan.toLowerCase() == "zh-tw" || lan.toLowerCase() == "zh-cn") {
124
125        } else {
126            lan_tmp = "en-US";
127        }
128
129        // 2026/08/28 ITSEC-5196 檔案下載連結改直連新版下載中心,不再走 downloadcenter.deltaww.com 的 301 轉址
130        // zh-CN 下載中心尚未搬站,維持原本 downloadCenterCounter.aspx 網址
131        function filelink(id, docPath) {
132            if (lan_tmp === "zh-CN") {
133                return hostlink + "downloadCenterCounter.aspx?DID=" + id + "&DocPath=" + docPath + "&hl=" + lan_tmp;
134            }
135            return hostlink + lan_tmp + "/service-support/download-center/terms-of-use/verify?did=" + id + "&docPath=" + docPath;
136        }
137        $.ajax({
138            type: 'post', 
139            url: '/api/' + search_url,
140            data: "sort_expr=" + sort_expr + "&sort_dir=" + sort_dir + "&q=" + encodeURIComponent(q) + "&page=" + page + "&lan=" + lan_tmp + "&typeid=" + typeid + "&dropdown1=" + encodeURIComponent(dropdown1) + "&dropdown2=" + encodeURIComponent(dropdown2) + "&dropdown3=" + encodeURIComponent(dropdown3) + "&version=" + version + "&country=" + country + "&search_type=&sourcelang=" + lan.toLowerCase(), //為 Array
141            dataType: 'json',
142            async: false,
143            success: function (data) {
144
145                //type clear
146
147                $("#pager").html(data.pager);
148                //if (search_type !== "first") {
149                    $.each(data.data, function (i, el) {
150                        oursrt += "<div class=\"dlInner\" uk-scrollspy=\"cls: uk-animation-slide-bottom; delay: 0; repeat: false\">";
151
152                        if (data.data[i].Title !== null) {
153                            oursrt += "<h2>" + data.data[i].Title + "</h2>";
154                        }
155
156                        if (data.data[i].Description !== null) {
157                            var Description_name = data.data[i].Description_name;
158                            if (Description_name === null || Description_name === "說明" || Description_name === "说明" || Description_name === "Description" || Description_name === "Explanation") {
159                                Description_name = "";
160                            } else {
161                                Description_name = Description_name + ":";
162                            }
163                            oursrt += "<h3>" + Description_name + data.data[i].Description + "</h3>";
164                        }
165                        var Category_Name = "";
166
167                        if (lan === "zh-TW") {
168                            Category_Name = "類別";
169                        } else {
170                            Category_Name = "Category";
171                        }
172
173                        if (data.data[i].CateName !== "") {
174                            oursrt += "<p class=\"info category\"><strong>" + Category_Name + ":</strong><span>" + data.data[i].CateName;
175
176                            if (data.data[i].SubCateName !== "") {
177                                oursrt += " / " + data.data[i].SubCateName;
178                            }
179                            oursrt += "</span></p>";
180                        }
181                        //Data Type
182                        if (data.data[i].TypeName !== "") {
183                            if (data.data[i].TypeName !== "") {
184                                var TypeName_name = $("#hidTypeName_name").val();
185                                oursrt += "<p class=\"info\"><strong>" + TypeName_name + ":</strong>" + data.data[i].TypeName + "</p>";
186                            }
187                        }
188                        if (data.data[i].Version !== null) {
189                            if (data.data[i].Version !== "") {
190                                var Version_name = data.data[i].Version_name;
191                                if (Version_name === null) {
192                                    Version_name = $("#hidLanguagetext").val();
193                                }
194                                oursrt += "<p class=\"info\"><strong>" + Version_name + ":</strong>" + data.data[i].Version + "</p>";
195                            }
196                        }
197
198                        if (data.data[i].Pub_Date !== null) {
199
200                            var Pub_Date_name = data.data[i].Pub_Date_name;
201                            oursrt += "<p class=\"info\"> ";
202
203                            oursrt += " <strong>" + data.data[i].Pub_Date_name + ":</strong>";
204                            oursrt += moment(data.data[i].Pub_Date).format("YYYY-MM-DD"); + "</p>";
205                        }
206                        if (data.data[i].Doc_No !== null) {
207                            if (data.data[i].Doc_No !== "") {
208                                oursrt += "<p class=\"info\"><strong>" + $("#hidDocCodetext").val() + ":</strong>" + data.data[i].Doc_No + "</p>";
209                            }
210                        }
211                        if (data.data[i].OS !== null) {
212                            if (data.data[i].OS !== "") {
213                                oursrt += "<p class=\"info\"><strong>" + data.data[i].OS_name + ":</strong>" + data.data[i].OS + "</p>";
214                            }
215                        }
216                        if (data.data[i].Comment !== null) {
217                            if (data.data[i].Comment !== "") {
218                                oursrt += "<p class=\"info\"><strong>" + data.data[i].Comment_name + ":</strong>" + data.data[i].Comment + "</p>";
219                            }
220                        }
221                        if (data.data[i].Device !== null) {
222                            if (data.data[i].Device !== "") {
223                                var Device_name = data.data[i].Device_name;
224                                oursrt += "<p class=\"info\"><strong>" + Device_name + ":</strong>" + data.data[i].Device + "</p>";
225                            }
226                        }
227
228                        oursrt += "<ul class=\"dlFile\">";
229                        if (data.data[i].Doc_Path !== null) {
230                            if (data.data[i].Doc_Path !== "#" && data.data[i].Doc_Path !== "##") {
231                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path) + "\"><a href=\"" + filelink(data.data[i].ID, "1") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name;
232                                if (data.data[i].Doc_Size !== null) {
233                                    oursrt += "(" + data.data[i].Doc_Size + ")";
234                                }
235                                oursrt += "</strong></a></li>";
236
237                            }
238                        }
239
240                        if (data.data[i].Doc_Path2 !== null) {
241                            if (data.data[i].Doc_Path2 !== "#" && data.data[i].Doc_Path2 !== "##") {
242                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path2) + "\"><a href=\"" + filelink(data.data[i].ID, "2") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name2;
243                                if (data.data[i].Doc_Size2 !== null) {
244                                    oursrt += "(" + data.data[i].Doc_Size2 + ")";
245                                }
246                                oursrt += "</strong></a></li>";
247
248                            }
249                        }
250                        if (data.data[i].Doc_Path3 !== null) {
251                            if (data.data[i].Doc_Path3 !== "#" && data.data[i].Doc_Path3 !== "##") {
252                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path3) + "\"><a href=\"" + filelink(data.data[i].ID, "3") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name3;
253                                if (data.data[i].Doc_Size3 !== null) {
254                                    oursrt += "(" + data.data[i].Doc_Size3 + ")";
255                                }
256                                oursrt += "</strong></a></li>";
257                            }
258                        }
259                        if (data.data[i].Doc_Path4 !== null) {
260                            if (data.data[i].Doc_Path4 !== "#" && data.data[i].Doc_Path4 !== "##") {
261                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path4) + "\"><a href=\"" + filelink(data.data[i].ID, "4") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name4;
262                                if (data.data[i].Doc_Size4 !== null) {
263                                    oursrt += "(" + data.data[i].Doc_Size4 + ")";
264                                }
265                                oursrt += "</strong></a></li>";
266                            }
267                        }
268                        if (data.data[i].Doc_Path5 !== null) {
269                            if (data.data[i].Doc_Path5 !== "#" && data.data[i].Doc_Path5 !== "##") {
270                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path5) + "\"><a href=\"" + filelink(data.data[i].ID, "5") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name5;
271                                if (data.data[i].Doc_Size4 !== null) {
272                                    oursrt += "(" + data.data[i].Doc_Size4 + ")";
273                                }
274                                oursrt += "</strong></a></li>";
275                            }
276                        }
277                        if (data.data[i].Doc_Path6 !== null) {
278                            if (data.data[i].Doc_Path6 !== "#" && data.data[i].Doc_Path6 !== "##") {
279                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path6) + "\"><a href=\"" + filelink(data.data[i].ID, "6") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name6;
280                                if (data.data[i].Doc_Size6 !== null) {
281                                    oursrt += "(" + data.data[i].Doc_Size6 + ")";
282                                }
283                                oursrt += "</strong></a></li>";
284                            }
285                        }
286                        if (data.data[i].Doc_Path7 !== null) {
287                            if (data.data[i].Doc_Path7 !== "#" && data.data[i].Doc_Path7 !== "##") {
288                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path7) + "\"><a href=\"" + filelink(data.data[i].ID, "7") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name7;
289                                if (data.data[i].Doc_Size7 !== null) {
290                                    oursrt += "(" + data.data[i].Doc_Size7 + ")";
291                                }
292                                oursrt += "</strong></a></li>";
293                            }
294                        }
295                        if (data.data[i].Doc_Path8 !== null) {
296                            if (data.data[i].Doc_Path8 !== "#" && data.data[i].Doc_Path8 !== "##") {
297                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path8) + "\"><a href=\"" + filelink(data.data[i].ID, "8") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name8;
298                                if (data.data[i].Doc_Size8 !== null) {
299                                    oursrt += "(" + data.data[i].Doc_Size8 + ")";
300                                }
301                                oursrt += "</strong></a></li>";
302                            }
303                        }
304                        if (data.data[i].Doc_Path9 !== null) {
305                            if (data.data[i].Doc_Path9 !== "#" && data.data[i].Doc_Path9 !== "##") {
306                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path9) + "\"><a href=\"" + filelink(data.data[i].ID, "9") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name9;
307                                if (data.data[i].Doc_Size9 !== null) {
308                                    oursrt += "(" + data.data[i].Doc_Size9 + ")";
309                                }
310                                oursrt += "</strong></a></li>";
311                            }
312                        }
313                        if (data.data[i].Doc_Path10 !== null) {
314                            if (data.data[i].Doc_Path10 !== "#" && data.data[i].Doc_Path10 !== "##") {
315                                oursrt += "    <li class=\"" + fileextension(data.data[i].Doc_Path10) + "\"><a href=\"" + filelink(data.data[i].ID, "10") + "\" target=\"_blank\"><strong>" + data.data[i].Doc_Name10;
316                                if (data.data[i].Doc_Size10 !== null) {
317                                    oursrt += "(" + data.data[i].Doc_Size10 + ")";
318                                }
319                                oursrt += "</strong></a></li>";
320                            }
321                        }
322                        oursrt += "</ul>";
323                        oursrt += "</div>";
324                    });
325                //}
326                if (oursrt === "") {
327                    oursrt = "<h2 class=\"warning\" uk-scrollspy=\"cls: uk-animation-sli
327de-bottom; delay: 0; repeat: false\">" + $("#hidNoResult1").val() + "\</h2><p class=\"warning\" uk-scrollspy=\"cls: uk-animation-slide-bottom; delay: 0; repeat: false\">" + $("#hidNoResult2").val() + "</p>";
328                }
329               
330                $("#list-wrapper").html(sorttext + oursrt);
331             
332              
333                outsrt = "";
334                if (version_flag === "first") {
335
336                    if (lan === "zh-TW") {
337                        outsrt = "<option value=\"\" >請選擇</option>";
338                    } else if (lan === "zh-CN") {
339                        outsrt = "<option value=\"\" >请选择</option>";
340                    } else if (lan === "de-DE") {
341                        outsrt = "<option value=\"\" >Bitte wählen</option>";
342                    } else {
343                        outsrt = "<option value=\"\" >Please Select</option>";
344                    }
345
346
347                    $.each(data.version, function (i, el) {
348
349                        outsrt += "<option value=\"" + data.version[i].Version_ID + "\" >" + data.version[i].Version_NAME + "</option>";
350
351                    });
352                    $("#version").html(outsrt);
353
354                    //type
355
356                    if (lan === "zh-TW") {
357                        outsrt = "<option value=\"\" >請選擇</option>";
358                    } else if (lan === "zh-CN") {
359                        outsrt = "<option value=\"\" >请选择</option>";
360                    } else if (lan === "de-DE") {
361                        outsrt = "<option value=\"\" >Bitte wählen</option>";
362                    } else {
363                        outsrt = "<option value=\"\" >Please Select</option>";
364                    }
365                    $.each(data.Typeid, function (i, el) {
366
367                        outsrt += "<option value=\"" + data.Typeid[i].Typeid + "\" >" + data.Typeid[i].Typename + "</option>";
368
369                    });
370
371                    $("#typeid").html(outsrt);
372
373                    //Series
374
375                    if (lan === "zh-TW") {
376                        outsrt = "<option value=\"\" >請選擇</option>";
377                    } else if (lan === "zh-CN") {
378                        outsrt = "<option value=\"\" >请选择</option>";
379                    } else if (lan === "de-DE") {
380                        outsrt = "<option value=\"\" >Bitte wählen</option>";
381                    } else {
382                        outsrt = "<option value=\"\" >Please Select</option>";
383                    }
384
385                    if (data.Series.length > 0) {
386                        $("#SeriesDIV").show();
387
388                        //$("#QDocumenttext").removeClass("twoColumns");
389                        //$("#QLanguagetext").removeClass("twoColumns");
390                    } else {
391                        $("#SeriesDIV").hide();
392                        //$("#QDocumenttext").addClass("twoColumns");
393                       // $("#QLanguagetext").addClass("twoColumns");
394                        // $("#DownloadCenterLinkDIV").show();
395                    }
396
397                    // 获取当前值
398                    var currentValue = $("#hidDownloadSeries").val();
399
400                    // 遍历数据系列
401                    $.each(data.Series, function (i, el) {
402                        // 获取当前系列
403                        var seriesValue = data.Series[i].Series;
404
405                        // 优先检查完全匹配
406                        if (currentValue === seriesValue) {
407                            outsrt += "<option value=\"" + seriesValue + "\" selected>" + seriesValue + "</option>";
408                        }
409                        // 检查部分匹配
410                        else if (currentValue.includes(seriesValue)) {
411                            outsrt += "<option value=\"" + seriesValue + "\" selected>" + seriesValue + "</option>";
412                        }
413                        // 检查部分匹配
414                        else if (seriesValue.includes(currentValue)) {
415                            outsrt += "<option value=\"" + seriesValue + "\" selected>" + seriesValue + "</option>";
416                        }
417                        // 其他情况
418                        else {
419                            outsrt += "<option value=\"" + seriesValue + "\">" + seriesValue + "</option>";
420                        }
421                    });
422
423                    
424
425
426                        //if ($("#hidDownloadSeries").val() == data.Series[i].Series) {
427                        //    outsrt += "<option value=\"" + data.Series[i].Series + "\" selected>" + data.Series[i].Series + "</option>";
428                        //} else {
429                        //    outsrt += "<option value=\"" + data.Series[i].Series + "\" >" + data.Series[i].Series + "</option>";
430                        //}
431
432                   
433                    $("#Series").html(outsrt);
434                    
435                    if (data.country && data.country.length > 0) {
436                        $("#CountryDIV").show();
437                     
438                     
439                    } else {
440                        $("#CountryDIV").hide();
441                    
442                    
443                    }
444                   
445                    if (lan === "zh-TW") {
446                        outsrt = "<option value=\"\" >請選擇</option>";
447                    } else if (lan === "zh-CN") {
448                        outsrt = "<option value=\"\" >请选择</option>";
449                    } else if (lan === "de-DE") {
450                        outsrt = "<option value=\"\" >Bitte wählen</option>";
451                    } else {
452                        outsrt = "<option value=\"\" >Please Select</option>";
453                    }
454                    $.each(data.country, function (i, el) {
455                        outsrt += "<option value=\"" + data.country[i].Country + "\" >" + data.country[i].Country + "</option>";
456                    });
457                    $("#Country").html(outsrt);
458                    
459                 
460                } else if (version_flag === "version"){
461
462                    if (lan === "zh-TW") {
463                        outsrt = "<option value=\"\" >請選擇</option>";
464                    } else if (lan === "zh-CN") {
465                        outsrt = "<option value=\"\" >请选择</option>";
466                    } else if (lan === "de-DE") {
467                        outsrt = "<option value=\"\" >Bitte wählen</option>";
468                    } else {
469                        outsrt = "<option value=\"\" >Please Select</option>";
470                    }
471                    $.each(data.Typeid, function (i, el) {
472
473                        outsrt += "<option value=\"" + data.Typeid[i].Typeid + "\" >" + data.Typeid[i].Typename + "</option>";
474
475                    });
476
477                    $("#typeid").html(outsrt);
478                    $("#typeid").val(typeid);
479                } else {
480                    if (lan === "zh-TW") {
481                        outsrt = "<option value=\"\" >請選擇</option>";
482                    } else if (lan === "zh-CN") {
483                        outsrt = "<option value=\"\" >请选择</option>";
484                    } else if (lan === "de-DE") {
485                        outsrt = "<option value=\"\" >Bitte wählen</option>";
486                    } else {
487                        outsrt = "<option value=\"\" >Please Select</option>";
488                    }
489                    $.each(data.Typeid, function (i, el) {
490
491                        outsrt += "<option value=\"" + data.Typeid[i].Typeid + "\" >" + data.Typeid[i].Typename + "</option>";
492
493                    });
494
495                    $("#typeid").html(outsrt);
496                    $("#typeid").val(typeid);
497
498
499                    if (lan === "zh-TW") {
500                        outsrt = "<option value=\"\" >請選擇</option>";
501                    } else if (lan === "zh-CN") {
502                        outsrt = "<option value=\"\" >请选择</option>";
503                    } else if (lan === "de-DE") {
504                        outsrt = "<option value=\"\" >Bitte wählen</option>";
505                    } else {
506                        outsrt = "<option value=\"\" >Please Select</option>";
507                    }
508
509
510                    $.each(data.version, function (i, el) {
511
512                        outsrt += "<option value=\"" + data.version[i].Version_ID + "\" >" + data.version[i].Version_NAME + "</option>";
513
514                    });
515                    $("#version").html(outsrt);
516                    $("#version").val(version);
517
518                }
519
520
521                if ($("#DropDownList1").val() !== "" || $("#search").val() !== "") {
522                    var pushStatesrt = "";
523                    if ($("#DropDownList1").val() !== "") {
524                        pushStatesrt += "&CID=" + $("#DropDownList1").val();
525                    }
526                    if ($("#DropDownList2").val() !== "") {
527                        pushStatesrt += "&itemID=" + $("#DropDownList2").val();
528                    }
529                    if ($("#DropDownList3").val() !== "") {
530                        pushStatesrt += "&downloadID=" + $("#DropDownList3").val();
531                    }
532
533                    if (typeid !== "") {
534                        pushStatesrt += "&dataType=" + typeid;
535                    }
536                    if (version !== "") {
537                        pushStatesrt += "&version=" + version;
538                    }
539                    if (q !== "") {
540                        pushStatesrt += "&q=" + encodeURIComponent(q);
541                    }
542                    if (sort_expr !== "") {
543                        pushStatesrt += "&sort_expr=" + sort_expr;
544                    }
545                    if (sort_dir !== "") {
546                        pushStatesrt += "&sort_dir=" + sort_dir;
547                    }
548                   
549                }
550
551            },
552            error: function (XMLHttpRequest, textStatus, errorThrown) {
553            },
554            complete: function (XMLHttpRequest, status) {
555                //  $('body').loading('stop');
556            }, timeout: 30000 //10 second timeout 
557        });
558
559
560
561    }
562
563
564
565    $(document).on("click", ".pager_link", function () {
566        //e.preventDefault();
567        var page = $(this).data("page");
568
569        loaddowncenterdata(page, sort_expr, sort_dir, "0", "");
570        //$('html,body').animate({ scrollTop: $('#form1').offset().top }, 800);
571    });
572
573    //Rese tall
574    $(document).on("click", "#Resetall", function () {
575        $("#version").val('');
576        $("#typeid").val('');
577        $("#Series").val('');
578        $("#version").trigger("change");
579    });
580
581   
582
583
584    function fileextension(file) {
585        var extension = ".zip";
586        var extension_show = "zip";
587        if (file !== "") {
588            extension = file.substr((file.lastIndexOf('.') + 1));
589            
590            switch (extension) {
591                case 'pdf':
592                    extension_show = "pdf";
593                    break;
594                case 'zip':
595                    extension_show = "zip";
596                    break;
597            }
598        }
599        return extension_show;
600    }
601
602
603
604});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.