{"product_id":"plan-x","title":"PLAN X","description":"\u003cp\u003eHere is your one time opportunity to be a part of Plan X and wear this amazing t-shirt to show off to family and friends. Any profits will go towards the robot. In other words, you are helping build and repair Plan X!\u003cbr\u003eCatch this offer now before it's destroyed!\u003c\/p\u003e\n\u003cp\u003ePlan X design is printed on Next Level super-soft fashion tees!\u003c\/p\u003e\n\u003cp style=\"font-size: 13px; font-style: italic;\"\u003e\u003cem\u003eThis limited edition TeeBlast™ ends Tuesday, July 28th.\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: \"29 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":4791662723,"sku":"TBLisaWinterPlanX-S","price":25.0,"currency_code":"USD","in_stock":true},{"title":"Medium","offer_id":4791662787,"sku":"TBLisaWinterPlanX-M","price":25.0,"currency_code":"USD","in_stock":true},{"title":"Large","offer_id":4791662851,"sku":"TBLisaWinterPlanX-L","price":25.0,"currency_code":"USD","in_stock":true},{"title":"X-Large","offer_id":4791662915,"sku":"TBLisaWinterPlanX-XL","price":25.0,"currency_code":"USD","in_stock":true},{"title":"2X-Large","offer_id":4791662979,"sku":"TBLisaWinterPlanX-2X","price":27.0,"currency_code":"USD","in_stock":true},{"title":"3X-Large","offer_id":4791663043,"sku":"TBLisaWinterPlanX-3X","price":28.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0627\/5957\/products\/TB_PlanXLogoTee.png?v=1436880067","url":"http:\/\/teeblaster.com\/products\/plan-x","provider":"Tee Blaster","version":"1.0","type":"link"}