8000 GitHub - sajagjain/ThemeSelector.js: This is a simple JS plugin to apply theme to your pages by specifying a color and the selectors
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sajagjain/ThemeSelector.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThemeSelector.js

This is a simple JS plugin to apply theme to your pages by specifying a color and the selectors

View Demo

How to use:

You can use this plugin by including the ThemeSelector.js file in the project. Invocation is as easy as the code below

var eventThemeColor = '#D83B01';
$(document).ready(function () {
    var themeOptions = {
            eventColor: eventThemeColor,
            propertyAndElementList: [
                {
                    property: 'color',
                    selector: ['.sample-selector']
                },
                {
                    property: 'background-color',
                    selector: ['.sample-para']
                }
            ],
            dynamicClassesToAdd: ['#playlist .nav-tabs {color:'
                + eventThemeColor + ' !important;border-color:' + eventThemeColor
                + ' !important;}']
        };
        var theme = themeSelector(themeOptions);
        theme.applyTheme();
});

About

This is a simple JS plugin to apply theme to your pages by specifying a color and the selectors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0