Pavel 7 年之前
父節點
當前提交
08f8d6a5bb
共有 2 個文件被更改,包括 3 次插入0 次删除
  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;
 	}
 	
 }