+ 1

When you want to make a book in JS, then how do you put text other than the page nmr. on the page?

https://code.sololearn.com/WVo31ZysNqBa/?ref=app

27th Nov 2022, 12:23 PM
skaffyy
skaffyy - avatar
5 Antworten
+ 1
you could organize your data into a javascript object, and iterate through that to buld your pages https://code.sololearn.com/Ww9YGRfkZhjn/?ref=app
27th Nov 2022, 1:57 PM
Bob_Li
Bob_Li - avatar
+ 1
https://code.sololearn.com/WXKuyjB6zZp6/?ref=app
28th Nov 2022, 9:57 AM
skaffyy
skaffyy - avatar
+ 1
TY!
28th Nov 2022, 4:09 PM
skaffyy
skaffyy - avatar
0
What's wrong with my code? It says"Unexpected Number: Line:12" but there's no problem with lines 12-16!
28th Nov 2022, 8:41 AM
skaffyy
skaffyy - avatar
0
skaffyy you have a duplication on line 13. also break up the text because text-align:justify would not work on one very long string.. You also renamed the buttons id, the javascript querySelector should also be changed. https://code.sololearn.com/WxeXh2X3xbZQ/?ref=app
28th Nov 2022, 10:11 AM
Bob_Li
Bob_Li - avatar