{"product_id":"then-it-came-to-me","title":"THEN IT CAME TO ME","description":"\u003cp\u003eBe the coolest dude or dudette in all the 9 Realms with this tribute to Thor and one of the greatest weapons ever made. Owning this shirt is the next best thing to wielding the power of the enchanted hammer Mjolinir. Get yo' geek on and get it now!\u003c\/p\u003e\n\u003cp style=\"font-size: 13px; font-style: italic;\"\u003e\u003cem\u003eThis limited edition TeeBlast™ ends Wednesday, 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":1972572419,"sku":"TBThorHammer-S","price":20.0,"currency_code":"USD","in_stock":true},{"title":"Medium","offer_id":1972572483,"sku":"TBThorHammer-M","price":20.0,"currency_code":"USD","in_stock":true},{"title":"Large","offer_id":1972572547,"sku":"TBThorHammer-L","price":20.0,"currency_code":"USD","in_stock":true},{"title":"X-Large","offer_id":1972572611,"sku":"TBThorHammer-XL","price":20.0,"currency_code":"USD","in_stock":true},{"title":"XX-Large","offer_id":1972572675,"sku":"TBThorHammer-XXL","price":22.0,"currency_code":"USD","in_stock":true},{"title":"XXX-Large","offer_id":1972572739,"sku":"TBThorHammer-XXXL","price":23.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0627\/5957\/products\/TB_ThorHammer.jpg?v=1432929212","url":"http:\/\/teeblaster.com\/products\/then-it-came-to-me","provider":"Tee Blaster","version":"1.0","type":"link"}