0.1.8 • Published 3 years ago

@diglactic/webflow-utils v0.1.8

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

webflow-utils (wut)

⚠ This library is currently in an experimental phase and is expected to have numerous breaking changes. Use at your own risk.

Installation

<script src="https://unpkg.com/@diglactic/webflow-utils@VERSION/dist/webflow-utils.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@diglactic/webflow-utils@VERSION/dist/webflow-utils.css">

Usage

WebflowUtils and wut are both valid ways to access this library. Make sure you place this code after the installation code above.

<script>
    wut.ready(function () {
        //
    });

    wut.ready(function () {
        var youtubeEmbed = document.querySelector('.youtube-embed-selector');

        wut.youtube.play(youtubeEmbed);
        wut.youtube.pause(youtubeEmbed);
    });

    wut.ready(function () {
        var tabsComponent = document.querySelector('.w-tabs');

        wut.tabs.onTabChange(tabsComponent, function (newTabName) {
            alert('Tab changed to ' + newTabName);
        });
    });
</script>

Development

npm install
npm run build

Publishing

npm run build
npm version patch/minor/major
npm publish

© 2022 Diglactic, LLC

0.1.8

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.9

3 years ago

0.1.7

3 years ago

0.0.8

3 years ago

0.1.4

3 years ago

0.0.5

3 years ago

0.1.3

3 years ago

0.0.4

3 years ago

0.1.6

3 years ago

0.0.7

3 years ago

0.1.5

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago