It looks like you're new here. If you want to get involved, click one of these buttons!
<span id="warning"></span> <<silently>> <<set $min = 0, $max = 12>> <<repeat 100ms>> <<set $warn = $warnings.substr($min, $max)>> <<set $min++, $max++>> <<if $max gt 185>> //Hardcoded string-length <<set $max = 12, $min = 0>> <</if>> <<replace "#warning">>$warn<</replace>> <</repeat>> <</silently>>It works, buuut it behaves oddly. For some reason, the gap between min & max becomes larger, making the length of the substring longer, the longer it runs, until $max hits the if-statement, where the substring starts shrinking. Once the substring's length is 0, it repeats again.