@Couchies and @KK Sir...
Greetings!!!
I have been working with typed.js (http://www.mattboldt.com/demos/typed-js/ another working link for testing: http://codepen.io/lowercase/pen/BCJsf) a great script to give a feeling that "someone is typing real-time on a site-illusion".
Now I have been able to get multilines to work with the couch tags. But what i want to achieve is that each line has a different font color.
this is my current code:
1. Editable region: (repeatable to create multiple lines)
2. The js where the repeatable needs to be fitted.
I have created a repeatable editable region: name='excel_niche_details_color_code' and have used it in the following manner:
But when i run the code the entire html code gets typed. where as i want the <font> tag to just change the color entered in the admin panel.
Need help with this!
Regards in advance,
GenXCoders
Greetings!!!
I have been working with typed.js (http://www.mattboldt.com/demos/typed-js/ another working link for testing: http://codepen.io/lowercase/pen/BCJsf) a great script to give a feeling that "someone is typing real-time on a site-illusion".
Now I have been able to get multilines to work with the couch tags. But what i want to achieve is that each line has a different font color.
this is my current code:
1. Editable region: (repeatable to create multiple lines)
- Code: Select all
<cms:editable name='excel_niche' label='Excel Niche - Content' type='group' order='4' />
<cms:repeatable name='excel_niche_details' label='Content - Details' group='excel_niche'>
<cms:editable name='excel_niche_details_lines' label='Details - Lines' desc='Max. 6 words per line' type='text' order='1' />
<cms:editable name='excel_niche_details_color_code' label='Details - Lines text color' desc='Use Hex values or color name' type='text' order='1' />
</cms:repeatable>
2. The js where the repeatable needs to be fitted.
- Code: Select all
<script>
$(function(){
$(".element").typed({
strings: [
"<cms:show_repeatable 'excel_niche_details'><cms:show excel_niche_details_lines />^1000 \n</cms:show_repeatable>"
],
typeSpeed: 30,
loop: false
});
});
</script>
I have created a repeatable editable region: name='excel_niche_details_color_code' and have used it in the following manner:
- Code: Select all
<script>
$(function(){
$(".element").typed({
strings: [
<cms:show_repeatable 'excel_niche_details'><font color="<cms:show excel_niche_details_color_code />">"<cms:show excel_niche_details_lines />^1000 \n"</font></cms:show_repeatable>
],
typeSpeed: 30,
loop: false
});
});
</script>
But when i run the code the entire html code gets typed. where as i want the <font> tag to just change the color entered in the admin panel.
Need help with this!
Regards in advance,
GenXCoders