PageSourceSearch

https://www.istudymaths.com/wp-content/themes/iStudyMaths/assets/js/config.js

js istudymaths.com collected 2026-10-02 01:32:48 UTC 4,222 bytes, 99 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/* JS global variables
10 !Please use the hex color code (#000) here. Don't use rgba(), hsl(), etc
11*/
12window.config = {
13  // global color variables for charts except chartjs
14  colors: {
15    primary: window.Helpers.getCssVar('primary'),
16    secondary: window.Helpers.getCssVar('secondary'),
17    success: window.Helpers.getCssVar('success'),
18    info: window.Helpers.getCssVar('info'),
19    warning: window.Helpers.getCssVar('warning'),
20    danger: window.Helpers.getCssVar('danger'),
21    dark: window.Helpers.getCssVar('dark'),
22    black: window.Helpers.getCssVar('pure-black'),
23    white: window.Helpers.getCssVar('white'),
24    cardColor: window.Helpers.getCssVar('paper-bg'),
25    bodyBg: window.Helpers.getCssVar('body-bg'),
26    bodyColor: window.Helpers.getCssVar('body-color'),
27    headingColor: window.Helpers.getCssVar('heading-color'),
28    textMuted: window.Helpers.getCssVar('secondary-color'),
29    borderColor: window.Helpers.getCssVar('border-color')
30  },
31  colors_label: {
32    primary: window.Helpers.getCssVar('primary-bg-subtle'),
33    secondary: window.Helpers.getCssVar('secondary-bg-subtle'),
34    success: window.Helpers.getCssVar('success-bg-subtle'),
35    info: window.Helpers.getCssVar('info-bg-subtle'),
36    warning: window.Helpers.getCssVar('warning-bg-subtle'),
37    danger: window.Helpers.getCssVar('danger-bg-subtle'),
38    dark: window.Helpers.getCssVar('dark-bg-subtle')
39  },
40  fontFamily: window.Helpers.getCssVar('font-family-base'),
41  enableMenuLocalStorage: true // Enable menu state with local storage support
42};
43
44window.assetsPath = document.documentElement.getAttribute('data-assets-path');
45window.templateName = document.documentElement.getAttribute('data-template');
46
47/**
48 * TemplateCustomizer
49 * ! You must use(include) template-customizer.js to use TemplateCustomizer settings
50 * -----------------------------------------------------------------------------------------------
51 */
52
53/**
54 * TemplateCustomizer settings
55 * -------------------------------------------------------------------------------------
56 * displayCustomizer: true(Show customizer), false(Hide customizer)
57 * lang: To set default language, Add more languages and set default. Fallback language is 'en'
58 * defaultPrimaryColor: '#7367F0' | Set default primary color
59 * defaultSkin: 0(Default), 1(Bordered)
60 * defaultTheme: 'light', 'dark', 'system'
61 * defaultSemiDark: true, false (For dark menu only)
62 * defaultContentLayout: 'compact', 'wide' (compact=container-xxl, wide=container-fluid)
63 * defaultHeaderType: 'static', 'fixed' (for horizontal layout only)
64 * defaultMenuCollapsed: true, false (For vertical layout only)
65 * defaultNavbarType: 'sticky', 'static', 'hidden' (For vertical layout only)
66 * defaultTextDir: 'ltr', 'rtl' (Direction)
67 * defaultFooterFixed: true, false (For vertical layout only)
68 * defaultShowDropdownOnHover : true, false (for horizontal layout only)
69 * controls: [ 'color', 'theme', 'skins', 'semiDark', 'layoutCollapsed', 'layoutNavbarOptions', 'headerType', 'contentLayout', 'rtl' ] | Show/Hide customizer controls
70 */
71
72if (typeof TemplateCustomizer !== 'undefined') {
73  window.templateCustomizer = new TemplateCustomizer({
74    displayCustomizer: false,
75    lang: localStorage.getItem('templateCustomizer-' + templateName + '--Lang') || 'en', // Set default language here
76    // defaultPrimaryColor: '#D11BB4',
77    // defaultSkin: 1,
78    // defaultTheme: 'system',
79    // defaultSemiDark: true,
80    defaultContentLayout: 'wide',
81    // defaultHeaderType: 'static',
82    // defaultMenuCollapsed: true,
83    // defaultNavbarType: 'static',
84    // defaultTextDir: 'rtl',
85    // defaultFooterFixed: true,
86    // defaultShowDropdownOnHover: false,
87    controls: [
88      'color',
89      'theme',
90      'skins',
91      'semiDark',
92      'layoutCollapsed',
93      'layoutNavbarOptions',
94      'headerType',
95      'contentLayout',
96      'rtl'
97    ]
98  });
99}

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.