PageSourceSearch

https://www.reviewofoptometry.com/PopularContent/js/PopularContentRONews.js?v=3

js reviewofoptometry.com collected 2026-10-02 03:37:22 UTC 2,277 bytes, 73 lines download raw bytes

1var jQueryScriptOutputted = false;
2
3function initJQuery() {
4
5    //if the jQuery object isn't available
6    if (typeof jQuery === 'undefined') {
7
8
9        if (!jQueryScriptOutputted) {
10            //only output the script once..
11            jQueryScriptOutputted = true;
12
13            //output the script (load it from google api)
14            document.write("<scr" + "ipt type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></scr" + "ipt>");            
15        }
16        setTimeout("initJQuery()", 50);
17    } else {
18
19        $(function () {
20            ROGetTopContentsNews();
21        });
22    }
23
24}
25
26initJQuery();
27
28function ROGetTopContentsNews() {
29
30    var returnData = function (data) {
31        if (data.d) {         
32
33            var pcHTML = '';
34
35            $.each(data.d, function () {
36
37                var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
38
39                if (this.Title !== null) {
40                    var cURL = "/news/article/" + this.Slug;
41
42                    var dt = new Date(this.ActiveOn);
43                    var formatted_date = months[dt.getMonth()] + " " + dt.getDate() + ", " + dt.getFullYear();
44
45                    pcHTML = pcHTML + '<div class="item">' +
46                        '<div class="details">' +
47                        '<h2 class="title"><a href="' + cURL + '">' + this.Title + '</a></h2>' +
48                        '<div class="info">' + formatted_date + '</div>' +
49                        '</div>' +
50                        '</div>';
51
52                }
53            });
54
55            $("#PopularContent").append(pcHTML);
56        }
57    };
58
59    $.ajax({
60        type: "GET",
61        contentType: "application/json",
62        dataType: "json",
63        url: "/PopularContent/GetData.asmx/GetTopContentWithPathFiltered?&format=json",
64        data: "daysBack=30&finalCount=5&PubId=18&path='news'",
65        processData: false,
66        success: returnData,
67        error: function (xhr, status, errorThrown) {
68           console.log('Error: ' + status + '  | ' + errorThrown);
69        }        
70
71    });
72
73} // Get Top Targets List

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.