Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: codeToCopy Arguments: Description: This shows the code to copy into the speakabout.ai website, when tags or speakers are updated. Page type: webl Render function: Module: speakaboutai Page source: var res = ` <head> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="//code.jquery.com/jquery-3.6.0.min.js"></script> <script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script> </head> <body> <form action="https://speakaboutai.com/site/search" method="post"> <input id="autocomplete-input" name="searchTerm" value="" size="45" title="Search Terms"/> <input type="submit" value="Search"> </form> <script> $(function() { var availableTags = `; var l = []; every tag in WubCall("speakaboutai.tagslist",[]) do if (Str_ToLowerCase(tag) != "anytopic") then l = l + [tag] end end; every speaker in WubCall("speakaboutai.speakerslist", []) do l = l + [speaker.name] end; res = res + ToString(l); res = res + ` $("#autocomplete-input").autocomplete({ source: availableTags }); }); </script> </body> `; res;