File Manager
Pro
/data/web/virtuals/8819/virtual/www/templates/yootheme/js
PHP 7.4.33
Linux
/data/web/virtuals/8819/virtual/www/templates/yootheme/js/main.js
1 KB
0640
Back
import UIkit from 'uikit'; import { Header, Sticky } from './header'; import { $$, isRtl, isVisible, ready, swap } from 'uikit-util'; UIkit.component('Header', Header); UIkit.mixin(Sticky, 'sticky'); UIkit.mixin( { events: { beforescroll() { if (!this.$props.offset) { for (const navbar of $$('[uk-sticky] [uk-navbar]')) { if (isVisible(navbar)) { this.offset = navbar.offsetHeight; } } } }, }, }, 'scroll' ); if (isRtl) { const mixin = { created() { this.$props.pos = swap(this.$props.pos, 'left', 'right'); }, }; UIkit.mixin(mixin, 'drop'); UIkit.mixin(mixin, 'tooltip'); } ready(() => { const { $load = [], $theme = {} } = window; function load(stack, config) { stack.length && stack.shift()(config, () => load(stack, config)); } load($load, $theme); });
Cancel
Download
Save changes
File Manager Pro · single-file PHP 7.4.33 on Linux · paths encrypted in URL (AES-256-CTR)