Vegas Insider

King’s Mountain, North Carolina Casinos


“);
new_page.attr(“class”, “casino_page_list”);
new_page.attr(“id”, “widget-” + widgetInstance + “-page_list_page-” + currentPage);
$(list).append(new_page);
$.each(data[‘items’], function (i, casino) {
parseData(casino, buffer, seed, new_page);
});
}
}

             },
             error: function () {
                 $(failure).show();
                 $(loading).hide();
                 $(paginator).hide();
             },
             beforeSend: function () {
                 $(loading).show();
                 $(failure).hide();
                 $(no_results).hide();
                 $(paginator).hide();

             },
             complete: function () {
                 $(loading).hide();

             }

         });

     }

     function updatePaginator(currentPage, numberOfPages) {
         if (numberOfPages > 1) {
             $(paginator).show()
         }

         if (currentPage > 5) {
             for (let i = 2; i  7) {
             $(buffer + " .icon-description").addClass("tooltipDesc");
         } else {
             $(buffer + " .icon-description").slice(8 - trueValueGame).addClass("tooltipDesc");
         }


         $(buffer + " .features-desc").slice(4).addClass("tooltipDesc");

         if ((casino.location.longitude || casino.location.longitude === 0) && (casino.location.latitude || casino.location.latitude === 0)) {
             let location = $(buffer + " .casino-location-info");
             location.attr('longitude', casino.location.longitude);
             location.attr('latitude', casino.location.latitude);
             location.attr('marker-id', casino.id);
         }


         $(buffer + ' .casino_name').html(casino.name);

         if (casino.intro_text && !casino.is_closed) {
             $(buffer + ' .intro_text').html(casino.intro_text);
         } else {
             $(buffer + ' .casino-name').html(casino.name);
             if (casino.opened) {
                 $(buffer + ' .casino-opened-date').html(formatDate(casino.opened));
             } else {
                 $(buffer + ' .casino-opened').remove();
             }

             if (casino.closed) {
                 $(buffer + ' .casino-closed-date').html(formatDate(casino.closed));
             } else {
                 $(buffer + ' .casino-closed').remove();
             }

             if (casino.rebranded_casino.length !== 0) {
                 $(buffer + ' .casino-rebranded-name').html(casino.rebranded_casino.name);
                 $(buffer + ' .casino-rebranded-name').attr('href', url + '/casino/' + casino.rebranded_casino.slug);
             } else {
                 $(buffer + ' .casino-rebranded').remove();
             }
         }


         if (casino.poker_tables === 0) {
             $(buffer + ' .poker_tables').remove();
         } else {
             $(buffer + ' .poker_tables').html(casino.poker_tables + ' Poker Tables');
         }

         if (casino.table_games === 0) {
             $(buffer + ' .table_games').remove();
         } else {
             $(buffer + ' .table_games').html(casino.table_games + ' Table Games');
         }

         if (casino.gaming_machines === 0) {
             $(buffer + ' .slot-machines').remove();
         } else {
             $(buffer + ' .slot-machines').html(casino.gaming_machines + ' Slots');
         }

         if (casino.poker_tables === 0 || casino.table_games === 0) {
             $(buffer + ' .info-separator.first').remove();
         }

         if (casino.table_games === 0 || casino.gaming_machines === 0) {
             $(buffer + ' .info-separator.second').remove();
         }

         if (casino.rating === 0) {
             $(buffer + ' .casino_rating').remove();
         } else {
             $(buffer + ' .casino_rating').html(casino.rating);
         }

         if (casino.coming_soon === false) {
             $(buffer + ' .coming_soon_casinos').remove();
         }
         if (casino.proposed === false) {
             $(buffer + ' .proposed_casinos').remove();
         }
         if (casino.new_casino === false) {
             $(buffer + ' .new_casinos').remove();
         }
         if (casino.is_closed === false) {
             $(buffer + ' .closed_casinos').remove();

         } else {
             $(buffer + " .casino-location-info").css('visibility', 'hidden');
             $(buffer + " .casino_name").css('margin-left', '-15px');
         }

         $(buffer + ' .btn-link').attr("href", url + '/casino/' + casino.slug);
         $(buffer + ' .btn-5').attr("href", url + '/casino/' + casino.slug + '#casinoReview');

         var city_name;

         if (casino.location.city.name !== undefined) {
             city_name = casino.location.city.name;
         }

         if (casino.hotels.length > 0) {
             let hotelElement = $(buffer + ' .reservation-wrap .hotel-reservation');

             $.each(casino.hotels, function (i, hotel) {
                 let newHotel = hotelElement.clone();
                 newHotel.find('.hotel-review').html(hotel.name);
                 newHotel.find('.low-rate').html('$' + parseFloat(hotel.low_rate).toFixed(2));
                 newHotel.find('.high-rate').html('$' + parseFloat(hotel.high_rate).toFixed(2));
                 newHotel.find('.hotel-outbound').attr('href', 'https://worldcasinodirectory.comencia.com/hotel/' + hotel.ean_id + '#change-hotel-details');
                 newHotel.find('.hotel-review').attr('href', url + '/hotels/' + hotel.slug);
                 if (hotel.hotellook_id != 0) {
                     newHotel.find('.book-button').html('<a>BOOK NOW</a>');                     }                      newHotel.appendTo(buffer + ' .reservation-wrap');                  });                 hotelElement.remove();             } else {                 $(buffer + ' .reservation-wrap').remove();             }              if (typeof casino.owners.length === undefined || casino.owners.length > 0) {                 let ownerElement = $(buffer + ' .operators-info .operator-link');                  $.each(casino.owners, function (i, owner) {                     let newOwner = ownerElement.clone();                     newOwner.attr('href', url + '/owners/' + owner.slug);                     newOwner.html(owner.name)                     if (i > 0) {                         newOwner.html(', ' + newOwner.html());                     }                     newOwner.appendTo(buffer + ' .operators-info');                  });                 ownerElement.remove();             } else {                 $(buffer + ' .operators-info').remove();             }              new_row = $("").append($(buffer).html());
         new_row.attr("class", $(seed).attr("class"));

         $(list).append(new_row);


     }

     function formatDate(string) {
         const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

         let date = new Date(string);
         return monthNames[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();
     }

     $(document).on("click", paginator + " .paginator_button", function () {

         let body = $("html, body");
         let page = parseInt($(this).attr('page'));
         let offset = (page - 1) * limit_increment;

         let existingPage = $('#widget-' + widgetInstance + '-page_list_page-' + page);


         body.animate({
                 scrollTop: $(list).offset().top - 53 //+ $(list).height() - 53
             },
             1000).promise().then(function () {


             $('.casino_page_list').hide();

             if (existingPage.length) {
                 existingPage.show();
                 updatePaginator(page, parseInt($(paginator + " [position='last']").attr("page")));
             } else {
                 let casinos_link_more = apiRequestUri + "&offset=" + offset + "&limit=" + limit_increment;
                 get_casinos(casinos_link_more);
             }

         });
         return false;
     });

     $(document).on("click", ".dropdown-filter", function () {

         $(this).find('.dropdown-content-filter').toggle();
     })

     $(document).on("click", ".filter-option", function () {

         let filterHeader = $(this).parent().parent().find('.selected-option');
         let selectedOption = $(this);
         filterHeader.attr('option-id', selectedOption.attr('option-id'));
         filterHeader.attr('option-value', selectedOption.attr('option-value'));

         filterHeader.find('p').html(selectedOption.html());
         selectedOption.siblings().show();
         selectedOption.hide();
         selectedOption.parent().toggle();

         $('.casino_page_list').remove();
         get_casinos(apiRequestUri + limit);

         return false;
     })


     $('.filter-search').keypress(function (e) {
         if (e.which == 13) {
             $('.casino_page_list').remove();
             get_casinos(apiRequestUri + limit);
             return false;
         }
     });
 });

Source

Sportsbook
Welcome to SportsBook-Live.com. Please register to our site, As more States become Available for Online Gambling, We will automatically upgrade your status from Subscriber to Player. Please note we are not affilliated in any way with ESPN, CBS Sports, Home depot or CitiBank GameDay Programs. https://sportsbook-live.com
https://sportsbook-live.com