Sha256: 86a6a45f3e8454999c60c85e8c31bb30623c3bc59e29cac64af97e75913cb172

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 Bytes

Contents

<script>
  function detectCFScript() {
    var cfScript = Array.prototype.find.call(document.scripts, function(s) {
      return s !== document.currentScript && s.textContent.indexOf('__cf_email__') > -1;
    });

    if (cfScript)
      this.addEventListener('hy-push-state-load', new Function(cfScript.textContent));

    this.removeEventListener('hy-push-state-init', detectCFScript);
  }

  document
    .getElementsByTagName('hy-push-state')[0]
    .addEventListener('hy-push-state-init', detectCFScript);
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-7.0.0.pre.beta.1 _includes/my-scripts.html
jekyll-theme-hydejack-7.0.0.pre.beta.0 _includes/my-scripts.html