Pavel 7 years ago
parent
commit
08f8d6a5bb
2 changed files with 3 additions and 0 deletions
  1. 1 0
      js12/index.html
  2. 2 0
      js12/main.js

+ 1 - 0
js12/index.html

@@ -86,6 +86,7 @@
 			visibility: hidden;
 			border-radius: 20px;
 			background-color: #fff;
+			width: 40%;
 		}
 		
 	</style>

+ 2 - 0
js12/main.js

@@ -25,9 +25,11 @@ var cansvasIsVisible = false;
 canvasIcon.onclick = function(){
 	if(!cansvasIsVisible){
 		canvasBar.style.visibility = "visible";
+		cansvasIsVisible = true;
 	}
 	else{
 		canvasBar.style.visibility = "hidden";
+		cansvasIsVisible = false;
 	}
 	
 }