demo-theme.min.js 682 B

123456789
  1. /*!
  2. * Tabler v1.0.0-beta14 (https://tabler.io)
  3. * @version 1.0.0-beta14
  4. * @link https://tabler.io
  5. * Copyright 2018-2022 The Tabler Authors
  6. * Copyright 2018-2022 codecalm.net Paweł Kuna
  7. * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
  8. */
  9. !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t="tablerTheme",n=new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}});if(n.theme)localStorage.setItem(t,n.theme),e=n.theme;else{var o=localStorage.getItem(t);e=o||"light"}document.body.classList.remove("theme-dark","theme-light"),document.body.classList.add("theme-".concat(e))}));