PageSourceSearch

https://conventioncalendar.com/themes/materialize/js/config.js

js conventioncalendar.com collected 2026-10-02 17:35:37 UTC 4,178 bytes, 96 lines download raw bytes

1/**
2 * Config
3 * -------------------------------------------------------------------------------------
4 * ! IMPORTANT: Make sure you clear the browser local storage In order to see the config changes in the template.
5 * ! To clear local storage: (https://www.leadshook.com/help/how-to-clear-local-storage-in-google-chrome-browser/).
6 */
7
8'use strict';
9
10// JS global variables
11window.config = {
12    colors: {
13        primary: '#666cff',
14        secondary: '#6d788d',
15        success: '#72e128',
16        info: '#26c6f9',
17        warning: '#fdb528',
18        danger: '#ff4d49',
19        dark: '#4b4b4b',
20        black: '#000',
21        white: '#fff',
22        cardColor: '#fff',
23        bodyBg: '#f7f7f9',
24        bodyColor: '#676a7b',
25        headingColor: '#3b4055',
26        textMuted: '#a8aab4',
27        borderColor: '#e5e5e8'
28    }, colors_label: {
29        primary: '#666cff29', secondary: '#6d788d29', success: '#72e12829', info: '#26c6f929', warning: '#fdb52829', danger: '#ff4d4929', dark: '#4b4b4b29'
30    }, colors_dark: {
31        cardColor: '#30334e', bodyBg: '#282a42', bodyColor: '#b2b3ca', headingColor: '#d7d8ee', textMuted: '#7b7d95', borderColor: '#464964'
32    }, enableMenuLocalStorage: true // Enable menu state with local storage support
33};
34
35window.assetsPath = document.documentElement.getAttribute('data-assets-path');
36window.templateName = document.documentElement.getAttribute('data-template');
37window.rtlSupport = true; // set true for rtl support (rtl + ltr), false for ltr only.
38
39/**
40 * TemplateCustomizer
41 * ! You must use(include) template-customizer.js to use TemplateCustomizer settings
42 * -----------------------------------------------------------------------------------------------
43 */
44
45// To use more themes, just push it to THEMES object.
46
47/* TemplateCustomizer.THEMES.push({
48  name: 'theme-raspberry',
49  title: 'Raspberry'
50}); */
51
52// To add more languages, just push it to LANGUAGES object.
53/*
54TemplateCustomizer.LANGUAGES.fr = { ... };
55*/
56
57/**
58 * TemplateCustomizer settings
59 * -------------------------------------------------------------------------------------
60 * cssPath: Core CSS file path
61 * themesPath: Theme CSS file path
62 * displayCustomizer: true(Show customizer), false(Hide customizer)
63 * lang: To set default language, Add more langues and set default. Fallback language is 'en'
64 * controls: [ 'rtl', 'style', 'headerType', 'contentLayout', 'layoutCollapsed', 'layoutNavbarOptions', 'themes' ] | Show/Hide customizer controls
65 * defaultTheme: 0(Default), 1(Bordered), 2(Semi Dark)
66 * defaultStyle: 'light', 'dark', 'system' (Mode)
67 * defaultTextDir: 'ltr', 'rtl' (rtlSupport must be true for rtl mode)
68 * defaultContentLayout: 'compact', 'wide' (compact=container-xxl, wide=container-fluid)
69 * defaultHeaderType: 'static', 'fixed' (for horizontal layout only)
70 * defaultMenuCollapsed: true, false (For vertical layout only)
71 * defaultNavbarType: 'sticky', 'static', 'hidden' (For vertical layout only)
72 * defaultFooterFixed: true, false (For vertical layout only)
73 * defaultShowDropdownOnHover : true, false (for horizontal layout only)
74 */
75
76let themeType = parseInt(swiftConfig.theme_type);
77let themeMenuCollapsed = parseInt(swiftConfig.theme_menu_colapsed);
78let shouldMenuCollapsed = themeMenuCollapsed === 1;
79
80if (typeof TemplateCustomizer !== 'undefined') {
81    window.templateCustomizer = new TemplateCustomizer({
82        cssPath: assetsPath + 'vendor/css' + (rtlSupport ? '/rtl' : '') + '/',
83        themesPath: assetsPath + 'vendor/css' + (rtlSupport ? '/rtl' : '') + '/',
84        displayCustomizer: false,
85        lang: localStorage.getItem('templateCustomizer-' + templateName + '--Lang') || 'en', // Set default language here
86        defaultTheme: themeType,
87        defaultStyle: swiftConfig.theme, //defaultTextDir: 'ltl',
88        defaultContentLayout: swiftConfig.theme_view,
89        defaultHeaderType: 'fixed',
90        defaultMenuCollapsed: shouldMenuCollapsed,
91        defaultNavbarType: swiftConfig.theme_navbar,
92        defaultFooterFixed: false,
93        defaultShowDropdownOnHover: false,
94        controls: ['rtl', 'style', 'headerType', 'contentLayout', 'layoutCollapsed', 'layoutNavbarOptions', 'themes']
95    });
96}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.