SattyaP / magang_smk5

0 stars 0 forks source link

Da #4

Closed CalvinArdiansyah18 closed 1 week ago

CalvinArdiansyah18 commented 1 month ago

const { ipcRenderer } = require('electron'); const start = document.getElementById('start') const stop = document.getElementById('stop') const files = document.getElementById('files')

document.addEventListener('change', function () { const files = document.getElementById('files').files[0]?.path; if (files == null || files == "") { start.setAttribute('disabled', true); } else if (files != "") { start.removeAttribute('disabled'); } })

start.addEventListener('click', () => { const data = { files: files.files[0]?.path } ipcRenderer.send('start', files); });

stop.addEventListener('click', () => { if (confirm("Yakin a") == true) { ipcRenderer.send('stop'); } });

preload e gini a mas?

SattyaP commented 1 month ago

@CalvinArdiansyah18 Udah solved kah ? sorry baru liat

Kamu kalo bingung tanya langsung aja jangan diem ya , kuncinya tanya kalo diem kamu tersesad 🗿

CalvinArdiansyah18 commented 1 month ago

@CalvinArdiansyah18 Udah solved kah ? sorry baru liat

Kamu kalo bingung tanya langsung aja jangan diem ya , kuncinya tanya kalo diem kamu tersesad 🗿

Sudah solve mas tinggal seng tabel tadi

CalvinArdiansyah18 commented 1 month ago

masih error koyok tadi mas yang tabel, gimana yo?

SattyaP commented 1 month ago

Besok aja

CalvinArdiansyah18 commented 1 month ago

const currentItems = items.slice(i, i + 20).join(''); await page.type('#dapa_link', currentItems);