StraMa87

Swup js WP

Feb 24th, 2021
831
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const swup = new Swup({
  2.   linkSelector:
  3.     'a[href^="' +
  4.     document.location.origin +
  5.     '"]:not([data-no-swup]):not([class*="ab-item"]), a[href^="/"]:not([data-no-swup]), a[href^="#"]:not([data-no-swup])',
  6.   containers: ["#swup"],
  7.   animationSelector: '[class^="a-"]',
  8.   cache: false,
  9.   plugins: [
  10.     new SwupGaPlugin(),
  11.     new SwupScrollPlugin(),
  12.     new SwupBodyClassPlugin(),
  13.     new SwupFormsPlugin({ formSelector: 'form[class="wpcf7-form"]' }),
  14.     new SwupHeadPlugin(),
  15.   ],
  16.   skipPopStateHandling: function (event) {
  17.     if (event.state && event.state.source == "swup") {
  18.       return false;
  19.     }
  20.     return true;
  21.   },
  22. });
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×