Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Mar 16, 2021
1 parent 6b772f6 commit 4954ce2
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions views/parts/footer-js.pug
@@ -1,29 +1,3 @@
script(src='//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.1.min.js')
script(src='//cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js')
script(src='//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js')
script(src='//unpkg.com/three/build/three.min.js')
script(src='//unpkg.com/@electerm/electerm-bg/dist/universe.min.js')
script.
// instantiate a loader
var loader = new THREE.TextureLoader()
var Universe = window.Universe.default
// load a resource
loader.load(
// resource URL
'//unpkg.com/@electerm/electerm-bg/dist/star.png',
// Function when resource is loaded
function ( texture ) {

let uni = new Universe({
size: 8 //star size
,id: null //id
,starNumber: 10000
,color: 0xffffff
,width: null
,height: null
,container: document.getElementById('ubg')
,map: texture
})

}
)

0 comments on commit 4954ce2

Please sign in to comment.