V
V
Vitaly2015-10-04 22:10:52
JavaScript
Vitaly, 2015-10-04 22:10:52

How to edit JS code to work properly after pasting into HTML?

Hello, how to edit the JS code so that it works correctly after inserting into HTML.
The code itself (original): codepen.io/javve/pen/bBfgD
My code: https://dropmefiles.com/AzLrQ
How to do it right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Solomennikov, 2015-10-04
@allposts_vitali

If I understand you correctly, then you need a template engine.
For example: Handlebars

D
Dima, 2015-10-04
@CrazyFail

<script>код на JS</script>does this option not work for you? what exactly doesn't work?

G
Gios, 2015-10-04
@Gios

Maybe you didn't include js files in html?
because there are List and ListPagination objects in this code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question