var MYLIBRARY = MYLIBRARY || (function() { var _args = {}; return { init: function(Args) { _args = Args; }, getApp: function() { var check_condition = document.cookie.split(';'); var display_flag = "show"; for (var i = 0; i < check_condition.length; i++) { var c = check_condition[i]; var value = c.toString(); if(value.includes("getApp") == true){ var display_flag = "hide"; } } if(display_flag == "show"){ function create(htmlStr) { var frag = document.createDocumentFragment(), temp = document.createElement('div'); temp.innerHTML = htmlStr; while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag; } if (/Android/i.test(navigator.userAgent)) { var fragment = create('
LOGO

Download our app!
Events, offers, and more
Free in Google Play

'); document.body.insertBefore(fragment, document.body.childNodes[0]); document.getElementById("close-app-div").onclick = function() { var date = new Date(); date.setTime(date.getTime() + (86400 * 1000)); document.cookie = 'getApp=hide; expires=' + date.toGMTString() + ';path=/'; document.getElementById("get-our-app").remove(); } } if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) { var fragment = create('
LOGO

Download our app!
Events, offers, and more
Free in iTunes

'); document.body.insertBefore(fragment, document.body.childNodes[0]); document.getElementById("close-app-div").onclick = function() { var date = new Date(); date.setTime(date.getTime() + (86400 * 1000)); document.cookie = 'getApp=hide; expires=' + date.toGMTString() + ';path=/'; document.getElementById("get-our-app").remove(); } } } } }; }()); MYLIBRARY.init([]); MYLIBRARY.getApp();