<!DOCTYPE html>
<html lang="en">
<head>
<title>language detection</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<a href="/">
<button class="btn-primary pull-left">
back
</button>
</a>
<br>
<?php if(!$result){?>
<div class="row">
<p class="text-danger">
<?php print "Error $msg";?>
</p>
</div>
<br>
<?php }?>
<div class="row col-md-6">
<p>
source text
<textarea>
<?php print $text;?>
</textarea>
</p>
<p>
<div class="well">
detected language : <?php print $lang;?>
</div>
</div>
</body>
</html>
|