Buy Cheap Don't Starve Together: Console Edition CD Keys & Digital Downloads (2022)

Buy Cheap Don't Starve Together: Console Edition CD Keys & Digital Downloads (1)

More about this game

sharing is caring

Buy Cheap Don't Starve Together: Console Edition CD Keys & Digital Downloads (2)
  • GAME KEYS (12)
  • SEASON PASSES (0)
  • DLC (0)
  • About
  • Similar Games
  • GAME KEYS (12)
  • SEASON PASSES (0)
  • DLC (0)
  • About
  • Similar Games

%TITLENAME%

%DRM%

(Video) What It's Like Buying & Activating A Steam Gift From G2A.com

%PLATFORM_TITLE%

%TITLE% %FULLTITLE%

Region: %REGION%

Version: %EDITION%

"; let count_total = 12; let count_game = 12; let count_dlc = 0; let count_season = 0; let count_topups = 0; let game_h1_template = "Buy Cheap %game% %platform% Keys & Digital Downloads"; let addon_descriptions = { }; let replacements = { sorting_price: '%SORTING_PRICE%', offer_id: '%OFFER_ID%', feed_img: '%FEED_IMG%', feed_title: '%FEED_TITLE%', extracted_title: '%TITLE%', title: '%FULLTITLE%', titlename: '%TITLENAME%', region_code: '%REGION%', discount_code: '%DISCOUNT_CODE%', price_currency: '%PRICE_CURRENCY%', price_value: '%PRICE_VALUE%', price_usd: '%PRICE_USD%', price_discount: '%PRICE_DISCOUNT%', discount: '%DISCOUNT%', price: '%PRICE%', edition: '%EDITION%', drm: '%DRM%', drm_title: '%DRM_TITLE%', drm_icon: '%DRM_ICON%', drm_description: '%DRM_DESCRIPTION%', platform: '%PLATFORM%', platform_title: '%PLATFORM_TITLE%', platform_pic: '%PLATFORM_PIC%', discount_html: '%DISCOUNT_HTML%', classes: '%CLASSES%', feed_type: '%FEED_TYPE%', url: '%URL%' }; let filters_list = { drm: { all: "All DRM" }, platform: { all: " All Platforms", pc: "All PC", nintendo: "All Nintendo", psn: "All PSN", xbox: "All XBox" }, region:{ all: "All Regions" }, edition:{ all: "All Editions" } }; var all_titles = {};all_titles['drm'] = {};all_titles['drm']['XBOX_LIVE_CODE'] = "Xbox Live Code";all_titles['drm']['XBOX_CODE'] = "XBOX Code";all_titles['platform'] = {};all_titles['platform']['xboxone'] = "XBOX One";all_titles['platform']['xbox'] = "XBOX";all_titles['region'] = {};all_titles['region']['LATAM'] = "South America";all_titles['region']['EU'] = "European Union & UK";all_titles['region']['NA'] = "North America";all_titles['edition'] = {};all_titles['edition']['standard-edition'] = "Standard Edition";all_titles['drm_description'] = {};all_titles['drm_description']['XBOX_LIVE_CODE'] = "This is a purchase of an Xbox Live code for Don\'t Starve Together: Console Edition. To activate you will need to sign in to your %PLATFORM_TITLE%, press the Xbox button then select Home. From here, select Store and select \"Use a Code\". Enter your purchased code to activate and play Don\'t Starve Together: Console Edition. Note: Make sure you\'re signed in with your preferred Microsoft account when activating.";all_titles['drm_description']['XBOX_CODE'] = "%PLATFORM_TITLE% Code: Once purchased you will receive a %PLATFORM_TITLE% cd key / digital download code along with instructions for installing the game. Download Don\'t Starve Together: Console Edition using the instructions provided after checkout then enter the %PLATFORM_TITLE% cd key / digital code to play.";all_titles['tabs'] = {};all_titles['tabs']['games'] = "GAME KEYS";all_titles['tabs']['seasonpass'] = "SEASON PASSES";all_titles['tabs']['dlc'] = "DLC";all_titles['tabs']['card'] = "TOP UPS";all_titles['tabs_descriptions'] = {};all_titles['tabs_descriptions']['games'] = "";all_titles['tabs_descriptions']['seasonpass'] = "What is a Season Pass?
%game% Season Passes are one-off purchases that entitle you to DLC released over a set period of time. This is not a purchase of the full game itself.";all_titles['tabs_descriptions']['dlc'] = "";all_titles['tabs_descriptions']['card'] = ""; var all_regions = {};all_regions['AFRICA'] = "Africa";all_regions['ASIA'] = "Asia";all_regions['AUS'] = "Australia / NZ";all_regions['CN'] = "China";all_regions['EU'] = "European Union & UK";all_regions['MEAA'] = "MIDDLE EAST / AFRICA";all_regions['NA'] = "North America";all_regions['CIS'] = "Russia / CIS";all_regions['LATAM'] = "South America";all_regions['UK'] = "United Kingdom";all_regions['GLOBAL'] = "Worldwide"; let replacement_keys = Object.keys(replacements); var region_code = getCookie('visitor_region'); var region_title = getCookie('visitor_region_title'); let all_translated = "ALL"; let nothing_found_message_game = "0 prices for %PLATFORM% %TAB%" + "
" + "View All Prices for %GAME% (%TOTAL%)" + ""; let nothing_found_message_card = "0 prices for %CARDCUR%" + "
" + "View All Prices for %GAME% (%TOTAL%)" + ""; let nothing_found_message_game_filters = "0 prices for current filters combination" + "
" + "Reset Filters" + ""; let show_all = (region_code === 'GLOBAL'); var json_data = []; var tab_type = 'games'; var featured_shown = false; var offers_filtered = 0; function filterFeatured( offer ) { let platform = el('platform_filter').value; let edition_obj = el('edition_filter'); let edition_selected = edition_obj.options[edition_obj.selectedIndex]; let edition = edition_selected.text; let region_obj = el('region_filter'); let region_selected = region_obj.options[region_obj.selectedIndex]; let region = region_selected.text; let drm_obj = el('drm_filter'); let drm_selected = drm_obj.options[drm_obj.selectedIndex]; let drm = drm_selected.text; if ( platform && (offer.platform.toLowerCase() !== platform.toLowerCase()) ) { return false; } if ( edition && (offer.edition.toLowerCase() !== edition.toLowerCase()) ) { return false; } if ( region && (offer.region.toLowerCase() !== region.toLowerCase()) ) { return false; } if ( drm && (offer.drm.toLowerCase() !== drm.toLowerCase()) ) { return false; } return true; } function cleanFeatured() { let table = el( 'row_featured_container' ); let table_body = el('row_featured_content'); table_body.innerHTML = ''; table.style.display = 'none'; featured_shown = false; } function cloneRow( row, table_id = 'row_featured_content' ) { let table = el( table_id ); let cloned_row = row.cloneNode( true ); cloned_row.style.display = 'flex'; table.innerHTML = ''; table.appendChild( cloned_row ); } function filterRow(row, count) { var show = true; let platform = el('platform_filter').value; let edition = el('edition_filter').value; let region = el('region_filter').value; let drm = el('drm_filter').value; var triggered = false; if ( platform && !row.classList.contains('platform_' + platform.toLowerCase()) ) { show = false; if ( !filtered_out.platform ){ filtered_out.platform = 1; } else { ++filtered_out.platform; } triggered = true; } if ( edition && !row.classList.contains('edition_' + edition.toLowerCase()) ) { show = false; if ( !triggered ){ if ( !filtered_out.edition ){ filtered_out.edition = 1; } else { ++filtered_out.edition; } triggered = true; } } if ( region && !row.classList.contains('region_' + region.toLowerCase()) && !row.classList.contains('region_global') ) { if ( region === 'UK' && row.classList.contains( 'region_eu') ){ } else { show = false; if ( !triggered ){ if ( !filtered_out.region ){ filtered_out.region = 1; } else { ++filtered_out.region; } triggered = true; } } } if ( drm && !row.classList.contains( 'drm_' + drm.toLowerCase() ) ) { show = false; if ( !triggered ){ if ( !filtered_out.drm ){ filtered_out.drm = 1; } else { ++filtered_out.drm; } triggered = true; } } if ( row.classList.contains( 'featured' ) && show && !featured_shown ){ cloneRow( row ); el('row_featured_container').style.display = 'flex'; let row_featured_content = el( 'row_featured_content' ); showFadein( row_featured_content, 'flex' ); featured_shown = true; return; } if ( show && ( offers_filtered <= count || tab_type == 'dlc' ) ) { showFadein(row, 'flex'); ++offers_filtered; } else { row.setAttribute('style', 'cursor: pointer;display:none !important'); } } function getGameURL( platform ) { let base_link = base_game_url; if ( !platform ){ platform = 'all'; } if ( tab_type === 'games' ){ base_link += '-cd-key-' + platform; } else if ( tab_type === 'dlc' ){ base_link += '-dlc-cd-key-' + platform; } else if ( tab_type === 'addon' || tab_type === 'card' ){ base_link += '-topup-cd-key-' + platform; } else if ( tab_type === 'seasonpass' ){ base_link += '-season-pass-' + platform; } return base_link; } function saveScrollingPosition() { let prefix = window.location.host.split('_').join(''); var top = 0, left = 0; if (typeof(window.pageYOffset) == 'number') { top = window.pageYOffset; left = window.pageXOffset; } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { top = document.body.scrollTop; left = document.body.scrollLeft; } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { top = document.documentElement.scrollTop; left = document.documentElement.scrollLeft; } if (top || left) window.name = prefix + '_' + left + '_' + top + '_' ; } var filtered_out; var addon_count = 0; var addon_max = 3; var addon_limit_hit = false; function htmlToElement(html) { var template = document.createElement('template'); html = html.trim(); // Never return a text node of whitespace as the result template.innerHTML = html; return template.content.firstChild; } function applyFilters(type_id = '', count = 8 ) { let type = type_id.replace('_filter', ''); let new_platform = el('platform_filter').value; if (type === 'platform' && platform !== new_platform) { platform = new_platform; saveScrollingPosition(); document.location = getGameURL( new_platform ); return; } cleanFeatured(); offers_filtered = 0; featured_shown = false; filtered_out = {}; document.querySelectorAll('.offer_row').forEach( row => filterRow(row, count) ) hideAllMessages(); hideExpand(); if ( offers_filtered >= count) { showExpand(); } else if ( !offers_filtered || !document.querySelector('.offer_row') ) { showNothingFound(); } setGameMeta(); if ( tab_type == 'dlc' ) { setupFilterHints(filtered_out); } document.querySelectorAll('.addon_container').forEach( el => { el.style.display = 'none'; addon_count = 0; addon_limit_hit = false; var view_more_btn = el.querySelector('.view-more-addon'); if ( view_more_btn ) { view_more_btn.parentElement.removeChild(view_more_btn); } el.querySelectorAll(".offer_row").forEach( el => { if ( el.style.display != 'none' ){ el.parentElement.style.display = 'block'; el.parentElement.querySelector('.addon_header_container').style.display = 'flex'; if ( el.parentElement.querySelector('.addon_description_container') ){ el.parentElement.querySelector('.addon_description_container').style.display = 'block'; } ++addon_count; } if ( addon_count > addon_max ){ el.classList.add('hidden_row') if ( !addon_limit_hit ) { addon_limit_hit = true; el.insertAdjacentElement( 'afterend', htmlToElement('

View More

(Video) Get Games for Cheap via GameFanShop (and Support Me at the Same Time)

'), ); } } } ) }) } let hints_texts = { region: "All Regions: +%s keys", platform: "All Platforms: +%s keys", drm: "ALL DRM: +%s keys" } function setupFilterHints( hints ) { var hints_html = ''; let types = [ 'region', 'platform', 'drm' ]; console.log(hints); for( type of types ){ if ( hints[type]){ hints_html += '

' + hints_texts[type].replace('%s',hints[type]) + '

'; } } el('game_tab_description').innerHTML = '

' + hints_html + '

'; } function showRows( el ) { el.parentElement.querySelectorAll('.hidden_row').forEach( row => { row.classList.remove('hidden_row'); } ) el.parentElement.removeChild(el); } function applyFilterHint( hint_el ) { console.log(hint_el.classList); if ( hint_el.classList.contains('filter_platform') ){ el('platform_filter').value = 'all'; applyFilters(); } else if ( hint_el.classList.contains('filter_region') ){ el('region_filter').value = 'all'; applyFilters(); } else if ( hint_el.classList.contains('filter_drm') ){ el('drm_filter').value = 'all'; applyFilters(); } } function revealDescription( el ) { let dlc_id = el.dataset.dlc; document.getElementById( 'description_box_' + dlc_id ).classList.remove('hidden_description'); document.getElementById( 'description_box_' + dlc_id ).classList.remove('addon_description_container_box'); el.parentElement.removeChild(el); } function loadListeners() { document.addEventListener('click', function (evt) { if ( evt.target.matches('#view_more_reviews') ) { document.querySelectorAll('.review_item').forEach( el => { el.style.display = 'block' } ); document.getElementById('view_more_reviews').style.display = 'none'; evt.preventDefault(); evt.stopPropagation(); return false; } else if ( evt.target.matches('.view-more') ) { applyFilters('', 999); hideExpand(); evt.preventDefault(); evt.stopPropagation(); return false; } else if (evt.target.matches('.filter_hint')) { applyFilterHint(evt.target); return false; } else if (evt.target.matches('.description_view_more')) { revealDescription(evt.target); return false; } else if (evt.target.matches('.view-more-addon')) { showRows(evt.target); return false; } else if ( evt.target.matches('.reset_filters') ) { resetFilters(); evt.preventDefault(); evt.stopPropagation(); return false; } else if ( evt.target.matches('.switch_togames') ) { switchTab( 'games' ); evt.preventDefault(); evt.stopPropagation(); return false; } else if ( evt.target.matches('.instructions_menu') ) { switchInstruction( evt.target ); evt.preventDefault(); evt.stopPropagation(); return false; } }); document.addEventListener('change', function (evt) { if (evt.target.matches('#drm_filter') || evt.target.matches('#region_filter') || evt.target.matches('#platform_filter') || evt.target.matches('#edition_filter')) { applyFilters(evt.target.getAttribute('id')); } }); document.addEventListener("region_changed", () => { region_code = getCookie('visitor_region'); region_title = getCookie('visitor_region_title'); setFilterDefaults(); applyFilters(); }); } function getPricesURL(post_type, post_id, tab_type) { if (post_type === 'card') { return base_url + '/cache/prices/' + post_id + '/' + card_currency + '_new.json'; } else { return base_url + '/cache/prices/' + post_id + '/prices_' + tab_type + '_new.json'; } } function getNoDataMessage(type) { let platform = el('platform_filter').value; let edition = el('edition_filter').value; let region = el('region_filter').value; let drm = el('drm_filter').value; var nothing_found = '

'; if (type === 'card') { nothing_found += parseMessageTemplate(nothing_found_message_card); } else if (json_data[tab_type] && json_data[tab_type]['counts'][tab_type] === 0) { nothing_found += parseMessageTemplate(nothing_found_message_game); } else if (!platform && !edition && !region && !drm && post_type !== 'all') { nothing_found += parseMessageTemplate(nothing_found_message_game); } else if (platform || edition || region || drm) { nothing_found += parseMessageTemplate(nothing_found_message_game_filters); } else { nothing_found += parseMessageTemplate(nothing_found_message_game); } nothing_found += '

'; return nothing_found; } function getTabDescription() { if ( !tab_type || ! all_titles[ 'tabs_descriptions' ][ tab_type ] ){ return ''; } return replacePatterns( all_titles[ 'tabs_descriptions' ][ tab_type ] ); } function logError(error) { alert(error); } function parseMessageTemplate(message) { let game_type = tab_type === 'seasonpass' ? "Season Passes" : tab_type; return message.replace("%PLATFORM%", platform) .replace("%PLATFORM_TITLE%", all_titles[ 'platform' ][ platform ] ) .replace("%TAB%", game_type) .replace("%LINK%", base_game_all_url) .replace("%GAME%", game_name) .replace("%TOTAL%", count_game) .replace("%CARDCUR%", card_currency) } function htmlEntities(str) { return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); } function formatCountry( str ) { var splitStr = str.toLowerCase().split(' '); for (var i = 0; i < splitStr.length; i++) { splitStr[i] = splitStr[i].charAt(0).toUpperCase() + splitStr[i].substring(1); } return splitStr.join(' '); } function prepareOfferValue(key, offer) { if (key === 'platform_pic' || key === 'drm_icon') { return offer[key]; } if (key === 'url') { return base_url; } if (key === 'titlename' && tab_type === 'seasonpass') { if (!offer.extracted_title || offer.extracted_title == ' ') { return 'Season Pass'; } else { return offer.extracted_title; } } else if (key === 'titlename' && tab_type === 'dlc'){ return offer.addon_title; } else if ( key === 'titlename' ){ return offer.extracted_title; } if ( key === 'extracted_title' && tab_type === 'dlc'){ return offer.addon_title; } if ( key === 'region_code' && offer.region_detected ){ var detected_region; if ( offer.region_detected.length > 3 ){ detected_region = formatCountry( offer.region_detected ); } else { detected_region = offer.region_detected; } //return all_titles[ 'region' ][ offer[ 'region_code' ] ] + ', ' + detected_region; if ( detected_region === 'IT' ){ detected_region = "Italy"; } return detected_region; } else if ( key === 'region_code' ){ return all_titles[ 'region' ][ offer[ 'region_code' ] ]; } if ( key === 'drm_description' ){ return htmlEntities( all_titles['drm_description'][offer['drm_slug']] ); } if (key === 'discount') { return parseInt(offer['discount']); } if (key === 'discount_html') { if (!offer['discount_code']) { return ''; } return '

' + offer['discount'] + '%Discount Code:' + ' ' + offer['discount_code'] + '' + '

'; } if ( key === 'platform_title' ){ return all_titles[ 'platform' ][ offer['platform'] ]; } if ( key === 'edition' ){ return all_titles[ 'edition' ][ offer['edition'] ]; } if (key === 'classes') { let drm_parts = offer['drm'].split(' '); var drm_extra = ''; if ( drm_parts.length && drm_parts[drm_parts.length - 1] ){ if ( drm_parts[drm_parts.length - 1].toLowerCase() == 'account' ){ drm_extra = 'drm_' + offer['drm_group'].replaceAll(' ', '_').toLowerCase() + '_account'; } else if ( drm_parts[drm_parts.length - 1].toLowerCase() == 'code' ){ drm_extra = 'drm_' + offer['drm_group'].replaceAll(' ', '_').toLowerCase() + '_code'; } } return 'edition_' + offer['edition'].replaceAll(' ', '_').toLowerCase() + ' ' + 'platform_' + offer['platform'].replaceAll(' ', '_').toLowerCase() + ' ' + 'platform_' + offer['platform_group'].replaceAll(' ', '_').toLowerCase() + ' ' + 'platform_all edition_all region_all drm_all ' + 'region_' + offer['region_code'].toLowerCase() + ' ' + ( offer.feed_featured ? ' featured ' : '' ) + 'drm_' + offer['drm'].replaceAll(' ', '_').toLowerCase() + ' ' + 'tab_' + tab_type + ' ' + drm_extra; } return offer[key]; } function prepareDropdown( options, def = '' ) { var html = ''; for ( var i in options ){ var slug = i; if ( slug === def ){ html += '

'; } else { html += '

'; } } return html; } function removeOffers() { let table_body = el('offers_container'); table_body.innerHTML = ''; } function resetFilters() { hideAllMessages(); document.querySelectorAll('#platform_filter [value="all"]').forEach( el => { el.selected = true } ); document.querySelectorAll('#edition_filter [value="all"]').forEach( el => { el.selected = true } ); document.querySelectorAll('#region_filter [value="all"]').forEach( el => { el.selected = true } ); document.querySelectorAll('#drm_filter [value="all"]').forEach( el => { el.selected = true } ); applyFilters() return false; } function setContainerClass( type ) { let all_types = [ 'dlc', 'seasonpass', 'card', 'games' ]; let container = el('games-links-main'); for( let the_type of all_types ){ container.classList.remove( 'container_' + the_type ); } container.classList.add('container_' + type); } function setActiveTab( type ) { //set global tab type value tab_type = type; //hide all tabs document.querySelectorAll(".game_page_tab").forEach( tab => { tab.classList.remove('active'); } ); document.querySelectorAll("." + type + "_tab").forEach( tab => { tab.classList.add('active'); } ); if ( type !== 'dlc' && type !== 'card' ){ document.querySelectorAll('.season_txt').forEach( el => { el.style.display = 'block'; } ); document.querySelectorAll('.games_instructions').forEach( el => { el.style.display = 'block'; } ); } else { document.querySelectorAll('.season_txt').forEach( el => { el.style.display = 'none'; } ); document.querySelectorAll('.games_instructions').forEach( el => { el.style.display = 'none'; } ); } setContainerClass( type ); hideExpand(); } function el( id ) { return document.getElementById(id); } function getData( type = 'filters', subtype = false ) { if ( subtype === 'region' ){ return all_regions; } if ( !tab_type || !json_data || !json_data[ tab_type ] ){ console.log("Error: initialization failed"); return false; } let feed = json_data[ tab_type ][ type ]; if ( !feed ){ console.log("No data to load"); return false; } if ( subtype ){ return feed[ subtype ]; } return feed; } function hide( element, invis = false ) { if ( typeof element == 'string' ){ element = el(element); } if ( invis ) { element.style.visibility = 'hidden'; } else { element.style.display = 'none'; } } function setupFilters() { for ( let filter in filters_list ) { let filter_values = getData( 'filters', filter ); if ( !filter_values ){ return; } var options = filters_list[filter]; for ( let slug in filter_values ) { if ( !options[slug] ) { options[slug] = filter_values[slug]; } } var def = ''; if ( filter === 'platform' ){ def = platform; } el(filter + '_filter').innerHTML = prepareDropdown( options, def ); } setFilterDefaults(); setDrmDropdown( platform ); } function setDrmDropdown(platform) { var stream = getData( 'platform_drm' ); var options = { all: filters_list['drm'][ 'all' ] } for ( var i in stream[ platform.toUpperCase() ] ){ options[ i ] = stream[ platform.toUpperCase() ][i]; } el('drm_filter').innerHTML = prepareDropdown( options ); } function setFilterDefaults() { //set page default platform if (platform !== 'all') { document.querySelectorAll('#platform_filter [value="' + platform + '"]').forEach( el => { if (el) { el.selected = true; } } ); } //set page default region if (region_code && region_code !== 'GLOBAL') { document.querySelectorAll('#region_filter [value="' + region_code.toUpperCase() + '"]').forEach( el => { if (el) { el.selected = true; } } ); } } function setupData( data ) { if ( !tab_type ){ console.log( 'ERROR: no tab type' ); return false; } if ( !data ){ console.log( 'ERROR: no json data' ); return false; } json_data[ tab_type ] = JSON.parse( data ); //console.log(json_data[ tab_type ]); return true; } function setupCounts() { let counts = getData( 'counts'); var removed_tabs = 0; for (let i in counts ) { if ( el(i + '_count') !== null ) { el(i + '_count').innerHTML = counts[i]; } if (counts[i] == 0){ document.querySelectorAll( '.' + i + '_tab' ).forEach( el => { if (el ) { //if ( window.screen.width < 1000 ){ //el.style.visibility = 'hidden'; //} else { el.style.display = 'none'; //} } } ); } } } function setGameMeta() { /* set tab breadcrumb */ var tab_link; console.log('lang 2: ' + lang ); if ( tab_type === 'card' && post_type === 'game' ){ if ( lang != 'item' ){ tab_link = base_url + lang + "/search?types=topup"; } else { tab_link = "/search?types=topup"; } } else { if ( lang != 'item' ) { tab_link = base_url + lang + "/search?types=" + post_type + "&game_type=" + tab_type; } else { tab_link = "/search?types=" + post_type + "&game_type=" + tab_type; } } el('breadcrumb_type_link').setAttribute( 'href', tab_link ); el('breadcrumb_type').innerHTML = all_titles[ 'tabs' ][ tab_type]; /* set platform breadcrumb */ var platform_link = tab_link; if ( platform && platform !== 'all' ) { platform_link = tab_link + "&platforms=all_" + platform; } el('breadcrumb_platform_link').setAttribute( 'href', platform_link ); if ( platform === 'all' || !platform ){ // el('breadcrumb_platform').innerHTML = "All Platforms"; } else { // el('breadcrumb_platform').innerHTML = all_titles[ 'platform' ][ platform ]; } //set game h1 header el('game_big_header').innerHTML = replacePatterns( game_h1_template ); //set tab type description el('game_tab_description').innerHTML = replacePatterns( getTabDescription() ); } function replacePatterns( template ) { if ( ! tab_type ){ return template; } return template.replace( '%platform%', all_titles[ 'platform' ][ platform ] ? all_titles[ 'platform' ][ platform ] : '' ).replace( '%type%', all_titles[ 'tabs' ][ tab_type ] ).replace( '%game%', game_name ); } function setupOffersDLC( data ) { var all_rows = ''; let dlc_data = getData('dlc_data'); for ( let dlc in data ) { all_rows += '

'; all_rows += '

(Video) Best Sales for the top 2D games (PC, PS4, Xbox One)

' + dlc + '

'; let dlc_id = dlc_data[dlc]['id']; if ( addon_descriptions[dlc_id] && addon_descriptions[dlc_id] !== 'MISSING' ){ all_rows += '

' + addon_descriptions[dlc_id] + '

'; all_rows += '

Read Full Description

'; } all_rows += '

STORE

NAME

'; all_rows += '

PLATFORM/DRM

'; all_rows += '

REGION

'; all_rows += '

PRICE

(Video) How to Install Debian Linux on VirtualBox in Windows | Beginners Guide | 2021 (Bullseye)

'; all_rows += '

'; for ( let offer of data[dlc] ) { let row = offer_row; for ( var key of replacement_keys ) { row = row.replaceAll( replacements[key], prepareOfferValue(key, offer) ); } if ( parseFloat(offer.discount) == 0 ){ row = row.replaceAll( '%HAS_COUPON%', 'no_coupon' ); } else { row = row.replaceAll( '%HAS_COUPON%', 'has_coupon' ); } all_rows += row; } all_rows += '

'; } let table_body = el( 'offers_container' ); table_body.innerHTML = all_rows; //auto adjust height from preset big height el('offers_section_container').style.minHeight = 'auto' } function setupOffers() { removeOffers(); var all_rows = ''; let data = getData( 'offers' ); if ( tab_type === 'dlc' ){ setupOffersDLC( data ); return; } for ( let offer of data ) { let row = offer_row; for ( var key of replacement_keys ) { row = row.replaceAll( replacements[key], prepareOfferValue(key, offer) ); } if ( parseFloat(offer.discount) == 0 ){ row = row.replaceAll( '%HAS_COUPON%', 'no_coupon' ); } else { row = row.replaceAll( '%HAS_COUPON%', 'has_coupon' ); } all_rows = all_rows + row; } if ( !data.length ) { el('offers_section_container').style.minHeight = 'auto' showNothingFound( data.length ) return; } let table_body = el( 'offers_container' ); table_body.innerHTML = all_rows; //auto adjust height from preset big height el('offers_section_container').style.minHeight = 'auto' setTimeout( "initTippy()", 1000 ); } function showFadein(element, display = 'block') { if ( typeof element == 'string' ){ element = el(element); } element.style.display = display; element.style.transition = "opacity 2s"; element.style.opacity = 1; } function hideError() { hide('offers_error'); } function hideLoading() { let loading_el = el('loading_offers'); loading_el.style.display = 'none'; loading_el.style.opacity = 0; document.querySelectorAll(".keysTable").forEach( el => { el.style.visibility = 'visible'; } ) } function hideExpand() { hide('view_more'); } function hideAllMessages() { hideError(); hideLoading(); } function raiseError(message) { let error_container = el('offers_error'); error_container.style.display = 'block'; error_container.innerHTML = message; showFadein( error_container ); logError( message ); } function showExpand() { if ( tab_type != 'dlc' ) { showFadein(el('view_more')); } } function showLoading() { let loading_offers = el('loading_offers'); loading_offers.innerHTML = 'Loading prices...'; showFadein(loading_offers); } function showNothingFound() { document.querySelectorAll(".keysTable").forEach( el => { el.style.visibility = 'visible'; } ) let error_message = el('offers_error'); error_message.innerHTML = getNoDataMessage(post_type); showFadein(error_message); } function switchInstruction( theel ) { if ( theel === undefined ){ return; } let instructions = all_titles['drm_description']; let platform = theel.getAttribute('data-platform-id'); let drm = theel.getAttribute('data-drm-id'); var ptitle = platform.replaceAll('_', ' ').toUpperCase(); if ( ptitle === 'ALL' ){ var drm_splits = drm.split('_'); ptitle = drm_splits[0]; } el('game_instructions_content').innerHTML = instructions[drm].replaceAll( '%PLATFORM_TITLE%', ptitle ); document.querySelectorAll('#games_instructions_menu a').forEach( el => el.classList.remove( 'active_instruction' ) ); theel.classList.add( 'active_instruction' ); } function switchTab( type ) { tab_type = type; setActiveTab( tab_type ); hideAllMessages(); if ( !json_data[ tab_type ] ) { showLoading(); loadPricesJSON(); } else { initAll(); } return false; } function initAll() { setupFilters(); setupOffers(); setActiveTab( tab_type ); let counts = getData( 'counts' ); if ( tab_type === 'games' && counts.game === 0 ){ if ( counts.seasonpass > 0 ) { switchTab('seasonpass'); return; } else if ( counts.addon > 0 ) { switchTab('dlc'); return; } } setupCounts(); setupCurrency(); cleanFeatured(); applyFilters( 'platform' ); setTimeout(function() {loadInstructions()},1000); } function loadInstructions() { let instructions = all_titles['drm_description']; if ( !instructions || instructions.length < 1 ){ return; } if ( tab_type == 'card' || tab_type == 'dlc' ){ return; } if ( !document.querySelectorAll('.games_instructions').length ){ return; } var instructions_menu = []; var pos = 0; var extra_class = ''; var active_instruction_drm = ''; for( var i in instructions ){ if ( pos === 0 ){ extra_class = 'active_instruction'; active_instruction_drm = i; } else { extra_class = ''; } ++pos; instructions_menu[i] = "" + all_titles['drm'][i] + ''; } var instructions_keys = Object.keys(instructions_menu); instructions_keys.sort(); var menu_html = ''; for( key of instructions_keys ){ menu_html += instructions_menu[key]; } el('games_instructions_menu').innerHTML = menu_html; switchInstruction( document.querySelectorAll('.instructions_menu')[0] ); } function logFailedJson() { var request = new XMLHttpRequest(); request.open('POST', '/jsonerror'); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded') var form_data = new FormData(); form_data.append( 'game_url', base_game_all_url ); form_data.append( 'game_name', game_name ); request.send( form_data ) } function scrollPageAfterReload() { console.log("name: " + window.name); if (window.name && window.name !== 'normal') { let name = window.name.split('_'); console.log(name); if ( name[1] && name[2] ) { setTimeout("window.scrollTo(" + parseInt(name[1]) + "," + parseInt( name[2] )+ ")",500); window.name = "normal"; } } } function loadPricesJSON() { showLoading(); scrollPageAfterReload(); var request = new XMLHttpRequest(); request.open('GET', getPricesURL(post_type, post_id, tab_type), true); request.onload = function () { hideLoading(); if (request.status >= 200 && request.status < 400) { setupData( request.response ); initAll(); } else { logFailedJson(); alert('Error loading prices!') } } request.send(); } loadListeners(); loadPricesJSON();})();

Videos

1. the xbox one has a hidden button too
(Tinker Man Mick)
2. Best deals for the top sandbox games (PC, PS4, Xbox One)
(Allkeyshop)
3. Did you know your PS2 can do this?
(DKOldies.com)
4. Best Deals for the Top Mystery Games (PC, PS4, Xbox One)
(Cheapdigitaldownload)
5. 😎How to be COOL in the Backrooms
(FSRiko)
6. New To GAME PASS - Hades and More! Xbox Series X | S, Xbox One, Cloud And PC
(XboxCorner)

Top Articles

Latest Posts

Article information

Author: Prof. Nancy Dach

Last Updated: 12/08/2022

Views: 5821

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.