ydshieh HF staff commited on
Commit
54f954e
·
verified ·
1 Parent(s): 5af4e8b

Update split.js

Browse files
Files changed (1) hide show
  1. split.js +3 -3
split.js CHANGED
@@ -82,7 +82,7 @@ function dragend() {
82
  dragging = false;
83
  }
84
 
85
- if (window.addEventListener && document.getElementById("dragbar") != null) {
86
  console.log(document.getElementById("dragbar"));
87
  console.log("****************")
88
  document.getElementById("dragbar").addEventListener("mousedown", function(e) {dragstart(e);});
@@ -105,9 +105,9 @@ function w3_getStyleValue(elmnt,style) {
105
  console.log(document.getElementById("container"));
106
  console.log("***");
107
 
108
- if (window.addEventListener && document.getElementById("container") == null) {
109
  console.log(document.getElementById("container"));
110
  console.log("*");
111
  fixDragBtn();
112
- }
113
 
 
82
  dragging = false;
83
  }
84
 
85
+ if (window.addEventListener) {
86
  console.log(document.getElementById("dragbar"));
87
  console.log("****************")
88
  document.getElementById("dragbar").addEventListener("mousedown", function(e) {dragstart(e);});
 
105
  console.log(document.getElementById("container"));
106
  console.log("***");
107
 
108
+
109
  console.log(document.getElementById("container"));
110
  console.log("*");
111
  fixDragBtn();
112
+
113