Skip to content

Instantly share code, notes, and snippets.

@henriqueboaventura
Created June 28, 2018 20:35
Show Gist options
  • Save henriqueboaventura/3f17eed003216d8e10ea78551f2e9cb4 to your computer and use it in GitHub Desktop.
Save henriqueboaventura/3f17eed003216d8e10ea78551f2e9cb4 to your computer and use it in GitHub Desktop.
1 sinal por dia
<?php
$signalId = rand(1,5823);
$content = json_decode(file_get_contents('http://www.acessibilidadebrasil.org.br/libras_3/ajax/getWordById/' . $signalId));
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>1 sinal por dia</title>
<style>
body {
text-align:center;
}
section {
margin: 0px auto;
max-width: 600px;
}
</style>
</head>
<body>
<header>
<h1>1 sinal por dia!</h1>
</header>
<section>
<h2>Palavra: <strong><?php echo $content->data->palavra; ?></strong></h2>
<h3><?php echo $content->data->acepcao; ?></h3>
<video id="videojs" autoplay loop muted controls >
<source src="http://www.acessibilidadebrasil.org.br/libras_3/public/media/palavras/videos/<?php echo $content->data->video; ?>">
<p class="vjs-no-js">
Para ver o video por favor habilite JavaScript e considere atualizar para um navegador que suporte<a href="http://videojs.com/html5-video-support/" target="_blank">Video HTML 5.</a>
</p>
</video>
</section>
<footer>
<p>Absolutamente nenhum direito reservado.</p>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment