Last active
March 4, 2016 18:48
-
-
Save poohitan/3765dbf03522c7812e1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.PushResponder = { BannersParamsList: | |
[{"id":"2c83e96d-251c-4cdf-85e7-7c68ef2fb361","title":"Teamvoy Title","text":"Teamvoy Text","imageURL":"http://pushresponse.net//attachments/medium/banner.png","timeout":0,"position":5,"appear":"ontimeout","animation":"fadeInUp"}] | |
}; | |
var SCRIPT_URL = 'https://broker.pushresponse.net/pushresponse.js', | |
scriptElement = document.createElement('script'); | |
if (document.readyState === 'interactive' || document.readyState === 'complete') { | |
appendScript(); | |
} else { | |
document.addEventListener('DOMContentLoaded', appendScript); | |
} | |
function appendScript() { | |
scriptElement.src = SCRIPT_URL; | |
document.body.appendChild(scriptElement); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment