Gregory Ballantine
056a5ad2a6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
26 lines
613 B
CoffeeScript
26 lines
613 B
CoffeeScript
si = require('systeminformation')
|
|
|
|
window.onload = () ->
|
|
si.cpu()
|
|
.then((data) ->
|
|
document.getElementById('cpuInfo').innerText = data.brand
|
|
console.log(data)
|
|
).catch((error) ->
|
|
console.error(error)
|
|
)
|
|
si.cpuTemperature()
|
|
.then((data) ->
|
|
document.getElementById('cpuTemp').innerText = data.main
|
|
console.log(data)
|
|
).catch((error) ->
|
|
console.error(error)
|
|
)
|
|
|
|
si.graphics()
|
|
.then((data) ->
|
|
document.getElementById('gpuInfo').innerText = data.controllers[0].model
|
|
console.log(data)
|
|
).catch((error) ->
|
|
console.error(error)
|
|
)
|