mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
14 lines
505 B
JavaScript
14 lines
505 B
JavaScript
const APP_NAME = 'Boilerplate';
|
|
const DATA_API_KEY = '.data-api';
|
|
|
|
const $document = $(document);
|
|
const $window = $(window);
|
|
const html = document.documentElement;
|
|
const $html = $(document.documentElement).removeClass('has-no-js').addClass('has-js');
|
|
const $body = $(document.body);
|
|
const $pjaxWrapper = $('#js-pjax-wrapper');
|
|
|
|
const isDebug = !!$html.data('debug');
|
|
|
|
export { APP_NAME, DATA_API_KEY, $document, $window, html, $html, $body, isDebug, $pjaxWrapper };
|