Created
August 25, 2018 07:17
-
-
Save blogjunkie/80199e085d1dfacc027899d1760eea77 to your computer and use it in GitHub Desktop.
clickwp-faqs beacon
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
<!doctype HTML> | |
<html> | |
<head> | |
<title></title> | |
<style></style> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.js"></script> | |
</head> | |
<body> | |
<a class="beacon-toggle" href="">Contact us</a> | |
<script> | |
! function(e, o, n) { | |
window.HSCW = o, window.HS = n, n.beacon = n.beacon || {}; | |
var t = n.beacon; | |
t.userConfig = {}, t.readyQueue = [], t.config = function(e) { | |
this.userConfig = e | |
}, t.ready = function(e) { | |
this.readyQueue.push(e) | |
}, o.config = { | |
// modal: true, | |
icon: 'question', | |
showName: true, | |
showSubject: true, | |
collection: '5b80d1362c7d3a03f89e1da9', | |
topArticles: true, | |
docs: { | |
enabled: !0, | |
baseUrl: "https://clickwp-faqs.helpscoutdocs.com/" | |
}, | |
contact: { | |
enabled: !0, | |
formId: "39a67743-a82e-11e8-89df-0ee9bb0328ce" | |
} | |
}; | |
var r = e.getElementsByTagName("script")[0], | |
c = e.createElement("script"); | |
c.type = "text/javascript", c.async = !0, c.src = "https://djtflbt20bdde.cloudfront.net/", r.parentNode.insertBefore(c, r) | |
}(document, window.HSCW || {}, window.HS || {}); | |
</script> | |
<script> | |
jQuery("#hs-open, .beacon-toggle").click(function(e) { | |
e.preventDefault(); | |
HS.beacon.open(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment