featured-image

Watch Live: Kings at Trail Blazers

Kings at Trail Blazers begins at 7 p.m. PT on 10/12 and is available to fans within a 75-mile radius of Golden 1 Center.

To stream within 75-mile radius of the arena, please ensure your location settings are on and device's ad block is disabled. In the event the stream doesn't appear, please refresh your browser.

Latest from Kings Galleries:

(function($) {

$( document ).ready(function() { //BEGIN GALLERY

//BEGIN META ELEMENT REPLACEMENT

var strVar=""; strVar += ""; strVar += "

    "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += " "; strVar += "";

    $('meta#gallery').replaceWith(strVar);

    //END META ELEMENT REPLACEMENT

    //BEGIN AJAX CALL

    jQuery(document).ready(function() { jQuery.ajax({ type: 'GET', url: 'https://sacramentokingsphotos.com/data/miniJson.json', timeout: 9999, dataType: 'json', success: function(returnData) { console.log('successfully fetched JSON data');

    var index = 0 console.log('returnData[' + index + '] = ' + returnData[45]); console.log('gallery date: ' + returnData[index].date); console.log('gallery title: ' + returnData[index].title); console.log('gallery url: ' + returnData[index].url); console.log('gallery images: ' + returnData[index].images); console.log('gallery publishTime: ' + returnData[index].publishTime);

    var date = Date.parse(returnData[index].date).toString('dddd, MMMM d, yyyy');

    $('h1#galleryTitle').text(returnData[index].title); $('span#date').text(date); $('span#credit').text(returnData[index].credit);

    console.log('images length = ' + returnData[index].images.length);

    $.each(returnData[index].images, function(index, image) { var itemHTML = [ '

  • ' ].join(''); $('ul#light-slider').append(itemHTML); });

    //BEGIN GALLERY PAGE SCRIPTS //if (document.location.href.indexOf('gallery') != -1 || document.location.href.indexOf('tag') != -1) {

    //lightslider var i = 0; $("#light-slider").lightSlider({ item: 1, loop: true, keyPress: true, pager: false, controls: false, pauseOnHover: true, pause: 7000, speed: 1000, prevHtml: '', nextHtml: '', mode: 'slide', auto: true, adaptiveHeight: true, onAfterSlide: function (el) { var location = 'https://www.nba.com/kings/galleryRegistrar'; i++; $('#galleryBuffer').attr('src', location + '?' + returnData[index].title + '-' + i ); } });

    //Gallery Arrows position replacement $(document).ready(function() { var detach = $('div.lSAction').detach(); $(detach).appendTo('div.lSSlideOuter'); }); //End Gallery Arrows position replacement //} //END GALLERY PAGE SCRIPTS

    }, error: function(xhr, ajaxOptions, thrownError) { console.log('Error fetching JSON data. ---' + 'xhr.status = ' + xhr.status + '; thrownError = ' + thrownError); } }); });

    //END AJAX CALL

    //END GALLERY

    });

    })(jQuery);