diff --git a/demo/index.html b/demo/index.html index 6391eb5..57b5de4 100644 --- a/demo/index.html +++ b/demo/index.html @@ -20,7 +20,7 @@
`; - + this.el.innerHTML = headerTemplate + this.el.innerHTML; this.header = this.el.querySelector('.modal-header'); }, - - _createDragArea: function() { + + _createDragArea: function () { let dragArea = document.createElement("div"); dragArea.setAttribute("drag-handle", ""); - + let topResize = document.createElement("div"); topResize.setAttribute("resize", "top"); @@ -177,17 +177,17 @@ Modal.prototype = { this.el.appendChild(bottomResize); }, - _setModalSize: function() { + _setModalSize: function () { let bound = this.el.getBoundingClientRect(); let parentBound = this.el.parentNode.getBoundingClientRect(); this.width = bound.width; this.height = bound.height; - + this.el.style.left = bound.left - parentBound.left; this.el.style.top = bound.top - parentBound.top; }, - togglePark: function() { + togglePark: function () { if (this.isParked) { this.isParked = false; this.el.classList.remove("modal-parked"); @@ -196,7 +196,7 @@ Modal.prototype = { this.el.classList.add("modal-parked") } } - + } export default Modal; \ No newline at end of file