PageSourceSearch

https://www.bc.edu/etc/designs/bc-web/js/emergency.js

js bc.edu collected 2026-10-01 07:44:30 UTC 1,422 bytes, 36 lines download raw bytes

1function processFeed() {
2        // feed to parse
3        var feed = "https://content.getrave.com/rss/bc/channel2";
4        $.ajax(feed, {
5            accepts:{
6                xml:"application/rss+xml"
7            },
8            dataType:"xml",
9            success:function(data) {
10                //console.log("success");
11                $(data).find("item").each(function() {
12                    var el = $(this);
13                    var description = el.find("description").text();
14                    if (description  != 'inactive') {
15                      //console.log("active alert");
16                      $('#emergency_message').text(description);
17                      $('#emergency_bar').addClass('appear');
18                      $('#emergency_bar').css('display','block');
19                      $('#emergency_bar').clone().appendTo('.rave-alert');
20	 				  $('.rave-alert').show();
21                    }
22                    else {
23                      //console.log("inactive alert." + description);
24                      $('#emergency_bar').css('display','none');
25                      $('#emergency_bar').removeClass('appear');
26                      $('#emergency_message').html('');
27                    }
28                });
29            },
30            complete: setTimeout(function() {processFeed()}, 30000),
31            timeout: 2000
32        });
33};
34$(document).ready(function() {
35     processFeed();
36});

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.