Page 1 of 1

Renaming the image in the cordova accel example

Posted: 01:15, 21 Jul 2015
by yshinoda
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?

Re: Renaming the image in the cordova accel example

Posted: 01:27, 21 Jul 2015
by yshinoda
Never mind. It was the style problem.