1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/lc-soft-pageintro.js

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Liu Chao Отправлено 15.07.2021 10:09 bbae4da

pageintro.js

A simple jQuery tool for new feature introduction and step-by-step users guide for your website and project.

Demo screenshot

Build

Install dependencies:

npm install

Build:

npm run dist

At last, you can find the output files in the lib directory.

Example

var options = {
  container: 'body',
  spacing: 20,
  actions: {
    next: {
      text: 'Next',
      class: 'your custom button class'
    },
    finish: {
      text: 'Finish',
      class: 'your custom button class'
    }
  },
  entries: [
    {
      selector: '#example',
      text: 'this is example',
      onEnter: function () {
        console.log('enter');
      },
      onExit: function () {
        console.log('exit');
      }
    }, {
      selector: '#step1',
      text: 'text for step 1'
    }, {
      selector: '#step2',
      text: 'text for step 2'
    }
  ]
}
PageIntro.init(options);
PageIntro.start();

Usage

PageIntro.init()

Initialize the pageintro, you need to specify the configuration options here.

PageIntro.start()

Start page introduction show

PageIntro.finish()

Finish page introduction show

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/lc-soft-pageintro.js.git
git@api.gitlife.ru:oschina-mirror/lc-soft-pageintro.js.git
oschina-mirror
lc-soft-pageintro.js
lc-soft-pageintro.js
master