You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

354 lines
17 KiB

6 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. "use strict";
  2. $(document).ready(function() {
  3. var $window = $(window);
  4. //add id to main menu for mobile menu start
  5. var getBody = $("body");
  6. var bodyClass = getBody[0].className;
  7. $(".main-menu").attr('id', bodyClass);
  8. //add id to main menu for mobile menu end
  9. // card js start
  10. $(".card-header-right .close-card").on('click', function() {
  11. var $this = $(this);
  12. $this.parents('.card').animate({
  13. 'opacity': '0',
  14. '-webkit-transform': 'scale3d(.3, .3, .3)',
  15. 'transform': 'scale3d(.3, .3, .3)'
  16. });
  17. setTimeout(function() {
  18. $this.parents('.card').remove();
  19. }, 800);
  20. });
  21. $(".card-header-right .minimize-card").on('click', function() {
  22. var $this = $(this);
  23. var port = $($this.parents('.card'));
  24. var card = $(port).children('.card-block').slideToggle();
  25. $(this).toggleClass("icon-minus").fadeIn('slow');
  26. $(this).toggleClass("icon-plus").fadeIn('slow');
  27. });
  28. $(".card-header-right .full-card").on('click', function() {
  29. var $this = $(this);
  30. var port = $($this.parents('.card'));
  31. port.toggleClass("full-card");
  32. $(this).toggleClass("icon-maximize");
  33. $(this).toggleClass("icon-minimize");
  34. });
  35. $("#more-details").on('click', function() {
  36. $(".more-details").slideToggle(500);
  37. });
  38. $(".mobile-options").on('click', function() {
  39. $(".navbar-container .nav-right").slideToggle('slow');
  40. });
  41. // card js end
  42. $.mCustomScrollbar.defaults.axis = "yx";
  43. $("#styleSelector .style-cont").slimScroll({
  44. setTop: "10px",
  45. height:"calc(100vh - 440px)",
  46. });
  47. $(".main-menu").mCustomScrollbar({
  48. setTop: "10px",
  49. setHeight: "calc(100% - 80px)",
  50. });
  51. /*chatbar js start*/
  52. /*chat box scroll*/
  53. var a = $(window).height() - 80;
  54. $(".main-friend-list").slimScroll({
  55. height: a,
  56. allowPageScroll: false,
  57. wheelStep: 5,
  58. color: '#1b8bf9'
  59. });
  60. // search
  61. $("#search-friends").on("keyup", function() {
  62. var g = $(this).val().toLowerCase();
  63. $(".userlist-box .media-body .chat-header").each(function() {
  64. var s = $(this).text().toLowerCase();
  65. $(this).closest('.userlist-box')[s.indexOf(g) !== -1 ? 'show' : 'hide']();
  66. });
  67. });
  68. // open chat box
  69. $('.displayChatbox').on('click', function() {
  70. var my_val = $('.pcoded').attr('vertical-placement');
  71. if (my_val == 'right') {
  72. var options = {
  73. direction: 'left'
  74. };
  75. } else {
  76. var options = {
  77. direction: 'right'
  78. };
  79. }
  80. $('.showChat').toggle('slide', options, 500);
  81. });
  82. //open friend chat
  83. $('.userlist-box').on('click', function() {
  84. var my_val = $('.pcoded').attr('vertical-placement');
  85. if (my_val == 'right') {
  86. var options = {
  87. direction: 'left'
  88. };
  89. } else {
  90. var options = {
  91. direction: 'right'
  92. };
  93. }
  94. $('.showChat_inner').toggle('slide', options, 500);
  95. });
  96. //back to main chatbar
  97. $('.back_chatBox').on('click', function() {
  98. var my_val = $('.pcoded').attr('vertical-placement');
  99. if (my_val == 'right') {
  100. var options = {
  101. direction: 'left'
  102. };
  103. } else {
  104. var options = {
  105. direction: 'right'
  106. };
  107. }
  108. $('.showChat_inner').toggle('slide', options, 500);
  109. $('.showChat').css('display', 'block');
  110. });
  111. // /*chatbar js end*/
  112. $(".search-btn").on('click', function() {
  113. $(".main-search").addClass('open');
  114. $('.main-search .form-control').animate({
  115. 'width': '200px',
  116. });
  117. });
  118. $(".search-close").on('click', function() {
  119. $('.main-search .form-control').animate({
  120. 'width': '0',
  121. });
  122. setTimeout(function() {
  123. $(".main-search").removeClass('open');
  124. }, 300);
  125. });
  126. $('#mobile-collapse i').addClass('icon-toggle-right');
  127. $('#mobile-collapse').on('click', function() {
  128. $('#mobile-collapse i').toggleClass('icon-toggle-right');
  129. $('#mobile-collapse i').toggleClass('icon-toggle-left');
  130. });
  131. });
  132. $(document).ready(function() {
  133. $(function() {
  134. $('[data-toggle="tooltip"]').tooltip()
  135. })
  136. $('.theme-loader').fadeOut('slow', function() {
  137. $(this).remove();
  138. });
  139. });
  140. // toggle full screen
  141. function toggleFullScreen() {
  142. var a = $(window).height() - 10;
  143. if (!document.fullscreenElement && // alternative standard method
  144. !document.mozFullScreenElement && !document.webkitFullscreenElement) { // current working methods
  145. if (document.documentElement.requestFullscreen) {
  146. document.documentElement.requestFullscreen();
  147. } else if (document.documentElement.mozRequestFullScreen) {
  148. document.documentElement.mozRequestFullScreen();
  149. } else if (document.documentElement.webkitRequestFullscreen) {
  150. document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  151. }
  152. } else {
  153. if (document.cancelFullScreen) {
  154. document.cancelFullScreen();
  155. } else if (document.mozCancelFullScreen) {
  156. document.mozCancelFullScreen();
  157. } else if (document.webkitCancelFullScreen) {
  158. document.webkitCancelFullScreen();
  159. }
  160. }
  161. $('.full-screen').toggleClass('icon-maximize');
  162. $('.full-screen').toggleClass('icon-minimize');
  163. }
  164. /* --------------------------------------------------------
  165. Color picker - demo only
  166. -------------------------------------------------------- */
  167. $('#styleSelector').append('' +
  168. '<div class="selector-toggle">' +
  169. '<a href="javascript:void(0)"></a>' +
  170. '</div>' +
  171. '<ul>' +
  172. '<li>' +
  173. '<p class="selector-title main-title st-main-title"><b>Adminty </b>Customizer</p>' +
  174. '<span class="text-muted">Live customizer with tons of options</span>'+
  175. '</li>' +
  176. '<li>' +
  177. '<p class="selector-title">Main layouts</p>' +
  178. '</li>' +
  179. '<li>' +
  180. '<div class="theme-color">' +
  181. '<a href="#" class="navbar-theme" navbar-theme="themelight1"><span class="head"></span><span class="cont"></span></a>' +
  182. '<a href="#" class="navbar-theme" navbar-theme="theme1"><span class="head"></span><span class="cont"></span></a>' +
  183. '</div>' +
  184. '</li>' +
  185. '</ul>' +
  186. '<div class="style-cont m-t-10">' +
  187. '<ul class="nav nav-tabs tabs" role="tablist">' +
  188. '<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#sel-layout" role="tab">Layouts</a></li>' +
  189. '<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#sel-sidebar-setting" role="tab">Sidebar Settings</a></li>' +
  190. '</ul>' +
  191. '<div class="tab-content tabs">' +
  192. '<div class="tab-pane active" id="sel-layout" role="tabpanel">' +
  193. '<ul>' +
  194. '<li class="theme-option">' +
  195. '<div class="checkbox-fade fade-in-primary">' +
  196. '<label>' +
  197. '<input type="checkbox" value="false" id="sidebar-position" name="sidebar-position" checked>' +
  198. '<span class="cr"><i class="cr-icon feather icon-check txt-success f-w-600"></i></span>' +
  199. '<span>Fixed Sidebar Position</span>' +
  200. '</label>' +
  201. '</div>' +
  202. '</li>' +
  203. '<li class="theme-option">' +
  204. '<div class="checkbox-fade fade-in-primary">' +
  205. '<label>' +
  206. '<input type="checkbox" value="false" id="header-position" name="header-position" checked>' +
  207. '<span class="cr"><i class="cr-icon feather icon-check txt-success f-w-600"></i></span>' +
  208. '<span>Fixed Header Position</span>' +
  209. '</label>' +
  210. '</div>' +
  211. '</li>' +
  212. '</ul>' +
  213. '</div>' +
  214. '<div class="tab-pane" id="sel-sidebar-setting" role="tabpanel">' +
  215. '<ul>' +
  216. '<li class="theme-option">' +
  217. '<p class="sub-title drp-title">Menu Type</p>' +
  218. '<div class="form-radio" id="menu-effect">'+
  219. '<div class="radio radio-inverse radio-inline" data-toggle="tooltip" title="simple icon">'+
  220. '<label>'+
  221. '<input type="radio" name="radio" value="st6" onclick="handlemenutype(this.value)" checked="true">'+
  222. '<i class="helper"></i><span class="micon st6"><i class="feather icon-command"></i></span>'+
  223. '</label>'+
  224. '</div>'+
  225. '<div class="radio radio-primary radio-inline" data-toggle="tooltip" title="color icon">'+
  226. '<label>'+
  227. '<input type="radio" name="radio" value="st5" onclick="handlemenutype(this.value)">'+
  228. '<i class="helper"></i><span class="micon st5"><i class="feather icon-command"></i></span>'+
  229. '</label>'+
  230. '</div>'+
  231. '</div>'+
  232. '</li>' +
  233. '<li class="theme-option">' +
  234. '<p class="sub-title drp-title">SideBar Effect</p>' +
  235. '<select id="vertical-menu-effect" class="form-control minimal">' +
  236. '<option name="vertical-menu-effect" value="shrink">shrink</option>' +
  237. '<option name="vertical-menu-effect" value="overlay">overlay</option>' +
  238. '<option name="vertical-menu-effect" value="push">Push</option>' +
  239. '</select>' +
  240. '</li>' +
  241. '<li class="theme-option">' +
  242. '<p class="sub-title drp-title">Hide/Show Border</p>' +
  243. '<select id="vertical-border-style" class="form-control minimal">' +
  244. '<option name="vertical-border-style" value="solid">Style 1</option>' +
  245. '<option name="vertical-border-style" value="dotted">Style 2</option>' +
  246. '<option name="vertical-border-style" value="dashed">Style 3</option>' +
  247. '<option name="vertical-border-style" value="none">No Border</option>' +
  248. '</select>' +
  249. '</li>' +
  250. '<li class="theme-option">' +
  251. '<p class="sub-title drp-title">Drop-Down Icon</p>' +
  252. '<select id="vertical-dropdown-icon" class="form-control minimal">' +
  253. '<option name="vertical-dropdown-icon" value="style1">Style 1</option>' +
  254. '<option name="vertical-dropdown-icon" value="style2">style 2</option>' +
  255. '<option name="vertical-dropdown-icon" value="style3">style 3</option>' +
  256. '</select>' +
  257. '</li>' +
  258. '<li class="theme-option">' +
  259. '<p class="sub-title drp-title">Sub Menu Drop-down Icon</p>' +
  260. '<select id="vertical-subitem-icon" class="form-control minimal">' +
  261. '<option name="vertical-subitem-icon" value="style1">Style 1</option>' +
  262. '<option name="vertical-subitem-icon" value="style2">style 2</option>' +
  263. '<option name="vertical-subitem-icon" value="style3">style 3</option>' +
  264. '<option name="vertical-subitem-icon" value="style4">style 4</option>' +
  265. '<option name="vertical-subitem-icon" value="style5">style 5</option>' +
  266. '<option name="vertical-subitem-icon" value="style6">style 6</option>' +
  267. '</select>' +
  268. '</li>' +
  269. '</ul>' +
  270. '</div>' +
  271. '<ul>' +
  272. '<li>' +
  273. '<p class="selector-title">Header Brand color</p>' +
  274. '</li>' +
  275. '<li class="theme-option">' +
  276. '<div class="theme-color">' +
  277. '<a href="#" class="logo-theme" logo-theme="theme1"><span class="head"></span><span class="cont"></span></a>' +
  278. '<a href="#" class="logo-theme" logo-theme="theme2"><span class="head"></span><span class="cont"></span></a>' +
  279. '<a href="#" class="logo-theme" logo-theme="theme3"><span class="head"></span><span class="cont"></span></a>' +
  280. '<a href="#" class="logo-theme" logo-theme="theme4"><span class="head"></span><span class="cont"></span></a>' +
  281. '<a href="#" class="logo-theme" logo-theme="theme5"><span class="head"></span><span class="cont"></span></a>' +
  282. '</div>' +
  283. '</li>' +
  284. '<li>' +
  285. '<p class="selector-title">Header color</p>' +
  286. '</li>' +
  287. '<li class="theme-option">' +
  288. '<div class="theme-color">' +
  289. '<a href="#" class="header-theme" header-theme="theme1"><span class="head"></span><span class="cont"></span></a>' +
  290. '<a href="#" class="header-theme" header-theme="theme2"><span class="head"></span><span class="cont"></span></a>' +
  291. '<a href="#" class="header-theme" header-theme="theme3"><span class="head"></span><span class="cont"></span></a>' +
  292. '<a href="#" class="header-theme" header-theme="theme4"><span class="head"></span><span class="cont"></span></a>' +
  293. '<a href="#" class="header-theme" header-theme="theme5"><span class="head"></span><span class="cont"></span></a>' +
  294. '<a href="#" class="header-theme" header-theme="theme6"><span class="head"></span><span class="cont"></span></a>' +
  295. '</div>' +
  296. '</li>' +
  297. '<li>' +
  298. '<p class="selector-title">Active link color</p>' +
  299. '</li>' +
  300. '<li class="theme-option">' +
  301. '<div class="theme-color">' +
  302. '<a href="#" class="active-item-theme small" active-item-theme="theme1">&nbsp;</a>' +
  303. '<a href="#" class="active-item-theme small" active-item-theme="theme2">&nbsp;</a>' +
  304. '<a href="#" class="active-item-theme small" active-item-theme="theme3">&nbsp;</a>' +
  305. '<a href="#" class="active-item-theme small" active-item-theme="theme4">&nbsp;</a>' +
  306. '<a href="#" class="active-item-theme small" active-item-theme="theme5">&nbsp;</a>' +
  307. '<a href="#" class="active-item-theme small" active-item-theme="theme6">&nbsp;</a>' +
  308. '<a href="#" class="active-item-theme small" active-item-theme="theme7">&nbsp;</a>' +
  309. '<a href="#" class="active-item-theme small" active-item-theme="theme8">&nbsp;</a>' +
  310. '<a href="#" class="active-item-theme small" active-item-theme="theme9">&nbsp;</a>' +
  311. '<a href="#" class="active-item-theme small" active-item-theme="theme10">&nbsp;</a>' +
  312. '<a href="#" class="active-item-theme small" active-item-theme="theme11">&nbsp;</a>' +
  313. '<a href="#" class="active-item-theme small" active-item-theme="theme12">&nbsp;</a>' +
  314. '</div>' +
  315. '</li>' +
  316. '<li>' +
  317. '<p class="selector-title">Menu Caption Color</p>' +
  318. '</li>' +
  319. '<li class="theme-option">' +
  320. '<div class="theme-color">' +
  321. '<a href="#" class="leftheader-theme small" lheader-theme="theme1">&nbsp;</a>' +
  322. '<a href="#" class="leftheader-theme small" lheader-theme="theme2">&nbsp;</a>' +
  323. '<a href="#" class="leftheader-theme small" lheader-theme="theme3">&nbsp;</a>' +
  324. '<a href="#" class="leftheader-theme small" lheader-theme="theme4">&nbsp;</a>' +
  325. '<a href="#" class="leftheader-theme small" lheader-theme="theme5">&nbsp;</a>' +
  326. '<a href="#" class="leftheader-theme small" lheader-theme="theme6">&nbsp;</a>' +
  327. '</div>' +
  328. '</li>' +
  329. '</ul>' +
  330. '</div>' +
  331. '</div>' +
  332. '<ul>'+
  333. '<li>' +
  334. '<a href="http://html.codedthemes.com/Adminty/doc" target="_blank" class="btn btn-primary btn-block m-r-15 m-t-5 m-b-10">Online Documentation</a>' +
  335. '</li>' +
  336. '<li class="text-center">' +
  337. '<span class="text-center f-18 m-t-15 m-b-15 d-block">Thank you for sharing !</span>' +
  338. '<a href="#!" target="_blank" class="btn btn-facebook soc-icon m-b-20"><i class="feather icon-facebook"></i></a>' +
  339. '<a href="#!" target="_blank" class="btn btn-twitter soc-icon m-l-20 m-b-20"><i class="feather icon-twitter"></i></a>' +
  340. '</li>' +
  341. '</ul>'+
  342. '');