Files
FlexSurvey/www/templates/picture.html
2017-02-07 20:04:47 +00:00

14 lines
512 B
HTML

<img id="{{id}}__image" src="" width="150" />
<button id="{{id}}"
{{#if btnStyle}}
style="{{btnStyle}}"
{{/if}}
name="{{id}}" value="{{value}}" onclick="this.picFun.takePic(this);" class="topcoat-button--large myPicBut">{{label}}</button>
<script>
// "Activate" the Handler...
// adding a funciton to a HTML element doesn't seem to be possible with jQuery?!
document.getElementById("{{id}}").picFun= new app.myCamHandler();
</script>