YouTube_captions_search_engine/website/index.php

21 lines
580 B
PHP
Raw Normal View History

2023-01-30 22:14:05 +01:00
<?php
function echoUrl($url)
{
echo "<a href=\"$url\">$url</a>";
}
?>
See <?php echoUrl('https://gitea.lemnoslife.com/Benjamin_Loison/YouTube_captions_search_engine'); ?> for more information.<br/>
<input type="text" pattern="[A-Za-z0-9]+" placeholder="Your alphanumeric search"></input>
<button>Search</button>
<script>
// Then some JavaScript in the browser:
var conn = new WebSocket('ws://localhost:8080/echo');
conn.onmessage = function(e) { console.log(e.data); };
conn.onopen = function(e) { conn.send('Hello Me!'); };
</script>