Renaming the image in the cordova accel example

Ask, and ye shall receive.
yshinoda
Posts: 2
Joined: 08:57, 16 Jul 2015

Renaming the image in the cordova accel example

Postby yshinoda » 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?

yshinoda
Posts: 2
Joined: 08:57, 16 Jul 2015

Re: Renaming the image in the cordova accel example

Postby yshinoda » 01:27, 21 Jul 2015

Never mind. It was the style problem.


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 10 guests