One CODE ok, but not ok for two …
-
Hi,
I tried to embed to pieces of javascript code in the same article and didn’t succeed ??
Only the first one appears.
Please look at the it using the URL given above.
I guess I did something wrong with html … but cannot figure out what …
Thank you for helping.Here is the structure of the code itself (it’s the same for both except that I choosed different names for the html containers in order to avoid problems … but it looks like this precaution was not enough) :
—- CODE n° 1
<html>
<head>
<title>Puissances</title>
<script src=”https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js”></script>
<script type=”text/javascript”>
blah blah blah
</script>
</head>
<body>
<div id = “p_canvas-holder”>
<br>
<table cellspacing=”20px”>
<tr>
<td id = “p_div-holder”></td>
<td id = “p_slider-holder”></td>
</tr>
</table>
</div>
</body>
</html>—- CODE n° 2
<html>
<head>
<title>Puissances</title>
<script src=”https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js”></script>
<script type=”text/javascript”>
blah blah blah
</script>
</head>
<body>
<div id = “a_canvas-holder”>
<br>
<table cellspacing=”20px”>
<tr>
<td id = “a_div-holder”></td>
<td id = “a_slider-holder”></td>
</tr>
</table>
</div>
</body>
</html>The page I need help with: [log in to see the link]
- The topic ‘One CODE ok, but not ok for two …’ is closed to new replies.