PageSourceSearch

https://www.xn--matrieldentaire-dnb.fr/js/index.js

js xn--matrieldentaire-dnb.fr collected 2026-10-04 03:54:48 UTC 1,913 bytes, 51 lines download raw bytes

1
2var best_str = new Object();
3var new_str = new Object();
4var hot_str = new Object();
5
6function init_rec_data() {
7    best_str[0] = document.getElementById("show_best_area") == null ? '' : document.getElementById("show_best_area").innerHTML;
8    new_str[0] = document.getElementById("show_new_area") == null ? '' : document.getElementById("show_new_area").innerHTML;
9    hot_str[0] = document.getElementById("show_hot_area") == null ? '' : document.getElementById("show_hot_area").innerHTML;
10}
11
12function get_cat_recommend(rec_type, cat_id) {
13    if (rec_type == 1) {
14        if (typeof(best_str[cat_id]) == "string") {
15            document.getElementById("show_best_area").innerHTML = best_str[cat_id];
16            return;
17        }
18    } else if (rec_type == 2) {
19        if (typeof(new_str[cat_id]) == "string") {
20            document.getElementById("show_new_area").innerHTML = new_str[cat_id];
21            return;
22        }
23    } else {
24        if (typeof(hot_str[cat_id]) == "string") {
25            document.getElementById("show_hot_area").innerHTML = hot_str[cat_id];
26            return;
27        }
28    }
29    Ajax.call('index.php?act=cat_rec', 'rec_type=' + rec_type + '&cid=' + cat_id, cat_rec_response, "POST", "TEXT");
30}
31
32function cat_rec_response(result) {
33    var res = result.parseJSON();
34    if (res.type == 1) {
35        var ele = document.getElementById("show_best_area");
36        best_str[res.cat_id] = res.content;
37    } else if (res.type == 2) {
38        var ele = document.getElementById("show_new_area");
39        new_str[res.cat_id] = res.content;
40    } else {
41        var ele = document.getElementById("show_hot_area");
42        hot_str[res.cat_id] = res.content;
43    }
44    ele.innerHTML = res.content;
45}
46
47if (document.all) {
48    window.attachEvent("onload", init_rec_data);
49} else {
50    window.addEventListener("load", init_rec_data, false);
51}

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.