36 lines
789 B
JavaScript
36 lines
789 B
JavaScript
/* Dore Single Theme Initializer Script
|
|
|
|
Table of Contents
|
|
|
|
01. Single Theme Initializer
|
|
*/
|
|
|
|
/* 01. Single Theme Initializer */
|
|
|
|
(function ($) {
|
|
if ($().dropzone) {
|
|
Dropzone.autoDiscover = false;
|
|
}
|
|
|
|
var direction = "ltr";
|
|
var radius = "rounded";
|
|
|
|
if (typeof Storage !== "undefined") {
|
|
if (localStorage.getItem("dore-direction")) {
|
|
direction = localStorage.getItem("dore-direction");
|
|
} else {
|
|
localStorage.setItem("dore-direction", direction);
|
|
}
|
|
if (localStorage.getItem("dore-radius")) {
|
|
radius = localStorage.getItem("dore-radius");
|
|
} else {
|
|
localStorage.setItem("dore-radius", radius);
|
|
}
|
|
}
|
|
|
|
$("body").addClass(direction);
|
|
$("html").attr("dir", direction);
|
|
$("body").addClass(radius);
|
|
$("body").dore();
|
|
})(jQuery);
|