PageSourceSearch

https://www.cdc.gov/spanish/homepage/js/rss-featurefeed-work-safety.js?v=3029

js cdc.gov collected 2026-09-24 05:16:04 UTC 3,681 bytes, 54 lines download raw bytes

1/* Raw JS */
2<!--//
3$.getJSON("https://www2c.cdc.gov/podcasts/feed.asp?feedid=151&maxnumber=200&pagesize=200&format=json&callback=?",
4                function (data) {
5                                //var count_items = 0
6                                var list = $('<ul />');
7                                $('#rss-featurefeed-work-safety').append(list);
8                                $.each(data.entries, function (i, entry) {
9		var category = (entry.categories && entry.categories.length > 0) ? entry.categories[0] : '';
10		var dtx=entry.pubdate.substr(0, 4);
11                                               if (category =="Salud ocupacional") {
12		                                     
13                                                                var newItem = $('<li />');
14                                               
15// If there is an enclosure URL that points to an image then render it.
16                                                var regex = /(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*\.(?:jpe?g|gif|png|tif?f))(?:\?([^#]*))?(?:#(.*))?/gi;
17                                                if (regex.test(entry.enclosureurl)) {
18												var imgz=$('<img class="figure"/>').attr('src', entry.enclosureurl)
19                                                .attr('alt', entry.title);	
20												var divx=$('<div class="item-image">').html(imgz)	;
21			var aaa = $('<a  />').html(divx);
22			aaa.attr("href", entry.link);							newItem.append(aaa);		}
23  //var aa = $('<div class="item-title" />').html("Read The Latest Feature: " ); 			             //var a = $('<br /><a />').html(entry.title);
24                                                             //   a.attr("href", entry.link);
25										var aa = $('<div  class="item-title" />').html("" ); 			             
26                   var a = $('<a />').html(entry.title);
27                                                                a.attr("href", entry.link);							aa.append(a);
28                                                      newItem.append(aa);
29												//newItem.append(a);
30                                                                var d = new Date();
31                                                                if (isNaN(Date.parse(entry.pubdate))) {
32                                                                d.setTime(Date.parse(entry.pubdate.substr(5, 2) + '/' + entry.pubdate.substr(8, 2) + '/' + entry.pubdate.substr(0, 4) + ' ' +
33                                                                entry.pubdate.substr(11, 5)));
34                                                } else {
35                                                                d.setTime(Date.parse(entry.pubdate));
36                                                }
37                                               // newItem.append($('<span class="item-pubdate" />').html(d.toLocaleString().replace(':00 ', ' ')));
38                                               newItem.append($('<span class="item-description" />').html(entry.description));
39												
40                                                var aaaa = $('<a />').html("Más &gt;");
41                                                 aaaa.attr("href", entry.link);
42                                                newItem.append($('<p class="more-link" />').html(aaaa));
43										                             //newItem.append($('<em class="icon-angle-right" /></p>'));				
44                                                list.append(newItem);
45                                                return false;
46                                } //end if greater than ##
47								
48								
49								
50								
51                });
52});
53//-->
54/* End Raw JS */

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.