PageSourceSearch

https://www.justfood.tv/js/2vDefualt.js

js justfood.tv collected 2026-09-25 05:50:28 UTC 1,575 bytes, 57 lines download raw bytes

1//START SEARCH
2function goToPage(id) {
3
4    var node = document.getElementById(id);
5
6    // Check to see if valid node and if node is a SELECT form control
7
8    if (node.tagName == "SELECT" && node.options[node.selectedIndex].value != 0) {
9
10        // Go to web page defined by the VALUE attribute of the OPTION element
11
12        window.location.href = node.options[node.selectedIndex].value;
13
14    } // endif
15
16
17}
18
19
20function selectRecipe(param) {
21
22    if (param !== "") {
23
24        $.get("/json/search.aspx?id=" + param, function (data) {
25
26            data = data.replace("<pre>", "").replace("</pre>", "").replace("\n", "");
27            identity = jQuery.parseJSON(data);
28
29            var s = "";
30
31            for (i = 0; i < identity.Data.length; i++) {
32
33                s += "<a href='/" + cleanUrl(identity.Data[i].cat_name) + "/" + identity.Data[i].pos_id + "/" + cleanUrl(identity.Data[i].pos_title) + "' class='searchMenu'>" + identity.Data[i].pos_title + "</a>   <div class='sep2' > </div>";
34
35            }
36            s += "";
37            $('.searchreciepe .submenu2').show();
38            $('.searchreciepe .submenu2').html(s);
39        });
40    }
41    else {
42        $('.searchreciepe .submenu2').hide();
43        $('.searchreciepe .submenu2').html("");
44    }
45}
46function leftTxt(txt, length) {
47
48    if (txt.length > length)
49        txt = txt.substr(0, length) + "...";
50    return txt;
51}
52function cleanUrl(txt) {
53    txt = txt.replace(/:/g, "").replace(/ /g, "-").replace("\\", "");
54    return txt;
55}
56
57//END SEARCH

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.