Kaydet (Commit) a700fafe authored tarafından Ali GOREN's avatar Ali GOREN Kaydeden (comit) GitHub

Create BiTik.js

üst d12a0157
class BiTik {
constructor(el) {
this.el = el
return this;
}
Buyut(data) {
let el = document.querySelector(this.el);
let tik = (data.tik) ? data.tik : 1;
let px = (data.px) ? data.px : 1.5;
let elHeight = el.offsetHeight;
let elWidth = el.offsetWidth;
el.style.height = elHeight + (tik * px) + "px";
el.style.width = elWidth + (tik * px) + "px";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment