1window.jQuery(document).ready(function($){ 2 3 window.getUrlParameter = function getUrlParameter(sParam) { 4 var sPageURL = window.location.search.substring(1), 5 sURLVariables = sPageURL.split('&'), 6 sParameterName, 7 i; 8 9 for (i = 0; i < sURLVariables.length; i++) { 10 sParameterName = sURLVariables[i].split('='); 11 12 if (sParameterName[0] === sParam) { 13 return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]); 14 } 15 } 16 }; 17 18 var copyToClipboard = function(textToCopy){ 19 $("body") 20 .append($('<textarea name="fname" class="textToCopyInput"/>' ) 21 .val(textToCopy)) 22 .find(".textToCopyInput") 23 .select(); 24 try { 25 var successful = document.execCommand('copy'); 26 var msg = successful ? 'successful' : 'unsuccessful'; 27 } catch (err) {} 28 $(".textToCopyInput").remove(); 29 } 30 31 32 window.sessionId = Cookies.get('lg_session'); 33 window.requestFullConsent = Cookies.get('request_full_consent') === 'true'; 34 window.cookieNoticeClicked = Cookies.get('cookie_notice_accepted') === 'true'; 35 window.cookieNoticeFullConsentClicked = Cookies.get('cookie_notice_full_consent_accepted') === 'true'; 36 window.statisticsCookiesAllowed = Cookies.get('statistics_allowed') === 'true'; 37 window.marketingCookiesAllowed = Cookies.get('marketing_allowed') === 'true'; 38 window.framingContentAllowed = Cookies.get('framing_allowed') === 'true'; 39 window.framingVideoContentAllowed = Cookies.get('framing_video_allowed') === 'true'; 40 window.categoryId = $('.category-content').data('category-id'); 41 window.gameId = $('.game-content').data('game-id'); 42 window.gameCode = decodeURIComponent($('.game-content').data('game-code')); 43 44 window.adsFrequencyCapping = parseInt(Cookies.get('lg_fc')); 45 if(typeof window.adsFrequencyCapping == 'undefined' || window.adsFrequencyCapping === null || isNaN(window.adsFrequencyCapping)) { 46 window.adsFrequencyCapping = 0; 47 } 48 49 window.origin = window.getUrlParameter('origin'); 50 if(typeof window.origin != 'undefined' && window.origin !== null && window.origin !== '') { 51 Cookies.set('origin', window.origin, { expires: 30 }); 52 } else { 53 window.origin = Cookies.get('origin'); 54 } 55 56 var userLang = navigator.language || navigator.userLanguage; 57 window.md = new MobileDetect(window.navigator.userAgent); 58 var game_title = $('.game-card-title').html(); 59 60 if(typeof Cookies.get('game-liked-' + window.gameId) !== "undefined") { 61 var game_liked = true; 62 $(".like-game svg > g > g:nth-child(2)").css("stroke", "#6BF8FF"); 63 } else { 64 var game_liked = false; 65 } 66 67 if(typeof Cookies.get('game-disliked-' + window.gameId) !== "undefined") { 68 var game_disliked = true; 69 $(".dislike-game svg > g > g:nth-child(2)").css("stroke", "#6BF8FF"); 70 } else { 71 var game_disliked = false; 72 } 73 74 var current_url = window.location.hostname + window.location.pathname; 75 var current_url_encoded = encodeURIComponent(current_url); 76 77 $('[data-toggle="tooltip"]').tooltip({ 78 container: '.game-bar-below' 79 }); 80 81 $( document ).on( 'click', '.category-tags li', function() { 82 if(typeof $(this).data('url') !== 'undefined') { 83 window.location.href = $(this).data('url'); 84 } 85 }); 86 87 if(window.md.mobile() !== null) { 88 $('#masthead').removeClass('fixed-top'); 89 $('#content.site-content').css('padding-top', '0'); 90 $('.game-fullscreen').hide(); 91 $('.game-vertical').hide(); 92 } 93 94 if(navigator.userAgent.match(/bot|crawler|spider|crawling/i) === null) { 95 96 $('.game-marketing-cookies-hint').html(window.marketingCookiesHint); 97 $('.game-walkthrough-marketing-cookies-hint').html(window.marketingCookiesHint); 98 99 $('#cookie-notice').html('<div class="cookie-notice-container">\n' + 100 ' <span id="cn-notice-text" class="cn-text-container">\n' + 101 ' <div>\n' +
102 ' This website uses cookies to analyze and improve the website and to display personalized ads. Under <a href=\"\' + window.siteUrl + \'/privacy-policy/\">privacy policy</a> you will find further information and possibilities to switch off these cookies.<br>\n' + 103 ' </div>\n' + 104 ' <div class="essential-links">\n' + 105 ' <a href="https://gameforge.com/en-US/littlegames/imprint//">Imprint</a>\n' + 106 ' </div>\n' + 107 ' </span>\n' + 108 ' <span id="cn-notice-buttons" class="cn-buttons-container">\n' + 109 ' <a href="#" id="cn-accept-cookie" data-cookie-set="accept" class="cn-accept-cookies cn-set-cookie cn-button bootstrap button">Ok</a>\n' + 110 ' </span>\n' + 111 ' </div>'); 112 113 $('#cookie-notice-full-consent').html('<div class="overlay-container">\n' + 114 ' <div class="overlay-inner-background">\n' + 115 ' <div class="cookie-notice-container">\n' + 116 ' <span id="cn-notice-text" class="cn-text-container">\n' + 117 ' <div style="text-align: center; padding-bottom: 20px;"><img src="https://gameforge.com/en-US/littlegames/content/themes/casual/custom/img/logo.png" class="logo-img dropdown-toggle" title="" alt="LittleGames"></div>\n' + 118 ' <div style="text-align: center;">\n' + 119 ' <p style="font-size: 15px;">We and our partners store and/or access information on your device, by using techniques like cookies to analyze and improve our website and to display personalized ads. For this, we ask for your consent. You may give your consent, or change your preferences via the settings. More information on the collection and use of data by us and our partners can be found in our <a href="' + window.siteUrl + '/privacy-policy/">privacy policy</a>. You can also manage your consent settings there.</p>\n' + 120 ' <!--<div class="cn-section">\n' + 121 ' <div style="flex: 1;"><strong>Essential cookies (mandatory)</strong><br>\n' + 122 ' <span style="font-size: 12px;">Essential cookies help us to provide you with functions that are essential for the use of our services.</span></div>\n' + 123 ' <div>\n' + 124 ' <label class="switch"><input type="checkbox" class="cn-essential-cookies-checkbox" disabled checked><span class="slider round"></span></label>\n' + 125 ' </div>\n' + 126 ' </div>\n' + ' <div class="cn-section">\n' + 127 ' <div style="flex: 1;"><strong>Marketing Cookies</strong><br>\n' + 128 ' <span style="font-size: 12px;">Marketing cookies are used by our marketing partners to follow visitors to websites. The intent is to show you ads that are relevant and appealing to you and therefore more valuable to publishers and third party advertisers.</span></div>\n' + 129 ' <div>\n' + 130 ' <label class="switch"><input type="checkbox" class="cn-marketing-cookies-checkbox"><span class="slider round"></span></label>\n' + 131 ' </div>\n' + 132 ' </div>-->\n' + 133 ' </div>\n' + 134 ' <div style="display: flex; justify-content: center; padding-bottom: 20px;">\n' + 135 ' <div id="cn-notice-buttons" class="cn-buttons-container">\n' + 136 ' <a href="#" data-cookie-set="reject" class="cn-reject-all-cookies cn-set-cookie cn-button bootstrap button">Reject all</a>\n' + 137 ' <a href="#" data-cookie-set="accept" class="cn-accept-all-cookies cn-set-cookie cn-button bootstrap button">Accept all cookies</a>\n' + 138 ' </div>\n' + 139 ' </div>\n' + 140 ' <div style="display: flex; justify-content: center; padding-bottom: 30px;">\n' +
141 ' <a href="#" class="cn-cookie-settings">Settings</a>\n' + 142 ' </div>\n' + 143 ' <div style="display: flex; justify-content: center;">\n' + 144 ' <div class="essential-links">\n' + 145 ' <a href="' + window.siteUrl + '/cookie-policy/">Cookie Policy</a> |\n' + 146 ' <a href="https://gameforge.com/en-US/littlegames/privacy-policy/">Privacy</a> |\n' + 147 ' <a href="https://gameforge.com/en-US/littlegames/imprint/">Imprint</a>\n' + 148 ' </div>\n' + 149 ' </div>\n' + 150 ' </span>\n' + 151 ' </div>\n' + 152 ' </div>\n' + 153 ' </div>\n' + 154 ' <div class="overlay overlay-background content_block"></div>'); 155 156 $('#cookie-settings').html('<div class="overlay-container">\n' + 157 ' <div class="overlay-inner-background">\n' + 158 ' <div class="overlay-head">Cookie Settings</div>\n' + 159 ' <div>\n' + 160 ' <p>\n' + 161 ' If you make no other decision below, you agree to the storage of information on your device and the collection and processing of such information and other data by the operator of this site and its partners for the personalization, delivery and measurement of advertising and content within and outside this website and for evaluations of the use of this website.\n' + 162 ' </p>\n' + 163 ' </div>\n' + 164 ' <div>\n' + 165 ' <div class="cn-section">\n' + 166 ' <div style="flex: 1;"><strong>Essential cookies (mandatory)</strong><br>\n' + 167 ' <span style="font-size: 12px;">Essential cookies help us to provide you with functions that are essential for the use of our services.</span></div>\n' + 168 ' <div>\n' + 169 ' <label class="switch"><input type="checkbox" class="cn-settings-essential-cookies-checkbox" disabled checked><span class="slider round"></span></label>\n' + 170 ' </div>\n' + 171 ' </div>\n' + 172 ' <!--<div class="cn-section">\n' + 173 ' <div style="flex: 1;"><strong>Statistic Cookies</strong><br>\n' + 174 ' <span style="font-size: 12px;">Statistics cookies help us to understand how visitors interact with our site by collecting and reporting information anonymously.</span></div>\n' + 175 ' <div>\n' + 176 ' <label class="switch"><input type="checkbox" class="cn-settings-statistics-cookies-checkbox"><span class="slider round"></span></label>\n' + 177 ' </div>\n' + 178 ' </div>-->\n' + 179 ' <div class="cn-section">\n' + 180 ' <div style="flex: 1;"><strong>Marketing Cookies</strong><br>\n' + 181 ' <span style="font-size: 12px;">Marketing cookies are used by our marketing partners to follow visitors to websites. The intent is to show you ads that are relevant and appealing to you and therefore more valuable to publishers and third party advertisers.</span></div>\n' + 182 ' <div>\n' + 183 ' <label class="switch"><input type="checkbox" class="cn-settings-marketing-cookies-checkbox"><span class="slider round"></span></label>\n' + 184 ' </div>\n' + 185 ' </div>\n' + 186 ' <div class="cn-section">\n' + 187 ' <div style="flex: 1;"><strong>Games Publishers</strong><br>\n' + 188 ' <span style="font-size: 12px;">Many games on our website are provided by external publishers. If you play these games, these publishers may process your personal data for personalized advertising, analytics and social media. Check the privacy policies of these publishers and determine wether you consent to the processing of your personal data by these third-party publishers if you play their games for the above purposes.</span></div>\n' + 189 ' <div>\n' + 190 ' <label class="switch"><input type="checkbox" class="cn-settings-marketing-cookies-checkbox"><span class="slider round"></span></label>\n' + 191 ' </div>\n' + 192 ' </div>\n' + 193 ' </div>\n' + 194 ' <div class="overlay-footer">\n' + 195 ' <div style="text-align: center; margin-bottom: 20px;">\n' + 196 ' <!--<a href="#" id="cn-cookie-sett
196ings-abort" class="close-overlay" style="margin-right: 10px;">Abort</a>-->\n' + 197 ' <a href="#" id="cn-cookie-settings-save" class="cn-button bootstrap button">Save Preferences</a> <a href="#" class="cn-reject-all-cookies cn-button bootstrap button close-overlay">Reject all</a> <a href="#" class="cn-accept-all-cookies cn-button bootstrap button close-overlay">Accept all</a>\n' + 198 ' </div>\n' + 199 ' <div style="text-align: center;">\n' + 200 ' <a href="' + window.siteUrl + '/cookie-policy/" target="_blank">Cookie Policy</a> |\n' + 201 ' <a href="https://gameforge.com/en-US/littlegames/privacy-policy/" target="_blank">Privacy</a>\n' + 202 ' </div>\n' + 203 ' </div>\n' + 204 ' </div>\n' + 205 ' </div>\n' + 206 ' <div class="overlay overlay-background content_block"></div>'); 207 208 $('#share-game').html('<div class="overlay-container">\n' + 209 ' <div class="overlay-inner-background">\n' + 210 ' <div class="overlay-head">Share Game</div>\n' + 211 ' <div>\n' + 212 ' <div class="social-share-links">\n' + 213 ' <a href="https://www.facebook.com/sharer/sharer.php?u=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="Facebook" data-toggle="share-tooltip" title="Facebook"><span class="social-share-icon"><svg class="social-svg" viewBox="0 0 64 64" style="border-radius: 50%; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; fill-rule: evenodd;"><g class="social-svg-background" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><circle cx="32" cy="32" r="31"></circle></g><g class="social-svg-icon" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><path d="M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"></path></g><g class="social-svg-mask" style="transition: fill 170ms ease-in-out 0s; fill: rgb(59, 89, 152);"><path d="M0,0v64h64V0H0z M39.6,22l-2.8,0c-2.2,0-2.6,1.1-2.6,2.6V28h5.3l-0.7,5.3h-4.6V47h-5.5V33.3H24V28h4.6V24 c0-4.6,2.8-7,6.9-7c2,0,3.6,0.1,4.1,0.2V22z"></path></g></svg></span></a>\n' + 214 ' <a href="https://twitter.com/home?status=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="Twitter" data-toggle="share-tooltip" title="Twitter"><span class="social-share-icon"><svg class="social-svg" viewBox="0 0 64 64" style="border-radius: 50%; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; fill-rule: evenodd;"><g class="social-svg-background" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><circle cx="32" cy="32" r="31"></circle></g><g class="social-svg-icon" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><path d="M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"></path></g><g class="social-svg-mask" style="transition: fill 170ms ease-in-out 0s; fill: rgb(0, 172, 237);"><path d="M0,0v64h64V0H0z M44.7,25.5c0,0.3,0,0.6,0,0.8C44.7,35,38.1,45,26.1,45c-3.7,0-7.2-1.1-10.1-2.9 c0.5,0.1,1,0.1,1.6,0.1c3.1,0,5.9-1,8.2-2.8c-2.9-0.1-5.3-2-6.1-4.6c0.4,0.1,0.8,0.1,1.2,0.1c0.6,0,1.2-0.1,1.7-0.2 c-3-0.6-5.3-3.3-5.3-6.4c0,0,0-0.1,0-0.1c0.9,0.5,1.9,0.8,3,0.8c-1.8-1.2-2.9-3.2-2.9-5.5c0-1.2,0.3-2.3,0.9-3.3 c3.2,4,8.1,6.6,13.5,6.9c-0.1-0.5-0.2-1-0.2-1.5c0-3.6,2.9-6.6,6.6-6.6c1.9,0,3.6,0.8,4.8,2.1c1.5-0.3,2.9-0.8,4.2-1.6 c-0.5,1.5-1.5,2.8-2.9,3.6c1.3-0.2,2.6-0.5,3.8-1C47.1,23.4,46,24.5,44.7,25.5z"></path></g></svg></span></a>\n' + 215 ' <a href="whatsapp://send?text=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="Whatsapp" data-toggle="share-tooltip" title="Whatsapp"><span class="social-share-icon"><svg class="social-svg" viewBox="0 0 64 64" style="border-radius: 50%; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; fill-rule: evenodd;"><g class="social-svg-background" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><circle cx="32" cy="32" r="31"></circle></g><g class="social-svg-icon" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><path d="M 48 31.589844 C 48 40.195312 40.96875 47.175781 32.289062 47.175781 C 29.535156 47.175781 26.949219 46.472656 24.695312 45.234375 L 16 48 L 18.835938 39.636719 C 17.40625 37.289062 16.582031 34.53125 16.582031 31.589844 C 16.582031 22.980469 23.613281 16 32.289062 16 C 40.96875 16 48 22.980469 48 31.589844 Z M 32.289062 18.484375 C 25.007812 18.484375 19.082031 24.363281 19.082031 31.589844 C 19.082031 34.457031 20.019531 37.109375 21.597656 39.269531 L 19.949219 44.136719 L 25.023438 42.527344 C 27.109375 43.894531 29.609375 44.691406 32.292969 44.691406 C 39.574219 44.691406 45.5 38.816406 45.5 31.589844 C 45.5 24.363281 39.574219 18.484375 32.289062 18.484375 Z M 40.222656 35.179688 C 40.125 35.019531 39.871094 34.921875 39.484375 34.730469 C 39.101562 34.542969 37.207031 33.617188 36.855469 33.488281 C 36.5 33.363281 36.242188 33.296875 35.988281 33.679688 C 35.730469 34.0625 34.992188 34.921875 34.769531 35.179688 C 34.542969 35.433594 34.320312 35.464844 33.933594 35.273438 C 33.546875 35.082031 32.308594 34.679688 30.835938 33.378906 C 29.691406 32.367188 28.917969 31.117188 28.695312 30.734375 C 28.472656 30.351562 28.671875 30.144531 28.863281 29.953125 C 29.039062 29.78125 29.25 29.507812 29.441406 29.285156 C 29.636719 29.0625 29.699219 28.902344 29.828125 28.648438 C 29.957031 28.390625 29.890625 28.167969 29.792969 27.976562 C 29.699219 27.785156 28.925781 25.90625 28.605469 25.140625 C 28.285156 24.375 27.964844 24.503906 27.742188 24.503906 C 27.515625 24.503906 27.257812 24.472656 27.003906 24.472656 C 26.746094 24.472656 26.328125 24.566406 25.976562 24.949219 C 25.621094 25.332031 24.628906 26.257812 24.628906 28.136719 C 24.628906 30.015625 26.00
2157812 31.832031 26.199219 32.085938 C 26.394531 32.34375 28.863281 36.324219 32.777344 37.855469 C 36.691406 39.386719 36.691406 38.875 37.398438 38.8125 C 38.105469 38.746094 39.675781 37.886719 40 36.996094 C 40.320312 36.101562 40.320312 35.335938 40.222656 35.179688 Z M 40.222656 35.179688"></path></g><g class="social-svg-mask" style="transition: fill 170ms ease-in-out 0s; fill: rgb(37, 211, 102);"><path d="M0,0v64h64V0H0z M 48 31.589844 C 48 40.195312 40.96875 47.175781 32.289062 47.175781 C 29.535156 47.175781 26.949219 46.472656 24.695312 45.234375 L 16 48 L 18.835938 39.636719 C 17.40625 37.289062 16.582031 34.53125 16.582031 31.589844 C 16.582031 22.980469 23.613281 16 32.289062 16 C 40.96875 16 48 22.980469 48 31.589844 Z M 32.289062 18.484375 C 25.007812 18.484375 19.082031 24.363281 19.082031 31.589844 C 19.082031 34.457031 20.019531 37.109375 21.597656 39.269531 L 19.949219 44.136719 L 25.023438 42.527344 C 27.109375 43.894531 29.609375 44.691406 32.292969 44.691406 C 39.574219 44.691406 45.5 38.816406 45.5 31.589844 C 45.5 24.363281 39.574219 18.484375 32.289062 18.484375 Z M 40.222656 35.179688 C 40.125 35.019531 39.871094 34.921875 39.484375 34.730469 C 39.101562 34.542969 37.207031 33.617188 36.855469 33.488281 C 36.5 33.363281 36.242188 33.296875 35.988281 33.679688 C 35.730469 34.0625 34.992188 34.921875 34.769531 35.179688 C 34.542969 35.433594 34.320312 35.464844 33.933594 35.273438 C 33.546875 35.082031 32.308594 34.679688 30.835938 33.378906 C 29.691406 32.367188 28.917969 31.117188 28.695312 30.734375 C 28.472656 30.351562 28.671875 30.144531 28.863281 29.953125 C 29.039062 29.78125 29.25 29.507812 29.441406 29.285156 C 29.636719 29.0625 29.699219 28.902344 29.828125 28.648438 C 29.957031 28.390625 29.890625 28.167969 29.792969 27.976562 C 29.699219 27.785156 28.925781 25.90625 28.605469 25.140625 C 28.285156 24.375 27.964844 24.503906 27.742188 24.503906 C 27.515625 24.503906 27.257812 24.472656 27.003906 24.472656 C 26.746094 24.472656 26.328125 24.566406 25.976562 24.949219 C 25.621094 25.332031 24.628906 26.257812 24.628906 28.136719 C 24.628906 30.015625 26.007812 31.832031 26.199219 32.085938 C 26.394531 32.34375 28.863281 36.324219 32.777344 37.855469 C 36.691406 39.386719 36.691406 38.875 37.398438 38.8125 C 38.105469 38.746094 39.675781 37.886719 40 36.996094 C 40.320312 36.101562 40.320312 35.335938 40.222656 35.179688 Z M 40.222656 35.179688"></path></g></svg></span></a>\n' + 216 ' <a href="http://reddit.com/submit?url=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="Reddit" data-toggle="share-tooltip" title="Reddit"><span class="social-share-icon"><svg class="social-svg" viewBox="0 0 64 64" style="border-radius: 50%; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; fill-rule: evenodd;"><g class="social-svg-background" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><circle cx="32" cy="32" r="31"></circle></g><g class="social-svg-icon" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><path d="M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.9687
2165 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"></path></g><g class="social-svg-mask" style="transition: fill 170ms ease-in-out 0s; fill: rgb(255, 69, 0);"><path d="M0,0v64h64V0H0z M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"></path></g></svg></span></a>\n' + 217 ' <a href="mailto:?&subject=&body=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="E-mail" data-toggle="share-tooltip" title="E-mail"><span class="social-share-icon"><svg class="social-svg" viewBox="0 0 64 64" style="border-radius: 50%; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; fill-rule: evenodd;"><g class="social-svg-background" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><circle cx="32" cy="32" r="31"></circle></g><g class="social-svg-icon" style="transition: fill 170ms ease-in-out 0s; fill: transparent;"><path d="M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"></path></g><g class="social-svg-mask" style="transition: fill 170ms ease-in-out 0s; fill: rgb(127, 127, 127);"><path d="M41.1,25H22.9l9.1,7.1L41.1,25z M44,26.6l-12,9.3l-12-9.3V39h24V26.6z M0,0v64h64V0H0z M47,42H17V22h30V42z"></path></g></svg></span></a>\n' + 218 ' <a href="fb-messenger://share/?link=' + current_url_encoded + '" target="_blank" rel="nofollow noopener noreferrer" class="social-share-link" data-provider="Messenger" data-toggle="share-tooltip" title="Messenger"><span class="social-share-icon"><svg viewBox="0 0 64 64" width="40" height="40"><circle cx="32" cy="32" r="31" fill="#2196F3"></circle><path d="M 53.066406 21.871094 C 52.667969 21.339844 51.941406 21.179688 51.359375 21.496094 L 37.492188 29.058594 L 28.867188 21.660156 C 28.339844 21.207031 27.550781 21.238281 27.054688 21.730469 L 11.058594 37.726562 C 10.539062 38.25 10.542969 39.09375 11.0625 39.613281 C 11.480469 40.027344 12.121094 40.12
2181094 12.640625 39.839844 L 26.503906 32.28125 L 35.136719 39.679688 C 35.667969 40.132812 36.457031 40.101562 36.949219 39.609375 L 52.949219 23.613281 C 53.414062 23.140625 53.464844 22.398438 53.066406 21.871094 Z M 53.066406 21.871094" fill="white"></path></svg></span></a>\n' + 219 ' </div>\n' + 220 ' <div style="display: flex;"><input type="text" class="form-control" id="share-link" value="' + current_url + '" style="flex: 1;" readonly="readonly" onClick="this.setSelectionRange(0, this.value.length)"><button type="button" class="copy-share-link btn btn-primary">Copy</button></div>' + 221 ' <div class="copied-container"><div class="copied-info">Copied!</div></div>\n' + 222 ' </div>\n' + 223 ' <div class="overlay-footer">\n' + 224 ' <div style="flex: 1; text-align: right;">\n' + 225 ' <a href="#" class="close-overlay">Close</a>\n' + 226 ' </div>\n' + 227 ' </div>\n' + 228 ' <svg class="overlay-close close-overlay" width="20px" height="20px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n' + 229 ' <title>Close</title>\n' + 230 ' <g stroke="none" stroke-width="3" fill="none" fill-rule="evenodd">\n' + 231 ' <g transform="translate(-240.000000, -384.000000)">\n' + 232 ' <rect x="240" y="384" width="24" height="24"></rect>\n' + 233 ' </g>\n' + 234 ' <g transform="translate(-240.000000, -384.000000)" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round">\n' + 235 ' <g transform="translate(240.000000, 384.000000)">\n' + 236 ' <line x1="0.5" y1="0.5" x2="23.5" y2="23.5"></line>\n' + 237 ' <line x1="23.5" y1="0.5" x2="0.5" y2="23.5"></line>\n' + 238 ' </g>\n' + 239 ' </g>\n' + 240 ' <g transform="translate(-240.000000, -576.000000)"></g>\n' + 241 ' </g>\n' + 242 ' </svg>\n' + 243 ' </div>\n' + 244 ' </div>\n' + 245 ' <div class="overlay overlay-background content_block"></div>'); 246 247 $('[data-toggle="share-tooltip"]').tooltip({ 248 container: '.social-share-links' 249 }); 250 251 $('#dislike-feedback').html('<div class="overlay-container">\n' + 252 ' <div class="overlay-inner-background"><form>\n' + 253 ' <div class="overlay-head">Thanks!</div>\n' + 254 ' <div>\n' + 255 ' <p>Thanks for your rating. Your feedback helps us to improve LittleGames.</p>\n' + 256 ' <p>Please tell us why ' + game_title + ' deserves a downvote:</p>\n' + 257 ' <fieldset id="feedback-reason">\n' + 258 ' <div><input type="radio" id="dont-like-it" name="feedback-reason" class="form-check-input" value="dont-like-it" required><label for="dont-like-it">I don\'t like it</label></div>\n' + 259 ' <div><input type="radio" id="isnt-loading" name="feedback-reason" class="form-check-input" value="isnt-loading" required><label for="isnt-loading">It isn\'t loading</label></div>\n' + 260 ' <div id="isnt-loading-notice">When a game doesn\'t load, an ad blocker is often the problem. Please deactivate your ad blocker and then reload the page!</div>\n' + 261 ' <div><input type="radio" id="bugs" name="feedback-reason" class="form-check-input" value="bugs" required><label for="bugs">It has bugs</label></div>\n' + 262 ' <div><input type="radio" id="other" name="feedback-reason" class="form-check-input" value="other" required><label for="other">Other</label></div></fieldset>\n' + 263 ' </div>\n' + 264 ' <div><textarea class="form-control feedback-text" placeholder="Feedback"></textarea></div>\n' + 265 ' <div class="overlay-footer">\n' + 266 ' <div style="flex: 1; text-align: right;">\n' + 267 ' <a href="#" class="close-overlay" style="margin-right: 10px;">Cancel</a>\n' + 268 ' <button type="submit" href="#" id="send-dislike-feedback" class="cn-button bootstrap button">Submit Feedback</button>\n' + 269 ' </div>\n' + 270 ' </div>\n' + 271 ' <svg class="overlay-close close-overlay" width="20px" height="20px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n' + 272 ' <title>Close</title>\n' + 273 ' <g stroke="none" stroke-width="3" fill="none" fill-rule="evenodd">\n' + 274 ' <g transform="translate(-240.000000, -384.000000)">\n' + 275 ' <rect x="240" y="384" width="24" height="24"></rect>\n' + 276 ' </g>\n' + 277 ' <g transform="translate(-240.000000, -384.000000)" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round">\n' + 278 ' <g transform="translate(240.000000, 384.000000)">\n' + 279 ' <line x1="0.5" y1="0.5" x2="23.5" y2="23.5"></line>\n' + 280 ' <line x1="23.5" y1="0.5" x2="0.5" y2="23.5"></line>\n' + 281 ' </g>\n' + 282 ' </g>\n' + 283 ' <g transform="translate(-240.000000, -576.000000)"></g>\n' + 284 ' </g>\n' + 285 ' </svg>\n' + 286 ' </form></div>\n' + 287 ' </div>\n' + 288 ' <div class="overlay overlay-background content_block"></div>'); 289 } 290 291 function framingAcceptedText() { 292 return 'You have consented to the integration of third party content. <a href=\"#\" id=\"disable-framing\">Deactivate integration</a>'; 293 } 294 295 function framingDeclinedText() { 296 return 'You have not consented to the integration of third party content. <a href=\"#\" id=\"enable-framing\">Activate integration</a>'; 297 } 298 299 if(window.framingContentAllowed) { 300 $('#framing-consent-settings').html(framingAcceptedText()); 301 } else { 302 $('#framing-consent-settings').html(framingDeclinedText()); 303 } 304 305 $( document ).on( 'click', '#disable-framing', function() { 306 event.preventDefault(); 307 window.framingContentAllowed = false;
308 Cookies.remove('framing_allowed'); 309 alert('Setting saved'); 310 $('#framing-consent-settings').html(framingDeclinedText()); 311 }); 312 313 $( document ).on( 'click', '#enable-framing', function() { 314 event.preventDefault(); 315 window.framingContentAllowed = true; 316 Cookies.set('framing_allowed', true, { expires: 365 }) 317 alert('Setting saved'); 318 $('#framing-consent-settings').html(framingAcceptedText()); 319 }); 320 321 function framingVideoAcceptedText() { 322 return 'You have consented to the integration of third party video content. <a href=\"#\" id=\"disable-video-framing\">Deactivate integration</a>'; 323 } 324 325 function framingVideoDeclinedText() { 326 return 'You have not consented to the integration of third party video content. <a href=\"#\" id=\"enable-video-framing\">Activate integration</a>'; 327 } 328 329 if(window.framingVideoContentAllowed) { 330 $('#framing-video-consent-settings').html(framingVideoAcceptedText()); 331 } else { 332 $('#framing-video-consent-settings').html(framingVideoDeclinedText()); 333 } 334 335 $( document ).on( 'click', '#disable-video-framing', function() { 336 event.preventDefault(); 337 window.framingVideoContentAllowed = false; 338 Cookies.remove('framing_video_allowed'); 339 alert('Setting saved'); 340 $('#framing-video-consent-settings').html(framingVideoDeclinedText()); 341 }); 342 343 $( document ).on( 'click', '#enable-video-framing', function() { 344 event.preventDefault(); 345 window.framingVideoContentAllowed = true; 346 Cookies.set('framing_video_allowed', true, { expires: 365 }) 347 alert('Setting saved'); 348 $('#framing-video-consent-settings').html(framingVideoAcceptedText()); 349 }); 350 351 window.requestFullConsent = true; 352 var requestFullConsentGet = window.getUrlParameter('full-consent'); 353 if(requestFullConsentGet) { 354 window.requestFullConsent = true; 355 Cookies.set('request_full_consent', true, { expires: 365 }) 356 } 357 358 var deleteFullConsentGet = window.getUrlParameter('default-consent'); 359 if(deleteFullConsentGet) { 360 window.requestFullConsent = false; 361 Cookies.remove('request_full_consent'); 362 } 363 364 function loadStatisticsScripts() { 365 366 /* console.log('loading statistics scripts'); */ 367 if(window.statisticsCookiesAllowed) { 368 /* Own Statistics */ 369 370 /* Google Analytics */ 371 /* 372 if(!document.domain.match(/gfseodev/)) { 373 var s = document.createElement("script"); 374 s.type = "text/javascript"; 375 s.src = "https://www.googletagmanager.com/gtag/js?id=UA-168989024-1"; 376 s.id = "script_google_analytics"; 377 $("head").append(s); 378
vendor: 127 bytes, line 378
378window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '
378UA-168989024-1
vendor: 42 bytes, lines 378-379
378', { 'anonymize_ip': true }); 379
379} else { 380 console.log('analytics not loaded because on dev environment'); 381 } 382 */ 383 384 } 385 386 } 387 388 function loadFramingContent() { 389 390 console.log('loading framing content'); 391 if(window.framingContentAllowed) { 392 393 if(typeof window.sessionId == 'undefined') { 394 function uniqueID(){ 395 function chr4(){ 396 return Math.random().toString(16).slice(-4); 397 } 398 return Date.now() + '-' + chr4() + chr4() + '-' + chr4() + '-' + chr4() + '-' + chr4() + '-' + chr4() + chr4() + chr4(); 399 } 400 window.sessionId = uniqueID(); 401 Cookies.set('lg_session', window.sessionId) 402 } 403 404 $('.game-loading').css('display', 'flex'); 405 $('#game-cookie-consent').css('display', 'none'); 406 $('#game-iframe-container').css('display', 'block'); 407 setGameIFrame(); 408 } else { 409 $('.game-loading').css('display', 'none'); 410 $('#game-cookie-consent').css('display', 'block'); 411 $('#game-iframe-container').css('display', 'none'); 412 } 413 414 } 415 416 function loadFramingVideoContent() { 417 418 console.log('loading framing video content'); 419 if(window.framingVideoContentAllowed) { 420 $('#game-walkthrough-cookie-consent').css('display', 'none'); 421 $('#game-video-iframe-container').css('display', 'block'); 422 window.initTubia(); 423 } else { 424 $('#game-walkthrough-cookie-consent').css('display', 'block'); 425 $('#game-video-iframe-container').css('display', 'none'); 426 } 427 428 } 429 430 function loadScripts() { 431 loadStatisticsScripts(); 432 if(typeof window.gameId !== 'undefined') { 433 window.loadMarketingScripts(md); 434 loadFramingContent(); 435 loadFramingVideoContent(); 436 } 437 } 438 439 $( ".cn-reject-all-cookies" ).click(function() { 440 $("#cookie-notice-full-consent").css("display", "none"); 441 442 //Cookies.set('statistics_allowed', true, { expires: 365 }) 443 Cookies.set('marketing_allowed', false, { expires: 30 }) 444 //window.statisticsCookiesAllowed = true; 445 window.marketingCookiesAllowed = false; 446 447 Cookies.set('cookie_notice_full_consent_accepted', true, { expires: 365 }) 448 window.cookieNoticeFullConsentClicked = false; 449 450 window.framingContentAllowed = false; 451 Cookies.set('framing_allowed', false, { expires: 30 }) 452 453 window.framingVideoContentAllowed = false; 454 Cookies.set('framing_video_allowed', false, { expires: 30 }) 455 456 loadScripts(); 457 }); 458 459 $( ".cn-accept-all-cookies" ).click(function() { 460 $("#cookie-notice-full-consent").css("display", "none"); 461 462 //Cookies.set('statistics_allowed', true, { expires: 365 }) 463 Cookies.set('marketing_allowed', true, { expires: 365 }) 464 //window.statisticsCookiesAllowed = true; 465 window.marketingCookiesAllowed = true; 466 467 Cookies.set('cookie_notice_full_consent_accepted', true, { expires: 365 }) 468 window.cookieNoticeFullConsentClicked = true; 469 470 window.framingContentAllowed = true; 471 Cookies.set('framing_allowed', true, { expires: 365 }) 472 473 window.framingVideoContentAllowed = true; 474 Cookies.set('framing_video_allowed', true, { expires: 365 }) 475 476 loadScripts(); 477 }); 478 479 if(window.requestFullConsent === true) { 480 if(typeof Cookies.get('statistics_allowed') == "undefined") { 481 window.statisticsCookiesAllowed = false; 482 } 483 if(typeof Cookies.get('marketing_allowed') == "undefined") { 484 window.marketingCookiesAllowed = false; 485 } else { 486 $(".cn-marketing-cookies-checkbox").prop('checked', true) 487 } 488 489 if(typeof window.cookieNoticeFullConsentClicked == "undefined" || window.cookieNoticeFullConsentClicked === false) { 490 491 if(typeof window.gameId !== 'undefined' || window.location.href === 'https://gameforge.com/en-US/littlegames/') { 492 $("#cookie-notice-full-consent").css("display", "block"); 493 } 494 495 $( ".cn-accept-selected-cookies" ).click(function() { 496 $(".cn-full-consent").css("display", "none"); 497 498 Cookies.set('statistics_allowed', $(".cn-statistics-cookies-checkbox").prop('checked'), { expires: 365 }) 499 Cookies.set('marketing_allowed', $(".cn-marketing-cookies-checkbox").prop('checked'), { expires: 365 }) 500 window.statisticsCookiesAllowed = $(".cn-statistics-cookies-checkbox").prop('checked'); 501 window.marketingCookiesAllowed = $(".cn-marketing-cookies-checkbox").prop('checked'); 502 503 Cookies.set('cookie_notice_full_consent_accepted', true, { expires: 365 }) 504 window.cookieNoticeFullConsentClicked = true; 505 loadScripts(); 506 }); 507 } 508 509 } else { 510 if(typeof Cookies.get('statistics_allowed') == "undefined") { 511 window.statisticsCookiesAllowed = true; 512 } 513 if(typeof Cookies.get('marketing_allowed') == "undefined") { 514 window.marketingCookiesAllowed = true; 515 } 516 517 console.log('statisticsCookiesAllowed'); 518 console.log(window.statisticsCookiesAllowed); 519 console.log('marketingCookiesAllowed'); 520 console.log(window.marketingCookiesAllowed); 521 522 if(typeof window.cookieNoticeClicked == "undefined" || window.cookieNoticeClicked === false) { 523 $(".cn-consent").css("display", "block"); 524 525 $( ".cn-accept-cookies" ).click(function() { 526 $(".cn-consent").css("display", "none"); 527 528 Cookies.set('cookie_notice_accepted', true, { expires: 365 }) 529 window.cookieNoticeClicked = true; 530 531 }); 532 } 533 } 534 535 loadScripts(); 536 537 $( "#cn-delete-cookies" ).click(function(event) { 538 Cookies.remove('cookie_notice_accepted'); 539 Cookies.remove('cookie_notice_full_consent_accepted'); 540 Cookies.remove('statistics_allowed'); 541 Cookies.remove('marketing_allowed'); 542 Cookies.remove('framing_allowed'); 543 Cookies.remove('framing_video_allowed'); 544
545 alert('Cookies successfully deleted!'); 546 547 window.statisticsCookiesAllowed = false; 548 window.marketingCookiesAllowed = false; 549 $(".cn-settings-statistics-cookies-checkbox").prop('checked', window.statisticsCookiesAllowed); 550 $(".cn-settings-marketing-cookies-checkbox").prop('checked', window.marketingCookiesAllowed); 551 $("#cookie-notice-full-consent").css("display", "block"); 552 event.preventDefault(); 553 }); 554 555 $( "#cn-cookie-settings, .cn-cookie-settings" ).click(function(event) { 556 557 window.scrollTo(0, 0); 558 559 $(".cn-settings-statistics-cookies-checkbox").prop('checked', window.statisticsCookiesAllowed); 560 $(".cn-settings-marketing-cookies-checkbox").prop('checked', window.marketingCookiesAllowed); 561 562 $("#cookie-settings").css("display", "block"); 563 }); 564 565 $( ".close-overlay" ).click(function(event) { 566 event.preventDefault(); 567 $(".outer-overlay-container").css("display", "none"); 568 }); 569 570 $( "#cn-cookie-settings-save" ).click(function(event) { 571 572 event.preventDefault(); 573 574 $("#cookie-notice-full-consent").css("display", "none"); 575 $(".cn-consent").css("display", "none"); 576 577 //Cookies.set('statistics_allowed', $(".cn-settings-statistics-cookies-checkbox").prop('checked'), { expires: 365 }) 578 //window.statisticsCookiesAllowed = $(".cn-settings-statistics-cookies-checkbox").prop('checked') 579 580 Cookies.set('marketing_allowed', $(".cn-settings-marketing-cookies-checkbox").prop('checked'), { expires: 365 }) 581 window.marketingCookiesAllowed = $(".cn-settings-marketing-cookies-checkbox").prop('checked'); 582 583 if(typeof window.marketinCookiesAllowed === 'undefined') { 584 Cookies.remove('framing_allowed'); 585 } 586 587 $(".cn-full-consent").css("display", "none"); 588 if(window.requestFullConsent) { 589 Cookies.set('cookie_notice_full_consent_accepted', true, { expires: 365 }) 590 } else { 591 Cookies.set('cookie_notice_accepted', true, { expires: 365 }) 592 } 593 loadScripts(); 594
595 $("#cookie-settings").css("display", "none"); 596 }); 597 598 $( ".like-game" ).click(function(event) { 599 600 game_liked = !game_liked; 601 if(game_liked) { 602 603 if(typeof Cookies.get('game-liked-' + window.gameId) == "undefined") { 604 Cookies.set('game-liked-' + window.gameId, true, { expires: 365 }); 605 } 606 607 $(".like-game svg > g > g:nth-child(2)").css("stroke", "#6BF8FF"); 608 609 if(typeof window.gameId !== 'undefined' && typeof Cookies.get('game-liked-perm-' + window.gameId) == "undefined") { 610 window.logAction('like'); 611 Cookies.set('game-liked-perm-' + window.gameId, true, { expires: 365 }); 612 } 613 } 614 else { 615 Cookies.remove('game-liked-' + window.gameId); 616 $(".like-game svg > g > g:nth-child(2)").css("stroke", "#FFF"); 617 } 618 619 if(game_disliked) { 620 game_disliked = false; 621 Cookies.remove('game-disliked-' + window.gameId); 622 $(".dislike-game svg > g > g:nth-child(2)").css("stroke", "#FFF"); 623 } 624 }); 625 626 $( ".dislike-game" ).click(function(event) { 627 628 game_disliked = !game_disliked; 629 if(game_disliked) { 630 631 if(typeof Cookies.get('game-disliked-' + window.gameId) == "undefined") { 632 Cookies.set('game-disliked-' + window.gameId, true, { expires: 365 }); 633 } 634 $(".dislike-game svg > g > g:nth-child(2)").css("stroke", "#6BF8FF"); 635 636 if(typeof window.gameId !== 'undefined' && typeof Cookies.get('game-disliked-perm-' + window.gameId) == "undefined") { 637 window.logAction('dislike'); 638 Cookies.set('game-disliked-perm-' + window.gameId, true, { expires: 365 }); 639 } 640 641 window.scrollTo(0, 0); 642 $("#dislike-feedback").css("display", "block"); 643 } 644 else { 645 Cookies.remove('game-disliked-' + window.gameId); 646 $(".dislike-game svg > g > g:nth-child(2)").css("stroke", "#FFF"); 647 } 648 649 if(game_liked) { 650 game_liked = false; 651 Cookies.remove('game-liked-' + window.gameId); 652 $(".like-game svg > g > g:nth-child(2)").css("stroke", "#FFF"); 653 } 654 655 }); 656 657 $( "#feedback-reason div" ).click(function(event) { 658 $(".feedback-text").css("display", "block"); 659 660 if(event.target.id === 'isnt-loading'){ 661 $("#isnt-loading-notice").css("display", "block"); 662 } 663 else{ 664 $("#isnt-loading-notice").css("display", "none"); 665 } 666 }); 667 668 $( "#send-dislike-feedback" ).click(function(event) { 669 670 var feedback_reason = $( "input[name='feedback-reason']:checked" ).val(); 671 var feedback_text = $( ".feedback-text" ).val(); 672 673 if(feedback_reason == 'other') { 674 $(".feedback-text").prop('required', true); 675 } else { 676 $(".feedback-text").prop('required', false); 677 if(typeof feedback_reason !== 'undefined') { 678 event.preventDefault(); 679 } 680 } 681 682 if(typeof window.gameId !== 'undefined') { 683 684 if((feedback_reason == 'other' && feedback_text !== '' && feedback_text !== null) || (typeof feedback_reason !== 'undefined' && feedback_reason !== 'other')) { 685 686 window.logAction('dislike-feedback', { 687 reason: feedback_reason, 688 text: feedback_text 689 }); 690 691 $("#dislike-feedback").css("display", "none"); 692 $("input[name='feedback-reason']:checked").removeAttr("checked"); 693 $( ".feedback-text" ).val(''); 694 event.preventDefault(); 695 } 696 } 697 698 }); 699 700 $( ".share-game" ).click(function(event) { 701 702 window.scrollTo(0, 0); 703 $("#share-game").css("display", "block"); 704 705 window.logAction('share-game'); 706 }); 707 708 $( ".social-share-link" ).click(function(event) { 709 710 window.logAction('share-link-clicked', { 711 provider: $( this ).data( "provider" ) 712 }); 713 714 }); 715 716 $( ".copy-share-link" ).click(function(event) { 717 copyToClipboard(current_url); 718 719 $(".copied-info").fadeIn(function(){ $(".copied-info").fadeOut(); }); 720 window.logAction('share-link-copied'); 721 }); 722 723 $( ".overlay-background" ).click(function(event) { 724 $(".outer-overlay-container").css("display", "none"); 725 }); 726 727 var vertical_enabled = false;
728 var cinema_enabled = false; 729 730 if (document.addEventListener) 731 { 732 document.addEventListener('fullscreenchange', exitHandler, false); 733 document.addEventListener('mozfullscreenchange', exitHandler, false); 734 document.addEventListener('MSFullscreenChange', exitHandler, false); 735 document.addEventListener('webkitfullscreenchange', exitHandler, false); 736 } 737 738 function exitHandler() 739 { 740 if (document.webkitIsFullScreen === false) 741 { 742 fullscreenExit(); 743 } 744 else if (document.mozFullScreen === false) 745 { 746 fullscreenExit(); 747 } 748 else if (document.msFullscreenElement === false) 749 { 750 fullscreenExit(); 751 } 752 } 753 754 $( '.play-game-btn, .play-img' ).click(function() { 755 var href = $(this).data('href'); 756 var width = $(window).width(); 757 var height = $(window).height(); 758 var gameCode = decodeURIComponent($( this ).data( 'game-code' )); 759 if(typeof gameCode === 'undefined' || gameCode === 'undefined' || gameCode === null || gameCode === '') { 760 var gameCode = decodeURIComponent($( this ).data( 'link' )); 761 } 762 var gameCodeProtocol = gameCode.substring(0, 4); 763 764 if(gameCodeProtocol === 'http') { 765 if(href === '_self') { 766 setGameIFrame(); 767 } else if(href === '_redirect') { 768 window.location.href = gameCode; 769 } else { 770 window.open(gameCode,'window','toolbar=yes, menubar=yes, resizable=yes, top=0, left=0, width=' + width + ', height=' + height + ''); 771 } 772 } else { 773 setGameIFrame(); 774 } 775 776 var cookie_consent = $(this).data('cookie-consent'); 777 if(cookie_consent == 'yes') { 778 window.framingContentAllowed = true; 779 Cookies.set('framing_allowed', true, { expires: 365 }) 780 loadFramingContent(); 781 } 782 }); 783 784 $(".game").hover( 785 function() { 786 if($('.game-video', this).length > 0) { 787 if ($('.game-video', this).is(':empty')) { 788 $('.game-video', this).html('<video preload="none" loop autoplay muted playsinline poster="' + $('.game-video', this).data('poster') + '"><source src="' + $('.game-video', this).data('video') + '" type="video/mp4"></video>'); 789 } 790 791 var playPromise = $('.game-video video', this).get(0).play(); 792 if (playPromise !== undefined) { 793 playPromise.then(_ => { 794 $('video', this).css('display', 'block'); 795 $('video', this).css('zIndex', '40'); 796 $('img', this).css('display', 'none'); 797 }) 798 .catch(error => { 799 }); 800 } 801 } 802 }, function() { 803 if($('.game-video', this).length > 0) { 804 $('video', this).css('display', 'none'); 805 $('video', this).css('zIndex', '10'); 806 $('video', this).get(0).pause(); 807 $('video', this).currentTime = 0; 808 $('img', this).css('display', 'block'); 809 } 810 } 811 ); 812 813 $( '.play-walkthrough-btn, .play-walkthrough-img' ).click(function() { 814 815 var cookie_consent = $(this).data('cookie-consent'); 816 if(cookie_consent == 'yes') { 817 window.framingVideoContentAllowed = true; 818 Cookies.set('framing_video_allowed', true, { expires: 365 }) 819 loadFramingVideoContent(); 820 } 821 }); 822 823 function requestFullScreen(element) { 824 var isInFullScreen = (document.fullscreenElement && document.fullscreenElement !== null) || 825 (document.webkitFullscreenElement && document.webkitFullscreenElement !== null) || 826 (document.mozFullScreenElement && document.mozFullScreenElement !== null) || 827 (document.msFullscreenElement && document.msFullscreenElement !== null); 828 829 var docElm = document.documentElement; 830 if (!isInFullScreen) {
831 // Supports most browsers and their versions. 832 var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen; 833 834 if (requestMethod) { // Native full screen. 835 requestMethod.call(element); 836 } else if (typeof window.ActiveXObject !== "undefined") { // Older IE. 837 var wscript = new ActiveXObject("WScript.Shell"); 838 if (wscript !== null) { 839 wscript.SendKeys("{F11}"); 840 } 841 } 842 } else { 843 if (document.exitFullscreen) { 844 document.exitFullscreen(); 845 } else if (document.webkitExitFullscreen) { 846 document.webkitExitFullscreen(); 847 } else if (document.mozCancelFullScreen) { 848 document.mozCancelFullScreen(); 849 } else if (document.msExitFullscreen) { 850 document.msExitFullscreen(); 851 } 852 } 853 } 854 855 $( '.fullscreen' ).click(function() { 856 857 var elem = document.body; // Make the body go full screen. 858 requestFullScreen(elem); 859 860 $('#first-content-below, #first-sidebar, #masthead, .site-footer, .cinema').css('display', 'none'); 861 862 $('.container').attr('style', 'max-width: 100% !important'); 863 $('.container').css('padding-right', '0'); 864 $('.container').css('padding-left', '0'); 865 $('#content.site-content').css('padding-bottom', '2rem'); 866 $('.game-content').css('padding-top', '0'); 867 $('.game-content').css('width', '100%'); 868 $('.game-content').css('max-width', '100%'); 869 $('.game-left').css('width', '100%'); 870 $('.game-left').css('max-width', '100%'); 871 $('#content').css('padding-top', '0'); 872 $('.game-container').attr('style', 'height: 100% !important'); 873 $('#page, #content, .container, .row, .content-area, #main, .game-content, .game-left').css('height', '100%'); 874 875 window.logAction('fullscreen-enabled'); 876 }); 877 878 function fullscreenExit() { 879 880 $('#first-content-below, #first-sidebar, #masthead, .site-footer, .cinema').css('display', 'block'); 881 $('.cinema').css('display', 'inline-block'); 882 883 $('.container').attr('style', 'max-width: auto;'); 884 $('.container').css('padding-right', '15px'); 885 $('.container').css('padding-left', '15px'); 886 $('.game-content').css('padding-top', '25px'); 887 $('#content').css('padding-top', '57px'); 888 $('.game-container').attr('style', 'height: 624px;'); 889 $('#page, #content, .container, .row, .content-area, #main, .game-content, .game-left').css('height', 'auto'); 890 891 cinemaMode(); 892 } 893 894 $( '.vertical' ).click(function() { 895 vertical_enabled = !vertical_enabled; 896 verticalMode(); 897 }); 898 899 function verticalMode() { 900 901 if(cinema_enabled) { 902 cinema_enabled = !cinema_enabled; 903 $('#content').css('background-color', 'transparent'); 904 $('#content.site-content').css('padding-bottom', '2rem'); 905 $('#first-content-below').css('display', 'block'); 906 $('#first-sidebar').css('display', 'block'); 907 $('.cinema-on-img').css('display', 'inline-block'); 908 $('.cinema-off-img').css('display', 'none'); 909 910 $('#cloned-site-content').remove(); 911 } 912 913 if(vertical_enabled) { 914 $('.game-container').attr('style', 'height: 750px; width: 440px;'); 915 $('.game-bar-below').attr('style', 'width: 440px;'); 916 917 window.logAction('vertical-mode-enabled'); 918 } else { 919 $('.game-container').attr('style', 'height: 624px; width: 100%;'); 920 $('.game-bar-below').attr('style', 'width: 100%;'); 921 } 922 } 923 924 $( '.cinema' ).click(function() { 925 cinema_enabled = !cinema_enabled; 926 cinemaMode(); 927 }); 928 929 function cinemaMode() { 930 931 if(vertical_enabled) { 932 vertical_enabled = !vertical_enabled; 933 } 934 935 if(cinema_enabled) { 936 $('.sidebar-aslots.gads-loaded').css('margin-top', '80px'); 937 $('#content').css('background-color', '#000'); 938 $('#content.site-content').css('padding-bottom', '0'); 939 $('#first-content-below').css('display', 'none'); 940 $('#first-sidebar').css('display', 'none'); 941 $('.cinema-on-img').css('display', 'none'); 942 $('.cinema-off-img').css('display', 'inline-block');
943 $('.game-container').attr('style', 'height: 680px;'); 944 $('.game-bar-below').attr('style', 'width: 100%;'); 945 $('.game-left').css('max-width', 'none'); 946 947 if($( "#cloned-site-content" ).length <= 0) { 948 $( "#content" ).after( '<div id="cloned-site-content" class="site-content">' + 949 '<div class="container">' + 950 '<div class="row">' + 951 '<section id="primary" class="content-area">' + 952 '<main id="main" class="site-main" role="main">' + 953 '<div class="game-content">' + 954 '<div class="game-left">' + $('#first-content-below').html() + '</div>' + 955 '<div id="first-sidebar" class="sidebar">' + 956 '<div class="sidebar-content">' + $('#first-sidebar').html() + '</div>' + 957 '</div>' + 958 '</div>' + 959 '</div>' + 960 '</div>' + 961 '</div>' + 962 '</div>' ); 963 } 964 965 window.logAction('cinema-enabled'); 966 } else { 967 $('.sidebar-aslots.gads-loaded').css('margin-top', '0px'); 968 $('#content').css('background-color', 'transparent'); 969 $('#content.site-content').css('padding-bottom', '2rem'); 970 $('#first-content-below').css('display', 'block'); 971 $('#first-sidebar').css('display', 'block'); 972 $('.cinema-on-img').css('display', 'inline-block'); 973 $('.cinema-off-img').css('display', 'none'); 974 $('.game-container').attr('style', 'height: 624px;'); 975 $('.game-left').css('max-width', '1340px'); 976 977 $('#cloned-site-content').remove(); 978 } 979 } 980 981 function setGameIFrame() { 982 if(gameCode.match(/gamedistribution\.com/)) { 983 if(window.marketingCookiesAllowed) { 984 gameCode = gameCode + '?gdpr-targeting=1' 985 } else { 986 gameCode = gameCode + '?gdpr-targeting=0' 987 } 988 } 989 var gameCodeProtocol = gameCode.substring(0, 4); 990 if(gameCodeProtocol === 'http') { 991 $('#game-iframe-container').html('<iframe id="game-iframe" name="game-iframe" class="iframe-container" src="' + gameCode + '" scrolling="no" height="100%" width="100%" frameborder="0" allowtransparency="true" allow="autoplay; fullscreen" allowfullscreen="allowfullscreen"></iframe>'); 992 } else { 993 $('#game-iframe-container').html(gameCode); 994 } 995 } 996 997 if(typeof window.gameId !== 'undefined') { 998 var playtimeCount = 0; 999 var playtimeInterval = setInterval(function() { 1000 $.post( window.apiEndpoint + '/api/playtime/', { 1001 'project_id': window.projectId, 1002 'game_id': window.gameId, 1003 'session_id': window.sessionId, 1004 'origin': window.origin, 1005 'screen_width': screen.width, 1006 'screen_height': screen.height, 1007 'mobile': window.md.mobile(), 1008 'phone': window.md.phone(), 1009 'tablet': window.md.tablet(), 1010 } ); 1011 if (++playtimeCount === 180) { 1012 window.clearInterval(playtimeInterval); 1013 } 1014 }, 60 * 1000); 1015 } 1016 1017 if(typeof window.categoryId !== 'undefined') { 1018 $.post( window.apiEndpoint + '/api/analytics/categories/', { 1019 'project_id': window.projectId, 1020 'category_id': window.categoryId, 1021 'session_id': window.sessionId, 1022 'origin': window.origin, 1023 'screen_width': screen.width, 1024 'screen_height': screen.height, 1025 'mobile': window.md.mobile(), 1026 'phone': window.md.phone(), 1027 'tablet': window.md.tablet(), 1028 } ); 1029 } 1030 var random_games = window.getPromotionGames(2); 1031 for (var i = 0; i < random_games.length; i++) { 1032 $('.more-games-promotion-game.promotion-slot' + (i + 1)).html('<img data-url="' + random_games[i].link + '" src="https://gameforge.com/en-US/littlegames/content/themes/casual/custom/img/promotion/' + random_games[i].img_title + '_348x164.jpg" srcset="https://gameforge.com/en-US/littlegames/content/themes/casual/custom/img/promotion/' + random_games[i].img_title + '_348x164.jpg 1x, https://gameforge.com/en-US/littlegames/content/themes/casual/custom/img/promotion/' + random_games[i].img_title + '_696x328.jpg 2x" alt="' + random_games[i].title + '" title="' + random_games[i].title + '" loading="lazy"><div class="label">Ad</div>'); 1033 } 1034 1035 $( document ).on( 'click', '.more-games-promotion-game img', function() { 1036 if(typeof $(this).data('url') !== 'undefined') { 1037 window.open($(this).data('url'), '_blank'); 1038 } 1039 }); 1040 1041 window.logAction = function logAction(action, metadata) { 1042 $.post( window.apiEndpoint + '/api/log/', { 1043 'project_id': window.projectId, 1044 'game_id': window.gameId, 1045 'session_id': window.sessionId, 1046 'origin': window.origin, 1047 'screen_width': screen.width, 1048 'screen_height': screen.height, 1049 'mobile': window.md.mobile(), 1050 'phone': window.md.phone(), 1051 'tablet': window.md.tablet(), 1052 'action': action, 1053 'metadata': metadata 1054 } ); 1055 } 1056 1057 var matomo_enabled = true; 1058 1059 // if(matomo_enabled) { 1060 // var _paq = window._paq = window._paq || []; 1061 // _paq.push(["setDoNotTrack", true]); 1062 // _paq.push(["disableCookies"]); 1063 // _paq.push(['trackPageView']); 1064 // _paq.push(['enableLinkTracking']); 1065 // (function() { 1066 // var u="https://analytics-live.gameforge.com/"; 1067 // _paq.push(['setTrackerUrl', u+'matomo.php']); 1068 // _paq.push(['setSiteId', '3']); 1069 // var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; 1070 // g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); 1071 // } 1072 // )(); 1073 // } 1074 1075});
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.