Dear @darioj
Instead of the " jQuery(document).ready(…)" you need to wrap it in a Newpage event.
window.laytheme.on("newpageshown", function(){
// - INSERT DESIRED CODE HERE
});
Also the Common JQuery abbreviation "$" must be altered to 'jQuery' eg.
window.laytheme.on("newpageshown", function(){
$("button").click(function(){
$("p:first").addClass("intro");
});
});
is now:
window.laytheme.on("newpageshown", function(){
jQuery("button").click(function(){
jQuery("p:first").addClass("intro");
});
});
It depends also how you want this 'Read-more' to function,
You could have a hidden text box that when clicked simply makes it visible but very similar to this the commonly used Accordion - which will open nicely:
https://www.w3schools.com/howto/howto_js_accordion.asp
Is this what you were asking for? :)
Best Wishes and Seasons Greetings
Richard