www.techtransthai.org/browser.html

62 lines
2.5 KiB
HTML
Raw Normal View History

2023-08-10 11:24:31 +00:00
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta http-equiv="Content-Language" content="th">
<meta http-equiv="content-Type" content="text/html; charset=UTF-8">
<title>ข้อมูลเบราว์เซอร์</title>
<link rel="icon" type="image/png" href="icons/ttt-org.png">
</head>
<body>
<div class="topbar">
2023-08-17 15:58:39 +00:00
<a href="/" class="backbutton">
2023-08-11 07:34:22 +00:00
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path fill="currentColor" d="m 10.9375 0.996094 c -0.292969 0 -0.558594 0.128906 -0.742188 0.328125 l -6.671874 6.671875 l 6.671874 6.675781 c 0.011719 0.011719 0.023438 0.023437 0.035157 0.03125 c 0.179687 0.183594 0.429687 0.292969 0.707031 0.292969 h 1 v -1 c 0 -0.273438 -0.113281 -0.523438 -0.292969 -0.707032 c -0.011719 -0.007812 -0.019531 -0.019531 -0.035156 -0.03125 l -5.257813 -5.261718 l 5.292969 -5.292969 c 0.179688 -0.179687 0.292969 -0.429687 0.292969 -0.707031 v -1 z m 0 0"/></svg>
2023-08-10 11:24:31 +00:00
</a>
<div style="display: flex; align-items:start; justify-content: center; margin-top: -0.3cm;">
<h4>ข้อมูลเบราว์เซอร์</h4>
</div>
</div>
<div class="grid-container">
<div class="middle">
<div class="list" style="margin-top: 1.5cm;">
<a class="listinfo">
<div style="display: flex; margin-left: 0.5cm; align-items: center; justify-content: left;">
<p>เบราว์เซอร์</p>
</div>
2023-09-10 10:09:45 +00:00
<div style="display: flex; margin-right: 0.5cm; align-items: center; justify-content: right; opacity: 0.5">
2023-08-10 11:24:31 +00:00
<p id="browser-display"></p>
</div>
</a>
<div class="separator"></div>
<a class="listinfo">
<div style="display: flex; margin-left: 0.5cm; align-items: center; justify-content: left;">
<p>ระบบปฏิบัติการ</p>
</div>
2023-09-10 10:09:45 +00:00
<div style="display: flex; margin-right: 0.5cm; align-items: center; justify-content: right; opacity: 0.5">
2023-08-10 11:24:31 +00:00
<p id="os-display"></p>
</div>
</a>
</div>
</div>
</div>
</body>
<script>
const agent = navigator.userAgent;
const browserName = agent.split(" ")[agent.split(" ").length-1]
document.getElementById("browser-display").innerHTML = browserName;
const OS = agent.split("(")[1].split(")")[0]
document.getElementById("os-display").innerHTML = OS;
</script>
</html>