Hi Guys, I am trying to select a specific element in html file, unluckily, I can not, could someone help me out, I work on this issue almost entire day. thanks
window.addEventListener(‘load’,function () {
console.log(“ready!”);
document.getElementsByClassName(‘bk-plot-layout bk-layout-fixed mainplothahahahahahhahahahahaha’)[0]
.getElementsByClassName(‘bk-plot-wrapper’)[0]
.getElementsByClassName(‘bk-canvas-wrapper’)[0]
.getElementsByClassName(‘bk-canvas’)[0].style.width = 200
var mainplot = document.getElementsByClassName(‘bk-plot-layout bk-layout-fixed mainplothahahahahahhahahahahaha’)[0]
if (mainplot) {
console.log("@@@@@@@@@@@@@@@@@@@")
}
})
``