Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const swup = new Swup({
- linkSelector:
- 'a[href^="' +
- document.location.origin +
- '"]:not([data-no-swup]):not([class*="ab-item"]), a[href^="/"]:not([data-no-swup]), a[href^="#"]:not([data-no-swup])',
- containers: ["#swup"],
- animationSelector: '[class^="a-"]',
- cache: false,
- plugins: [
- new SwupGaPlugin(),
- new SwupScrollPlugin(),
- new SwupBodyClassPlugin(),
- new SwupFormsPlugin({ formSelector: 'form[class="wpcf7-form"]' }),
- new SwupHeadPlugin(),
- ],
- skipPopStateHandling: function (event) {
- if (event.state && event.state.source == "swup") {
- return false;
- }
- return true;
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement