Update split.js
Browse files
split.js
CHANGED
@@ -27,6 +27,13 @@ function fixDragBtn() {
|
|
27 |
buttonwidth = Number(w3_getStyleValue(document.getElementById("dragbar"), "width").replace("px", ""));
|
28 |
leftareaheight = w3_getStyleValue(document.getElementById("left-area-wrapper"), "height");
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
dragleft = leftareasize + leftpadding + (leftpadding / 2) - (buttonwidth / 2);
|
31 |
|
32 |
document.getElementById("dragbar").style.width = "5px";
|
@@ -48,6 +55,10 @@ function dragmove(e) {
|
|
48 |
|
49 |
document.getElementById("shield").style.display = "block";
|
50 |
|
|
|
|
|
|
|
|
|
51 |
var percentage = (e.pageX / window.innerWidth) * 100;
|
52 |
if (percentage > 5 && percentage < 98) {
|
53 |
var mainPercentage = 100-percentage;
|
|
|
27 |
buttonwidth = Number(w3_getStyleValue(document.getElementById("dragbar"), "width").replace("px", ""));
|
28 |
leftareaheight = w3_getStyleValue(document.getElementById("left-area-wrapper"), "height");
|
29 |
|
30 |
+
console.log(containertop)
|
31 |
+
console.log(leftareasize)
|
32 |
+
console.log(leftpadding)
|
33 |
+
console.log(buttonwidth)
|
34 |
+
console.log(leftareaheight)
|
35 |
+
console.log("----------------------------------")
|
36 |
+
|
37 |
dragleft = leftareasize + leftpadding + (leftpadding / 2) - (buttonwidth / 2);
|
38 |
|
39 |
document.getElementById("dragbar").style.width = "5px";
|
|
|
55 |
|
56 |
document.getElementById("shield").style.display = "block";
|
57 |
|
58 |
+
console.log(e)
|
59 |
+
console.log(window)
|
60 |
+
console.log("----------------------------------")
|
61 |
+
|
62 |
var percentage = (e.pageX / window.innerWidth) * 100;
|
63 |
if (percentage > 5 && percentage < 98) {
|
64 |
var mainPercentage = 100-percentage;
|