cSvn CGI Script

cSvn CGI Script – is a web frontend for Subversion™ Repositories

115 Commits   0 Branches   5 Tags   |
Index: csvncgi/.csvn/js/csvn.js
===================================================================
--- csvncgi/.csvn/js/csvn.js	(revision 28)
+++ csvncgi/.csvn/js/csvn.js	(revision 29)
@@ -198,6 +198,11 @@
   var sidebar = document.querySelector('.csvn-popup-menu-bars');
   sidebar.classList.add("visible");
 
+  /* change icon bars->times */
+  var icon = document.querySelector('.csvn-main-menu-bars .las');
+  icon.classList.remove("la-bars");
+  icon.classList.add("la-times");
+
   var sb = document.querySelector('.csvn-main-menu-bars');
   sb.onclick = hide_sidebar;
 
@@ -210,6 +215,11 @@
   var sidebar = document.querySelector('.csvn-popup-menu-bars');
   sidebar.classList.remove("visible");
 
+  /* change icon times->bars */
+  var icon = document.querySelector('.csvn-main-menu-bars .las');
+  icon.classList.remove("la-times");
+  icon.classList.add("la-bars");
+
   var sb = document.querySelector('.csvn-main-menu-bars');
   sb.onclick = show_sidebar;
 
@@ -236,6 +246,11 @@
   window.addEventListener('resize', function(event) {
     var width = window.innerWidth;
     if( width > 768 ) {
+      /* change icon times->bars */
+      var icon = document.querySelector('.csvn-main-menu-bars .las');
+      icon.classList.remove("la-times");
+      icon.classList.add("la-bars");
+
       /* hide main popup menu */
       var sidebar = document.querySelector('.csvn-popup-menu-bars');
       sidebar.classList.remove("visible");