j1m_theme 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.md +21 -0
- data/README.md +41 -0
- data/_data/modules/default/j1_theme-0.0.1/j1_bs_theme_switcher.yml +163 -0
- data/_data/resources/default/j1_theme-0.0.1/resource.yml +24 -0
- data/assets/data/themes.json +36 -0
- data/assets/themes/j1/bs_theme_switcher/LICENSE.md +21 -0
- data/assets/themes/j1/bs_theme_switcher/README.md +158 -0
- data/assets/themes/j1/bs_theme_switcher/examples/css/bootstrap.css +6760 -0
- data/assets/themes/j1/bs_theme_switcher/examples/css/bootstrap.css.map +1 -0
- data/assets/themes/j1/bs_theme_switcher/examples/css/bootstrap.min.css +6 -0
- data/assets/themes/j1/bs_theme_switcher/examples/css/bootstrap.min.css.map +1 -0
- data/assets/themes/j1/bs_theme_switcher/examples/js/bootstrap.min.js +12 -0
- data/assets/themes/j1/bs_theme_switcher/examples/js/bootstrapThemeSwitcher.js +314 -0
- data/assets/themes/j1/bs_theme_switcher/examples/js/jquery-1.11.1.min.js +6 -0
- data/assets/themes/j1/bs_theme_switcher/examples/js/jquery.cookie.js +90 -0
- data/assets/themes/j1/bs_theme_switcher/examples/thememenu.html +1198 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes.all.json +21 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes.json +13 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/_bootswatch.scss +131 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/bootstrap.css +6904 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/bootswatch.less +131 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/index.html +1279 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cerulean/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/_bootswatch.scss +262 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/bootstrap.css +6939 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/bootswatch.less +266 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cosmo/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/_bootswatch.scss +242 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/bootstrap.css +6929 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/bootswatch.less +246 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/cyborg/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/_bootswatch.scss +351 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/bootstrap.css +7049 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/bootswatch.less +355 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/darkly/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/_bootswatch.scss +330 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/bootstrap.css +7025 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/bootswatch.less +334 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/flatly/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/_bootswatch.scss +145 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/bootstrap.css +6851 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/bootswatch.less +149 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/journal/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/_bootswatch.scss +523 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/bootstrap.css +7176 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/bootswatch.less +527 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/lumen/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/_bootswatch.scss +619 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/bootstrap.css +7523 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/bootswatch.less +623 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/examples/themes/paper/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/js/bs_theme_switcher.js +325 -0
- data/assets/themes/j1/bs_theme_switcher/js/bs_theme_switcher.min.js +9 -0
- data/assets/themes/j1/bs_theme_switcher/preview.adoc +1086 -0
- data/assets/themes/j1/bs_theme_switcher/themes.all.json +60 -0
- data/assets/themes/j1/bs_theme_switcher/themes.json +38 -0
- data/assets/themes/j1/bs_theme_switcher/themes/.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/._.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/_bootswatch.scss +131 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/bootstrap.css +6904 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/bootswatch.less +131 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/index.html +1279 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cerulean/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/_bootswatch.scss +262 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/bootstrap.css +6939 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/bootswatch.less +266 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cosmo/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/_bootswatch.scss +242 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/bootstrap.css +6929 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/bootswatch.less +246 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/cyborg/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/_bootswatch.scss +351 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/bootstrap.css +7049 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/bootswatch.less +355 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/darkly/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/_bootswatch.scss +330 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/bootstrap.css +7025 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/bootswatch.less +334 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/flatly/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/_bootswatch.scss +145 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/bootstrap.css +6851 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/bootswatch.less +149 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/journal/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/_bootswatch.scss +523 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/bootstrap.css +7176 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/bootswatch.less +527 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/lumen/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/_bootswatch.scss +619 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/bootstrap.css +7523 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/bootswatch.less +623 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/paper/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/_bootswatch.scss +183 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/bootstrap.css +6875 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/bootswatch.less +187 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/readable/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/_bootswatch.scss +195 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/bootstrap.css +6913 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/bootswatch.less +199 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/sandstone/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/_bootswatch.scss +170 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/bootstrap.css +6913 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/bootswatch.less +174 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/simplex/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/_bootswatch.scss +448 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/bootstrap.css +7271 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/bootswatch.less +448 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/slate/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/_bootswatch.scss +142 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/bootstrap.css +6961 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/bootswatch.less +146 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/spacelab/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/_bootswatch.scss +360 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/bootstrap.css +7009 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/bootswatch.less +364 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/superhero/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/_bootswatch.scss +42 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/_variables.scss +861 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/bootstrap.css +6588 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/bootstrap.min.css +7 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/bootswatch.less +42 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/index.html +1281 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/united/variables.less +861 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/_bootswatch.scss +445 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/_variables.scss +870 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/bootstrap.css +7073 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/bootstrap.min.css +11 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/bootswatch.less +449 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/index.html +1299 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/thumbnail.png +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/variables.json +14 -0
- data/assets/themes/j1/bs_theme_switcher/themes/bootswatch/yeti/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/._.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/dark/default/bootstrap.css +6919 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/dark/default/bootstrap.min.css +1469 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/dark/default/index.html +1287 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/dark/default/j1.less +274 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/dark/default/variables.less +869 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/fonts/glyphicons-halflings-regular.eot +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/fonts/glyphicons-halflings-regular.svg +288 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/._.DS_Store +0 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/default/bootstrap.css +7488 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/default/bootstrap.min.css +1560 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/default/index.html +1287 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/default/j1.less +669 -0
- data/assets/themes/j1/bs_theme_switcher/themes/j1/light/default/variables.less +880 -0
- data/assets/themes/j1/j1/js/adapters/bs_theme_switcher.js +89 -0
- data/exe/console +14 -0
- data/exe/setup +8 -0
- data/lib/j1m_theme.rb +5 -0
- data/lib/j1m_theme/version.rb +3 -0
- metadata +355 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a62ad88f553a1b23f4836be86d885f65240a21bb
|
|
4
|
+
data.tar.gz: 5713ac45ce6e529efa88153d6c5e199ccb3b9401
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 21565016ec4dbd01d0566522c4670fa709089a1f608472a24df41e6e7bac4c1db5521c650a59b8567bebfaab087166daa34511f5952c1a775abf62bb7f7f3c0c
|
|
7
|
+
data.tar.gz: 8e7ebc6004340c0f3d1b16c88d13df6ab38d99d1197c141506656dc497f7d96e6549518df7f4aa7c9b6282e3e7b2da843ece73de53ea177503e7a95b34458e48
|
data/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Juergen Adams
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# J1mNav
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/j1m_nav`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'j1m_nav'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install j1m_nav
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/j1m_nav.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
41
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# ------------------------------------------------------------------------------
|
|
2
|
+
# J1: ~/_data/modules/j1_bs_theme_switcher.yml
|
|
3
|
+
# J1 Theme Switcher specific configuration data (THEME Module)
|
|
4
|
+
#
|
|
5
|
+
# Product/Info:
|
|
6
|
+
# https://jekyll.one
|
|
7
|
+
# https://github.com/jguadagno/bootstrapThemeSwitcher
|
|
8
|
+
#
|
|
9
|
+
# Copyright (C) 2017 Juergen Adams
|
|
10
|
+
# Copyright (C) 2014 Joseph Guadagno
|
|
11
|
+
#
|
|
12
|
+
# J1 Template is licensed under the MIT License.
|
|
13
|
+
# For details, see https://jekyll.one
|
|
14
|
+
# BS Theme Switcher is licensed under the MIT License.
|
|
15
|
+
# For details, see https://github.com/jguadagno/bootstrapThemeSwitcher
|
|
16
|
+
#
|
|
17
|
+
# ------------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
# GENERAL settings
|
|
20
|
+
# -------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
# version
|
|
23
|
+
# --------------------------------------------------------------------
|
|
24
|
+
# Current version of the module
|
|
25
|
+
#
|
|
26
|
+
# values: string
|
|
27
|
+
# default: no defaults
|
|
28
|
+
#
|
|
29
|
+
version: 0.0.1
|
|
30
|
+
|
|
31
|
+
# MODULE settings
|
|
32
|
+
# -------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
# DEFAULT settings
|
|
35
|
+
# --------------------------------------------------------------------
|
|
36
|
+
#
|
|
37
|
+
# debug
|
|
38
|
+
# --------------------------------------------------------------
|
|
39
|
+
# Enables|Disables the console log.
|
|
40
|
+
#
|
|
41
|
+
# values: boolean (true|false)
|
|
42
|
+
# default: false
|
|
43
|
+
#
|
|
44
|
+
# cssThemeLink
|
|
45
|
+
# --------------------------------------------------------------
|
|
46
|
+
# The ID used for the bootstrap theme css file
|
|
47
|
+
#
|
|
48
|
+
# values: string
|
|
49
|
+
# default: bootstrapTheme
|
|
50
|
+
#
|
|
51
|
+
# saveToCookie
|
|
52
|
+
# --------------------------------------------------------------
|
|
53
|
+
# If true, a cookie will be saved with the currently
|
|
54
|
+
# selected theme.
|
|
55
|
+
#
|
|
56
|
+
# values: boolean (true|false)
|
|
57
|
+
# default: true
|
|
58
|
+
#
|
|
59
|
+
# cookieThemeName
|
|
60
|
+
# --------------------------------------------------------------
|
|
61
|
+
# The name of the cookie to be used to store the theme
|
|
62
|
+
# name.
|
|
63
|
+
#
|
|
64
|
+
# values: string
|
|
65
|
+
# default: bootstrapTheme.name
|
|
66
|
+
#
|
|
67
|
+
# cookieDefaultThemeName
|
|
68
|
+
# --------------------------------------------------------------
|
|
69
|
+
# The name of the cookie to be used to store the default
|
|
70
|
+
# theme name.
|
|
71
|
+
#
|
|
72
|
+
# values: string
|
|
73
|
+
# default: bootstrapDefaultTheme.name
|
|
74
|
+
#
|
|
75
|
+
# cookieThemeCss
|
|
76
|
+
# --------------------------------------------------------------
|
|
77
|
+
# The name of the cookie to be used to store the css
|
|
78
|
+
# file name used for the theme
|
|
79
|
+
#
|
|
80
|
+
# values: string
|
|
81
|
+
# default: bootstrapTheme.css
|
|
82
|
+
#
|
|
83
|
+
# cookieExpiration
|
|
84
|
+
# --------------------------------------------------------------
|
|
85
|
+
# The number of days the cookies should expire.
|
|
86
|
+
#
|
|
87
|
+
# values: integer
|
|
88
|
+
# default: 7
|
|
89
|
+
#
|
|
90
|
+
# cookiePath
|
|
91
|
+
# --------------------------------------------------------------
|
|
92
|
+
# The path the cookie should be stored.
|
|
93
|
+
#
|
|
94
|
+
# values: string (path)
|
|
95
|
+
# default: /
|
|
96
|
+
#
|
|
97
|
+
# defaultCssFile
|
|
98
|
+
# --------------------------------------------------------------
|
|
99
|
+
# The default css file the plugin should use if it can
|
|
100
|
+
# not load the themes from Bootswatch.
|
|
101
|
+
#
|
|
102
|
+
# values: string (URI)
|
|
103
|
+
# default: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css
|
|
104
|
+
#
|
|
105
|
+
# bootswatchApiUrl
|
|
106
|
+
# --------------------------------------------------------------
|
|
107
|
+
# The URL for the Bootswatch API.
|
|
108
|
+
#
|
|
109
|
+
# values: string (URI)
|
|
110
|
+
# default: http://api.bootswatch.com
|
|
111
|
+
#
|
|
112
|
+
# bootswatchApiVersion
|
|
113
|
+
# --------------------------------------------------------------
|
|
114
|
+
# The version of the Bootswatch API to use.
|
|
115
|
+
#
|
|
116
|
+
# values: integer
|
|
117
|
+
# default: 3
|
|
118
|
+
#
|
|
119
|
+
# localFeed
|
|
120
|
+
# --------------------------------------------------------------
|
|
121
|
+
# The path to a JSON file that contains the themes you want
|
|
122
|
+
# to use. If this parameter is used, the control will be
|
|
123
|
+
# loaded the themes from here and not go to the bootswatchApiUrl.
|
|
124
|
+
# A sample of the json file can be found at themes.json.
|
|
125
|
+
#
|
|
126
|
+
# values: string
|
|
127
|
+
# default: empty string
|
|
128
|
+
#
|
|
129
|
+
# excludeBootswatch
|
|
130
|
+
# --------------------------------------------------------------
|
|
131
|
+
# Comma separated list of BootSwatch names (e.g. Slate,Yeti)
|
|
132
|
+
# that should be excluded from the rendered <ul> or <select>
|
|
133
|
+
#
|
|
134
|
+
# values: string
|
|
135
|
+
# default: empty string
|
|
136
|
+
#
|
|
137
|
+
# hideOnReload
|
|
138
|
+
# --------------------------------------------------------------
|
|
139
|
+
# Number of milliseconds (msec) the current page is hidden
|
|
140
|
+
# (display: none) to prevent "DOM flicker" aka "FOUC"
|
|
141
|
+
# (Flash of unstyled content) while the css file is being
|
|
142
|
+
# loaded|activated
|
|
143
|
+
#
|
|
144
|
+
# values: integer
|
|
145
|
+
# default: 150
|
|
146
|
+
#
|
|
147
|
+
defaults:
|
|
148
|
+
|
|
149
|
+
debug: false
|
|
150
|
+
cssThemeLink: bootstrapTheme
|
|
151
|
+
saveToCookie: true
|
|
152
|
+
cookieThemeName: j1-theme.name
|
|
153
|
+
cookieDefaultThemeName: j1-theme.default
|
|
154
|
+
cookieThemeCss: j1-theme.css
|
|
155
|
+
cookieExpiration: 3650
|
|
156
|
+
cookiePath: /
|
|
157
|
+
defaultCssFile: http://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css
|
|
158
|
+
bootswatchApiUrl: https://bootswatch.com/api/
|
|
159
|
+
bootswatchApiVersion: 3
|
|
160
|
+
loadFromBootswatch: true
|
|
161
|
+
localFeed: /assets/data/themes.json
|
|
162
|
+
hideOnReload: 150
|
|
163
|
+
excludeBootswatch:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
# -----------------------------------------------------------
|
|
3
|
+
# BS Theme Switcher (THEME Module)
|
|
4
|
+
#
|
|
5
|
+
- resource:
|
|
6
|
+
enabled: true
|
|
7
|
+
version: 0.0.1
|
|
8
|
+
id: j1_bs_theme_switcher
|
|
9
|
+
comment: Resources for J1 BS Theme Switcher
|
|
10
|
+
layout: [ home, page, post, app ]
|
|
11
|
+
region: head
|
|
12
|
+
required: always
|
|
13
|
+
script_load: sync
|
|
14
|
+
data:
|
|
15
|
+
css: []
|
|
16
|
+
files: [
|
|
17
|
+
j1/js/adapters/bs_theme_switcher.js
|
|
18
|
+
]
|
|
19
|
+
js: [
|
|
20
|
+
bs_theme_switcher/js/bs_theme_switcher
|
|
21
|
+
]
|
|
22
|
+
yml:
|
|
23
|
+
init_function: J1BsThemeSwitcher.init
|
|
24
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
regenerate: true
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
{% capture j1_cache %}
|
|
6
|
+
|
|
7
|
+
{% comment%}
|
|
8
|
+
|
|
9
|
+
The liquid template themes.json is used by the J1 Theme Manager to locate
|
|
10
|
+
the CSS file to be loaded to switch for a specific theme
|
|
11
|
+
|
|
12
|
+
NOTE:
|
|
13
|
+
Be carefull change the Liquid code. If the code is changed, check the
|
|
14
|
+
interity of the JSON data created. Corrupted or invalid JSON data will
|
|
15
|
+
make the Javascript portion of J1ThemeMgr to fail and no valid CSS will
|
|
16
|
+
be available to provide the needed styles to properly render the pages.
|
|
17
|
+
|
|
18
|
+
{% endcomment%}
|
|
19
|
+
|
|
20
|
+
{% assign asset_path = site.data.j1_config.asset_path %}
|
|
21
|
+
{% capture theme_path %}{{asset_path}}/bs_theme_switcher/themes{% endcapture %}
|
|
22
|
+
|
|
23
|
+
{
|
|
24
|
+
"themes":
|
|
25
|
+
[
|
|
26
|
+
{"name": "default", "cssCdn": "{{asset_path}}/bootstrap/css/bootstrap.min.css"},
|
|
27
|
+
{"name": "bootstrap 3.3.7", "cssCdn": "{{asset_path}}/bootstrap/default/css/bootstrap.min.css"},
|
|
28
|
+
{"name": "j1 light default", "cssCdn": "{{theme_path}}/j1/light/default/bootstrap.min.css"},
|
|
29
|
+
{"name": "j1 dark default", "cssCdn": "{{theme_path}}/j1/dark/default/bootstrap.min.css"}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
{% endcapture %}
|
|
34
|
+
|
|
35
|
+
{{ j1_cache | strip_empty_lines }}
|
|
36
|
+
{% assign j1_cache = nil %}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Joseph Guadagno
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
#bootstrapThemeSwitcher
|
|
2
|
+
|
|
3
|
+
jQuery plugin for dynamically loading Twitter Bootstrap themes from Bootswatch. This plugin allows for the automatic populating of `UL` and `SELECT` elements with the names of themes available, can switch a theme, save the selected theme to a cookie and load the selected theme from a cookie.
|
|
4
|
+
|
|
5
|
+
## Support
|
|
6
|
+
|
|
7
|
+
* Bugs and Feature requests
|
|
8
|
+
**Bugs** and **Feature requests** can be reported using the [issues tracker](https://github.com/jguadagno/bootstrapThemeSwitcher/issues).
|
|
9
|
+
Please read the [issue guidelines](https://github.com/jguadagno/bootstrapThemeSwitcher/blob/master/CONTRIBUTING.md) before posting.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
**Dynamically Load Theme Name**
|
|
14
|
+
The plugin will pull in a list of the latest themes from [Bootswatch](http://www.bootswatch.com). This will populate a `select` or `ul` element with a list of themes to choose.
|
|
15
|
+
**Switch the Bootstrap Theme**
|
|
16
|
+
The dynamically loaded themes will automatically switch the theme when chosen.
|
|
17
|
+
**Saves theme to a cookie**
|
|
18
|
+
Takes the selected theme information and saves it to a cookie to reload later
|
|
19
|
+
**Loads a theme from a cookie**
|
|
20
|
+
Loads a previous saved theme from a cookie
|
|
21
|
+
|
|
22
|
+
## Requirements
|
|
23
|
+
|
|
24
|
+
### Mandatory requirements
|
|
25
|
+
* [jQuery](http://jquery.com/) v1.11+
|
|
26
|
+
* [jQuery Cookie plugin](https://github.com/carhartl/jquery-cookie)
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
Released under the [MIT license](http://www.opensource.org/licenses/MIT).
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### Clear
|
|
34
|
+
```javascript
|
|
35
|
+
$(selector).bootstrapThemeSelector('clear');
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Empties/removes the loaded `ul` or `select` element theme names
|
|
39
|
+
|
|
40
|
+
### Destroy
|
|
41
|
+
```javascript
|
|
42
|
+
$(selector).bootstrapThemeSelector('destroy');
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Removes any reference to the bootstrapThemeSelector, empties the loaded control and removes the events.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### LoadThemeFromCookies
|
|
49
|
+
```javascript
|
|
50
|
+
$(selector).bootstrapThemeSelector('loadThemeFromCookies');
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Checks for the presence of the theme cookie and loads that theme. `options` can be passed in to change the default cookies, path, etc.
|
|
54
|
+
|
|
55
|
+
### switchTheme
|
|
56
|
+
```javascript
|
|
57
|
+
$(selector).bootstrapThemeSelector('switchTheme', themeName, cssFile);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Loads a theme with the given `cssFile`. If the cssFile is `undefined`, the default bootstrap theme will be loaded from a CDN. You can use this option to load your own custom theme.
|
|
61
|
+
|
|
62
|
+
### Update
|
|
63
|
+
```javascript
|
|
64
|
+
$(selector).bootstrapThemeSelector('update');
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Refreshs the theme list for the provided `selector`
|
|
68
|
+
|
|
69
|
+
## Examples
|
|
70
|
+
|
|
71
|
+
Setup an `UL` or `SELECT` with the id of `#ThemeSelect` with a list of themes
|
|
72
|
+
``` javascript
|
|
73
|
+
// Setup the theme selectors
|
|
74
|
+
$('#ThemeSelect').bootstrapThemeSwitcher();
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Change the theme
|
|
78
|
+
``` javascript
|
|
79
|
+
// Change the theme
|
|
80
|
+
$().bootstrapThemeSwitcher('switchTheme', 'default', '//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css');
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Load the previously saved theme from the site cookie
|
|
84
|
+
``` javascript
|
|
85
|
+
// Load the previously selected theme from the cookies
|
|
86
|
+
$().bootstrapThemeSwitcher('loadThemeFromCookie');
|
|
87
|
+
```
|
|
88
|
+
## Plugin Options
|
|
89
|
+
|
|
90
|
+
Bootstrap Theme Switcher can be set globally by setting the `$.bootstrapThemeSwitcher.defaults` object or individually for each call to `$.bootstrapThemeSwitcher()` by
|
|
91
|
+
passing a plain object to the options arguement. Per-call options over the default options.
|
|
92
|
+
|
|
93
|
+
### cssThemeLink
|
|
94
|
+
|
|
95
|
+
cssThemeLink: 'bootstrapTheme'
|
|
96
|
+
|
|
97
|
+
The ID used for the bootstrap theme css file
|
|
98
|
+
|
|
99
|
+
### saveToCookie
|
|
100
|
+
|
|
101
|
+
saveToCookie: true
|
|
102
|
+
|
|
103
|
+
If true, a cookie will be saved with the currently selected theme
|
|
104
|
+
|
|
105
|
+
### cookieThemeName
|
|
106
|
+
|
|
107
|
+
bootstrapTheme.name
|
|
108
|
+
|
|
109
|
+
The name of the cookie to be used to store the theme name
|
|
110
|
+
|
|
111
|
+
### cookieThemeCss
|
|
112
|
+
|
|
113
|
+
cookieThemeCss: 'bootstrapTheme.css'
|
|
114
|
+
|
|
115
|
+
The name of the cookie to be used to store the css file used for the theme
|
|
116
|
+
|
|
117
|
+
### cookieExpiration
|
|
118
|
+
|
|
119
|
+
expires: 7
|
|
120
|
+
|
|
121
|
+
The number of days the cookies should expire
|
|
122
|
+
|
|
123
|
+
### cookiePath
|
|
124
|
+
|
|
125
|
+
cookiePath: '/'
|
|
126
|
+
|
|
127
|
+
The path the cookie should be stored
|
|
128
|
+
|
|
129
|
+
### defaultCssFile
|
|
130
|
+
|
|
131
|
+
defaultCssFile: '//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'
|
|
132
|
+
|
|
133
|
+
The default css file the plugin should use if it can not load the themes from Bootswatch
|
|
134
|
+
|
|
135
|
+
### bootswatchApiUrl
|
|
136
|
+
|
|
137
|
+
bootswatchApiUrl: 'http://api.bootswatch.com'
|
|
138
|
+
|
|
139
|
+
The url for the bootswatch api
|
|
140
|
+
|
|
141
|
+
### bootswatchApiVersion
|
|
142
|
+
|
|
143
|
+
bootswatchApiVersion: '3'
|
|
144
|
+
|
|
145
|
+
The version of the bootswatch api to use.
|
|
146
|
+
|
|
147
|
+
### localFeed
|
|
148
|
+
|
|
149
|
+
localFeed: ''
|
|
150
|
+
|
|
151
|
+
The path to a JSON file that contains the themes you want to use. If this parameter is used, the control will be loaded
|
|
152
|
+
the themes from here and not go to the bootswatchApiUrl. A sample of the json file can be found at [themes.json](https://github.com/jguadagno/bootstrapThemeSwitcher/blob/master/Examples/themes.json)
|
|
153
|
+
|
|
154
|
+
### excludeBootswatch
|
|
155
|
+
|
|
156
|
+
excludeBootswatch: ''
|
|
157
|
+
|
|
158
|
+
Comma seperated list of BootSwatch names (e.g. Slate,Yeti) that should be excluded from the rendered <ul> or <select>
|