PageSourceSearch

https://www.newmexicopbs.org/wp-content/themes/bb-theme-child/protrack_schedulebar.js?ver=1790908562

js newmexicopbs.org collected 2026-10-02 03:04:01 UTC 2,332 bytes, 93 lines download raw bytes

1/*
2protrack_schedulebar.js
304 oct 2021
41uffakind.com
5*/
6
7function schedulebar_json_success(json) {
8	
9	var buff = '';
10	var colclass = 'col-md-4';
11	if ( json['data']['title_next'] == '' )
12		colclass = 'col-md-6';
13	
14	buff += '<div id="protrack_schedulebar">';
15		buff += '<div class="row" id="protrack_schedulebar_row">';
16		
17			buff += '<div class="prog_col prog_col_onair fl-col '+colclass+'">';
18				buff += 'ON THE AIR ';
19				buff += json['data']['channel'];
20				buff += ': ';
21				buff += '<span class="prog_title">'+json['data']['title_now']+'</span>';
22			buff += '</div>';
23			
24			if ( json['data']['title_next'] != '' )
25			{
26				buff += '<div class="prog_col prog_col_next fl-col '+colclass+'">';
27					buff += 'UP NEXT AT ';
28					buff += json['data']['title_next_s'];
29					buff += ': ';
30					buff += '<span class="prog_title">'+json['data']['title_next']+'</span>';
31				buff += '</div>';
32			}
33		
34			buff += '<div class="prog_col prog_col_tvsched fl-col '+colclass+'">';
35				buff += '<a href="https://schedule.newmexicopbs.org">';
36				buff += 'VIEW TV SCHEDULE';
37				buff += '&nbsp;&nbsp;<span class="fas fa-caret-right fa-lg arr"></span>';
38				buff += '</a>';
39			buff += '</div>';
40		
41		buff += '</div>';
42	buff += '</div>';
43
44	
45/*
46
47<header class="fl-builder-content fl-builder-content-37075 fl-builder-global-templates-locked" 
48*/
49
50	jQuery(buff).prependTo('header.fl-builder-content');
51	jQuery(buff).prependTo('header.fl-page-header'); //.fl-page-header-wrap;
52	
53	//FLBuilderLayout.init();
54	//jQuery('#protrack_schedulebar').fadeIn('slow');
55	
56}
57
58
59function add_protrack_schedulebar() {
60	
61	jQuery.ajax({
62		url: 'https://schedule.newmexicopbs.org/schedulebar_ext_json.php'
63		,data: {}
64		,type: 'POST'
65		,dataType: 'json'
66		,success: schedulebar_json_success
67	});
68	
69		/*
70		$.ajax({
71			url: '../json.php'
72			,data: data
73			,type: type
74			,dataType: 'json'
75			,success: function( json ) {
76				alert( "The request is a success!" );
77			}
78			,error: function( xhr, status, errorThrown ) {
79				alert( "Sorry, there was a problem!" );
80		        console.log( "Error: " + errorThrown );
81		        console.log( "Status: " + status );
82		        console.dir( xhr );
83			}
84			,complete: function( xhr, status ) {
85		        alert( "The request is complete!" );
86		    }
87		});
88		*/
89}
90
91jQuery( document ).ready(function() {
92	add_protrack_schedulebar();
93});

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.