Dashboard sipadu mbip
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. "use strict!"
  2. $(document).ready(function () {
  3. // variable
  4. var Navbarbg="theme1"; // navbar color themelight1 / theme1
  5. var headerbg ="theme6"; // navbar color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
  6. var menucaption ="theme9"; // menu caption color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9
  7. var bgpattern ="theme6"; // background pattern theme1 / theme2 / theme3 / theme4 / theme5 / theme6
  8. var activeitemtheme ="theme1"; // menu active color theme1 / theme2 / theme3 / theme4 / theme5 / theme6 / theme7 / theme8 / theme9 / theme10 / theme11 / theme12
  9. var frametype = "theme6"; // preset frame color theme1 / theme2 / theme3 / theme4 / theme5 / theme6
  10. var layout_type = "light"; // theme layout dark / light
  11. var nav_image = "false"; // navbar image bg false / true
  12. var active_image = "img1"; // avtive navbar image layout img1 / img2 / img3 / img4 / img5 / img6
  13. var layout_width = "wide"; // theme layout wide / box
  14. var menu_effect_desktop = "shrink"; // navbar effect in desktop shrink / overlay / push
  15. var menu_effect_tablet = "overlay"; // navbar effect in tablet shrink / overlay / push
  16. var menu_effect_phone = "overlay"; // navbar effect in phone shrink / overlay / push
  17. function setCookie(cname,cvalue,exdays) {
  18. }
  19. $("#pcoded").pcodedmenu({
  20. themelayout: 'vertical',
  21. verticalMenuplacement: 'left', // value should be left/right
  22. verticalMenulayout: layout_width, // value should be wide/box
  23. MenuTrigger: 'click', // click / hover
  24. SubMenuTrigger: 'click', // click / hover
  25. activeMenuClass: 'active',
  26. ThemeBackgroundPattern: bgpattern, // pattern1, pattern2, pattern3, pattern4, pattern5, pattern6
  27. HeaderBackground: headerbg, // theme1, theme2, theme3, theme4, theme5 header color
  28. LHeaderBackground: menucaption, // theme1, theme2, theme3, theme4, theme5, theme6 brand color
  29. NavbarBackground: Navbarbg, // themelight1, theme1 // light and dark sidebar
  30. ActiveItemBackground: activeitemtheme, // theme1, theme2, theme3, theme4, theme5, theme6, theme7, theme8, theme9, theme10, theme11, theme12 mennu active item color
  31. SubItemBackground: 'theme2',
  32. ActiveItemStyle: 'style0',
  33. ItemBorder: true,
  34. ItemBorderStyle: 'none',
  35. NavbarImage:nav_image,
  36. ActiveNavbarImage: active_image,
  37. freamtype:frametype,
  38. SubItemBorder: true,
  39. DropDownIconStyle: 'style3', // Value should be style1,style2,style3
  40. menutype: 'st2', // Value should be st1, st2, st3, st4, st5 menu icon style
  41. layouttype:layout_type, // Value should be light / dark
  42. FixedNavbarPosition: true, // Value should be true / false header postion
  43. FixedHeaderPosition: true, // Value should be true / false sidebar menu postion
  44. collapseVerticalLeftHeader: true,
  45. VerticalSubMenuItemIconStyle: 'style7', // value should be style1, style2, style3, style4, style5, style6
  46. VerticalNavigationView: 'view1',
  47. verticalMenueffect: {
  48. desktop: menu_effect_desktop,
  49. tablet: menu_effect_tablet,
  50. phone: menu_effect_phone,
  51. },
  52. defaultVerticalMenu: {
  53. desktop: "expanded", // value should be offcanvas/collapsed/expanded/compact/compact-acc/fullpage/ex-popover/sub-expanded
  54. tablet: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
  55. phone: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
  56. },
  57. onToggleVerticalMenu: {
  58. desktop: "offcanvas", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
  59. tablet: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
  60. phone: "expanded", // value should be offcanvas/collapsed/expanded/compact/fullpage/ex-popover/sub-expanded
  61. },
  62. });
  63. function handlenavimg() {
  64. $('.theme-color > a.navbg-pattern').on("click", function () {
  65. var value = $(this).attr("navbg-pattern");
  66. $('.pcoded').attr('sidebar-img-type', value);
  67. setCookie("sidebar-img-type", value, 1);
  68. });
  69. };
  70. handlenavimg();
  71. /* layout type Change function Start */
  72. function handlelayouttheme() {
  73. $('.theme-color > a.Layout-type').on("click", function () {
  74. var layout = $(this).attr("layout-type");
  75. $('.pcoded').attr("layout-type", layout);
  76. setCookie("layoutlayout", layout, 1);
  77. if(layout=='dark'){
  78. $('.pcoded-header').attr("header-theme", "theme6");
  79. $('.pcoded-navbar').attr("navbar-theme", "theme1");
  80. $('.pcoded').attr("sidebar-img", "false");
  81. $('body').addClass('dark');
  82. $('body').attr("themebg-pattern", "theme6");
  83. $('.pcoded-navigation-label').attr("menu-title-theme", "theme9");
  84. setCookie("header-theme", "theme6", 1);
  85. setCookie("NavbarBackground", "theme1", 1);
  86. setCookie("menu-title-theme", "theme9", 1);
  87. setCookie("themebg-pattern", "theme6", 1);
  88. setCookie("sidebar-img", "false", 1);
  89. }
  90. if(layout=='light'){
  91. $('.pcoded-header').attr("header-theme", "theme1");
  92. $('.pcoded-navbar').attr("navbar-theme", "themelight1");
  93. $('.pcoded').attr("sidebar-img", "false");
  94. $('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
  95. $('body').removeClass('dark');
  96. $('body').attr("themebg-pattern", "theme1");
  97. setCookie("header-theme", "theme1", 1);
  98. setCookie("NavbarBackground", "themelight1", 1);
  99. setCookie("menu-title-theme", "theme1", 1);
  100. setCookie("themebg-pattern", "theme1", 1);
  101. setCookie("sidebar-img", "false", 1);
  102. }
  103. if(layout=='img'){
  104. $('.pcoded-header').attr("header-theme", "theme1");
  105. $('.pcoded-navbar').attr("navbar-theme", "themelight1");
  106. $('.pcoded-navbar').attr("navbar-theme", "themelight1");
  107. $('.pcoded').attr("sidebar-img", "true");
  108. $('.pcoded').attr("frame-type", "theme1");
  109. $('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
  110. setCookie("header-theme", "theme1", 1);
  111. setCookie("NavbarBackground", "themelight1", 1);
  112. setCookie("menu-title-theme", "theme1", 1);
  113. setCookie("themebg-pattern", "theme1", 1);
  114. setCookie("sidebar-img", "true", 1);
  115. setCookie("fream-type", headertheme, "theme1");
  116. }
  117. });
  118. };
  119. handlelayouttheme();
  120. /* Left header logo Change function Start */
  121. // function handleogortheme() {
  122. // $('.theme-color > a.logo-theme').on("click", function () {
  123. // var logotheme = $(this).attr("logo-theme");
  124. // $('.navbar-logo').attr("logo-theme", logotheme);
  125. // });
  126. // };
  127. // handleogortheme();
  128. /* Left header Theme Change function Start */
  129. function handleleftheadertheme() {
  130. $('.theme-color > a.leftheader-theme').on("click", function () {
  131. var lheadertheme = $(this).attr("lheader-theme");
  132. $('.pcoded-navigation-label').attr("menu-title-theme", lheadertheme);
  133. setCookie("menu-title-theme", lheadertheme, 1);
  134. });
  135. };
  136. handleleftheadertheme();
  137. /* Left header Theme Change function Close */
  138. /* header Theme Change function Start */
  139. function handleheadertheme() {
  140. $('.theme-color > a.header-theme').on("click", function () {
  141. var headertheme = $(this).attr("header-theme");
  142. var activeitem = $(this).attr("active-item-color");
  143. $('.pcoded-header').attr("header-theme", headertheme);
  144. $('.pcoded-navbar').attr("active-item-theme", activeitem);
  145. $('.pcoded').attr("fream-type", headertheme);
  146. $('.pcoded-navigation-label').attr("menu-title-theme", headertheme);
  147. $('body').attr("themebg-pattern", headertheme);
  148. // coockies
  149. setCookie("header-theme", headertheme, 1);
  150. setCookie("active-item-theme", activeitem, 1);
  151. setCookie("menu-title-theme", headertheme, 1);
  152. setCookie("themebg-pattern", headertheme, 1);
  153. setCookie("fream-type", headertheme, 1);
  154. });
  155. };
  156. handleheadertheme();
  157. /* header Theme Change function Close */
  158. /* Navbar Theme Change function Start */
  159. function handlenavbartheme() {
  160. $('.theme-color > a.navbar-theme').on("click", function () {
  161. var navbartheme = $(this).attr("navbar-theme");
  162. $('.pcoded-navbar').attr("navbar-theme", navbartheme);
  163. $('.pcoded').attr("sidebar-img", "false");
  164. setCookie("NavbarBackground", navbartheme, 1);
  165. setCookie("sidebar-img", "false", 1);
  166. if(navbartheme=='themelight1'){
  167. $('.pcoded-navigation-label').attr("menu-title-theme", "theme1");
  168. setCookie("menu-title-theme", "theme1", 1);
  169. }
  170. if(navbartheme=='theme1'){
  171. $('.pcoded-navigation-label').attr("menu-title-theme", "theme9");
  172. setCookie("menu-title-theme", "theme9", 1);
  173. }
  174. });
  175. };
  176. handlenavbartheme();
  177. /* Navbar Theme Change function Close */
  178. /* Active Item Theme Change function Start */
  179. function handleactiveitemtheme() {
  180. $('.theme-color > a.active-item-theme').on("click", function () {
  181. var activeitemtheme = $(this).attr("active-item-theme");
  182. $('.pcoded-navbar').attr("active-item-theme", activeitemtheme);
  183. setCookie("active-item-theme", activeitemtheme, 1);
  184. });
  185. };
  186. handleactiveitemtheme();
  187. /* Active Item Theme Change function Close */
  188. /* SubItem Theme Change function Start */
  189. // function handlesubitemtheme() {
  190. // $('.theme-color > a.sub-item-theme').on("click", function () {
  191. // var subitemtheme = $(this).attr("sub-item-theme");
  192. // $('.pcoded-navbar').attr("sub-item-theme", subitemtheme);
  193. // });
  194. // };
  195. //
  196. // handlesubitemtheme();
  197. /* SubItem Theme Change function Close */
  198. /* Theme background pattren Change function Start */
  199. function handlethemebgpattern() {
  200. $('.theme-color > a.themebg-pattern').on("click", function () {
  201. var themebgpattern = $(this).attr("themebg-pattern");
  202. $('body').attr("themebg-pattern", themebgpattern);
  203. setCookie("themebg-pattern", themebgpattern, 1);
  204. });
  205. };
  206. handlethemebgpattern();
  207. /* Theme background pattren Change function Close */
  208. /* Vertical Navigation View Change function start*/
  209. // function handleVerticalNavigationViewChange() {
  210. // $('#navigation-view').val('view1').on('change', function (get_value) {
  211. // get_value = $(this).val();
  212. // $('.pcoded').attr('vnavigation-view', get_value);
  213. // });
  214. // };
  215. //
  216. // handleVerticalNavigationViewChange();
  217. /* Theme Layout Change function Close*/
  218. /* Theme Layout Change function start*/
  219. function handlethemeverticallayout() {
  220. $('#theme-layout').change(function () {
  221. if ($(this).is(":checked")) {
  222. $('.pcoded').attr('vertical-layout', "box");
  223. setCookie("vertical-layout", "box", 1);
  224. $('#bg-pattern-visiblity').removeClass('d-none');
  225. } else {
  226. $('.pcoded').attr('vertical-layout', "wide");
  227. setCookie("vertical-layout", "wide", 1);
  228. $('#bg-pattern-visiblity').addClass('d-none');
  229. }
  230. });
  231. };
  232. handlethemeverticallayout();
  233. /* Theme Layout Change function Close*/
  234. /* Menu effect change function start*/
  235. function handleverticalMenueffect() {
  236. $('#vertical-menu-effect').val('shrink').on('change', function (get_value) {
  237. get_value = $(this).val();
  238. $('.pcoded').attr('vertical-effect', get_value);
  239. setCookie("vertical-effect", get_value, 1);
  240. });
  241. };
  242. handleverticalMenueffect();
  243. /* Menu effect change function Close*/
  244. /* Vertical Menu Placement change function start*/
  245. // function handleverticalMenuplacement() {
  246. // $('#vertical-navbar-placement').val('left').on('change', function (get_value) {
  247. // get_value = $(this).val();
  248. // $('.pcoded').attr('vertical-placement', get_value);
  249. // $('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
  250. // $('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
  251. // });
  252. // };
  253. // handleverticalMenuplacement();
  254. /* Vertical Menu Placement change function Close*/
  255. /* Vertical Active Item Style change function Start*/
  256. // function handleverticalActiveItemStyle() {
  257. // $('#vertical-activeitem-style').val('style1').on('change', function (get_value) {
  258. // get_value = $(this).val();
  259. // $('.pcoded-navbar').attr('active-item-style', get_value);
  260. // });
  261. // };
  262. // handleverticalActiveItemStyle();
  263. /* Vertical Active Item Style change function Close*/
  264. /* Vertical Item border change function Start*/
  265. // function handleVerticalIItemBorder() {
  266. // $('#vertical-item-border').change(function () {
  267. // if ($(this).is(":checked")) {
  268. // $('.pcoded-navbar .pcoded-item').attr('item-border', 'false');
  269. // } else {
  270. // $('.pcoded-navbar .pcoded-item').attr('item-border', 'true');
  271. // }
  272. // });
  273. // };
  274. //
  275. // handleVerticalIItemBorder();
  276. /* Vertical Item border change function Close*/
  277. /* Vertical SubItem border change function Start*/
  278. // function handleVerticalSubIItemBorder() {
  279. // $('#vertical-subitem-border').change(function () {
  280. // if ($(this).is(":checked")) {
  281. // $('.pcoded-navbar .pcoded-item').attr('subitem-border', 'false');
  282. // } else {
  283. // $('.pcoded-navbar .pcoded-item').attr('subitem-border', 'true');
  284. // }
  285. // });
  286. // };
  287. //
  288. // handleVerticalSubIItemBorder();
  289. /* Vertical SubItem border change function Close*/
  290. /* Vertical Item border Style change function Start*/
  291. function handleverticalboderstyle() {
  292. $('#vertical-border-style').val('solid').on('change', function (get_value) {
  293. get_value = $(this).val();
  294. $('.pcoded-navbar .pcoded-item').attr('item-border-style', get_value);
  295. });
  296. };
  297. handleverticalboderstyle();
  298. /* Vertical Item border Style change function Close*/
  299. /* Vertical Dropdown Icon change function Start*/
  300. function handleVerticalDropDownIconStyle() {
  301. $('#vertical-dropdown-icon').val('style1').on('change', function (get_value) {
  302. get_value = $(this).val();
  303. $('.pcoded-navbar .pcoded-hasmenu').attr('dropdown-icon', get_value);
  304. });
  305. };
  306. handleVerticalDropDownIconStyle();
  307. /* Vertical Dropdown Icon change function Close*/
  308. /* Vertical SubItem Icon change function Start*/
  309. function handleVerticalSubMenuItemIconStyle() {
  310. $('#vertical-subitem-icon').val('style5').on('change', function (get_value) {
  311. get_value = $(this).val();
  312. $('.pcoded-navbar .pcoded-hasmenu').attr('subitem-icon', get_value);
  313. });
  314. };
  315. handleVerticalSubMenuItemIconStyle();
  316. /* Vertical SubItem Icon change function Close*/
  317. /* Vertical Navbar Position change function Start*/
  318. function handlesidebarposition() {
  319. $('#sidebar-position').change(function () {
  320. if ($(this).is(":checked")) {
  321. $('.pcoded-navbar').attr("pcoded-navbar-position", 'fixed');
  322. $('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'fixed');
  323. } else {
  324. $('.pcoded-navbar').attr("pcoded-navbar-position", 'absolute');
  325. $('.pcoded-header .pcoded-left-header').attr("pcoded-lheader-position", 'relative');
  326. }
  327. });
  328. };
  329. handlesidebarposition();
  330. /* Vertical Navbar Position change function Close*/
  331. /* Vertical Header Position change function Start*/
  332. function handleheaderposition() {
  333. $('#header-position').change(function () {
  334. if ($(this).is(":checked")) {
  335. $('.pcoded-header').attr("pcoded-header-position", 'fixed');
  336. $('.pcoded-navbar').attr("pcoded-header-position", 'fixed');
  337. $('.pcoded-main-container').css('margin-top', $(".pcoded-header").outerHeight());
  338. } else {
  339. $('.pcoded-header').attr("pcoded-header-position", 'relative');
  340. $('.pcoded-navbar').attr("pcoded-header-position", 'relative');
  341. $('.pcoded-main-container').css('margin-top', '0px');
  342. }
  343. });
  344. };
  345. handleheaderposition();
  346. /* Vertical Header Position change function Close*/
  347. /* collapseable Left Header Change Function Start here*/
  348. function handlecollapseLeftHeader() {
  349. $('#collapse-left-header').change(function () {
  350. if ($(this).is(":checked")) {
  351. $('.pcoded-header, .pcoded ').removeClass('iscollapsed');
  352. $('.pcoded-header, .pcoded').addClass('nocollapsed');
  353. } else {
  354. $('.pcoded-header, .pcoded').addClass('iscollapsed');
  355. $('.pcoded-header, .pcoded').removeClass('nocollapsed');
  356. }
  357. });
  358. };
  359. handlecollapseLeftHeader();
  360. /* collapseable Left Header Change Function Close here*/
  361. });
  362. function handlemenutype(get_value) {
  363. $('.pcoded').attr('nav-type', get_value);
  364. };
  365. handlemenutype("st2");