選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

htmlFooter.tpl 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <!--================================================== -->
  2. <!-- PACE LOADER - turn this on if you want ajax loading to show (caution: uses lots of memory on iDevices)-->
  3. <script data-pace-options='{ "restartOnRequestAfter": true }' src="lib/SmartAdmin/js/plugin/pace/pace.min.js"></script>
  4. <!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
  5. <script src="lib/SmartAdmin/js/libs/jquery-2.1.1.min.js"></script>
  6. <script src="lib/SmartAdmin/js/libs/jquery-ui-1.10.3.min.js"></script>
  7. <!-- IMPORTANT: APP CONFIG -->
  8. <script src="lib/SmartAdmin/js/app.config.js"></script>
  9. <!-- JS TOUCH : include this plugin for mobile drag / drop touch events-->
  10. <script src="lib/SmartAdmin/js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script>
  11. <!-- BOOTSTRAP JS -->
  12. <script src="lib/SmartAdmin/js/bootstrap/bootstrap.min.js"></script>
  13. <!-- CUSTOM NOTIFICATION -->
  14. <script src="lib/SmartAdmin/js/notification/SmartNotification.min.js"></script>
  15. <!-- JARVIS WIDGETS -->
  16. <script src="lib/SmartAdmin/js/smartwidgets/jarvis.widget.min.js"></script>
  17. <!-- EASY PIE CHARTS -->
  18. <script src="lib/SmartAdmin/js/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js"></script>
  19. <!-- SPARKLINES -->
  20. <script src="lib/SmartAdmin/js/plugin/sparkline/jquery.sparkline.min.js"></script>
  21. <!-- JQUERY VALIDATE -->
  22. <script src="lib/SmartAdmin/js/plugin/jquery-validate/jquery.validate.min.js"></script>
  23. <!-- JQUERY MASKED INPUT -->
  24. <script src="lib/SmartAdmin/js/plugin/masked-input/jquery.maskedinput.min.js"></script>
  25. <!-- JQUERY SELECT2 INPUT -->
  26. <script src="lib/SmartAdmin/js/plugin/select2/select2.min.js"></script>
  27. <!-- JQUERY UI + Bootstrap Slider -->
  28. <script src="lib/SmartAdmin/js/plugin/bootstrap-slider/bootstrap-slider.min.js"></script>
  29. <!-- browser msie issue fix -->
  30. <script src="lib/SmartAdmin/js/plugin/msie-fix/jquery.mb.browser.min.js"></script>
  31. <!-- FastClick: For mobile devices -->
  32. <script src="lib/SmartAdmin/js/plugin/fastclick/fastclick.min.js"></script>
  33. <!--[if IE 8]>
  34. <h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
  35. <![endif]-->
  36. <!-- MAIN APP JS FILE -->
  37. <script src="lib/SmartAdmin/js/app.min.js"></script>
  38. <!-- ENHANCEMENT PLUGINS : NOT A REQUIREMENT -->
  39. <!-- Voice command : plugin -->
  40. <script src="lib/SmartAdmin/js/speech/voicecommand.min.js"></script>
  41. <!-- SmartChat UI : plugin -->
  42. <script src="lib/SmartAdmin/js/smart-chat-ui/smart.chat.ui.min.js"></script>
  43. <script src="lib/SmartAdmin/js/smart-chat-ui/smart.chat.manager.min.js"></script>
  44. <!-- PAGE RELATED PLUGIN(S) -->
  45. <!-- Flot Chart Plugin: Flot Engine, Flot Resizer, Flot Tooltip -->
  46. <script src="lib/SmartAdmin/js/plugin/flot/jquery.flot.cust.min.js"></script>
  47. <script src="lib/SmartAdmin/js/plugin/flot/jquery.flot.resize.min.js"></script>
  48. <script src="lib/SmartAdmin/js/plugin/flot/jquery.flot.time.min.js"></script>
  49. <script src="lib/SmartAdmin/js/plugin/flot/jquery.flot.tooltip.min.js"></script>
  50. <!-- Vector Maps Plugin: Vectormap engine, Vectormap language -->
  51. <script src="lib/SmartAdmin/js/plugin/vectormap/jquery-jvectormap-1.2.2.min.js"></script>
  52. <script src="lib/SmartAdmin/js/plugin/vectormap/jquery-jvectormap-world-mill-en.js"></script>
  53. <!-- Full Calendar -->
  54. <script src="lib/SmartAdmin/js/plugin/moment/moment.min.js"></script>
  55. <script src="lib/SmartAdmin/js/plugin/fullcalendar/jquery.fullcalendar.min.js"></script>
  56. <script>
  57. {literal}
  58. $(document).ready(function() {
  59. // DO NOT REMOVE : GLOBAL FUNCTIONS!
  60. pageSetUp();
  61. /*
  62. * PAGE RELATED SCRIPTS
  63. */
  64. $(".js-status-update a").click(function() {
  65. var selText = $(this).text();
  66. var $this = $(this);
  67. $this.parents('.btn-group').find('.dropdown-toggle').html(selText + ' <span class="caret"></span>');
  68. $this.parents('.dropdown-menu').find('li').removeClass('active');
  69. $this.parent().addClass('active');
  70. });
  71. /*
  72. * TODO: add a way to add more todo's to list
  73. */
  74. // initialize sortable
  75. $(function() {
  76. $("#sortable1, #sortable2").sortable({
  77. handle : '.handle',
  78. connectWith : ".todo",
  79. update : countTasks
  80. }).disableSelection();
  81. });
  82. // check and uncheck
  83. $('.todo .checkbox > input[type="checkbox"]').click(function() {
  84. var $this = $(this).parent().parent().parent();
  85. if ($(this).prop('checked')) {
  86. $this.addClass("complete");
  87. // remove this if you want to undo a check list once checked
  88. //$(this).attr("disabled", true);
  89. $(this).parent().hide();
  90. // once clicked - add class, copy to memory then remove and add to sortable3
  91. $this.slideUp(500, function() {
  92. $this.clone().prependTo("#sortable3").effect("highlight", {}, 800);
  93. $this.remove();
  94. countTasks();
  95. });
  96. } else {
  97. // insert undo code here...
  98. }
  99. })
  100. // count tasks
  101. function countTasks() {
  102. $('.todo-group-title').each(function() {
  103. var $this = $(this);
  104. $this.find(".num-of-tasks").text($this.next().find("li").size());
  105. });
  106. }
  107. /* hide default buttons */
  108. $('.fc-toolbar .fc-right, .fc-toolbar .fc-center').hide();
  109. // calendar prev
  110. $('#calendar-buttons #btn-prev').click(function() {
  111. $('.fc-prev-button').click();
  112. return false;
  113. });
  114. // calendar next
  115. $('#calendar-buttons #btn-next').click(function() {
  116. $('.fc-next-button').click();
  117. return false;
  118. });
  119. // calendar today
  120. $('#calendar-buttons #btn-today').click(function() {
  121. $('.fc-button-today').click();
  122. return false;
  123. });
  124. // calendar month
  125. $('#mt').click(function() {
  126. $('#calendar').fullCalendar('changeView', 'month');
  127. });
  128. // calendar agenda week
  129. $('#ag').click(function() {
  130. $('#calendar').fullCalendar('changeView', 'agendaWeek');
  131. });
  132. // calendar agenda day
  133. $('#td').click(function() {
  134. $('#calendar').fullCalendar('changeView', 'agendaDay');
  135. });
  136. /*
  137. * CHAT
  138. */
  139. $.filter_input = $('#filter-chat-list');
  140. $.chat_users_container = $('#chat-container > .chat-list-body')
  141. $.chat_users = $('#chat-users')
  142. $.chat_list_btn = $('#chat-container > .chat-list-open-close');
  143. $.chat_body = $('#chat-body');
  144. /*
  145. * LIST FILTER (CHAT)
  146. */
  147. // custom css expression for a case-insensitive contains()
  148. jQuery.expr[':'].Contains = function(a, i, m) {
  149. return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
  150. };
  151. function listFilter(list) {// header is any element, list is an unordered list
  152. // create and add the filter form to the header
  153. $.filter_input.change(function() {
  154. var filter = $(this).val();
  155. if (filter) {
  156. // this finds all links in a list that contain the input,
  157. // and hide the ones not containing the input while showing the ones that do
  158. $.chat_users.find("a:not(:Contains(" + filter + "))").parent().slideUp();
  159. $.chat_users.find("a:Contains(" + filter + ")").parent().slideDown();
  160. } else {
  161. $.chat_users.find("li").slideDown();
  162. }
  163. return false;
  164. }).keyup(function() {
  165. // fire the above change event after every letter
  166. $(this).change();
  167. });
  168. }
  169. // on dom ready
  170. listFilter($.chat_users);
  171. // open chat list
  172. $.chat_list_btn.click(function() {
  173. $(this).parent('#chat-container').toggleClass('open');
  174. })
  175. $.chat_body.animate({
  176. scrollTop : $.chat_body[0].scrollHeight
  177. }, 500);
  178. });
  179. {/literal}
  180. </script>
  181. </body>
  182. </html>