{"product_id":"fortune-cookie","title":"FORTUNE COOKIE","description":"\u003cp\u003eYou will be wearing the best the best shirt ever. Don’t settle for crumby merch, be one of the fortunate one’s who print exclusively with TerminusTees.  Wok, don’t run!  Visit \u003ca href=\"http:\/\/t.signauxhuit.com\/e1t\/c\/5\/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs643YZ4W63RHDW7gs83nW3LqWkM56dzK_f9141fg02?si=5522854633799680\u0026amp;pi=CD2CED46-3BD1-4231-B452-55CBEC832918\u0026amp;t=http%3A%2F%2Fwww%2ETerminusTees%2Ecom\" target=\"_blank\"\u003ewww.TerminusTees.com\u003c\/a\u003e right now!\u003c\/p\u003e\n\u003cp style=\"font-size: 13px; font-style: italic;\"\u003e\u003cem\u003eThis limited edition TeeBlast™ ends Friday, July 17th.\u003c\/em\u003e\u003c\/p\u003e\n\u003cdiv class=\"teeblaster-countdown\"\u003e\n\u003cp class=\"countdown-header\"\u003e\u003cstrong\u003eTHIS TEEBLAST™ ENDS IN:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul class=\"countdown\"\u003e\n\u003cli\u003e\n\u003cspan class=\"days\"\u003e\u003c\/span\u003e\n\u003cp class=\"timeRefDays\"\u003e \u003c\/p\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"hours\"\u003e\u003c\/span\u003e\n\u003cp class=\"timeRefHours\"\u003e \u003c\/p\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"minutes\"\u003e\u003c\/span\u003e\n\u003cp class=\"timeRefMinutes\"\u003e \u003c\/p\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan class=\"seconds\"\u003e\u003c\/span\u003e\n\u003cp class=\"timeRefSeconds\"\u003e \u003c\/p\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/div\u003e\n\u003cscript type=\"text\/javascript\"\u003e\/\/ \u003c![CDATA[\n\/\/Countdown plugin\n(function($) {\n  $.fn.countdown = function(options, callback) {\n    \/\/custom 'this' selector\n    var thisEl = $('ul.countdown');\n\n    \/\/array of custom settings\n    var settings = { \n      'date': null,\n      'format': null\n    };\n\n    \/\/append the settings array to options\n    if (options) {\n      $.extend(settings, options);\n    }\n\n    \/\/main countdown function\n    var countdown_proc = function () {\n\n      var eventDate = Date.parse(settings['date']) \/ 1000;\n      var currentDate = Math.floor($.now() \/ 1000);\n\n      if (eventDate \u003c= currentDate) {\n        \/\/ First change the header to indicate that the TeeBlast has ended\n        $('.countdown-header').html('\u003cstrong\u003eTHIS TEEBLAST™ HAS ENDED\u003c\/strong\u003e');\n        callback.call(this);\n        clearInterval(interval);\n      };\n\n      var seconds = eventDate - currentDate;\n\n      var days = Math.floor(seconds \/ (60 * 60 * 24)); \/\/calculate the number of days\n      seconds -= days * 60 * 60 * 24; \/\/update the seconds variable with no. of days removed\n\n      var hours = Math.floor(seconds \/ (60 * 60));\n      seconds -= hours * 60 * 60; \/\/update the seconds variable with no. of hours removed\n\n      var minutes = Math.floor(seconds \/ 60);\n      seconds -= minutes * 60; \/\/update the seconds variable with no. of minutes removed\n\n      \/\/conditional Ss\n      if (days == 1) { thisEl.find(\".timeRefDays\").text(\"Day\"); } else { thisEl.find(\".timeRefDays\").text(\"Days\"); }\n      if (hours == 1) { thisEl.find(\".timeRefHours\").text(\"Hour\"); } else { thisEl.find(\".timeRefHours\").text(\"Hours\"); }\n      if (minutes == 1) { thisEl.find(\".timeRefMinutes\").text(\"Minute\"); } else { thisEl.find(\".timeRefMinutes\").text(\"Minutes\"); }\n      if (seconds == 1) { thisEl.find(\".timeRefSeconds\").text(\"Second\"); } else { thisEl.find(\".timeRefSeconds\").text(\"Seconds\"); }\n\n      \/\/logic for the two_digits ON setting\n      if (settings['format'] == \"on\") {\n        days = (String(days).length \u003e= 2) ? days : \"0\" + days;\n        hours = (String(hours).length \u003e= 2) ? hours : \"0\" + hours;\n        minutes = (String(minutes).length \u003e= 2) ? minutes : \"0\" + minutes;\n        seconds = (String(seconds).length \u003e= 2) ? seconds : \"0\" + seconds;\n      }\n\n      \/\/update the countdown's html values.\n      if (!isNaN(eventDate)) {\n        thisEl.find(\".days\").text(days);\n        thisEl.find(\".hours\").text(hours);\n        thisEl.find(\".minutes\").text(minutes);\n        thisEl.find(\".seconds\").text(seconds);\n      } \n      else { \n        alert(\"Invalid date. Here's an example: 12 april 2012 17:30:00\");\n        clearInterval(interval); \n      }\n    }\n\n    \/\/run the function\n    countdown_proc();\n\n    \/\/loop the function\n    interval = setInterval(countdown_proc, 1000);\n  }\n}) (jQuery);\n\n\n\/\/Call countdown plugin\n$(window).load(function(){\n  $(\".countdown\").countdown({\n    date: \"18 july 2015 00:00:00\", \/\/ add the countdown's end date (i.e. 3 november 2012 12:00:00)\n    format: \"on\" \/\/ on (03:07:52) | off (3:7:52) - two_digits set to ON maintains layout consistency\n  },\n\n  function() {\n    \/\/ the code here will run when the countdown ends\n    \/\/alert(\"done!\")\n  });\n});\n\/\/ ]]\u003e\u003c\/script\u003e\n\u003cstyle type=\"text\/css\"\u003e\u003c!--\ndiv.product-right {\n  \/*margin-bottom: 150px;*\/\n}\ndiv#product-wrapper.clearfix {\n  position: relative;\n}\np.countdown-header {\n  font-size: 17px;\n}\ndiv.teeblaster-countdown {\n  width: 280px;\n  margin: 0 auto 15px;\n  text-align: center;\n  \/*top: 540px;\n  right: -40px;*\/\n  position: relative;\n}\nul.countdown {\n  position: relative;\n  top:0;\n  left: 0;\n  width: 280px;\n  margin-top: 20px;\n  margin-left: 0px;\n  list-style: none;\n  margin-bottom: 10px;\n} \nul.countdown li {\n  width: 20%;\n  display: inline-block;\n  text-align: center;\n}\nul.countdown li span {\n  font-size: 34px;\n  font-weight:bold;\n}\nul.countdown li p {\n  font-size: 13px;\n}\n--\u003e\u003c\/style\u003e","brand":"Tee Blaster","offers":[{"title":"Small","offer_id":4162242499,"sku":"TBTerminusCookie-S","price":15.0,"currency_code":"USD","in_stock":true},{"title":"Medium","offer_id":4162242563,"sku":"TBTerminusCookie-M","price":15.0,"currency_code":"USD","in_stock":true},{"title":"Large","offer_id":4162242627,"sku":"TBTerminusCookie-L","price":15.0,"currency_code":"USD","in_stock":true},{"title":"X-Large","offer_id":4162242691,"sku":"TBTerminusCookie-XL","price":15.0,"currency_code":"USD","in_stock":true},{"title":"XX-Large","offer_id":4162242755,"sku":"TBTerminusCookie-XXL","price":17.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0627\/5957\/products\/TB_AlexFortuneCookieREV.png?v=1435776149","url":"http:\/\/teeblaster.com\/products\/fortune-cookie","provider":"Tee Blaster","version":"1.0","type":"link"}