Added a GPU info page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -4,6 +4,10 @@ window.onload = () ->
|
||||
si.graphics()
|
||||
.then((data) ->
|
||||
document.getElementById('gpuInfo').innerText = data.controllers[0].model
|
||||
document.getElementById('gpuVendor').innerText = data.controllers[0].vendor
|
||||
document.getElementById('gpuVendorId').innerText = data.controllers[0].vendorId
|
||||
document.getElementById('gpuVram').innerText = data.controllers[0].vram + 'MB'
|
||||
document.getElementById('gpuBus').innerText = data.controllers[0].bus
|
||||
console.log(data)
|
||||
).catch((error) ->
|
||||
console.error(error)
|
||||
|
Reference in New Issue
Block a user