The power of the HTML5 inside Construct 3. Create HTMLElements, handle events and manage CSS style.
I'm having difficulty running the included samples on an iphone. Do these elements run on iOS? I can run the tests, but the screen forms do not show.
What project are you testing?
You can check the demo projects in github: there are some links to online versions ( el3um4s.github.io/construct-html-element-plugin ).
I just moved the repository. Now you can find it here:
- c3plugins.stranianelli.com/html-element
- github.com/el3um4s/construct-plugins-and-addons/tree/master/html-element
OK, so it appears that COMPILED versions work OK, but I can't run it as a preview/remote preview.
The online versions worked OK. This will make testing quite a bit slower :S
None of the project files would run correctly in C3 directly on iOS under preview. If I run a test they all had errors.
Here's an example of those errors from the product landing page.... I didn't include them all.
#Product Landing Page tests
passes:3 failures:13
#Content
1. My product landing page should have a <header> element with corresponding id="header".
#header is not defined : expected null to not equal null a@https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:139:484
<SNIP>
2. I can see an image within the #header element with a corresponding id="header-img". A company logo would make a good image here.
#header-img is not defined : expected null to not equal null a@https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:139:484 assert@<SNIP>
Are you referring to FreeCodeCamp test?
See an image like this?
raw.githubusercontent.com/el3um4s/construct-html-element-plugin/master/img/2019-05-17-test.PNG
This test refers to FreeCodeCamp. I only added it to illustrate how to insert script js from a different source.
The script is loaded using a different plugin: InjectCSS.
I just moved the repository. Now the linked image is here:
c3plugins.stranianelli.com/html-element/images/test/2019-05-17-test.PNG
snag.gy/rohsLn.jpg
This is the sample I was running, but I can pick ANY C3 app on your page, and none appear to work on iPhone. The above posted errors were from the Landing Page demo.
I was working with Fengist too, and his samples don't appear to work on iOS either.
(Looks like Sami424 below had the same issue)