Advertisement
mfrantz

Untitled

Jan 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 133.87 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <!--[if IEMobile 7]><html class="iem7" lang="en" dir="ltr"><![endif]-->
  4. <!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" lang="en" dir="ltr"><![endif]-->
  5. <!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8" lang="en" dir="ltr"><![endif]-->
  6. <!--[if IE 8]><html class="lt-ie9" lang="en" dir="ltr"><![endif]-->
  7. <!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html lang="en" dir="ltr" prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# book: http://ogp.me/ns/book# profile: http://ogp.me/ns/profile# video: http://ogp.me/ns/video# product: http://ogp.me/ns/product# content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/2000/01/rdf-schema# sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema#"><!--<![endif]-->
  8.  
  9. <head>
  10. <meta charset="utf-8" />
  11. <link media="only screen and (max-width: 640px)" rel="alternate" href="//m.coolmath-games.com/0-run-3" />
  12. <meta content="Complete the Run trilogy! Explore hundreds of new levels in a huge new galaxy. Ready... set... GO!" property="og:description" />
  13. <meta content="//www.coolmath-games.com/sites/cmatgame/files/run-3.png" property="og:image" />
  14. <link rel="shortcut icon" href="//www.coolmath-games.com/sites/cmatgame/themes/cmatgame/favicon.ico" type="image/vnd.microsoft.icon" />
  15. <meta name="description" content="Run 3 at Cool Math Games: Complete the Run trilogy! Explore hundreds of new levels in a huge new galaxy. Ready... set... GO!" />
  16. <meta name="keywords" content="coolmaths, coolmath, math, maths, game, games, free, online, fun" />
  17. <link rel="canonical" href="//www.coolmath-games.com/0-run-3" />
  18. <meta property="og:type" content="article" />
  19. <meta property="og:url" content="http://www.coolmath-games.com/0-run-3" />
  20. <meta property="og:title" content="Run 3" />
  21. <title>Run 3 - Play it now at Coolmath-Games.com</title>
  22.  
  23.  
  24. <script>
  25. var pbjs = pbjs || {};
  26. pbjs.que = pbjs.que || [];
  27. </script>
  28. <!-- Load MBOX First -->
  29. <script type="text/javascript" src="/sites/cmatgame/files/mbox.js"></script>
  30. <!-- Prebid Boilerplate Section START. No Need to Edit. -->
  31. <script type="text/javascript" src="/sites/cmatgame/files/prebid.js" async></script>
  32. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_GkeqQjzVgzzy9aO8w7NBmdpfYEYFpkJ-3ogoX_W57ZY.css" media="all" />
  33. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_vZ_wrMQ9Og-YPPxa1q4us3N7DsZMJa-14jShHgRoRNo.css" media="screen" />
  34. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_Y1-8NQ_LtLRo-q3BhsGUj4-DuiRMtf9wyU08p15ex_M.css" media="all" />
  35. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_1MNwtRD6WqH0WMo2seX9QdbP8_vpxtyjYa39Vq9EbmE.css" media="all" />
  36. <style>#views-slideshow-bxslider-1.views-slideshow-bxslider .bx-wrapper .bx-controls-direction a{z-index:499;}
  37. #views-slideshow-bxslider-1.views-slideshow-bxslider li img{margin-right:auto;}
  38. #views-slideshow-bxslider-1.views-slideshow-bxslider .bx-caption{text-align:center;}
  39. #views-slideshow-bxslider-1.views-slideshow-bxslider .bx-wrapper .bx-caption{background:rgba(80,80,80,0.75)}
  40. </style>
  41. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_2vAfw_ztKggSvXi9EJx-4PLcirv_kTB2KUqsBVmm1K8.css" media="all" />
  42. <link type="text/css" rel="stylesheet" href="//www.coolmath-games.com/sites/cmatgame/files/css/css_KZKSsVUR5vPRQgGdUjihdeyQqDfmfBn8d58JhVx0gi8.css" media="all" />
  43. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
  44. <script>window.jQuery || document.write("<script src='/profiles/dsk/modules/contrib/jquery_update/replace/jquery/1.8/jquery.js'>\x3C/script>")</script>
  45. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_aczm2rRgH_slWBPnvD3KMrK7rwa1i99HOq8IUAb99Co.js"></script>
  46. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_IBx_aokEzIdgATx-5lYX9wJSjB6ovVmwHI9tBc9lfg8.js"></script>
  47. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_6RfqyQ6dGB15EZV8a7SPpd5EOSSerQR7s-GxPVyVTqA.js"></script>
  48. <script>
  49. var valid_test_environment = false;
  50. function getCookie(key) {
  51. var keyValue = document.cookie.match("(^|;) ?" + key + "=([^;]*)(;|$)");
  52. return keyValue ? keyValue[2] : null;
  53. }
  54. function setCookie1(cname, cvalue, hours) {
  55. var d = new Date();
  56. d.setTime(d.getTime() + (hours*60*60*1000));
  57. var expires = 'expires='+ d.toUTCString();
  58. document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';
  59. }
  60. function getParameterByName(name) {
  61. var regexS = '[\?&]' + name + '=([^&#]*)';
  62. var regex = new RegExp(regexS);
  63. var results = regex.exec(location.href);
  64. if (results === null) {
  65. return '';
  66. }
  67. return decodeURIComponent(results[1].replace(/\+/g, ' '));
  68. }
  69.  
  70. var cmg_school_whitelisted = getCookie('cmg_schwl');
  71. if(cmg_school_whitelisted === null && (typeof valid_test_environment !== 'undefined' && valid_test_environment) && typeof myDebugAction === 'function') {
  72. cmg_school_whitelisted = myDebugAction();
  73. }
  74.  
  75. var freeTrialUser = false;
  76. var date = new Date();
  77. var hours = date.getHours();
  78. var currentMonth = date.getMonth();
  79. var currentYear = date.getFullYear();
  80. var day = date.getDay();
  81. var month_names_short = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
  82. var currentMonthName = month_names_short[currentMonth];
  83. var schoolStartHour = 7;
  84. var schoolEndHour = 15;
  85. var cmg_no_ads_debug = false;
  86. //var cmg_no_ads = false;
  87. if(typeof subscriberLeg === 'undefined' || subscriberLeg === null || subscriberLeg === '') {
  88. subscriberLeg = 'Default Leg';
  89. if(typeof myDebugAction === 'function' && (typeof valid_test_environment !== 'undefined' && valid_test_environment) ) {
  90. myDebugAction();
  91. }
  92. }
  93. if(typeof freeGameLimit === 'undefined' || freeGameLimit === null) {
  94. freeGameLimit = 0;
  95. }
  96. if(typeof cmg_no_ads === 'undefined' && cmg_no_ads_debug && (typeof valid_test_environment !== 'undefined' && valid_test_environment)) {
  97. cmg_no_ads = true;
  98. }
  99. var schoolHours = false;
  100. var schoolHolidays = ["Jul 4","Sep 3","Nov 22","Nov 23"];
  101. var schoolHoliday = false;
  102.  
  103. //TODO -- Summer vacation dates
  104. var summerVacationStart = new Date('07/1/'+currentYear);
  105. var summerVacationEnd = new Date('07/10/'+currentYear);
  106.  
  107. var today_month_day = currentMonthName + ' ' + date.getDate();
  108. if(schoolHolidays.indexOf(today_month_day) !== -1 || (date >= summerVacationStart && date <= summerVacationEnd) || day === 6 || day == 0) {
  109. schoolHoliday = true;
  110. }
  111. var currentMonthName = month_names_short[currentMonth];
  112. if(!schoolHoliday && hours >= schoolStartHour && hours <= schoolEndHour) {
  113. schoolHours = true;
  114. }
  115. var targetStateUser = false;
  116. if(typeof targeted_state !== 'undefined' && targeted_state !== null && targeted_state) {
  117. targetStateUser = true;
  118. }
  119. var cmg_active_anonymous_user = getCookie('cmg_active_anonymous_user');
  120. var cmatgame_editor = getCookie('cmg_editor');
  121. if(typeof cmg_active_anonymous_user !== 'undefined' && cmg_active_anonymous_user !== null) {
  122. ////console.log('We have an active school hours session');
  123. }
  124. //Display Ads to anonymous users only if the user is not from a targeted state or it is school hours.
  125. // Do not display ads for targeted state user during non school hours, but free game play is restricted
  126. if(!schoolHours && targetStateUser && cmg_active_anonymous_user === null && cmatgame_editor === null) {
  127. freeTrialUser = true;
  128. }
  129.  
  130.  
  131. </script>
  132. <script>
  133. gamePage = true;
  134. mobile_ga_game_type = 'Desktop';
  135. </script>
  136. <script>
  137. var hide_preroll_ads = false;
  138. </script>
  139. <script>
  140. var enable_openX_ads = true;
  141. </script>
  142. <script>
  143. var enable_pubmatic_ads = false;
  144. </script>
  145. <script>
  146. var enable_appnexus_ads = true;
  147. </script>
  148. <script>
  149. var enable_aol_ads = false;
  150. </script>
  151. <script>
  152. var enable_brealtime_ads = false;
  153. </script>
  154. <script>
  155. var enable_sovrn_ads = true;
  156. </script>
  157. <script>
  158. var enable_districtm_ads = true;
  159. </script>
  160. <script>
  161. var enable_criteo_ads = false;
  162. </script>
  163. <script>
  164. var enable_conversant_ads = true;
  165. </script>
  166. <script>
  167. var enable_rubicon_ads = true;
  168. </script>
  169. <script>
  170. var enable_prebid_analytics = false;
  171. </script>
  172. <script>
  173. var preroll_ads_timer = 15;
  174. </script>
  175. <script>
  176. var ad_refresh_timer_interval = 60000;
  177. </script>
  178. <script>
  179. var ad_refresh_event_interval = 30000;
  180. </script>
  181. <script>
  182. var prebid_timeout_initial_timeout = 2000;
  183. </script>
  184. <script>
  185. var prebid_timeout_refresh_timeout = 1000;
  186. </script>
  187. <script>
  188. cmatgame_subscriber = getCookie("cmg_sx");
  189. //check if school is whitelisted
  190. if(cmg_school_whitelisted !== null && getCookie("cmg_schwl") !== null) {
  191. cmg_school_whitelisted = getCookie("cmg_schwl");
  192. cmatgame_subscriber = getCookie("cmg_schwl");
  193. } else if(cmg_school_whitelisted === null && typeof cmg_no_ads_debug !== "undefined" && cmg_no_ads_debug) {
  194. //console.log("KY school hours");
  195. cmatgame_subscriber = cmg_no_ads_debug;
  196. }
  197. isRemoveAdSwfJWPLayer = false;
  198. jQuery(document).ready(function() {
  199. if(typeof eVar12 !== "undefined" && (eVar12==="NoPrerollAds" || eVar12==="No-Preroll-No-RefreshAds") && gamePage ) { //remove preroll ads
  200. removeAdSwfJWPLayer();
  201. }
  202.  
  203. if(jQuery("#adblockdiv").length){
  204. __gaTracker("send", {
  205. "hitType": "event", // Required.
  206. "eventCategory": "Page-level-ad-blocker2", // Required.
  207. "eventAction": "AdBlockerNotDetected", // Required.
  208. "eventLabel": document.title,
  209. "eventValue": 1,
  210. "nonInteraction": 1
  211. });
  212. } else {
  213. __gaTracker("send", {
  214. "hitType": "event", // Required.
  215. "eventCategory": "Page-level-ad-blocker2", // Required.
  216. "eventAction": "AdBlockerDetected", // Required.
  217. "eventLabel": document.title,
  218. "eventValue": 1,
  219. "nonInteraction": 1
  220. });
  221. }
  222.  
  223.  
  224. var isChrome = navigator.userAgent.toLowerCase().indexOf("chrome") > -1;
  225. if(!jQuery(".adtxt").is(":visible") && isChrome) {
  226. removeAdSwfJWPLayer();
  227. }
  228. });
  229. </script>
  230. <script>
  231.  
  232. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser) {
  233.  
  234. var PREBID_TIMEOUT = prebid_timeout_initial_timeout;
  235. var adUnits = [];
  236. switch(window.location.pathname) {
  237. case "/":
  238. case "/1-number-games":
  239. case "/1-skill-games":
  240. case "/1-logic-games":
  241. case "/1-playlists":
  242. case "/0-jigsaw-puzzles":
  243. case "/1-strategy-games":
  244. case "/1-mobile-categories":
  245. adUnits = [{
  246. code: "div-gpt-ad-788084996771918566-10",
  247. sizes: [[160, 600]],
  248. bids: {}
  249. },{
  250. code: "div-gpt-ad-629350160446709561-1",
  251. sizes: [[728, 90]],
  252. bids: {}
  253. },{
  254. code: "div-gpt-ad-629350160446709561-2",
  255. sizes: [[300, 250]],
  256. bids: {}
  257. }, {
  258. code: "div-gpt-ad-788084996771918566-5",
  259. sizes: [[728, 90]],
  260. bids: {}
  261. },{
  262. code: "div-gpt-ad-629350160446709561-4",
  263. sizes: [[300, 250]],
  264. bids: {}
  265. },{
  266. code: "div-gpt-ad-788084996771918566-7",
  267. sizes: [[300, 250]],
  268. bids: {}
  269. },{
  270. code: "div-gpt-ad-788084996771918566-8",
  271. sizes: [[300, 250]],
  272. bids: {}
  273. },{
  274. code: "div-gpt-ad-788084996771918566-6",
  275. sizes: [[300, 250]],
  276. bids: {}
  277. }];
  278. var openx = [{
  279. bidder: "openx",
  280. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  281. }, {
  282. bidder: "openx",
  283. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  284. }, {
  285. bidder: "openx",
  286. params: { unit: "538218643", delDomain: "coolmath-d.openx.net"}
  287. }, {
  288. bidder: "openx",
  289. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  290. }, {
  291. bidder: "openx",
  292. params: { unit: "538218652", delDomain: "coolmath-d.openx.net"}
  293. }, {
  294. bidder: "openx",
  295. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  296. }, {
  297. bidder: "openx",
  298. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  299. }, {
  300. bidder: "openx",
  301. params: { unit: "538218602", delDomain: "coolmath-d.openx.net"}
  302. }];
  303. var pubmatic = [{bidder: "pubmatic",
  304. params: {
  305. size: "160x600",
  306. publisherId: "92620",
  307. adSlot: "cm_prebid_160x600_homepage@160x600"
  308. }
  309. }, {bidder: "pubmatic",
  310. params: {
  311. size: "728x90",
  312. publisherId: "92620",
  313. adSlot: "cm_prebid_728x90_ros_1@728x90"
  314. }
  315. }, {bidder: "pubmatic",
  316. params: {
  317. size: "300x250",
  318. publisherId: "92620",
  319. adSlot: "cm_prebid_400x300_ros_1@300x250"
  320. }
  321. }, {bidder: "pubmatic",
  322. params: {
  323. size: "728x90",
  324. publisherId: "92620",
  325. adSlot: "cm_prebid_728x90_ros_2@728x90"
  326. }
  327. },{bidder: "pubmatic",
  328. params: {
  329. size: "300x250",
  330. publisherId: "92620",
  331. adSlot: "cm_prebid_400x300_ros_2@300x250"
  332. }
  333. }, {bidder: "pubmatic",
  334. params: {
  335. size: "300x250",
  336. publisherId: "92620",
  337. adSlot: "cm_prebid_300x250_btf_1@300x250"
  338. }
  339. }, {bidder: "pubmatic",
  340. params: {
  341. size: "300x250",
  342. publisherId: "92620",
  343. adSlot: "cm_prebid_300x250_btf_2@300x250"
  344. }
  345. }, {bidder: "pubmatic",
  346. params: {
  347. size: "300x250",
  348. publisherId: "92620",
  349. adSlot: "cm_prebid_300x250_btf_3@300x250"
  350. }
  351. } ];
  352.  
  353. var appnexus = [{
  354. bidder: "appnexus",
  355. params: { placementId: "6518787"}
  356. }, {
  357. bidder: "appnexus",
  358. params: { placementId: "6518787"}
  359. }, {
  360. bidder: "appnexus",
  361. params: { placementId: "6518787"}
  362. }, {
  363. bidder: "appnexus",
  364. params: { placementId: "6518787"}
  365. }, {
  366. bidder: "appnexus",
  367. params: { placementId: "6518787"}
  368. }, {
  369. bidder: "appnexus",
  370. params: { placementId: "6518787"}
  371. }, {
  372. bidder: "appnexus",
  373. params: { placementId: "6518787"}
  374. }, {
  375. bidder: "appnexus",
  376. params: { placementId: "6518787"}
  377. }];
  378. var aol = [{
  379. bidder: "aol",
  380. params: { placement: "3906353", network: "9490.1"}
  381. }, {
  382. bidder: "aol",
  383. params: { placement: "3906356", network: "9490.1"}
  384. }, {
  385. bidder: "aol",
  386. params: { placement: "3906354", network: "9490.1"}
  387. }, {
  388. bidder: "aol",
  389. params: { placement: "3906355", network: "9490.1"}
  390. }, {
  391. bidder: "aol",
  392. params: { placement: "3906357", network: "9490.1"}
  393. }, {
  394. bidder: "aol",
  395. params: { placement: "3906350", network: "9490.1"}
  396. }, {
  397. bidder: "aol",
  398. params: { placement: "3906351", network: "9490.1"}
  399. }, {
  400. bidder: "aol",
  401. params: { placement: "3906352", network: "9490.1"}
  402. }];
  403. var brealtime = [{
  404. bidder: "brealtime",
  405. params: { placementId: "12516712"}
  406. }, {
  407. bidder: "brealtime",
  408. params: { placementId: "12516712"}
  409. }, {
  410. bidder: "brealtime",
  411. params: { placementId: "12516719"}
  412. }, {
  413. bidder: "brealtime",
  414. params: { placementId: "12516712"}
  415. }, {
  416. bidder: "brealtime",
  417. params: { placementId: "12516714"}
  418. }, {
  419. bidder: "brealtime",
  420. params: { placementId: "12516712"}
  421. }, {
  422. bidder: "brealtime",
  423. params: { placementId: "12516712"}
  424. }, {
  425. bidder: "brealtime",
  426. params: { placementId: "12516712"}
  427. }];
  428. var sovrn = [{
  429. bidder: "sovrn",
  430. params: { tagid: "347544"}
  431. }, {
  432. bidder: "sovrn",
  433. params: { tagid: "347546"}
  434. }, {
  435. bidder: "sovrn",
  436. params: { tagid: "347543"}
  437. }, {
  438. bidder: "sovrn",
  439. params: { tagid: "347547"}
  440. }, {
  441. bidder: "sovrn",
  442. params: { tagid: "347542"}
  443. },{
  444. bidder: "sovrn",
  445. params: { tagid: "347543"}
  446. }, {
  447. bidder: "sovrn",
  448. params: { tagid: "347543"}
  449. }, {
  450. bidder: "sovrn",
  451. params: { tagid: "347543"}
  452. }];
  453. var districtm = [{
  454. bidder: "districtmDMX",
  455. params: { id: "142120"}
  456. }, {
  457. bidder: "districtmDMX",
  458. params: { id: "142120"}
  459. }, {
  460. bidder: "districtmDMX",
  461. params: { id: "142121"}
  462. }, {
  463. bidder: "districtmDMX",
  464. params: { id: "142120"}
  465. }, {
  466. bidder: "districtmDMX",
  467. params: { id: "142122"}
  468. }, {
  469. bidder: "districtmDMX",
  470. params: { id: "142120"}
  471. }, {
  472. bidder: "districtmDMX",
  473. params: { id: "142120"}
  474. }, {
  475. bidder: "districtmDMX",
  476. params: { id: "142120"}
  477. }];
  478.  
  479. var criteo = [{
  480. bidder: "criteo",
  481. params: { zoneId: "682412"}
  482. }, {
  483. bidder: "criteo",
  484. params: { zoneId: "682366"}
  485. }, {
  486. bidder: "criteo",
  487. params: { zoneId: "682326"}
  488. }, {
  489. bidder: "criteo",
  490. params: { zoneId: "682366"}
  491. }, {
  492. bidder: "criteo",
  493. params: { zoneId: "682326"}
  494. }, {
  495. bidder: "criteo",
  496. params: { zoneId: "682326"}
  497. }, {
  498. bidder: "criteo",
  499. params: { zoneId: "682326"}
  500. }, {
  501. bidder: "criteo",
  502. params: { zoneId: "682326"}
  503. }];
  504.  
  505. var conversant = [{
  506. bidder: "conversant",
  507. params: { site_id: "105823"}
  508. }, {
  509. bidder: "conversant",
  510. params: { site_id: "105823"}
  511. }, {
  512. bidder: "conversant",
  513. params: { site_id: "105823"}
  514. }, {
  515. bidder: "conversant",
  516. params: { site_id: "105823"}
  517. }, {
  518. bidder: "conversant",
  519. params: { site_id: "105823"}
  520. }, {
  521. bidder: "conversant",
  522. params: { site_id: "105823"}
  523. }, {
  524. bidder: "conversant",
  525. params: { site_id: "105823"}
  526. }, {
  527. bidder: "conversant",
  528. params: { site_id: "105823"}
  529. }];
  530. var rubicon = [{
  531. bidder: "rubicon",
  532. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  533. }, {
  534. bidder: "rubicon",
  535. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  536. }, {
  537. bidder: "rubicon",
  538. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  539. }, {
  540. bidder: "rubicon",
  541. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  542. }, {
  543. bidder: "rubicon",
  544. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  545. }, {
  546. bidder: "rubicon",
  547. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  548. }, {
  549. bidder: "rubicon",
  550. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  551. }, {
  552. bidder: "rubicon",
  553. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  554. }];
  555. for(i=0;i<adUnits.length; i++) {
  556. adUnits[i].bids = new Array();
  557. if(enable_openX_ads) {
  558. adUnits[i].bids.push( openx[i]);
  559. }
  560. if(enable_pubmatic_ads) {
  561. adUnits[i].bids.push( pubmatic[i]);
  562. }
  563. if(enable_appnexus_ads) {
  564. adUnits[i].bids.push( appnexus[i]);
  565. }
  566. if(enable_aol_ads) {
  567. adUnits[i].bids.push( aol[i]);
  568. }
  569. if(enable_sovrn_ads) {
  570. adUnits[i].bids.push( sovrn[i]);
  571. }
  572. if(enable_districtm_ads) {
  573. adUnits[i].bids.push( districtm[i]);
  574. }
  575. if(enable_criteo_ads) {
  576. adUnits[i].bids.push( criteo[i]);
  577. }
  578. if(enable_conversant_ads) {
  579. adUnits[i].bids.push( conversant[i]);
  580. }
  581. if(enable_rubicon_ads) {
  582. adUnits[i].bids.push( rubicon[i]);
  583. }
  584.  
  585. if(enable_brealtime_ads) {
  586. adUnits[i].bids.push( brealtime[i]);
  587. }
  588.  
  589.  
  590. }
  591. break;
  592. default:
  593. adUnits = [{
  594. code: "div-gpt-ad-629350160446709561-1",
  595. sizes: [[728, 90]],
  596. bids: {}
  597. }, {
  598. code: "div-gpt-ad-629350160446709561-3",
  599. sizes: [[160, 600]],
  600. bids: {}
  601. }, {
  602. code: "div-gpt-ad-788084996771918566-5",
  603. sizes: [[728, 90]],
  604. bids: {}
  605. }, {
  606. code: "div-gpt-ad-629350160446709561-2",
  607. sizes: [[300, 250]],
  608. bids: {}
  609. }, {
  610. code: "div-gpt-ad-629350160446709561-4",
  611. sizes: [[300, 250]],
  612. bids: {}
  613. }];
  614. if(jQuery(window).width() >= 1366){
  615. adUnits[adUnits.length] = {
  616. code: "div-gpt-ad-629350160446709561-8",
  617. sizes: [[160, 600]],
  618. bids: {}
  619. };
  620. }
  621. var openx = [{
  622. bidder: "openx",
  623. params: { unit: "538218649", delDomain: "coolmath-d.openx.net"}
  624. }, {
  625. bidder: "openx",
  626. params: { unit: "538218649", delDomain: "coolmath-d.openx.net"}
  627. }, {
  628. bidder: "openx",
  629. params: { unit: "538218595", delDomain: "coolmath-d.openx.net"}
  630. }, {
  631. bidder: "openx",
  632. params: { unit: "538218664", delDomain: "coolmath-d.openx.net"}
  633. }, {
  634. bidder: "openx",
  635. params: { unit: "538218620", delDomain: "coolmath-d.openx.net"}
  636. }, {
  637. bidder: "openx",
  638. params: { unit: "538218649", delDomain: "coolmath-d.openx.net"}
  639. }];
  640. var pubmatic = [{bidder: "pubmatic",
  641. params: {
  642. size: "728x90",
  643. publisherId: "92620",
  644. adSlot: "cm_prebid_728x90_ros_1@728x90"
  645. }
  646. },{bidder: "pubmatic",
  647. params: {
  648. size: "160x600",
  649. publisherId: "92620",
  650. adSlot: "cm_prebid_160x600_ros_1@160x600"
  651. }
  652. },{bidder: "pubmatic",
  653. params: {
  654. size: "728x90",publisherId: "92620",
  655. adSlot: "cm_prebid_728x90_ros_2@728x90"
  656. }
  657. },{bidder: "pubmatic",
  658. params: {
  659. size: "300x250",publisherId: "92620",
  660. adSlot: "cm_prebid_400x300_ros_1@300x250"
  661. }
  662. },{bidder: "pubmatic",
  663. params: {
  664. size: "300x250",publisherId: "92620",
  665. adSlot: "cm_prebid_400x300_ros_2@300x250"
  666. }
  667. }, {bidder: "pubmatic",
  668. params: {
  669. size: "160x600",publisherId: "92620",
  670. adSlot: "cm_prebid_160x600_ros_2@160x600"
  671. }
  672. }];
  673. var appnexus = [{
  674. bidder: "appnexus",
  675. params: { placementId: "6518787"}
  676. }, {
  677. bidder: "appnexus",
  678. params: { placementId: "6518787"}
  679. }, {
  680. bidder: "appnexus",
  681. params: { placementId: "6518787"}
  682. }, {
  683. bidder: "appnexus",
  684. params: { placementId: "6518787"}
  685. }, {
  686. bidder: "appnexus",
  687. params: { placementId: "6518787"}
  688. }, {
  689. bidder: "appnexus",
  690. params: { placementId: "6518787"}
  691. }];
  692. var aol = [{
  693. bidder: "aol",
  694. params: { placement: "3608321", network: "9490.1"}
  695. },{
  696. bidder: "aol",
  697. params: { placement: "3676191", network: "9490.1"}
  698. },{
  699. bidder: "aol",
  700. params: { placement: "3613769", network: "9490.1"}
  701. },{
  702. bidder: "aol",
  703. params: { placement: "3608322", network: "9490.1"}
  704. },{
  705. bidder: "aol",
  706. params: { placement: "3613770", network: "9490.1"}
  707. },{
  708. bidder: "aol",
  709. params: { placement: "3608320", network: "9490.1"}
  710. }];
  711. var brealtime = [{
  712. bidder: "brealtime",
  713. params: { placementId: "12516720"}
  714. }, {
  715. bidder: "brealtime",
  716. params: { placementId: "12516720"}
  717. }, {
  718. bidder: "brealtime",
  719. params: { placementId: "12516722"}
  720. }, {
  721. bidder: "brealtime",
  722. params: { placementId: "12516723"}
  723. },{
  724. bidder: "brealtime",
  725. params: { placementId: "12516721"}
  726. },{
  727. bidder: "brealtime",
  728. params: { placementId: "12516720"}
  729. }];
  730. var sovrn = [{
  731. bidder: "sovrn",
  732. params: { tagid: "347546"}
  733. }, {
  734. bidder: "sovrn",
  735. params: { tagid: "347544"}
  736. }, {
  737. bidder: "sovrn",
  738. params: { tagid: "347547"}
  739. }, {
  740. bidder: "sovrn",
  741. params: { tagid: "347542"}
  742. }, {
  743. bidder: "sovrn",
  744. params: { tagid: "347543"}
  745. },{
  746. bidder: "sovrn",
  747. params: { tagid: "347545"}
  748. }];
  749. var districtm = [{
  750. bidder: "districtmDMX",
  751. params: { id: "142123"}
  752. }, {
  753. bidder: "districtmDMX",
  754. params: { id: "142123"}
  755. }, {
  756. bidder: "districtmDMX",
  757. params: { id: "142124"}
  758. }, {
  759. bidder: "districtmDMX",
  760. params: { id: "142125"}
  761. }, {
  762. bidder: "districtmDMX",
  763. params: { id: "142126"}
  764. }, {
  765. bidder: "districtmDMX",
  766. params: { id: "142123"}
  767. }];
  768. var criteo = [{
  769. bidder: "criteo",
  770. params: { zoneId: "682366"}
  771. }, {
  772. bidder: "criteo",
  773. params: { zoneId: "682412"}
  774. }, {
  775. bidder: "criteo",
  776. params: { zoneId: "682326"}
  777. }, {
  778. bidder: "criteo",
  779. params: { zoneId: "682366"}
  780. }, {
  781. bidder: "criteo",
  782. params: { zoneId: "682326"}
  783. }, {
  784. bidder: "criteo",
  785. params: { zoneId: "682412"}
  786. }];
  787. var conversant = [{
  788. bidder: "conversant",
  789. params: { site_id: "105823"}
  790. }, {
  791. bidder: "conversant",
  792. params: { site_id: "105823"}
  793. }, {
  794. bidder: "conversant",
  795. params: { site_id: "105823"}
  796. }, {
  797. bidder: "conversant",
  798. params: { site_id: "105823"}
  799. }, {
  800. bidder: "conversant",
  801. params: { site_id: "105823"}
  802. }, {
  803. bidder: "conversant",
  804. params: { site_id: "105823"}
  805. }];
  806. var rubicon = [{
  807. bidder: "rubicon",
  808. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  809. }, {
  810. bidder: "rubicon",
  811. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  812. }, {
  813. bidder: "rubicon",
  814. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  815. }, {
  816. bidder: "rubicon",
  817. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  818. }, {
  819. bidder: "rubicon",
  820. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  821. }, {
  822. bidder: "rubicon",
  823. params: { accountId: "9007",siteId: "36186", zoneId: "149996"}
  824. }];
  825. for(i=0;i<adUnits.length; i++) {
  826. adUnits[i].bids = new Array();
  827. if(enable_openX_ads) {
  828. adUnits[i].bids.push( openx[i]);
  829. }
  830. if(enable_pubmatic_ads) {
  831. adUnits[i].bids.push( pubmatic[i]);
  832. }
  833. if(enable_appnexus_ads) {
  834. adUnits[i].bids.push( appnexus[i]);
  835. }
  836. if(enable_aol_ads) {
  837. adUnits[i].bids.push( aol[i]);
  838. }
  839. if(enable_sovrn_ads) {
  840. adUnits[i].bids.push( sovrn[i]);
  841. }
  842. if(enable_districtm_ads) {
  843. adUnits[i].bids.push( districtm[i]);
  844. }
  845. if(enable_criteo_ads) {
  846. adUnits[i].bids.push( criteo[i]);
  847. }
  848. if(enable_conversant_ads) {
  849. adUnits[i].bids.push( conversant[i]);
  850. }
  851. if(enable_rubicon_ads) {
  852. adUnits[i].bids.push( rubicon[i]);
  853. }
  854. if(enable_brealtime_ads) {
  855. adUnits[i].bids.push( brealtime[i]);
  856. }
  857.  
  858. }
  859. break;
  860. }
  861. }
  862. </script>
  863. <script>
  864. var googletag = googletag || {};
  865. googletag.cmd = googletag.cmd || [];
  866. var googleslots = [];
  867. var gptadslots = [];
  868. googletag.cmd.push(function() {
  869. googletag.pubads().disableInitialLoad();
  870. });
  871.  
  872. pbjs.que.push(function() {
  873. pbjs.addAdUnits(adUnits);
  874. //pbjs.setBidderSequence("random");
  875. pbjs.requestBids({
  876. bidsBackHandler: sendAdserverRequest
  877. });
  878. pbjs.bidderSettings = {
  879. standard: {
  880. adserverTargeting: [{
  881. key: "hb_bidder",
  882. val: function(bidResponse) {
  883. return bidResponse.bidderCode;
  884. }
  885. }, {
  886. key: "hb_adid",
  887. val: function(bidResponse) {
  888. return bidResponse.adId;
  889. }
  890. }, {
  891. key: "hb_size",
  892. val: function(bidResponse) {
  893. return bidResponse.size;
  894. }
  895. }, {
  896. key: "hb_pb",
  897. val: function(bidResponse) {
  898. var cpm = bidResponse.cpm;
  899. if (cpm < 2.00) {
  900. return (Math.floor(cpm * 100) / 100).toFixed(2);
  901. } else if (cpm < 12.00) {
  902. return (Math.floor(cpm * 20) / 20).toFixed(2);
  903. } else {
  904. return "20.00";
  905. }
  906. }
  907. }]
  908. },
  909. aol: {
  910. bidCpmAdjustment : function(bidCpm){
  911. return bidCpm * .92;
  912. }
  913. },
  914. districtmDMX: {
  915. bidCpmAdjustment : function(bidCpm){
  916. return bidCpm * .90;
  917. }
  918. },
  919. rubicon: {
  920. bidCpmAdjustment : function(bidCpm){
  921. return bidCpm * .80;
  922. }
  923. }
  924. };
  925. });
  926.  
  927. function sendAdserverRequest() {
  928. if (pbjs.adserverRequestSent) return;
  929. pbjs.adserverRequestSent = true;
  930. googletag.cmd.push(function() {
  931. pbjs.que.push(function() {
  932. pbjs.setTargetingForGPTAsync();
  933. pbjslogging = getParameterByName("pbjs_debug");
  934. if(pbjslogging != null) {
  935. if(pbjslogging.toLowerCase() === "false") {
  936. document.cookie = "pbjs_debug=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
  937. } else if(pbjslogging.toLowerCase() === "true"){
  938. var d = new Date();
  939. d.setTime(d.getTime() + (365*24*60*60*1000));
  940. var expires = "expires="+ d.toUTCString();
  941. document.cookie = "pbjs_debug" + "=" + "true" + ";" + expires + ";path=/";
  942. }
  943. }
  944. if(getCookie("pbjs_debug")) {
  945. pbjs.enableAnalytics({provider:"prebidoverlay"});
  946. }
  947. googletag.pubads().refresh();
  948. });
  949. });
  950. }
  951.  
  952. setTimeout(function() {
  953. sendAdserverRequest();
  954. }, PREBID_TIMEOUT);
  955.  
  956. </script>
  957. <script>
  958. (function () {
  959. var gads = document.createElement("script");
  960. gads.async = true;
  961. gads.type = "text/javascript";
  962. var useSSL = "https:" == document.location.protocol;
  963. gads.src = (useSSL ? "https:" : "http:") +
  964. "//www.googletagservices.com/tag/js/gpt.js";
  965. var node = document.getElementsByTagName("script")[0];
  966. node.parentNode.insertBefore(gads, node);
  967. })();
  968.  
  969. </script>
  970. <script>
  971. var iid="13389724",
  972. p=location.protocol,url=("https:"===p?p:"http:")+"//ap.lijit.com/www/sovrn_beacon_standalone/sovrn_standalone_beacon.js?iid="+iid,scr=document.createElement("script");scr.id="sBeacon",scr.src=url,scr.async=!1;var s0=document.getElementsByTagName("script")[0];s0.parentNode.insertBefore(scr,s0);
  973. </script>
  974. <script>
  975. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser) {
  976.  
  977. googletag.cmd.push(function() {
  978.  
  979. switch(window.location.pathname) {
  980. case "/":
  981. case "/1-number-games":
  982. case "/1-skill-games":
  983. case "/1-logic-games":
  984. case "/1-playlists":
  985. case "/0-jigsaw-puzzles":
  986. case "/1-strategy-games":
  987. case "/1-mobile-categories":
  988. gptadslots[0]= googletag.defineSlot("/45966600/CM-G_HomePage", [[160,600]],"div-gpt-ad-788084996771918566-10").addService(googletag.pubads());
  989. gptadslots[1]= googletag.defineSlot("/45966600/CM-G_HomePage", [[728,90]],"div-gpt-ad-629350160446709561-1").addService(googletag.pubads());
  990. gptadslots[2]= googletag.defineSlot("/45966600/400x300_Home_Bottom", [[300,250]],"div-gpt-ad-629350160446709561-2").addService(googletag.pubads());
  991. gptadslots[3]= googletag.defineSlot("/45966600/CM-G_HomePage", [[728,90]],"div-gpt-ad-788084996771918566-5").addService(googletag.pubads());
  992. gptadslots[4]= googletag.defineSlot("/45966600/400x300_Home_Top", [[300,250]],"div-gpt-ad-629350160446709561-4").addService(googletag.pubads());
  993. gptadslots[5]= googletag.defineSlot("/45966600/CM-G_HomePage", [[300,250]],"div-gpt-ad-788084996771918566-7").addService(googletag.pubads());
  994. gptadslots[6]= googletag.defineSlot("/45966600/CM-G_HomePage", [[300,250]],"div-gpt-ad-788084996771918566-8").addService(googletag.pubads());
  995. gptadslots[7]= googletag.defineSlot("/45966600/CM-G_HomePage", [[300,250]],"div-gpt-ad-788084996771918566-6").addService(googletag.pubads());
  996.  
  997. break;
  998. default:
  999. gptadslots[0]= googletag.defineSlot("/45966600/CM-G_ALLOTHERPAGES", [[728,90]],"div-gpt-ad-629350160446709561-1").addService(googletag.pubads());
  1000. gptadslots[1]= googletag.defineSlot("/45966600/CM-G_ALLOTHERPAGES", [[160,600]],"div-gpt-ad-629350160446709561-3").addService(googletag.pubads());
  1001. if(typeof is_board_games_layout != "undefined") { // only 300x250 for board games
  1002. gptadslots[2]= googletag.defineSlot("/45966600/400x300_AllOther_Bottom", [[300,250]],"div-gpt-ad-629350160446709561-2").addService(googletag.pubads());
  1003. } else {
  1004. gptadslots[2]= googletag.defineSlot("/45966600/400x300_AllOther_Bottom", [[300,250]],"div-gpt-ad-629350160446709561-2").addService(googletag.pubads());
  1005. }
  1006. gptadslots[3]= googletag.defineSlot("/45966600/Test_NoTop_16", [[728,90]],"div-gpt-ad-788084996771918566-5").addService(googletag.pubads());
  1007. if(typeof is_board_games_layout != "undefined") { // only 300x250 for board games
  1008. gptadslots[4]= googletag.defineSlot("/45966600/400x300_AllOther_Top", [[300,250]],"div-gpt-ad-629350160446709561-4").addService(googletag.pubads());
  1009. } else {
  1010. gptadslots[4]= googletag.defineSlot("/45966600/400x300_AllOther_Top", [[300,250]],"div-gpt-ad-629350160446709561-4").addService(googletag.pubads());
  1011. }
  1012. if(jQuery(window).width() >= 1366){
  1013. gptadslots[5]= googletag.defineSlot("/45966600/CM-G_ALLOTHERPAGES", [[160,600]],"div-gpt-ad-629350160446709561-8").addService(googletag.pubads());
  1014. }
  1015.  
  1016. break;
  1017. }
  1018.  
  1019.  
  1020. googletag.pubads().setTagForChildDirectedTreatment(0);
  1021. googletag.pubads().enableSingleRequest();
  1022. googletag.enableServices();
  1023. });
  1024.  
  1025. }
  1026. </script>
  1027. <script>
  1028. function trackEvent(category, action, label, noninteraction) {
  1029.  
  1030. if(typeof __gaTracker === 'undefined')
  1031. return;
  1032.  
  1033.  
  1034. noninteraction = noninteraction || 0;
  1035.  
  1036. //console.log('Tracked: ' + category + ' ' + action + ' ' + label + ' noninteraction: ' + noninteraction);
  1037. __gaTracker('send', {
  1038. 'hitType': 'event', // Required.
  1039. 'eventCategory': category, // Required.
  1040. 'eventAction': action, // Required.
  1041. 'eventLabel': label,
  1042. 'eventValue': 0,
  1043. 'nonInteraction': noninteraction
  1044. });
  1045. }
  1046.  
  1047. function trackSocial(network,action,target) {
  1048.  
  1049. if(typeof __gaTracker === 'undefined')
  1050. return;
  1051.  
  1052. __gaTracker('send', {
  1053. 'hitType': 'social', // Required.
  1054. 'socialNetwork': network,
  1055. 'socialAction': action,
  1056. 'socialTarget': target
  1057. });
  1058. }
  1059.  
  1060. </script>
  1061. <script>
  1062. function signUpUrlCallBack(){
  1063. if(typeof signUpURL != "undefined" && signUpURL != null ) {
  1064. window.location = "https://" + window.location.hostname + signUpURL;
  1065. } else {
  1066. if(window.location.hostname === "cmatgame.local" || window.location.hostname === "m.cmatgame.local") {
  1067. window.location = "http://" + window.location.hostname + "/signup/b2df5a33";
  1068. } else {
  1069. window.location = "https://" + window.location.hostname + "/signup/b2df5a33";
  1070. }
  1071. }
  1072. }
  1073. </script>
  1074. <script>
  1075. cssAggregationTest = true;
  1076. </script>
  1077. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_C6_5pwcXMkKAlRCvIjcYsXRfEwYOazKoAzA953l9z-Y.js"></script>
  1078. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_0KXb42xKkNBLrHLi1aCo2Q6k037DKSu4rDeCjIyKpv4.js"></script>
  1079. <script>jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cmatgame","theme_token":"Y6VbA2sHuNN6NcMlrovvtFWmJdM5snkyArbnMotceLg","js":{"sites\/cmatgame\/modules\/custom\/cmatgame_advertisement\/js\/ads.js":1,"sites\/cmatgame\/modules\/custom\/cmatgame_advertisement\/js\/coolmath-games-adrefresh.js":1,"sites\/cmatgame\/modules\/custom\/cmatgame_analytics\/js\/coolmath-games-ga.js":1,"0":1,"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.8.3\/jquery.js":1,"1":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/cmatgame\/modules\/contrib\/views_slideshow\/js\/views_slideshow.js":1,"sites\/all\/libraries\/bxslider\/jquery.bxslider.min.js":1,"profiles\/dsk\/modules\/contrib\/environment_indicator\/tinycon.min.js":1,"profiles\/dsk\/modules\/contrib\/environment_indicator\/environment_indicator.js":1,"profiles\/dsk\/modules\/contrib\/environment_indicator\/color.js":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"sites\/cmatgame\/modules\/contrib\/bxslider_views_slideshow\/bxslider_views_slideshow.js":1,"sites\/cmatgame\/themes\/cmatgame\/js\/cmatgame_instructions.js":1,"sites\/cmatgame\/modules\/custom\/swfembed\/jquery.swfembed.js":1,"sites\/cmatgame\/modules\/custom\/swfembed\/behavior.swfembed.js":1,"sites\/cmatgame\/themes\/cmatgame\/js\/cmatgame.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"sites\/cmatgame\/modules\/contrib\/views_slideshow\/views_slideshow.css":1,"profiles\/dsk\/modules\/contrib\/date\/date_api\/date.css":1,"profiles\/dsk\/modules\/contrib\/date\/date_popup\/themes\/datepicker.1.7.css":1,"sites\/all\/modules\/contrib\/domain\/domain_nav\/domain_nav.css":1,"profiles\/dsk\/modules\/contrib\/environment_indicator\/environment_indicator.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"profiles\/dsk\/modules\/contrib\/views\/css\/views.css":1,"profiles\/dsk\/modules\/contrib\/ctools\/css\/ctools.css":1,"profiles\/dsk\/modules\/contrib\/panels\/css\/panels.css":1,"sites\/cmatgame\/themes\/cmatgame\/templates\/layouts\/desktop_onecol\/desktop_onecol.css":1,"0":1,"1":1,"2":1,"3":1,"sites\/all\/libraries\/bxslider\/jquery.bxslider.css":1,"sites\/cmatgame\/modules\/custom\/cmatgame_queues\/css\/styles.css":1,"sites\/cmatgame\/modules\/custom\/cmatgame_subscription\/cmatgame_subscription_userloginbar.css":1,"sites\/cmatgame\/themes\/cmatgame\/system.menus.css":1,"sites\/cmatgame\/themes\/cmatgame\/system.messages.css":1,"sites\/cmatgame\/themes\/cmatgame\/system.theme.css":1,"sites\/cmatgame\/themes\/cmatgame\/css\/fonts.css":1,"sites\/cmatgame\/themes\/cmatgame\/css\/styles.css":1,"sites\/cmatgame\/themes\/cmatgame\/css\/custom.css":1}},"cmgTheme":{"cmgTheme":"http:\/\/www.coolmath-games.com\/sites\/cmatgame\/themes\/cmatgame"},"viewsSlideshow":{"game_details-carousel_game_detail":{"methods":{"goToSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","bxsliderViewsSlideshow"],"nextSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","bxsliderViewsSlideshow"],"pause":["viewsSlideshowControls"],"play":["viewsSlideshowControls"],"previousSlide":["viewsSlideshowPager","viewsSlideshowSlideCounter","bxsliderViewsSlideshow"],"transitionBegin":["viewsSlideshowPager","viewsSlideshowSlideCounter"],"transitionEnd":[]},"paused":0}},"viewsSlideshowBxslider":{"views_slideshow_bxslider_images_1":{"general":{"mode":"horizontal","speed":500,"slideMargin":12,"startSlide":0,"randomStart":0,"infiniteLoop":0,"hideControlOnEnd":1,"captions":0,"ticker":0,"tickerHover":0,"adaptiveHeight":0,"adaptiveHeightSpeed":500,"video":0,"touchEnabled":1,"preloadImages":"all","disable_standard_css":0,"useCSS":1,"align_image":"left","align_caption":"center","swipeThreshold":50,"oneToOneTouch":1,"preventDefaultSwipeX":1,"preventDefaultSwipeY":0,"color_caption":"80, 80, 80, 0.75"},"controlsfieldset":{"controls":1,"nextText":"","prevText":"","startText":"","stopText":"","autoControls":0,"autoControlsCombine":0},"pagerfieldset":{"pager":0,"pagerType":"full","pagerShortSeparator":" \/ "},"autofieldset":{"pause":4000,"autoStart":1,"auto":0,"autoHover":0,"autoDelay":0,"autoDirection":"next"},"carousel":{"minSlides":5,"maxSlides":5,"moveSlides":5,"slideWidth":87},"callback":[],"fixes":{"height_does_not_dyn_change":0}}},"better_exposed_filters":{"views":{"game_details":{"displays":{"carousel_game_detail":{"filters":[]},"pane_top_picks":{"filters":[]}}},"queues_view":{"displays":{"rightrail_games_promo":{"filters":[]}}}}},"swfembed":{"swf":{"swf_1":{"height":"600","width":"800","flashvars":[],"params":{"allowScriptAccess":"sameDomain","movie":"run3v3.swf","menu":"false","quality":"high","wmode":"direct"},"noflash":"","url":"\/\/www.coolmath-games.com\/sites\/cmatgame\/files\/games\/run3v3.swf","swfFallbacks":[],"expressInstall":null,"version":"8.0.0.0"}}},"isSubscriptionActive":false});</script>
  1080. <!--[if lt IE 9]>
  1081. <script src="/profiles/dsk/themes/zen/js/html5-respond.js"></script>
  1082. <![endif]-->
  1083. </head>
  1084. <body class="html not-front not-logged-in no-sidebars page-node page-node- page-node-11697 node-type-game domain-coolmath-games-com section-0-run-3 page-panels large-game-item" >
  1085. <p id="skip-link">
  1086. <a href="#main-menu" class="element-invisible element-focusable">Jump to navigation</a>
  1087. </p>
  1088. <!--END OF BOARD GAME LAYOUT -->
  1089.  
  1090. <div class="global-wrapper"> <!-- LAYOUT IF NOT BOARD GAME LAYOUT -->
  1091. <div class="global-content-wrapper">
  1092. <header class="main-header">
  1093. <div class="header-banner-block">
  1094. <div class="panel-pane pane-block pane-bean-subscriber-promo" >
  1095.  
  1096.  
  1097.  
  1098. <div class="pane-content">
  1099. <div class="entity entity-bean bean-content-block clearfix" about="/block/subscriber-promo" typeof="">
  1100.  
  1101. <div class="content">
  1102.  
  1103. <div class="field-text-block">
  1104. <p><a class="top-subscriber-promo" href="https://www.coolmath-games.com/signup/b2df5a33?origin=/">Subscribe Now</a></p>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </div>
  1109.  
  1110.  
  1111. </div>
  1112. <div class="panel-pane pane-block pane-bean-cmg-logo" >
  1113.  
  1114.  
  1115.  
  1116. <div class="pane-content">
  1117. <div class="entity entity-bean bean-content-block clearfix" about="/block/cmg-logo" typeof="">
  1118.  
  1119. <div class="content">
  1120.  
  1121. <div class="field-text-block">
  1122. <p><a href="/"><img src="/sites/cmatgame/files/logo.png" alt="logo.png" /></a> </p>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127.  
  1128.  
  1129. </div>
  1130. <div class="panel-pane pane-block pane-cmatgame-subscription-userloginbar2" >
  1131.  
  1132.  
  1133.  
  1134. <div class="pane-content">
  1135. <div id="user-login-form"><div class="item-list"><ul class="welcome-box"><li class="first last"><a href="/user/login" class="welcome-text" title="Subscriber Login">Subscriber Login</a></li>
  1136. </ul></div></div> </div>
  1137.  
  1138.  
  1139. </div>
  1140. </div> <!--header-banner-block-->
  1141. <div class="other-sites-links-wrapper clearfix">
  1142. <div class="panel-pane pane-block pane-menu-menu-desktop-header-menu" >
  1143.  
  1144.  
  1145.  
  1146. <div class="pane-content">
  1147. <ul class="menu"><li class="menu__item is-leaf first leaf strategy_list"><a href="/1-strategy-games" class="menu__link menu_strategy">Strategy</a></li>
  1148. <li class="menu__item is-leaf leaf"><a href="/1-skill-games" class="menu__link menu_skill">Skill</a></li>
  1149. <li class="menu__item is-leaf leaf"><a href="/1-number-games" class="menu__link menu_numbers">Numbers</a></li>
  1150. <li class="menu__item is-leaf leaf"><a href="/1-logic-games" class="menu__link menu_logic">Logic</a></li>
  1151. <li class="menu__item is-leaf leaf"><a href="/1-html5-games" class="menu__link menu_html5">HTML5</a></li>
  1152. <li class="menu__item is-expanded expanded"><span class="menu__link menu_more nolink">More</span><ul class="menu"><li class="menu__item is-leaf first leaf"><a href="/1-classic-games" class="menu__link menu_classic">Classic</a></li>
  1153. <li class="menu__item is-leaf leaf"><a href="/0-jigsaw-puzzles" class="menu__link menu_puzzles">Puzzles</a></li>
  1154. <li class="menu__item is-leaf leaf"><a href="/1-memory-games" class="menu__link menu_memory">Memory</a></li>
  1155. <li class="menu__item is-leaf leaf"><a href="/1-geography-games" class="menu__link menu_geography">Geography</a></li>
  1156. <li class="menu__item is-leaf last leaf"><a href="/1-science-games" class="menu__link menu_science">Science</a></li>
  1157. </ul></li>
  1158. <li class="menu__item is-leaf leaf"><a href="/1-playlists" class="menu__link menu_playlists">Playlists</a></li>
  1159. <li class="menu__item is-leaf leaf"><a href="/random" class="menu__link random-redirect menu_random">Random!</a></li>
  1160. <li class="menu__item is-leaf leaf"><a href="/1-unlockable-game-list" class="menu__link menu_unlocked">Unlocked</a></li>
  1161. <li class="menu__item is-leaf last leaf"><a href="/1-complete-game-list" class="menu__link menu_allgames">All Games A-Z</a></li>
  1162. </ul> </div>
  1163.  
  1164.  
  1165. </div>
  1166. </div><!--other-sites-links-wrapper-->
  1167. <div class="item-list"><ol><li class="first"><div class="panel-pane pane-block pane-cmatgame-advertisement-cm-g-otherpages-728-90" >
  1168.  
  1169.  
  1170.  
  1171. <div class="pane-content">
  1172. <div class="ad-wrapper">
  1173. <p class="adtxt-header element-invisible"><span>Advertisement</span></p>
  1174. <div class="pane-advertising-wrapper-header" style="text-align:center;">
  1175. <div id="div-gpt-ad-629350160446709561-1-pre" class="reset-content"></div>
  1176. <div id="div-gpt-ad-629350160446709561-1" style="margin:0 auto;text-align:center;">
  1177. <script type="text/javascript">
  1178. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser) {
  1179. jQuery(".adtxt-header").removeClass("element-invisible").addClass("element-visible");
  1180. googletag.cmd.push(function() { googletag.display("div-gpt-ad-629350160446709561-1"); });
  1181. }
  1182. </script>
  1183. </div>
  1184. </div>
  1185. </div> </div>
  1186.  
  1187.  
  1188. </div>
  1189. </li>
  1190. <li class="last"><div class="panel-pane pane-block pane-bean-coolmath-header" >
  1191.  
  1192.  
  1193.  
  1194. <div class="pane-content">
  1195. <div class="entity entity-bean bean-content-block clearfix" about="/block/coolmath-header" typeof="">
  1196.  
  1197. <div class="content">
  1198.  
  1199. <div class="field-text-block">
  1200. <ul style="float:right;list-style-type:none;"><li><a href="http://coolmath4kids.com"><img src="/sites/cmatgame/files/cm4k-copy.png" alt="cm4k-copy.png" /></a></li>
  1201. <li><a href="http://coolmath.com"><img src="/sites/cmatgame/files/cm.png" alt="cm.png" /></a></li>
  1202. </ul> </div>
  1203. </div>
  1204. </div>
  1205. </div>
  1206.  
  1207.  
  1208. </div>
  1209. </li>
  1210. </ol></div> </header>
  1211. <div class="content-column-wrapper clearfix"> <!--else use this -->
  1212. <div class="main-column"><!-- else use regular column-->
  1213. <div class="inside"><div class="panel-pane pane-pane-messages" >
  1214.  
  1215.  
  1216.  
  1217. <div class="pane-content">
  1218.  
  1219.  
  1220. </div>
  1221.  
  1222.  
  1223. </div>
  1224. <div class="panel-pane pane-page-content" >
  1225.  
  1226. <h1 class="pane-title">
  1227. Run 3 </h1>
  1228.  
  1229.  
  1230. <div class="pane-content">
  1231.  
  1232.  
  1233.  
  1234. <div class="global-wrapper-content">
  1235. <div class="panel-pane pane-block pane-cmatgame-game-facebook-share-button" >
  1236.  
  1237.  
  1238.  
  1239. <div class="pane-content">
  1240.  
  1241. <!-- Load Facebook SDK for JavaScript -->
  1242. <div id="fb-root"></div>
  1243. <script>
  1244. function shareDialog(url) {
  1245. FB.ui(
  1246. {'method': 'share','href': url,},
  1247. function(response) {
  1248. if(response && !response.error_message) {
  1249. trackSocial('facebook','share',url);
  1250. } else {
  1251. trackSocial('facebook','share-fail',url);
  1252. }
  1253. }
  1254. );
  1255. };
  1256. window.fbAsyncInit = function() {
  1257. FB.init({
  1258. appId : '1518098848498337',
  1259. xfbml: true,
  1260. version: 'v2.5',
  1261. });
  1262. FB.Event.subscribe('edge.create', function(targetUrl) {
  1263. trackSocial('facebook','like',targetUrl);
  1264. });
  1265. FB.Event.subscribe('edge.remove', function(targetUrl) {
  1266. trackSocial('facebook','unlike',targetUrl);
  1267. });
  1268. };
  1269. (function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));
  1270. </script>
  1271. <!-- Your share button code -->
  1272. <div class="social-block">
  1273. <div class="fb-share">
  1274. <img src="/sites/cmatgame/themes/cmatgame/images/fbshare_new.png" alt="Share on Facebook" class="js-fb-share" />
  1275. </div>
  1276. <div class="fb-like" data-href="https://www.facebook.com/Coolmath-Games-185351911527417/" data-layout="button" data-show-faces="false" data-action="like" data-share="false">
  1277. </div>
  1278. </div>
  1279. <script>
  1280. var $fbShare = null;
  1281. $fbShare = jQuery('.js-fb-share');
  1282. if($fbShare.length > 0) {
  1283. $fbShare.click(function(){
  1284. shareDialog('http://www.coolmath-games.com/0-run-3');
  1285. });
  1286. }
  1287. </script> </div>
  1288.  
  1289.  
  1290. </div>
  1291. <div class="panel-pane pane-block pane-bean-game-page-no-ads-promo" >
  1292.  
  1293.  
  1294.  
  1295. <div class="pane-content">
  1296. <div class="entity entity-bean bean-content-block clearfix" about="/block/game-page-no-ads-promo" typeof="">
  1297.  
  1298. <div class="content">
  1299.  
  1300. <div class="field-text-block">
  1301. <p><a class="game-page-no-add" href="https://www.coolmath-games.com/signup/b2df5a33?origin=/"><img alt="" src="" /></a></p>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. </div>
  1306.  
  1307.  
  1308. </div>
  1309. <div class="panel-pane pane-views-panes pane-game-details-carousel-game-detail" >
  1310.  
  1311.  
  1312.  
  1313. <div class="pane-content">
  1314. <div class="view view-game-details view-id-game_details view-display-id-carousel_game_detail view-dom-id-004b002d8c6989dae74799a3b8f1f71b">
  1315. <div class="view-header">
  1316. <p>You&#039;ll Also Like...</p>
  1317. </div>
  1318.  
  1319.  
  1320.  
  1321. <div class="view-content">
  1322.  
  1323. <div class="skin-default">
  1324.  
  1325. <div id="bxslider_views_slideshow_main_game_details-carousel_game_detail" class="bxslider_views_slideshow_main views_slideshow_main"><div id="views-slideshow-bxslider-1" class="views-slideshow-bxslider">
  1326. <ul id="views-slideshow-bxslider-images-1" class="bxslider-views-slideshow-main-frame bxslider">
  1327. <li id="views_slideshow_cycle_div_1_0" class="bxslider-views-slideshow-main-frame-row">
  1328.  
  1329. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1330. <div class="game-link-wrapper">
  1331. <a href="/0-run">
  1332. <div class="field-image">
  1333. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-run.gif?0=itok%3D-1JhswhN" width="83" height="50" alt="Run game" title="Run game" /> </div>
  1334. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Run</span></h5></a>
  1335. </div>
  1336. </div>
  1337. </span> </div></li>
  1338.  
  1339. <li id="views_slideshow_cycle_div_1_1" class="bxslider-views-slideshow-main-frame-row">
  1340.  
  1341. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1342. <div class="game-link-wrapper">
  1343. <a href="/0-run-2">
  1344. <div class="field-image">
  1345. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-run-2.gif?0=itok%3DdopaQvgf" width="83" height="50" alt="Run 2 game" title="Run 2 game" /> </div>
  1346. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Run 2</span></h5></a>
  1347. </div>
  1348. </div>
  1349. </span> </div></li>
  1350.  
  1351. <li id="views_slideshow_cycle_div_1_2" class="bxslider-views-slideshow-main-frame-row">
  1352.  
  1353. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1354. <div class="game-link-wrapper">
  1355. <a href="/0-snake">
  1356. <div class="field-image">
  1357. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/snake-game-logo.png?0=itok%3DDVzquARW" width="83" height="50" alt="Snake Game" title="Snake game" /> </div>
  1358. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Snake</span></h5></a>
  1359. </div>
  1360. </div>
  1361. </span> </div></li>
  1362.  
  1363. <li id="views_slideshow_cycle_div_1_3" class="bxslider-views-slideshow-main-frame-row">
  1364.  
  1365. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1366. <div class="game-link-wrapper">
  1367. <a href="/0-worlds-hardest-game">
  1368. <div class="field-image">
  1369. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-worlds-hardest-game.gif?0=itok%3DFWkXD8pU" width="83" height="50" alt="World&#039;s Hardest Game game" title="World&#039;s Hardest Game game" /> </div>
  1370. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">World's Hardest Game</span></h5></a>
  1371. </div>
  1372. </div>
  1373. </span> </div></li>
  1374.  
  1375. <li id="views_slideshow_cycle_div_1_4" class="bxslider-views-slideshow-main-frame-row">
  1376.  
  1377. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1378. <div class="game-link-wrapper">
  1379. <a href="/0-worlds-hardest-game-2">
  1380. <div class="field-image">
  1381. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-worlds-hardest-game-2.gif?0=itok%3D8-gHyuuh" width="83" height="50" alt="World&#039;s Hardest Game 2 game" title="World&#039;s Hardest Game 2 game" /> </div>
  1382. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">World's Hardest Game 2</span></h5></a>
  1383. </div>
  1384. </div>
  1385. </span> </div></li>
  1386.  
  1387. <li id="views_slideshow_cycle_div_1_5" class="bxslider-views-slideshow-main-frame-row">
  1388.  
  1389. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1390. <div class="game-link-wrapper">
  1391. <a href="/0-60-second-burger-run">
  1392. <div class="field-image">
  1393. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-60-second-burger-run.gif?0=itok%3D3jVoRPc5" width="83" height="50" alt="60 Second Burger Run game" title="60 Second Burger Run game" /> </div>
  1394. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">60 Second Burger Run</span></h5></a>
  1395. </div>
  1396. </div>
  1397. </span> </div></li>
  1398.  
  1399. <li id="views_slideshow_cycle_div_1_6" class="bxslider-views-slideshow-main-frame-row">
  1400.  
  1401. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1402. <div class="game-link-wrapper">
  1403. <a href="/0-johnny-upgrade">
  1404. <div class="field-image">
  1405. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-johnny-upgrade.gif?0=itok%3DJ2UZXXbv" width="83" height="50" alt="Johnny Upgrade game" title="Johnny Upgrade game" /> </div>
  1406. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Johnny Upgrade</span></h5></a>
  1407. </div>
  1408. </div>
  1409. </span> </div></li>
  1410.  
  1411. <li id="views_slideshow_cycle_div_1_7" class="bxslider-views-slideshow-main-frame-row">
  1412.  
  1413. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1414. <div class="game-link-wrapper">
  1415. <a href="/0-space-is-key">
  1416. <div class="field-image">
  1417. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-space-is-key.gif?0=itok%3DgMQI-Qp0" width="83" height="50" alt="Space Is Key game" title="Space Is Key game" /> </div>
  1418. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Space Is Key</span></h5></a>
  1419. </div>
  1420. </div>
  1421. </span> </div></li>
  1422.  
  1423. <li id="views_slideshow_cycle_div_1_8" class="bxslider-views-slideshow-main-frame-row">
  1424.  
  1425. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  1426. <div class="game-link-wrapper">
  1427. <a href="/0-space-is-key-2">
  1428. <div class="field-image">
  1429. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-space-is-key-2.gif?0=itok%3D6Kde54wm" width="83" height="50" alt="Space is Key 2 Icon" title="Space Is Key 2 game" /> </div>
  1430. <h5 class="game-title"><span class="overlay"></span><span class="title-on-overlay">Space Is Key 2</span></h5></a>
  1431. </div>
  1432. </div>
  1433. </span> </div></li>
  1434.  
  1435. </ul>
  1436. </div>
  1437. </div>
  1438. </div>
  1439. </div>
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446. </div> </div>
  1447.  
  1448.  
  1449. </div>
  1450. <div class="panel-pane pane-entity-view pane-node" >
  1451.  
  1452.  
  1453.  
  1454. <div class="pane-content">
  1455. <script type="text/javascript">
  1456. // we will define this varialbe signUpURLABTest in experiments.js
  1457. var cmg_upg_days_limit = 180;
  1458. if(window.location !== 'cmatgame.local') {// if testing
  1459. if(typeof signUpURL === 'undefined' || signUpURL === '') {
  1460. signUpURL = '/signup/b2df5a33?origin='+ window.location;
  1461. } else {
  1462. signUpURL = signUpURL+'?origin='+ window.location;
  1463. }
  1464. } else // end of testing (TODO - remove above if)
  1465. if(typeof signUpURLABTest === "undefined" || signUpURLABTest === null ) {
  1466. signUpURL = 'https://' + window.location.hostname +'/signup/b2df5a33?origin='+ window.location;
  1467. } else {
  1468. signUpURL = signUpURLABTest;
  1469. }
  1470.  
  1471. function subscription_promo_handler() {
  1472. if(typeof freeTrialUser !== 'undefined' && freeTrialUser) {
  1473. trackEvent('Premium Subscription ' +subscriberLeg, 'Subscription overlay clicked', userPlayedGames);
  1474. }
  1475. return;
  1476. }
  1477. function subscriptionSignUpUrl() {
  1478. var user_played_games = '';
  1479. var zeroFreeGamesLeftUsers =localStorage.getItem("zeroFreeGamesLeftUsers");
  1480. if(typeof userPlayedGames !== 'undefined' && userPlayedGames) {
  1481. user_played_games = "upg=" +userPlayedGames;
  1482. } else {
  1483. user_played_games = "upg=0";
  1484. }
  1485. if(zeroFreeGamesLeftUsers !== null && user_played_games !== '') {
  1486. user_played_games = user_played_games + '&zfg='+zeroFreeGamesLeftUsers;
  1487. } else if(zeroFreeGamesLeftUsers !== null) {
  1488. user_played_games = 'zfg='+zeroFreeGamesLeftUsers;
  1489. }
  1490.  
  1491. if(typeof signUpURL !== 'undefined' && signUpURL !== null && signUpURL.indexOf('upg') === -1) {
  1492. if(signUpURL.indexOf('?random_true') > -1) {
  1493. signUpURL = signUpURL.replace('?random_true', '');
  1494. }
  1495. if(signUpURL.indexOf('?') > -1) {
  1496. signUpURL = signUpURL + '&' +user_played_games;
  1497. } else {
  1498. signUpURL = signUpURL + '?' +user_played_games;
  1499. }
  1500. }
  1501. }
  1502. function cmatgame_premium_subscription_game_display() {
  1503. var cmatgame_subscriber = getCookie('cmg_sx');
  1504. var validSubscriber = false;
  1505. if(typeof cmatgame_subscriber !== 'undefined' && cmatgame_subscriber !== null ) {
  1506. validSubscriber = true;
  1507. }
  1508. if(typeof subscribeNowAlienClass === 'undefined' || subscribeNowAlienClass === null || subscribeNowAlienClass === '') {
  1509. if(Drupal.settings.isSubscriptionActive == false) {
  1510. subscribeNowAlienClass = "subscribe-now-alien-subscribe";
  1511. }else {
  1512. subscribeNowAlienClass = "subscribe-now-alien-signup";
  1513. }
  1514. }
  1515. freeGamesExceeded = true;
  1516.  
  1517. //display Ads to anonymous users the time from 7am to 13pm, display ads to anonymous users
  1518. // from 13pm to 11:59pm and 00 to 7am only if the user is not from New York city
  1519. // TODO --> Need to add day of the week for school hours logic, day < 6
  1520. if( getCookie('cmg_schwl') !== null || typeof cmg_no_ads !== 'undefined' || (!validSubscriber && schoolHours || ( !schoolHours && !targetStateUser ) || ( !schoolHours && targetStateUser && getCookie('cmg_active_anonymous_user') !== null) ) ) {
  1521. //TODO Display Game
  1522. removeAdSwfJWPLayer();
  1523. if(!/0-chess/.test(window.location.pathname)) {
  1524. //setCookie('cmg_active_anonymous_user', 'active', 30*60*1000);
  1525. }
  1526. } else if(!validSubscriber && !schoolHours && targetStateUser && getCookie('cmg_active_anonymous_user') === null && getCookie('cmg_editor') === null) {
  1527. //if user comes from google dont show the subscription paywall
  1528. var ref = document.referrer;
  1529. //count number of games played by the user this month
  1530. userPlayedGames = 0;
  1531. var userFreeGameList = [];
  1532. var freeGameNid = 11697;
  1533. if(sessionStorage.getItem("userFreeGameList") !== null) {
  1534. userFreeGameList = JSON.parse(sessionStorage.getItem("userFreeGameList"));
  1535. }
  1536. if((localStorage.getItem("userPlayedGames") == null || getCookie('cmg_upg') === null) && freeGameLimit !== 0 ) {
  1537. userPlayedGames = 1;
  1538. localStorage.setItem("userPlayedGames",userPlayedGames);
  1539. //TODO monthly cookie
  1540. setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24*60*60*1000);
  1541. userFreeGameList = [freeGameNid];
  1542. sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList));
  1543. //TODO Display Game
  1544. removeAdSwfJWPLayer();
  1545.  
  1546. } else {
  1547. //userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"+currentMonth+currentYear));
  1548. //Monthly limit
  1549. if(localStorage.getItem("userPlayedGames") !== null && getCookie('cmg_upg') !== null) {
  1550. userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"));
  1551. } else {
  1552. userPlayedGames = 0;
  1553. setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24*60*60*1000);
  1554. }
  1555. if(freeGameLimit != 0 && userPlayedGames < freeGameLimit && userFreeGameList.indexOf(freeGameNid) === -1) {
  1556. userPlayedGames++;
  1557. freeGamesExceeded = false;
  1558. if(userFreeGameList.length > 0) {
  1559. userFreeGameList = userFreeGameList.concat(freeGameNid);
  1560. } else {
  1561. userFreeGameList = [freeGameNid];
  1562. }
  1563. localStorage.setItem("userPlayedGames",userPlayedGames);
  1564. sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList));
  1565. } else {
  1566. freeGamesExceeded = true;
  1567. }
  1568. //console.log("Number of games user has played "+ userPlayedGames );
  1569. var validReferer = false;
  1570. var validGameSession = false;
  1571. if(userFreeGameList.indexOf(freeGameNid) > -1) {
  1572. validGameSession = true;
  1573. }
  1574. if(ref.match("google.com") !== null || ref.match("yahoo.com") !== null || ref.match("bing.com") !== null) {
  1575. validReferer = true;
  1576. }
  1577. subscriptionSignUpUrl();
  1578. if(!validReferer && userPlayedGames >= freeGameLimit && !validGameSession) { //subscription paywall
  1579. //block anonymous users for New York City from 0-7am and 13pm to 11:59pm
  1580. //console.log("Free games limit exceeded and referer is not google");
  1581. clearInterval(intervalId);
  1582. jQuery("#afg_container").remove();
  1583. jQuery(".title-instructions").remove();
  1584. jQuery(".body-instructions").remove();
  1585. var alreadySubscriberText = '<p class="already-subscribed">Already a Subscriber? <a class="learn-more-link" href="/user/login">Login</a></p>';
  1586. if(getCookie('cmg_l') != null) {
  1587. alreadySubscriberText = '';
  1588. }
  1589. var headLine = '<p class="no-free-games-headline">Please Sign up to keep playing</p>';
  1590. if(Drupal.settings.isSubscriptionActive == false && getCookie('cmg_l') != null) {
  1591. headLine = '<p class="no-free-games-headline" style="padding-top:46px;">PLEASE SUBSCRIBE NOW TO KEEP PLAYING</p>';
  1592. }
  1593. jQuery(".field-game").html('<div class="subscription-overlay" style="height:360px;width:500px;background:#008aa3;white-space:normal;">'+
  1594. headLine +
  1595. '<p class="free-in-schools">To keep Coolmath-Games free in schools, <br>we offer subscriptions for unlimited use<br>at home. '+
  1596. '<a class="learn-more-link" href="/subscribe-info"> Learn More > </a></p>' +
  1597. '<a class="'+ subscribeNowAlienClass +'" onclick="subscription_promo_handler();" href="' + signUpURL + ' ">Subscribe Now</a>' +
  1598. alreadySubscriberText + '</div>');
  1599. } else {
  1600. //console.log("User may have come from google or is within the free game limit "+ (freeGameLimit-userPlayedGames) );
  1601. //TODO Display Game
  1602. removeAdSwfJWPLayer();
  1603. }
  1604. }
  1605. //display to user how many free games left once page load completes.
  1606. if (window.addEventListener)
  1607. window.addEventListener('load', checkPageLoad, false);
  1608. else if (window.attachEvent)
  1609. window.attachEvent('onload', checkPageLoad);
  1610. else window.onload = checkPageLoad;
  1611. }
  1612. }
  1613.  
  1614. function checkPageLoad() {
  1615. //console.log("checkPageLoad: Checkers test ");
  1616. if(freeGameLimit) {
  1617. freeGamesLeft = ((freeGameLimit - userPlayedGames));
  1618. } else {
  1619. freeGamesLeft = 0;
  1620. }
  1621. if(freeGamesLeft === 0) {
  1622. var zeroFreeGamesLeftUsers =localStorage.getItem("zeroFreeGamesLeftUsers");
  1623. if(zeroFreeGamesLeftUsers == null) {
  1624. localStorage.setItem("zeroFreeGamesLeftUsers","1");
  1625. __gaTracker('send', {
  1626. 'hitType': 'event', // Required.
  1627. 'eventCategory': "ZeroFreeGamesLeftUsers", // Required.
  1628. 'eventAction': subscriberLeg, // Required.
  1629. 'eventLabel': document.title,
  1630. 'eventValue': "0",
  1631. 'nonInteraction': 1
  1632. });
  1633. }
  1634. }
  1635. //Replace Go Ad Free header promo with parents and teachers promo
  1636. if(typeof freeTrialUser !== 'undefined' && freeTrialUser && typeof targeted_state !== 'undefined' && targeted_state && jQuery('.panel-pane.pane-block.pane-bean-subscriber-promo').length) {
  1637. jQuery('.panel-pane.pane-block.pane-bean-subscriber-promo').replaceWith('<div class="panel-pane pane-block"><div class="panel-pane pane-block"><div class="pane-bean-parents-promo" style="display: block;"><a href="/subscribe-info/" style="display: block;">Parents and Teachers</a></div></div></div>')
  1638. } else if(typeof freeTrialUser !== 'undefined' && freeTrialUser && typeof targeted_state !== 'undefined' && targeted_state && jQuery('.panel-pane.pane-block .pane-bean-subscriber-promo').length) {
  1639. jQuery('.panel-pane.pane-block .pane-bean-subscriber-promo').replaceWith('<div class="panel-pane pane-block"><div class="panel-pane pane-block"><div class="pane-bean-parents-promo" style="display: block;"><a href="/subscribe-info/" style="display: block;">Parents and Teachers</a></div></div></div>')
  1640. }
  1641. subscriptionSignUpUrl();
  1642.  
  1643. if(Drupal.settings.isSubscriptionActive == false && getCookie('cmg_l') !== null) {
  1644. subscribeNowAlienClass = "subscribe-now-alien-subscribe";
  1645. }else if(getCookie('cmg_l') == null) {
  1646. subscribeNowAlienClass = "subscribe-now-alien";
  1647. }else if(getCookie('cmg_l') == null && subscriberLeg == 'Default Leg') {
  1648. subscribeNowAlienClass = "subscribe-now-signup";
  1649.  
  1650. }
  1651. var alreadySubscriberText = '<p class="already-subscribed">Already a Subscriber? <a class="learn-more-link" href="/user/login">Login</a></p>';
  1652. if(getCookie('cmg_l') != null) {
  1653. alreadySubscriberText = '';
  1654. }
  1655. if(freeGamesLeft === 0 && (!freeGamesExceeded || freeGameLimit > 0) ){
  1656. freeGamesLeftDiv = '<div class="free-games-left-sidebar">'+
  1657. '<p class="no-free-games-headline">You Have <span class="remaining">'+ freeGamesLeft + '</span> <br>Free Games Remaining</p>' +
  1658. '<p class="free-in-schools">To keep Coolmath-Games free <br> in schools, we offer subscriptions for unlimited use at home.</p>'+
  1659. '<p><a class="learn-more-link" href="/subscribe-info">Learn More > </a></p>' +
  1660. '<a class="'+ subscribeNowAlienClass +'" onclick="subscription_promo_handler();" href="' + signUpURL + ' ">Subscribe Now</a>' +
  1661. alreadySubscriberText +
  1662. '</div>';
  1663. jQuery(".pane-bean-remaining-games-placeholder").html(freeGamesLeftDiv);
  1664. } else if(freeGamesLeft === 1) {
  1665. freeGamesLeftDiv = '<div class="free-games-left-sidebar">'+
  1666. '<p class="no-free-games-headline">You Have <span class="remaining">'+ freeGamesLeft + '</span><br>Free Game Remaining</p>' +
  1667. '<p class="free-in-schools">To keep Coolmath-Games free <br> in schools, we offer subscriptions for unlimited use at home.</p>'+
  1668. '<p><a class="learn-more-link" href="/subscribe-info">Learn More > </a></p>' +
  1669. '<a class="'+ subscribeNowAlienClass +'" onclick="subscription_promo_handler();" href="' + signUpURL + ' ">Subscribe Now</a>' +
  1670. alreadySubscriberText+
  1671. '</div>';
  1672. jQuery(".pane-bean-remaining-games-placeholder").html(freeGamesLeftDiv);
  1673. } else if(freeGamesLeft === 0 && freeGamesExceeded){
  1674. freeGamesLeftDiv = '';
  1675. jQuery(".pane-bean-remaining-games-placeholder").html(freeGamesLeftDiv);
  1676. } else {
  1677. freeGamesLeftDiv = '<div class="free-games-left-sidebar">'+
  1678. '<p class="no-free-games-headline">You Have <span class="remaining">'+ freeGamesLeft + '</span><br> Free Games Remaining</p>' +
  1679. '<p class="free-in-schools">To keep Coolmath-Games free <br> in schools, we offer subscriptions for unlimited use at home.</p>'+
  1680. '<p><a class="learn-more-link" href="/subscribe-info">Learn More > </a></p>' +
  1681. '<a class="'+ subscribeNowAlienClass +'" onclick="subscription_promo_handler();" href="' + signUpURL + ' ">Subscribe Now</a>' +
  1682. alreadySubscriberText +
  1683. '</div>';
  1684. jQuery(".pane-bean-remaining-games-placeholder").html(freeGamesLeftDiv);
  1685. }
  1686. }// end checkPageLoad();
  1687.  
  1688. </script>
  1689. <article class="game-field-wrapper node-11697 node node-game view-mode-full game-w-summary clearfix" about="/0-run-3" typeof="sioc:Item foaf:Document">
  1690. <header>
  1691. <span property="dc:title" content="Run 3" class="rdf-meta element-hidden"></span>
  1692. </header>
  1693. <script>
  1694. function unlockAllLevels() {
  1695. trackEvent('Unlock All Levels category', 'unlock all levels button clicked', document.title);
  1696. alllevels = '<div class="adobe-analytics-sub-experience levels-unlocked">levels-unlocked</div>';
  1697. jQuery("#subscriber-banner").replaceWith(alllevels);
  1698. if(game_type == "html5") {
  1699. document.getElementById("html5game").contentWindow.unlockAllLevels();
  1700. } else {
  1701. document.getElementById("swfObjID").unlockAllLevels();
  1702. }
  1703. }
  1704. function addSubToUnlockGAEvent(){
  1705. trackEvent('Unlock All Levels category', 'subscribe to unlock button clicked', document.title);
  1706. window.location.href = "http://www.coolmath-games.com/signup/b2df5a33?origin=node/11697&stual=1"
  1707. }
  1708. </script>
  1709.  
  1710.  
  1711. <div id="no-flash-overlay" style="display:none;">
  1712. <a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="/sites/cmatgame/files/enable-flash/enable-flash-light-blue-transparent.png" alt="click to enable flash" /></a>
  1713. <div class="bottom-text"><p>If that doesn't work, <a href="/fix-flash" class="fix-flash-2">go here for more help.</a></div>
  1714. <!-- <div class="bottom-text"><p>Want great games that don't require Flash? <a href="/1-html5-games" class="html5-games-link">Check out our HTML5 Games!</a></div> -->
  1715. </div>
  1716.  
  1717.  
  1718.  
  1719. <div class="field-game">
  1720. <div id="swf_1"></div> </div>
  1721.  
  1722.  
  1723. <script>
  1724. hide_preroll_ads = false;
  1725. var cmg_active_anonymous_user = getCookie('cmg_active_anonymous_user');
  1726. if(cmg_active_anonymous_user != null && !/0-chess/.test(window.location.pathname)) {
  1727. //setCookie('cmg_active_anonymous_user', 'active', 30*60*1000);
  1728. }
  1729. </script>
  1730.  
  1731. <div id="afg_container">
  1732. <style>
  1733. .load-wrap {
  1734. width: 100%;
  1735. }
  1736.  
  1737. .circle {
  1738. display: inline-block;
  1739. height: 15px;
  1740. width: 15px;
  1741. margin-right: 20px;
  1742. background-color: #fc6e51;
  1743. border-radius: 50%;
  1744. -webkit-animation: afg_container_loading 1.6s infinite;
  1745. -moz-animation: afg_container_loading 1.6s infinite;
  1746. -o-animation: afg_container_loading 1.6s infinite;
  1747. animation: afg_container_loading 1.6s infinite;
  1748. }
  1749.  
  1750. .load-wrap .circle:nth-child(3) {
  1751. -webkit-animation-delay: .1s;
  1752. -moz-animation-delay: .1s;
  1753. -o-animation-delay: .1s;
  1754. animation-delay: .1s;
  1755. background: #f8eb13;
  1756. margin: -40px 5px 40px 340px;
  1757. }
  1758.  
  1759. .load-wrap .circle:nth-child(4) {
  1760. -webkit-animation-delay: .3s;
  1761. -moz-animation-delay: .3s;
  1762. -o-animation-delay: .3s;
  1763. animation-delay: .3s;
  1764. background: #33a2da;
  1765. margin: -40px 5px 40px ;
  1766. }
  1767.  
  1768. .load-wrap .circle:nth-child(5) {
  1769. -webkit-animation-delay: .5s;
  1770. -moz-animation-delay: .5s;
  1771. -o-animation-delay: .5s;
  1772. animation-delay: .5s;
  1773. background: #ee3928;
  1774. margin: -40px 5px 40px ;
  1775. }
  1776.  
  1777. .load-wrap .circle:nth-child(6) {
  1778. -webkit-animation-delay: .7s;
  1779. -moz-animation-delay: .7s;
  1780. -o-animation-delay: .7s;
  1781. animation-delay: .7s;
  1782. background: #51b747;
  1783. margin: -40px 5px 40px ;
  1784. }
  1785.  
  1786. /* Keyframes */
  1787.  
  1788. @-webkit-keyframes afg_container_loading {
  1789. 0%, 100% {
  1790. -webkit-transform: scale(0.0);
  1791. }
  1792. 50% {
  1793. -webkit-transform: scale(1.0);
  1794. }
  1795. }
  1796.  
  1797. @-moz-keyframes afg_container_loading {
  1798. 0%, 100% {
  1799. -moz-transform: scale(0.0);
  1800. }
  1801. 50% {
  1802. -moz-transform: scale(1.0);
  1803. }
  1804. }
  1805.  
  1806. @-o-keyframes afg_container_loading {
  1807. 0%, 100% {
  1808. -o-transform: scale(0.0);
  1809. }
  1810. 50% {
  1811. -o-transform: scale(1.0);
  1812. }
  1813. }
  1814.  
  1815. @keyframes afg_container_loading {
  1816. 0%, 100% {
  1817. transform: scale(0.0);
  1818. }
  1819. 50% {
  1820. transform: scale(1.0);
  1821. }
  1822. }
  1823. </style>
  1824.  
  1825. <div class="load-wrap">
  1826. <script>
  1827. // IE Detection and Version grabbing
  1828. ie = false;
  1829. if (navigator.appName == "Microsoft Internet Explorer") {
  1830. ie = true;
  1831. var ua = navigator.userAgent;
  1832. var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
  1833. if (re.exec(ua) != null) {
  1834. ieVersion = parseInt(RegExp.$1)
  1835. }
  1836. }
  1837.  
  1838. if(ie && ieVersion <= 9) {
  1839. document.write('<h1 style="margin:20px 0px; font-size: 20px">Just a moment while your game loads...</h1>');
  1840. } else {
  1841. document.write('<h1 style="margin:20px 0px; font-size: 20px">Just a moment while your game loads</h1><div class="circle"></div><div class="circle"></div><div class="circle"></div><div class="circle"></div>');
  1842. }
  1843. </script>
  1844. </div>
  1845.  
  1846. <div id="div-gpt-ad-629350160446709561-10" style="margin-bottom:20px;text-align:center;"></div>
  1847. <!--Start of Preloader call -->
  1848. <div id="afg_preloader">
  1849.  
  1850. <div id="container123">
  1851.  
  1852. <div id="videoplayer">
  1853. <video id="content123" style="height:1px;width:640px;">
  1854. <source src="//www.coolmath-games.com/sites/cmatgame/files/adtesting/DummyVideo.mov"></source>
  1855. </video>
  1856. <div id="adcontainer" style="height:480px;width:640px;"></div>
  1857. </div>
  1858. </div>
  1859. <script type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
  1860.  
  1861. <script type="text/javascript">
  1862. /**
  1863. * Handles user interaction and creates the player and ads controllers.
  1864. */
  1865. var Application = function(displayAds) {
  1866. this.playing_ = false;
  1867. this.adsActive_ = false;
  1868. this.adsDone_ = false;
  1869. if(typeof displayAds === 'undefined' || displayAds === null) {
  1870. this.displayAds = true;
  1871. } else {
  1872. this.displayAds = displayAds;
  1873. }
  1874.  
  1875. this.videoPlayer_ = new VideoPlayer();
  1876. if(this.displayAds && typeof targeted_state === 'undefined') {
  1877. //console.log("Preload ads for non subscription time games");
  1878. this.ads_ = new Ads(this, this.videoPlayer_);
  1879. //Adx Preroll Tag with fallback display Ad
  1880. /*
  1881. this.adTagUrl_ = 'https://googleads.g.doubleclick.net/pagead/ads?client=ca-games-pub-9728353415461720&ad_type=video_text_image&description_url=http%3A%2F%2Fwww.coolmath-games.com&max_ad_duration=60000&videoad_start_delay=0';
  1882. */
  1883. this.adTagUrl_ = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/45966600/cmg.preroll&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=http%3A%2F%2Fwww.coolmath-ganes.com&correlator=' + new Date();
  1884. // The user clicked/tapped - inform the ads controller that this code
  1885. // is being run in a user action thread.
  1886. this.ads_.initialUserAction();
  1887. // At the same time, initialize the content player as well.
  1888. // When content is loaded, we'll issue the ad request to prevent it
  1889. // from interfering with the initialization. See
  1890. // https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/ads#iosvideo
  1891. // for more information.
  1892. this.videoPlayer_.preloadContent(this.bind_(this, this.loadAds_));
  1893. this.adsDone_ = true;
  1894. } else {
  1895. //console.log("Do not preload ads for free trial user");
  1896. removeAdSwfJWPLayer();
  1897. }
  1898.  
  1899. };
  1900.  
  1901. Application.prototype.bind_ = function(thisObj, fn) {
  1902. return function() {
  1903. fn.apply(thisObj, arguments);
  1904. };
  1905. };
  1906.  
  1907. Application.prototype.loadAds_ = function() {
  1908. this.ads_.requestAds(this.adTagUrl_);
  1909. };
  1910.  
  1911. /**
  1912. * Handles video player functionality.
  1913. */
  1914. var VideoPlayer = function() {
  1915. this.contentPlayer = document.getElementById('content123');
  1916. this.adContainer = document.getElementById('adcontainer');
  1917. this.videoPlayerContainer_ = document.getElementById('videoplayer');
  1918. this.width = 640;
  1919. this.height = 480;
  1920. };
  1921.  
  1922. VideoPlayer.prototype.preloadContent = function(contentLoadedAction) {
  1923. contentLoadedAction();
  1924. };
  1925. VideoPlayer.prototype.play = function() {
  1926. this.contentPlayer.play();
  1927. };
  1928.  
  1929. VideoPlayer.prototype.pause = function() {
  1930. this.contentPlayer.pause();
  1931. };
  1932.  
  1933.  
  1934. /**
  1935. * Shows how to use the IMA SDK to request and display ads.
  1936. */
  1937. var Ads = function(application, videoPlayer) {
  1938. this.application_ = application;
  1939. this.videoPlayer_ = videoPlayer;
  1940. this.customClickDiv_ = document.getElementById('customClick');
  1941. this.contentCompleteCalled_ = false;
  1942. google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED);
  1943. // Call setLocale() to localize language text and downloaded swfs
  1944. // google.ima.settings.setLocale('fr');
  1945. this.adDisplayContainer_ =
  1946. new google.ima.AdDisplayContainer(
  1947. this.videoPlayer_.adContainer,
  1948. this.videoPlayer_.contentPlayer,
  1949. this.customClickDiv_);
  1950. this.adsLoader_ = new google.ima.AdsLoader(this.adDisplayContainer_);
  1951. this.adsManager_ = null;
  1952.  
  1953. this.adsLoader_.addEventListener(
  1954. google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
  1955. this.onAdsManagerLoaded_,
  1956. false,
  1957. this);
  1958. this.adsLoader_.addEventListener(
  1959. google.ima.AdErrorEvent.Type.AD_ERROR,
  1960. this.onAdError_,
  1961. false,
  1962. this);
  1963. };
  1964.  
  1965. // On iOS and Android devices, video playback must begin in a user action.
  1966. // AdDisplayContainer provides a initialize() API to be called at appropriate
  1967. // time.
  1968. // This should be called when the user clicks or taps.
  1969. Ads.prototype.initialUserAction = function() {
  1970. this.adDisplayContainer_.initialize();
  1971. this.videoPlayer_.contentPlayer.load();
  1972.  
  1973. };
  1974.  
  1975. Ads.prototype.requestAds = function(adTagUrl) {
  1976. var adsRequest = new google.ima.AdsRequest();
  1977. adsRequest.adTagUrl = adTagUrl;
  1978. adsRequest.linearAdSlotWidth = this.videoPlayer_.width;
  1979. adsRequest.linearAdSlotHeight = this.videoPlayer_.height;
  1980. adsRequest.nonLinearAdSlotWidth = this.videoPlayer_.width;
  1981. adsRequest.nonLinearAdSlotHeight = this.videoPlayer_.height;
  1982. this.adsLoader_.requestAds(adsRequest);
  1983. };
  1984.  
  1985. Ads.prototype.onAdsManagerLoaded_ = function(adsManagerLoadedEvent) {
  1986. //console.log('Ads loaded.');
  1987. var adsRenderingSettings = new google.ima.AdsRenderingSettings();
  1988. //adsRenderingSettings.loadVideoTimeout = 4000;
  1989. adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete = true;
  1990. this.adsManager_ = adsManagerLoadedEvent.getAdsManager(
  1991. this.videoPlayer_.contentPlayer, adsRenderingSettings);
  1992. this.processAdsManager_(this.adsManager_);
  1993. };
  1994.  
  1995. Ads.prototype.processAdsManager_ = function(adsManager) {
  1996. if (adsManager.isCustomClickTrackingUsed()) {
  1997. this.customClickDiv_.style.display = 'table';
  1998. }
  1999. // Handle errors.
  2000. adsManager.addEventListener(
  2001. google.ima.AdErrorEvent.Type.AD_ERROR,
  2002. this.onAdError_,
  2003. false,
  2004. this);
  2005. var events = [google.ima.AdEvent.Type.ALL_ADS_COMPLETED,
  2006. google.ima.AdEvent.Type.COMPLETE,
  2007. google.ima.AdEvent.Type.FIRST_QUARTILE,
  2008. google.ima.AdEvent.Type.LOADED,
  2009. google.ima.AdEvent.Type.MIDPOINT,
  2010. google.ima.AdEvent.Type.STARTED,
  2011. google.ima.AdEvent.Type.THIRD_QUARTILE, google.ima.AdEvent.Type.USER_CLOSE];
  2012. for (var index in events) {
  2013. adsManager.addEventListener(
  2014. events[index],
  2015. this.onAdEvent_,
  2016. false,
  2017. this);
  2018. }
  2019.  
  2020. var initWidth, initHeight;
  2021.  
  2022. initWidth = this.videoPlayer_.width;
  2023. initHeight = this.videoPlayer_.height;
  2024.  
  2025. adsManager.init(
  2026. initWidth,
  2027. initHeight,
  2028. google.ima.ViewMode.NORMAL);
  2029.  
  2030. adsManager.start();
  2031. };
  2032.  
  2033.  
  2034. Ads.prototype.onAdEvent_ = function(adEvent) {
  2035. //console.log('Ad event1: ' + adEvent.type);
  2036. if (adEvent.type == google.ima.AdEvent.Type.LOADED) {
  2037. var ad = adEvent.getAd();
  2038. jQuery("#content123").hide();
  2039. }
  2040. if (adEvent.type == google.ima.AdEvent.Type.ALL_ADS_COMPLETED) {
  2041. removeAdSwfJWPLayer();
  2042. }
  2043. if (adEvent.type == google.ima.AdEvent.Type.USER_CLOSE) {
  2044. removeAdSwfJWPLayer();
  2045. }
  2046.  
  2047. };
  2048.  
  2049. Ads.prototype.onAdError_ = function(adErrorEvent) {
  2050. //console.log('Ad error: ' + adErrorEvent.getError().toString());
  2051. if (this.adsManager_) {
  2052. this.adsManager_.destroy();
  2053. }
  2054. //TODO remove the ad slot and display the game
  2055. //this.application_.resumeAfterAd();
  2056. removeAdSwfJWPLayer();
  2057. };
  2058.  
  2059. if(Drupal.settings.isSubscriptionActive == false && getCookie('cmg_l') !== null) {
  2060. subscribeNowAlienClass = "subscribe-now-alien-subscribe";
  2061. }else if(getCookie('cmg_l') == null) {
  2062. subscribeNowAlienClass = "subscribe-now-alien";
  2063. }else if(getCookie('cmg_l') == null && subscriberLeg == 'Default Leg') {
  2064. subscribeNowAlienClass = "subscribe-now-signup";
  2065.  
  2066.  
  2067. }
  2068. var cmatgame_subscriber = getCookie('cmg_sx');
  2069. var validSubscriber = false;
  2070. if(typeof cmatgame_subscriber !== 'undefined' && cmatgame_subscriber !== null ) {
  2071. validSubscriber = true;
  2072. }
  2073. var application = null;
  2074. var freeGamesExceeded = true;
  2075. //display Ads to anonymous users the time from 7am to 13pm, display ads to anonymous users
  2076. // from 13pm to 11:59pm and 00 to 7am only if the user is not from New York city
  2077. // TODO --> Need to add day of the week for school hours logic, day < 6
  2078. if(getCookie('cmg_schwl') !== null || typeof cmg_no_ads !== 'undefined' || (!validSubscriber && schoolHours || ( !schoolHours && !targetStateUser ) || ( !schoolHours && targetStateUser && getCookie('cmg_active_anonymous_user') !== null) )) {
  2079. if(getCookie('cmg_schwl') !== null || typeof cmg_no_ads !== 'undefined') {
  2080. application = new Application(false);
  2081. } else {
  2082. application = new Application(true);
  2083. }
  2084. if(!/0-chess/.test(window.location.pathname)) {
  2085. //setCookie('cmg_active_anonymous_user', 'active', 30*60*1000);
  2086. }
  2087. } else if(!validSubscriber && !schoolHours && targetStateUser && getCookie('cmg_active_anonymous_user') === null && getCookie('cmg_editor') === null) {
  2088. //if user comes from google dont show the subscription paywall
  2089. var ref = document.referrer;
  2090. //count number of games played by the user this month
  2091. userPlayedGames = 0;
  2092. var userFreeGameList = [];
  2093. var freeGameNid = 11697;
  2094. if(sessionStorage.getItem("userFreeGameList") !== null) {
  2095. userFreeGameList = JSON.parse(sessionStorage.getItem("userFreeGameList"));
  2096. }
  2097. //if(localStorage.getItem("userPlayedGames"+currentMonth+currentYear) == null) {
  2098. if((localStorage.getItem("userPlayedGames") == null || getCookie('cmg_upg') === null) && freeGameLimit !== 0) {
  2099. userPlayedGames = 1;
  2100. //localStorage.setItem("userPlayedGames"+currentMonth+currentYear,userPlayedGames);
  2101. localStorage.setItem("userPlayedGames",userPlayedGames);
  2102. setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24*60*60*1000);
  2103. userFreeGameList = [freeGameNid];
  2104. sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList));
  2105. application = new Application(false);
  2106. } else {
  2107. //userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"+currentMonth+currentYear));//monthly limit
  2108. if(localStorage.getItem("userPlayedGames") !== null && getCookie('cmg_upg') !== null) {
  2109. userPlayedGames = parseInt(localStorage.getItem("userPlayedGames"));//lifetime limit
  2110. } else {
  2111. userPlayedGames = 0;
  2112. setCookie('cmg_upg', 'true', cmg_upg_days_limit * 24*60*60*1000);
  2113. }
  2114. if(freeGameLimit !== 0 && userPlayedGames < freeGameLimit && userFreeGameList.indexOf(freeGameNid) === -1) {
  2115. userPlayedGames++;
  2116. freeGamesExceeded = false;
  2117. if(userFreeGameList.length > 0) {
  2118. userFreeGameList = userFreeGameList.concat(freeGameNid);
  2119. } else {
  2120. userFreeGameList = [freeGameNid];
  2121. }
  2122. localStorage.setItem("userPlayedGames",userPlayedGames);
  2123. sessionStorage.setItem("userFreeGameList", JSON.stringify(userFreeGameList));
  2124. } else {
  2125. freeGamesExceeded = true;
  2126. }
  2127.  
  2128. var validReferer = false;
  2129. var validGameSession = false;
  2130. if(userFreeGameList.indexOf(freeGameNid) > -1) {
  2131. validGameSession = true;
  2132. }
  2133. if(ref.match("google.com") !== null || ref.match("yahoo.com") !== null || ref.match("bing.com") !== null) {
  2134. validReferer = true;
  2135. }
  2136. subscriptionSignUpUrl();
  2137. var alreadySubscriberText = '<p class="already-subscribed">Already a Subscriber? <a class="learn-more-link" href="/user/login">Login</a></p>';
  2138. if(getCookie('cmg_l') != null) {
  2139. alreadySubscriberText = '';
  2140. }
  2141. var headLine = '<p class="no-free-games-headline">Please Sign up to keep playing</p>';
  2142. if(Drupal.settings.isSubscriptionActive == false && getCookie('cmg_l') != null) {
  2143. headLine = '<p class="no-free-games-headline" style="padding-top:46px;">PLEASE SUBSCRIBE NOW TO KEEP PLAYING</p>';
  2144. }
  2145. if(!validReferer && userPlayedGames >= freeGameLimit && !validGameSession) { //subscription paywall
  2146. //block anonymous users for New York City from 0-7am and 13pm to 11:59pm
  2147. clearInterval(intervalId);
  2148. jQuery("#afg_container").remove();
  2149. jQuery(".title-instructions").remove();
  2150. jQuery(".body-instructions").remove();
  2151. jQuery(".field-game").html('<div class="subscription-overlay" style="height:360px;width:500px;background:#008aa3;white-space:normal;">'+
  2152. headLine +
  2153. '<p class="free-in-schools">To keep Coolmath-Games free in schools, <br>we offer subscriptions for unlimited use<br>at home. '+
  2154. '<a class="learn-more-link" href="/subscribe-info"> Learn More > </a></p>' +
  2155. '<a class="'+ subscribeNowAlienClass +'" onclick="subscription_promo_handler();" href="' + signUpURL + ' ">Subscribe Now</a>' +
  2156. alreadySubscriberText+'</div>');
  2157. //localStorage.setItem("userPlayedGames"+currentMonth+currentYear,userPlayedGames);
  2158. //localStorage.setItem("userPlayedGames",userPlayedGames);
  2159. } else {
  2160. application = new Application(false);
  2161. //localStorage.setItem("userPlayedGames"+currentMonth+currentYear,userPlayedGames);//monthly limit
  2162. //localStorage.setItem("userPlayedGames",userPlayedGames);//lifetime limit
  2163. }
  2164. }
  2165. //display to user how many free games left once page load completes.
  2166. if (window.addEventListener)
  2167. window.addEventListener('load', checkPageLoad, false);
  2168. else if (window.attachEvent)
  2169. window.attachEvent('onload', checkPageLoad);
  2170. else window.onload = checkPageLoad;
  2171. }
  2172.  
  2173. </script>
  2174. </div>
  2175. <script type="text/javascript">
  2176. function removeAdSwf() {
  2177. removeAdSwfJWPLayer();
  2178. }
  2179. function noAdsReturned() {
  2180. // enable_preroll_fallback_ads is false
  2181. removeAdSwfJWPLayer();
  2182. }
  2183. </script>
  2184.  
  2185. <div id="continue-container">
  2186. <div id="continue-link">Continue in </div>
  2187. <span id="timer_div" style="margin-left:5px;">15</span>
  2188. </div>
  2189. </div>
  2190.  
  2191.  
  2192.  
  2193. <div class = "title-instructions" id="game-instructions">Instructions</div>
  2194. <div class = "body-instructions"><p>Use the arrow keys to run and jump. Land on a side wall to rotate the world. Beat levels to unlock all-new characters with special powers. There's a whole new galaxy waiting to be explored!</p>
  2195. <p>Feel like you're stuck in a crazy hard level? Press pause and then change your character using the menu at the bottom of the screen. (For example, try using the skater in the snow levels!)</p>
  2196. </div>
  2197.  
  2198.  
  2199. </article>
  2200.  
  2201. <script type="text/javascript">
  2202. jQuery(document).ready(function(){
  2203. if(jQuery('#videoContainer').length && typeof VooxeVideo === 'undefined') {
  2204. trackEvent('Video Walkthrough', 'Walkthrough video not found', document.title);
  2205. jQuery('#videoContainer').hide();
  2206. }
  2207. })
  2208. </script> </div>
  2209.  
  2210.  
  2211. </div>
  2212. <div class="panel-pane pane-views-panes pane-game-details-pane-top-picks" >
  2213.  
  2214. <h2 class="pane-title">
  2215. Coolmath top picks </h2>
  2216.  
  2217.  
  2218. <div class="pane-content">
  2219. <div class="view view-game-details view-id-game_details view-display-id-pane_top_picks view-dom-id-3b5f73f11fc18c7475542f4ed0fecd84">
  2220.  
  2221.  
  2222.  
  2223. <div class="view-content">
  2224. <div class="views-row views-row-1 views-row-odd views-row-first">
  2225.  
  2226. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2227. <div class="game-link-wrapper">
  2228. <a href="/0-clicker-heroes">
  2229. <div class="field-image">
  2230. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/clicker-heroes-game-logo.png?0=itok%3DBCsolWxk" width="83" height="50" alt="Clicker Heroes Game" title="Clicker Heroes game" /> </div>
  2231. <h3 class="game-title">Clicker Heroes</h3></a> </div>
  2232. <div class="game-item-description">
  2233.  
  2234. <div class="field-body">
  2235. <p>Click to defeat monsters, earn gold and level up heroes. Ascend and transcend to reach new heights of power. See how far you can go!</p>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. </span> </div> </div>
  2240. <div class="views-row views-row-2 views-row-even">
  2241.  
  2242. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2243. <div class="game-link-wrapper">
  2244. <a href="/0-checkers">
  2245. <div class="field-image">
  2246. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/checkers-game-logo.png?0=itok%3DQjrYvbcE" width="83" height="50" alt="Checkers Game" title="Checkers game" /> </div>
  2247. <h3 class="game-title">Checkers</h3></a> </div>
  2248. <div class="game-item-description">
  2249.  
  2250. <div class="field-body">
  2251. <p>The classic board game of moving and jumping. Play vs. the computer, or against a friend.</p>
  2252. </div>
  2253. </div>
  2254. </div>
  2255. </span> </div> </div>
  2256. <div class="views-row views-row-3 views-row-odd">
  2257.  
  2258. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2259. <div class="game-link-wrapper">
  2260. <a href="/0-run-2">
  2261. <div class="field-image">
  2262. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-run-2.gif?0=itok%3DdopaQvgf" width="83" height="50" alt="Run 2 game" title="Run 2 game" /> </div>
  2263. <h3 class="game-title">Run 2</h3></a> </div>
  2264. <div class="game-item-description">
  2265.  
  2266. <div class="field-body">
  2267. <p>Warning: This game requires a huge amount of concentration and memorization as you run (or skate) through the 3 dimensional courses.</p>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </span> </div> </div>
  2272. <div class="views-row views-row-4 views-row-even">
  2273.  
  2274. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2275. <div class="game-link-wrapper">
  2276. <a href="/0-worlds-hardest-game">
  2277. <div class="field-image">
  2278. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-worlds-hardest-game.gif?0=itok%3DFWkXD8pU" width="83" height="50" alt="World&#039;s Hardest Game game" title="World&#039;s Hardest Game game" /> </div>
  2279. <h3 class="game-title">World's Hardest Game</h3></a> </div>
  2280. <div class="game-item-description">
  2281.  
  2282. <div class="field-body">
  2283. <p>It really is. Don't ask us how to beat it. We can't. But we've seen it done and it's possible. You guys are on your own!</p>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </span> </div> </div>
  2288. <div class="views-row views-row-5 views-row-odd">
  2289.  
  2290. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2291. <div class="game-link-wrapper">
  2292. <a href="/0-chess">
  2293. <div class="field-image">
  2294. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/chess-icon.png?0=itok%3DQ-uDdKXN" width="83" height="50" alt="Chess game" title="Chess game" /> </div>
  2295. <h3 class="game-title">Chess</h3></a> </div>
  2296. <div class="game-item-description">
  2297.  
  2298. <div class="field-body">
  2299. <p>Checkmate! Get your pawns in a row and play this classic strategic board game. Play vs. the computer, a friend, or join a match against another online player.</p>
  2300. </div>
  2301. </div>
  2302. </div>
  2303. </span> </div> </div>
  2304. <div class="views-row views-row-6 views-row-even">
  2305.  
  2306. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2307. <div class="game-link-wrapper">
  2308. <a href="/0-coffee-shop">
  2309. <div class="field-image">
  2310. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-coffeeshop.gif?0=itok%3D-rmpS3Bd" width="83" height="50" alt="Coffee Shop game" title="Coffee Shop game" /> </div>
  2311. <h3 class="game-title">Coffee Shop</h3></a> </div>
  2312. <div class="game-item-description">
  2313.  
  2314. <div class="field-body">
  2315. <p>A great business game where you run your own coffee shop. You have to plan your budget, your recipe and how much to charge. </p>
  2316. </div>
  2317. </div>
  2318. </div>
  2319. </span> </div> </div>
  2320. <div class="views-row views-row-7 views-row-odd">
  2321.  
  2322. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2323. <div class="game-link-wrapper">
  2324. <a href="/0-gluey-2">
  2325. <div class="field-image">
  2326. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-gluey-2.gif?0=itok%3DvST2NjuI" width="83" height="50" alt="Gluey 2 game" title="Gluey 2 game" /> </div>
  2327. <h3 class="game-title">Gluey 2</h3></a> </div>
  2328. <div class="game-item-description">
  2329.  
  2330. <div class="field-body">
  2331. <p>The sequel to the popular Gluey! Group and remove blobs of the same color to get them to disappear. You're going to have to think and plan ahead!</p>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. </span> </div> </div>
  2336. <div class="views-row views-row-8 views-row-even">
  2337.  
  2338. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2339. <div class="game-link-wrapper">
  2340. <a href="/0-solitaire">
  2341. <div class="field-image">
  2342. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/solitaire-game-logo.png?0=itok%3DZo1vRbZf" width="83" height="50" alt="Solitaire Game" title="Solitaire game" /> </div>
  2343. <h3 class="game-title">Solitaire</h3></a> </div>
  2344. <div class="game-item-description">
  2345.  
  2346. <div class="field-body">
  2347. <p>The classic singleplayer card game. Choose your difficulty, and see if you can stack all four suits, Ace to King!</p>
  2348. </div>
  2349. </div>
  2350. </div>
  2351. </span> </div> </div>
  2352. <div class="views-row views-row-9 views-row-odd">
  2353.  
  2354. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2355. <div class="game-link-wrapper">
  2356. <a href="/0-sudoku">
  2357. <div class="field-image">
  2358. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/sudoku-game-logo_0.png?0=itok%3DsEIUlGh4" width="83" height="50" alt="Sudoku Game" title="Sudoku game" /> </div>
  2359. <h3 class="game-title">Sudoku</h3></a> </div>
  2360. <div class="game-item-description">
  2361.  
  2362. <div class="field-body">
  2363. <p>The highly addicting number puzzle. Three difficulty levels to choose from, unlimited boards to solve!</p>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. </span> </div> </div>
  2368. <div class="views-row views-row-10 views-row-even views-row-last">
  2369.  
  2370. <div class="views-field views-field-rendered-entity"> <span class="field-content"><div class="game-item">
  2371. <div class="game-link-wrapper">
  2372. <a href="/0-spider-solitaire">
  2373. <div class="field-image">
  2374. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/spider-solitaire-game-logo.png?0=itok%3DYamgKjx4" width="83" height="50" alt="Spider Solitaire Game" title="Spider Solitaire game" /> </div>
  2375. <h3 class="game-title">Spider Solitaire</h3></a> </div>
  2376. <div class="game-item-description">
  2377.  
  2378. <div class="field-body">
  2379. <p>An easier twist on classic Solitaire. Play with 1, 2 or 4 Suits and try to remove all of the cards from the board!</p>
  2380. </div>
  2381. </div>
  2382. </div>
  2383. </span> </div> </div>
  2384. </div>
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391. </div> </div>
  2392.  
  2393.  
  2394. </div>
  2395. </div>
  2396. </div>
  2397.  
  2398.  
  2399. </div>
  2400. <div class="panel-pane pane-block pane-cmatgame-advertisement-cm-g-otherpages-728x90-footer" >
  2401.  
  2402.  
  2403.  
  2404. <div class="pane-content">
  2405. <div class="ad-wrapper"><p class="adtxt-footer element-invisible"><span>Advertisement</span></p>
  2406. <div class="pane-advertising-wrapper-footer" style="text-align:center;">
  2407. <div id="div-gpt-ad-788084996771918566-5-pre" class="reset-content"></div>
  2408. <div id="div-gpt-ad-788084996771918566-5" style="margin:0 auto;text-align:center;">
  2409. <script type="text/javascript">
  2410. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser && typeof googletag !== "undefined") {
  2411. jQuery(".adtxt-footer").removeClass("element-invisible").addClass("element-visible");
  2412. googletag.cmd.push(function() { googletag.display("div-gpt-ad-788084996771918566-5"); });
  2413. }
  2414. </script>
  2415. </div>
  2416. </div></div> </div>
  2417.  
  2418.  
  2419. </div>
  2420. </div> <!-- print column content -->
  2421. </div><!---close main column -->
  2422. <div class="main-aside">
  2423. <div class="inside"><div class="panel-pane pane-block pane-bean-right-rail-top-playlist" >
  2424.  
  2425.  
  2426.  
  2427. <div class="pane-content">
  2428. <div class="entity entity-bean bean-content-block clearfix" about="/block/right-rail-top-playlist-" typeof="">
  2429.  
  2430. <div class="content">
  2431.  
  2432. <div class="field-text-block">
  2433. <div class="game-item" style="background:none;padding-top:10px;">
  2434. <p><a href="/gallery/1-20-most-popular-games-ever"><img alt="20 Most Popular Games Slideshow" src="/sites/cmatgame/files/slideshow-right-rail-promo_04-01-16.png" /></a></p>
  2435. </div>
  2436. </div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440.  
  2441.  
  2442. </div>
  2443. <div class="panel-pane pane-block pane-bean-remaining-games-placeholder" >
  2444.  
  2445.  
  2446.  
  2447. <div class="pane-content">
  2448. <div class="entity entity-bean bean-content-block clearfix" about="/block/remaining-games-placeholder" typeof="">
  2449.  
  2450. <div class="content">
  2451. </div>
  2452. </div>
  2453. </div>
  2454.  
  2455.  
  2456. </div>
  2457. <div class="panel-pane pane-block pane-cmatgame-advertisement-cm-g-otherpages-300x250-top" >
  2458.  
  2459.  
  2460.  
  2461. <div class="pane-content">
  2462. <div class="ad-wrapper"><p class="adtxt element-invisible"><span>Advertisement</span></p>
  2463. <div class="pane-advertising-wrapper">
  2464. <div id="div-gpt-ad-629350160446709561-4-pre" class="reset-content"></div>
  2465. <div id="div-gpt-ad-629350160446709561-4" style="height:300px !important;">
  2466. <script type="text/javascript">
  2467. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser && typeof googletag !== "undefined") {
  2468. jQuery(".adtxt.element-invisible").removeClass("element-invisible").addClass("element-visible");
  2469. googletag.cmd.push(function() { googletag.display("div-gpt-ad-629350160446709561-4"); });
  2470. }
  2471. </script>
  2472. </div>
  2473. </div></div> </div>
  2474.  
  2475.  
  2476. </div>
  2477. <div class="panel-pane pane-block pane-cmatgame-advertisement-cm-g-otherpages-300x250-center" >
  2478.  
  2479.  
  2480.  
  2481. <div class="pane-content">
  2482. <div class="ad-wrapper"><p class="adtxt element-invisible"><span>Advertisement</span></p>
  2483. <div class="pane-advertising-wrapper">
  2484. <div id="div-gpt-ad-629350160446709561-2-pre" class="reset-content"></div>
  2485. <div id="div-gpt-ad-629350160446709561-2" style="height:300px !important;">
  2486. <script type="text/javascript">
  2487. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser) {
  2488. jQuery(".adtxt.element-invisible").removeClass("element-invisible").addClass("element-visible");
  2489. googletag.cmd.push(function() { googletag.display("div-gpt-ad-629350160446709561-2"); });
  2490. }
  2491. </script>
  2492. </div>
  2493. </div></div> </div>
  2494.  
  2495.  
  2496. </div>
  2497. <div class="panel-pane pane-block pane-bean-right-rail-strategy-games" >
  2498.  
  2499.  
  2500.  
  2501. <div class="pane-content">
  2502. <div class="entity entity-bean bean-content-block clearfix" about="/block/right_rail_strategy_games" typeof="">
  2503.  
  2504. <div class="content">
  2505. <div class="aside-link-title">
  2506. <a href="/1-complete-game-list">All Games A-Z</a> </div>
  2507. </div>
  2508. </div>
  2509. </div>
  2510.  
  2511.  
  2512. </div>
  2513. </div>
  2514. <div class="promo clearfix">
  2515. <div class="inside"><div class="panel-pane pane-views-panes pane-queues-view-rightrail-games-promo" >
  2516.  
  2517. <h2 class="pane-title"><a href="/1-aiming-games">Aiming Games</a></h2>
  2518.  
  2519.  
  2520. <div class="view view-queues-view view-id-queues_view view-display-id-rightrail_games_promo view-dom-id-221ddbf86b1fda23a710804ef803af4e">
  2521.  
  2522.  
  2523.  
  2524. <div class="view-content">
  2525. <div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
  2526. <article class="node-10481 node node-game view-mode-promo" about="/0-wonderputt" typeof="sioc:Item foaf:Document">
  2527. <a href="/0-wonderputt">
  2528.  
  2529. <div class="field-image">
  2530. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/wonderputt-game-logo.png?0=itok%3DcJ3YtZbH" width="83" height="50" alt="Wonderputt Game" title="Wonderputt game" /> </div>
  2531. <span class="game-title">Wonderputt</span>
  2532. </a>
  2533. </article>
  2534. <article class="node-11566 node node-game view-mode-promo" about="/0-raft-wars" typeof="sioc:Item foaf:Document">
  2535. <a href="/0-raft-wars">
  2536.  
  2537. <div class="field-image">
  2538. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/raft-wars-game-logo.png?0=itok%3Dqux_0ILp" width="83" height="50" alt="Raft Wars Game" title="Raft Wars game" /> </div>
  2539. <span class="game-title">Raft Wars</span>
  2540. </a>
  2541. </article>
  2542. <article class="node-2311 node node-game view-mode-promo" about="/0-blosics-2" typeof="sioc:Item foaf:Document">
  2543. <a href="/0-blosics-2">
  2544.  
  2545. <div class="field-image">
  2546. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/game-logo-blosics-2.gif?0=itok%3DlFSvgQOZ" width="83" height="50" alt="Blosics 2 game" title="Blosics 2 game" /> </div>
  2547. <span class="game-title">Blosics 2</span>
  2548. </a>
  2549. </article>
  2550. <article class="node-11106 node node-game view-mode-promo" about="/0-sticky-ninja-missions" typeof="sioc:Item foaf:Document">
  2551. <a href="/0-sticky-ninja-missions">
  2552.  
  2553. <div class="field-image">
  2554. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/sticky-ninja-missions-game-logo.png?0=itok%3DCfV1Ev_w" width="83" height="50" alt="Sticky Ninja Missions Game" title="Sticky Ninja Missions game" /> </div>
  2555. <span class="game-title">Sticky Ninja Missions</span>
  2556. </a>
  2557. </article>
  2558. <article class="node-11628 node node-game view-mode-promo" about="/0-arcade-golf-neon" typeof="sioc:Item foaf:Document">
  2559. <a href="/0-arcade-golf-neon">
  2560.  
  2561. <div class="field-image">
  2562. <img typeof="foaf:Image" src="/sites/cmatgame/files/styles/thumbnail_small/public/game_thumbnail/arcade-golf-neon-game-logo.png?0=itok%3Dob4xO2O3" width="83" height="50" alt="Arcade Golf Neon Game" title="Arcade Golf Neon game" /> </div>
  2563. <span class="game-title">Arcade Golf Neon</span>
  2564. </a>
  2565. </article>
  2566. </div>
  2567. </div>
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574. </div>
  2575.  
  2576. </div>
  2577. <div class="panel-pane pane-block pane-cmatgame-advertisement-cm-g-otherpages-160x600-bottom" >
  2578.  
  2579.  
  2580.  
  2581. <div class="pane-content">
  2582. <div class="ad-wrapper"><p class="adtxt element-invisible"><span>Advertisement</span></p>
  2583. <div class="pane-advertising-wrapper">
  2584. <div id="div-gpt-ad-629350160446709561-3-pre" class="reset-content"></div>
  2585. <div id="div-gpt-ad-629350160446709561-3">
  2586. <script type="text/javascript">
  2587. if((typeof cmatgame_subscriber === "undefined" || cmatgame_subscriber === "" || cmatgame_subscriber === null || typeof freeTrialUser === "undefined" ) && !freeTrialUser) {
  2588. jQuery(".adtxt.element-invisible").removeClass("element-invisible").addClass("element-visible");
  2589. googletag.cmd.push(function() { googletag.display("div-gpt-ad-629350160446709561-3"); });
  2590. }
  2591. </script>
  2592. </div>
  2593. </div></div> </div>
  2594.  
  2595.  
  2596. </div>
  2597. </div>
  2598. </div><!-- close promo -->
  2599. </div> <!-- close aside -->
  2600. </div><!--close global-content-wrapper-->
  2601. </div><!-- close global wrapper -->
  2602. <footer class="main-footer">
  2603. <div class="item-list"><ol><li class="first"><div class="panel-pane pane-block pane-bean-footer-pivacy-policy" >
  2604.  
  2605.  
  2606.  
  2607. <div class="pane-content">
  2608. <div class="entity entity-bean bean-content-block" about="/block/footer_pivacy_policy" typeof="">
  2609.  
  2610. <div class="content">
  2611. <div class="link-with-body-title"><a href="/privacyp">Coolmath games privacy policy</a></div>
  2612.  
  2613. <div class="field-text-block">
  2614. <p>If you believe that your own copyrighted content is on our Site without your permission, please follow this <a href="http://coolmath.com/copyright-infringement-notice-procedure">Copyright Infringement Notice procedure</a>.</p>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. </div>
  2619.  
  2620.  
  2621. </div>
  2622. </li>
  2623. <li><div class="panel-pane pane-menu-tree pane-menu-desktop-footer-menu" >
  2624.  
  2625.  
  2626.  
  2627. <div class="pane-content">
  2628. <div class="menu-block-wrapper menu-block-ctools-menu-desktop-footer-menu-1 menu-name-menu-desktop-footer-menu parent-mlid-0 menu-level-1">
  2629. <ul class="footer-menu"><li class="menu__item is-expanded first expanded menu-mlid-3246 footer-menu-column-0"><span class="menu__link nolink">COOLMATH-GAMES.COM</span><ul class="footer-menu"><li class="menu__item is-leaf first leaf menu-mlid-3351"><a href="/about-us" class="menu__link">About Us</a></li>
  2630. <li class="menu__item is-leaf leaf menu-mlid-3476"><a href="/terms-use" class="menu__link">Terms of Use</a></li>
  2631. <li class="menu__item is-leaf leaf menu-mlid-3346"><a href="/aboutourads" class="menu__link">About Our Ads</a></li>
  2632. <li class="menu__item is-leaf leaf menu-mlid-3436"><a href="/copyrights-fair-use" class="menu__link">Copyrights &amp; Fair Use</a></li>
  2633. <li class="menu__item is-leaf leaf menu-mlid-9906"><a href="/subscription-faq" class="menu__link">Subscription FAQ</a></li>
  2634. <li class="menu__item is-leaf last leaf menu-mlid-9911"><a href="/contact-us-about-subscriptions" class="menu__link">Subscription Support</a></li>
  2635. </ul></li>
  2636. <li class="menu__item is-expanded expanded menu-mlid-3231 footer-menu-column-1"><span class="menu__link nolink">BROWSE GAMES</span><ul class="footer-menu"><li class="menu__item is-leaf first leaf menu-mlid-3471"><a href="/1-strategy-games" class="menu__link">Strategy Games</a></li>
  2637. <li class="menu__item is-leaf leaf menu-mlid-3416"><a href="/1-skill-games" class="menu__link">Skill Games</a></li>
  2638. <li class="menu__item is-leaf leaf menu-mlid-3496"><a href="/1-number-games" class="menu__link">Number Games</a></li>
  2639. <li class="menu__item is-leaf leaf menu-mlid-3456"><a href="/1-logic-games" class="menu__link">Logic Games</a></li>
  2640. <li class="menu__item is-leaf leaf menu-mlid-3461"><a href="/1-memory-games" class="menu__link">Memory Games</a></li>
  2641. <li class="menu__item is-leaf leaf menu-mlid-3391"><a href="/1-classic-games" class="menu__link">Classic Games</a></li>
  2642. <li class="menu__item is-leaf leaf menu-mlid-3431"><a href="//www.coolmath-games.com/0-jigsaw-puzzles" title="Jigsaw Puzzles" class="menu__link">Jigsaw Puzzles</a></li>
  2643. <li class="menu__item is-leaf leaf menu-mlid-5846"><a href="/1-science-games" class="menu__link">Science Games</a></li>
  2644. <li class="menu__item is-leaf leaf menu-mlid-5841"><a href="/1-geography-games" class="menu__link">Geography Games</a></li>
  2645. <li class="menu__item is-leaf last leaf menu-mlid-3426"><a href="/1-winter-holiday-games" class="menu__link">Holiday Games</a></li>
  2646. </ul></li>
  2647. <li class="menu__item is-expanded expanded menu-mlid-3266 footer-menu-column-2"><span class="menu__link nolink">COOLMATH.COM</span><ul class="footer-menu"><li class="menu__item is-leaf first leaf menu-mlid-3406"><a href="http://www.coolmath.com/prealgebra" class="menu__link">Pre-Algebra Lessons</a></li>
  2648. <li class="menu__item is-leaf leaf menu-mlid-3396"><a href="http://www.coolmath.com/algebra" class="menu__link">Algebra Lessons</a></li>
  2649. <li class="menu__item is-leaf leaf menu-mlid-3386"><a href="http://www.coolmath.com/precalculus-review-calculus-intro" class="menu__link">Pre-Calculus Lessons</a></li>
  2650. <li class="menu__item is-leaf leaf menu-mlid-3411"><a href="http://coolmath.com/reference/online-math-dictionary" class="menu__link">Math Dictionary</a></li>
  2651. <li class="menu__item is-leaf leaf menu-mlid-3401"><a href="http://coolmath.com/algebra/08-lines" class="menu__link">Lines</a></li>
  2652. <li class="menu__item is-leaf leaf menu-mlid-3356"><a href="http://coolmath.com/prealgebra/00-factors-primes" class="menu__link">Factors and Primes</a></li>
  2653. <li class="menu__item is-leaf leaf menu-mlid-3381"><a href="http://coolmath.com/prealgebra/02-decimals" class="menu__link">Decimals</a></li>
  2654. <li class="menu__item is-leaf last leaf menu-mlid-5851"><a href="http://coolmath.com/prealgebra/06-properties" class="menu__link">Properties</a></li>
  2655. </ul></li>
  2656. <li class="menu__item is-expanded expanded menu-mlid-3326 footer-menu-column-3"><span class="menu__link nolink">QUIZLIFE</span><ul class="footer-menu"><li class="menu__item is-leaf first leaf menu-mlid-10080"><a href="https://www.quizlife.com/" class="menu__link">QuizLife Home</a></li>
  2657. <li class="menu__item is-leaf leaf menu-mlid-10004"><a href="https://www.quizlife.com/categories/places" class="menu__link">Geography Quizzes</a></li>
  2658. <li class="menu__item is-leaf leaf menu-mlid-3466"><a href="https://www.quizlife.com/categories/history-politics" class="menu__link">History Quizzes</a></li>
  2659. <li class="menu__item is-leaf leaf menu-mlid-3441"><a href="https://www.quizlife.com/categories/science-nature" class="menu__link">Science &amp; Nature Quizzes</a></li>
  2660. <li class="menu__item is-leaf leaf menu-mlid-3421"><a href="https://www.quizlife.com/categories/sports" class="menu__link">Sports Quizzes</a></li>
  2661. <li class="menu__item is-leaf last leaf menu-mlid-3501"><a href="https://www.quizlife.com/categories/arts-entertainment" class="menu__link">Entertainment Quizzes</a></li>
  2662. </ul></li>
  2663. <li class="menu__item is-expanded last expanded menu-mlid-10002 footer-menu-column-4"><span class="menu__link nolink">MORE FROM COOLMATH</span><ul class="footer-menu"><li class="menu__item is-leaf first leaf menu-mlid-3446"><a href="http://www.coolmath4kids.com/" class="menu__link">Coolmath4Kids</a></li>
  2664. <li class="menu__item is-leaf leaf menu-mlid-10001"><a href="https://www.coolmath4kids.com/manipulatives/ten-frames" class="menu__link">Ten Frame Manipulative</a></li>
  2665. <li class="menu__item is-leaf leaf menu-mlid-10012"><a href="https://www.coolmath4kids.com/manipulatives/base-ten-blocks" class="menu__link">Base Ten Blocks Manipulative</a></li>
  2666. <li class="menu__item is-leaf leaf menu-mlid-10079"><a href="https://www.coolmath4kids.com/manipulatives/number-line" class="menu__link">Number Line Manipulative</a></li>
  2667. <li class="menu__item is-leaf leaf menu-mlid-10091"><a href="https://www.coolmath4kids.com/manipulatives/pattern-blocks" class="menu__link">Pattern Blocks Manipulative</a></li>
  2668. <li class="menu__item is-leaf leaf menu-mlid-10003"><a href="https://www.coolmath4kids.com/quizzes" class="menu__link">Math Quizzes</a></li>
  2669. <li class="menu__item is-leaf leaf menu-mlid-5856"><a href="http://www.coolmath4teachers.com/" class="menu__link">Coolmath4Teachers</a></li>
  2670. <li class="menu__item is-leaf last leaf menu-mlid-5861"><a href="http://www.coolmath4parents.com/" class="menu__link">Coolmath4Parents</a></li>
  2671. </ul></li>
  2672. </ul></div>
  2673. </div>
  2674.  
  2675.  
  2676. </div>
  2677. </li>
  2678. <li class="last"><div class="panel-pane pane-block pane-bean-footer-copyright copyright-wrapper" >
  2679.  
  2680.  
  2681.  
  2682. <div class="pane-content">
  2683. <div class="entity entity-bean bean-content-block" about="/block/footer_copyright" typeof="">
  2684.  
  2685. <div class="content">
  2686.  
  2687. <div class="field-text-block">
  2688. <p>© 2018 Coolmath.com LLC. All Rights Reserved. <a href="http://www.constructivemedia.com">Constructive Media, LLC</a></p>
  2689. </div>
  2690. </div>
  2691. </div>
  2692. </div>
  2693.  
  2694.  
  2695. </div>
  2696. </li>
  2697. </ol></div> </div>
  2698. <!-- END OF REGULAR LAYOUT -->
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704. <!-- FOR /SIGNUP AND /SUBSCRIPTION FORMS -->
  2705. <script src="//www.coolmath-games.com/sites/cmatgame/modules/custom/cmatgame_advertisement/js/ads.js?p2txx1"></script>
  2706. <script src="//www.coolmath-games.com/sites/cmatgame/files/js/js_ZeOBt_RSBfeXXgwFqYK0Q38JRPrzKUYaLmVeUSS3YUc.js"></script>
  2707. <script>
  2708. var $elements_with_events = jQuery('.js-track');
  2709. if($elements_with_events.length > 0) {
  2710. $elements_with_events.each(function(){
  2711. var action = typeof jQuery(this).data('action') !== 'undefined' ? jQuery(this).data('action') : 'click';
  2712. jQuery(this).on(action, function(){
  2713. var category, label;
  2714. category = typeof jQuery(this).data('category') !== 'undefined' ? jQuery(this).data('category') : ( jQuery(this).text() || 'Unassigned' );
  2715. label = typeof jQuery(this).data('label') !== 'undefined' ? jQuery(this).data('label') : ( jQuery(this).attr('class') || 'Unassigned' );
  2716. trackEvent(category,'click',label);
  2717. });
  2718. });
  2719. }
  2720. </script>
  2721. </body>
  2722. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement