Skip to content

Instantly share code, notes, and snippets.

@jngnyc
Created January 8, 2018 17:19
Show Gist options
  • Save jngnyc/d18206877cf25d5120cee35b7725f450 to your computer and use it in GitHub Desktop.
Save jngnyc/d18206877cf25d5120cee35b7725f450 to your computer and use it in GitHub Desktop.
<script type="text/javascript"> window.checkScroll = true; window.myCustomInit = function () { window.Roko$(window).scroll(function () { var scrollTop = Roko$(window).scrollTop(); var numPixelsToTrigger = 200; if (window.checkScroll && !window.Roko$("html.rokoinstabot-on").length && scrollTop >= numPixelsToTrigger) { window.checkScroll = false; window.RokoInstabot.trigger("Security Content"); } }) }; window.myCustomClose = function () { window.checkScroll = false; } </script> <script type="text/javascript" src="https://app.instabot.io/jsapi/rokoInstabot.js?v=p90QRDrUcLLtq_XfKyNgqSBKBt_sze8URdIHQLkoY381"> apiKey: "vPe17mch90u95vhPvUwxZFdp4ylx7reJy29pALUWkso=", userName: "", showAlways: true, events: { init: window.myCustomInit, close: window.myCustomClose } </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment