How to use @deckdeckgo/core - 1 common examples

To help you get started, we’ve selected a few @deckdeckgo/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deckgo / deckdeckgo-starter / src / index.js View on Github external
import {defineCustomElements as deckDeckGoSlideQRCodeElements } from '@deckdeckgo/slide-qrcode/dist/loader';
import {defineCustomElements as deckDeckGoSlideBigImgElements } from '@deckdeckgo/slide-big-img/dist/loader';
import {defineCustomElements as deckDeckGoSlideVideoElements } from '@deckdeckgo/slide-video/dist/loader';
import {defineCustomElements as deckDeckGoSlidePollElements } from '@deckdeckgo/slide-poll/dist/loader';

import { defineCustomElements as deckDeckGoRemoteElements } from '@deckdeckgo/remote/dist/loader';
import { defineCustomElements as deckDeckGoChartsElements } from '@deckdeckgo/charts/dist/loader';
import { defineCustomElements as deckDeckGoQRCodeElements } from '@deckdeckgo/qrcode/dist/loader';
import { defineCustomElements as deckDeckGoHighlightCodeElements } from '@deckdeckgo/highlight-code/dist/loader';
import { defineCustomElements as deckDeckGoLazyImgElements } from '@deckdeckgo/lazy-img/dist/loader';
import { defineCustomElements as deckDeckGoSocialElements } from '@deckdeckgo/social/dist/loader';

// Init web-social-share
import { defineCustomElements as webSocialShareElements } from 'web-social-share/dist/loader';

deckDeckGoElements(window).then(async () => {
    await deckDeckGoChartsElements(window);
    await deckDeckGoQRCodeElements(window);
    await deckDeckGoHighlightCodeElements(window);
    await deckDeckGoLazyImgElements(window);
    await deckDeckGoSocialElements(window);

    const promises = [];

    promises.push(deckDeckGoSlideTitleElements(window));
    promises.push(deckDeckGoSlideContentElements(window));
    promises.push(deckDeckGoSlideAuthorElements(window));
    promises.push(deckDeckGoSlideChartElements(window));
    promises.push(deckDeckGoSlideYoutubeElements(window));
    promises.push(deckDeckGoSlideSplitElements(window));
    promises.push(deckDeckGoSlideCodeElements(window));
    promises.push(deckDeckGoSlideCountdownElements(window));

@deckdeckgo/core

Add a presentation to your web application using HTML and Web Components

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular @deckdeckgo/core functions