This is the default viewer code of BIMData. The modified 0.8.26 version has been used as viewer of ARK-BIM. This release and others JS viewers can be found at unpkg.com

In order to correctly use this code you shoud have an IFC model into BIMData cloud and related tokens and IDs. Then, you can evocate your models by modifing cloudID; projectID; ifcIDs; accessToken

More information: BIMData.io
Viewer code

<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Default</title> <script src="https://unpkg.com/@bimdata/viewer@0.8.26/dist/bimdata-viewer.min.js" charset="utf-8"></script> </head> <body> <div style="height: 100vh; width:70wh"> <div id="app"></div> </div> <script> const cfg = { cloudId: "YOUR CLOUD ID", projectId: "YOUR PROJECT ID", ifcIds: ["YOUR IFC ID"], backgroundColor: 'rgb(210, 210, 250)', bimdataPlugins: { bcf: false, merge: false, allowExport: false } } const accessToken = "YOUR TOKEN"; const {viewer, store, eventHub, setAccessToken} = initBIMDataViewer('app', accessToken, cfg); window.viewer = viewer; window.store = store; window.eventHub = eventHub; window.setAccessToken = setAccessToken; </script> </body> </html>