I have an HTML page, In the variable schedule has sequential decimal number in seconds.
My purpose is create a function to convert all these numbers in time using JavaScript/jQuery, but i could not understand, how can I invoke my function to convert all items?
<html>
    <body>
        // Jinja code
        {% for item in schedule %}
        {{ convertDecimal_to_time(item.someDecimal) }}
        {% endfor %}
    </body>
</html>
<script>
    covertdecimal_to_time(input_number){
        .....
        return time;
    }
</script>
 
     
    