html5 validate

This commit is contained in:
Alexander Popov 2022-12-23 00:56:57 +03:00
parent 5b1647a2c9
commit fe095ac92b
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C

View File

@ -1,27 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8">
<title>Online File Diff and Mergely</title> <title>Online File Diff and Mergely</title>
<meta http-equiv="X-UA-Compatible" content="chrome=1, IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="description" content="Merge and Diff your documents with diff online and share">
<meta name="description" content="Merge and Diff your documents with diff online and share" /> <meta name="keywords" content="diff,merge,compare,jsdiff,comparison,difference,file,text,unix,patch,algorithm,saas,longest common subsequence">
<meta name="keywords" content="diff,merge,compare,jsdiff,comparison,difference,file,text,unix,patch,algorithm,saas,longest common subsequence" /> <meta name="author" content="Alexander Popov">
<meta name="author" content="Alexander Popov" /> <script src="./lib/jquery.min.js"></script>
<script src="./lib/jquery.min.js" type="text/javascript"></script> <script src="./lib/codemirror.min.js"></script>
<script type="text/javascript" src="./lib/codemirror.min.js"></script> <link type="text/css" rel="stylesheet" href="./lib/codemirror.min.css">
<link type="text/css" rel="stylesheet" href="./lib/codemirror.min.css" /> <script src="./lib/mergely.min.js"></script>
<script type="text/javascript" src="./lib/mergely.min.js"></script> <link type="text/css" rel="stylesheet" href="./lib/mergely.css">
<link type="text/css" rel="stylesheet" href="./lib/mergely.css" />
</head> </head>
<body> <body>
<div id="mergely-resizer"> <div id="mergely-resizer">
<div id="compare"> <div id="compare">
</div> </div>
</div> </div>
</body> <script>
<script type="text/javascript">
function getWinHeight() { function getWinHeight() {
var winHeight = 0; var winHeight = 0;
if (window.innerHeight) if (window.innerHeight)
@ -42,7 +40,7 @@
$('#compare').mergely({ $('#compare').mergely({
editor_width: 'auto', editor_width: 'auto',
editor_height: '400', editor_height: '400',
license: 'lgpl-separate-notice', license: 'mpl-separate-notice',
cmsettings: { cmsettings: {
readOnly: false, readOnly: false,
lineWrapping: true, lineWrapping: true,
@ -56,9 +54,10 @@
}); });
$(window).resize(function() { $(window).resize(function() {
$('#compare').mergely('options', {height:getWinHeight() - 30, width:getWinWidth() - 30}); $('#compare').mergely('options', {height:getWinHeight() - 30, width:getWinWidth() - 30});
$('#compare').mergely('update') $('#compare').mergely('update');
}); });
$(window).resize(); $(window).resize();
}); });
</script> </script>
</body>
</html> </html>