Wait for DOM to be ready to initialize widgets
</div>
</div>
<script>
+ function init_slider() {
// Slider JS Block START
function loadcssfile(filename){
var fileref=document.createElement("link")
textInput.val(labels[0]);
adjustFontSize(textInput);
});
+ }
+ $(document).ready(init_slider)
// Slider JS Block END
</script>
{% elif widget_data['type']=='dropdown' %}
<script>
var vals = {{ widget_data['vals'] }};
var labels = {{ widget_data['labels'] }};
+ function init_dropdown() {
var widget = $("#_anim_widget{{ id }}_{{ widget_data['dim'] }}");
widget.data('values', vals)
for (var i=0; i<vals.length; i++){
}
});
+ }
+ $(document).ready(init_dropdown)
</script>
{% endif %}
{% endfor %}
