--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minnojs/9eb59ab7-4b96-4b99-86ac-bf5ccd2f8125n%40googlegroups.com.
Hi Heidi,
In your code, you had:
for (var itarget = 1; itarget <= 80; itarget++)
{
targetMedia.push({image:global.amppics[itarget]});
}
But the index of arrays in JavaScript runs from 0 to length-1, so you added a cell that does not exist (global.amppics[80]).
A safer code may fix the problem:
for (var itarget = 0; itarget < global.amppics.length; itarget++)
{
targetMedia.push({image:global.amppics[itarget]});
}
I hope that you know that we have an extension for creating AMPs. If there are any features that you think are missing from that extension, please let me know. If those features are likely to serve other studies in the future, I will try to add them to the extension.
All the best,
Yoav