/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/js/mixed/warnings.js
23 строки
796 B
Alvaro Trigo López
- Refactoring: transforming event strings to properties
16 сен 2022, 15:33
16 сен 2022, 15:33
5c4dfc4
Код
Авторство
О чём код?
import { doc } from '../common/constants.js'; import { EventEmitter } from '../common/eventEmitter.js'; import { events } from '../common/events.js'; import { state } from '../common/state.js'; EventEmitter.on(events.bindEvents, showLicenseWarning); function showLicenseWarning(){ const waterMark = ` <div class="fp-warning" style="left: 0;"> The license key for fullPage.js is missing or is not valid. <a href="https://alvarotrigo.com/fullPage/" rel="nofollow noopener" target="_blank" style="text-decoration:underline; color: #104acc;"> Read More here. </a> </div> `; if(!state.isValid){ doc.body.insertAdjacentHTML('beforeend', waterMark); } }