UNPKG

hck2-dev

Version:

Development Tools For HCK2

36 lines (29 loc) 1.03 kB
// Change the value to Activate/Deactive Turbolinks v5.1.1 window.turbolinks = false; // Set Dev Mode window.dev = false; // Change to false for debugging window.clearConsole = true; // Headers for httpRequest httpRequest.requestHeaders = [{ 'request': 'X-CSRF-Token', 'value': 'Query' }]; // Public Path (Change The Path In Config Using 'gulp') window.PublicPathJS = '/js/'; window.PublicPathCSS = '/css/'; // Starts performance timer measure('start', 'App.js Bootstrap'); // Define global objects here window.page = window.page || {}; window.components = window.components || {}; // Generates ID for body based on the current URL var company = 'hck2'; var cutomTag = function () { if (location.pathname.length === 1) return 'home-' + company; var text = (location.pathname.split('.')[0]).slice(1).split('/'); if (!text[text.length - 1]) text.pop(); return text.join('-') + '-' + company; }; Class('add', document.body, cutomTag()); // Generated By Command Line