Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/blocksy-companion-pro   php

Repository URL to install this package:

Version: 1.8.76 

/ js / sticky.js

import ctEvents from 'ct-events'
import { registerDynamicChunk } from 'blocksy-frontend'
import { mountStickyHeader } from './frontend/sticky'

if (document.body.className.indexOf('e-preview') > -1) {
	setTimeout(() => {
		mountStickyHeader()
	}, 500)
} else {
	mountStickyHeader()
}

registerDynamicChunk('blocksy_sticky_header', {
	mount: (el) => {},
})