I am using dmx-html=""
quite heavily for something I need to do, and need to find a way to make dmx-on:ended=""
still work within.
I know this code is going to be strange and difficult to follow, but it all works, except the second to last line where I use dmx-on:ended=""
to try move the video position to 6 seconds when it completes.
I think the issue is that i need to enclose the time in single quotes, and that breaks things, I have tried escaping the single quote, using '
as well as $lsquo;
, &rsquo
anyone got any ideas here.
<div dmx-bind:class="ppcc_parent_block_class" dmx-bind:style="ppcc_parent_block_style" dmx-repeat:db_repeat_self_columns_internal="db_repeat_columns[$index].query_primary_page_content_c" dmx-html="
ppcc_type_tag == 'img'
? '<'+ppcc_type_tag+' class="'+ppcc_block_class+'" style="'+ppcc_block_style+'" data-src="'+(browser1.viewport.width < 768 && ppcc_img_base_width == 1920 && (ppcc_img_base_height == 450 || ppcc_img_base_height == 760) ? ppcc_img_src.replace('.jpg','-lb.jpg') : ppcc_img_src)+'" alt="'+ppcc_alt_tag.default(ppcc_img_src.split('/').last().replace('-',' ').replace('.jpg',''))+'" width="'+ppcc_img_base_width+'" height="'+ppcc_img_base_height+'" />'
: ppcc_type_tag == 'a'
? '<'+ppcc_type_tag+' class="'+ppcc_block_class+'" style="'+ppcc_block_style+'" href="'+ppcc_link_url+'" title="'+ppcc_link_title.default(ppcc_content)+'" rel="'+ppcc_link_rel+'" target="'+ppcc_link_target+'">'+ppcc_content+'</'+ppcc_type_tag+'>'
: ppcc_type_tag == 'swiper'
? '<a class="'+ppcc_block_class+'" style="'+ppcc_block_style+'" href="javascript:void(0);" title="'+ppcc_link_title.default(ppcc_content)+'">'+ppcc_content+'</a>'
: ppcc_type_tag == 'video'
? '<video class="'+ppcc_block_class+'" style="'+ppcc_block_style+'" src="'+ppcc_img_src+'" is="dmx-video" id="video'+$index+'" controls="true" muted="true" poster="'+ppcc_img_src.replace('.mp4','.jpg')+'" dmx-on:ended="video'+$index+'.position(&lsqou;0:06’)"></video>'
: '<'+ppcc_type_tag+' class="'+ppcc_block_class+'" style="'+ppcc_block_style+'">'+ppcc_content+'</'+ppcc_type_tag+'>'" dmx-class:dynamic-circ="ppcc_link_url == NULL ? '' : ppcc_ppca_block_name.endsWith('-bottom') ? content.db_repeat_containers.items[(ppca_block_order-2)].cond_swiper.the_tabor_group_swiper.index == ppcc_link_url : content.db_repeat_containers.items[ppca_block_order].cond_swiper.the_tabor_group_swiper.index == ppcc_link_url" dmx-on:click="ppcc_link_url == NULL ? '' : ppcc_ppca_block_name.endsWith('-bottom') ? content.db_repeat_containers.items[(ppca_block_order-2)].cond_swiper.the_tabor_group_swiper.slideTo(ppcc_link_url) : content.db_repeat_containers.items[ppca_block_order].cond_swiper.the_tabor_group_swiper.slideTo(ppcc_link_url)" dmx-on:mouseover="var_swiper_first_load.setValue(2)"></div>
Community Page
Last updated:
Last updated: