mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
initial commit for segment introduction (#998)
* initial commit for segment introduction * conditionals to check for window.analytics
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import scrollHandler from './scroll-handler';
|
||||
import { XXL_BREAKPOINT } from './constants';
|
||||
import { initGoToTopButton } from './helpers';
|
||||
import { initGoToTopButton, getCookie } from './helpers';
|
||||
import { loadSegment, createSegmentStoredPage, tagAllAnchors } from './segment-helpers'
|
||||
|
||||
createSegmentStoredPage();
|
||||
|
||||
// on document ready
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
tagAllAnchors();
|
||||
|
||||
if (!window.analytics && getCookie('cookie-consent')) {
|
||||
loadSegment();
|
||||
}
|
||||
|
||||
// Header scroll
|
||||
const body = document.querySelector('body');
|
||||
const header = document.querySelector('.site-header');
|
||||
|
||||
Reference in New Issue
Block a user