Renaming the image in the cordova accel example
Posted: 01:15, 21 Jul 2015
It's a rather noob question.
I was trying to rename the image sprite in the Cordova Acelerometer example in the Evothings workbench.
I changed the name:
< <img id="sprite" src="sprite.svg">
---
> <img id="sprite2" src="sprite.svg">
Then changed the initialization code:
< sprite.setDOMElement(document.getElementById('sprite'))
---
> sprite.setDOMElement(document.getElementById('sprite2'))
The image sprite is no longer displayed.
Why?
I was trying to rename the image sprite in the Cordova Acelerometer example in the Evothings workbench.
I changed the name:
< <img id="sprite" src="sprite.svg">
---
> <img id="sprite2" src="sprite.svg">
Then changed the initialization code:
< sprite.setDOMElement(document.getElementById('sprite'))
---
> sprite.setDOMElement(document.getElementById('sprite2'))
The image sprite is no longer displayed.
Why?