Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility of adding image to descriptive text items? #32

Open
Gryphire opened this issue Aug 29, 2018 · 0 comments
Open

Possibility of adding image to descriptive text items? #32

Gryphire opened this issue Aug 29, 2018 · 0 comments

Comments

@Gryphire
Copy link

Hi all!

This is not so much an issue as something I am wondering about, and I can't figure out on my own how to do this. I would like to add an image to the descriptive text items in the ESM app, but have no idea where to define this or where to call the image/how to make sure it appears on the screen under said text.

I've got a hunch that it's supposed to go somewhere in here (see below) but I'm not sure at all.

switch (question.type)    

  case 'instructions':        	
      
       question.buttons = Mustache.render(instructionTmpl, {id: question.variableName+"1"});

       $("#question").html(Mustache.render(questionTmpl, question)).fadeIn(400);

       var instruction = [];
       $("#question ul li button").click(function(){ 
       instruction.push(question.variableName);
       instruction.push($(this).val());
       app.recordResponse(String(instruction), question_index, question.type);
       });

break;

If anyone has any tips or experience displaying an image together with an item, help is very much appreciated!

Cheers,
Nastasia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant