// also supports youtube, which we could remove // from https://codepen.io/pierrinho/pen/vNLGMa sclass HImageCarousel { new L slides; record Slide(S imgIDOrURL, S html) { S html() { ret html; } *(S *imgIDOrURL, S title, S text) { html = htmlCombine_new( h2(title), p(text)); } } S jsLibs() { ret hjs("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js") + hjs("https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js") + hjs("https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.1.0/jquery.fitvids.min.js"); } JS js() { ret JS(mlsUnindent([[ var tag = document.createElement('script'); tag.src = "https://www.youtube.com/player_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates an