Skip to content

Commit

Permalink
ユーザーエージェントの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakatai-0322 committed Jan 30, 2022
1 parent cb4946d commit 893c8b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h1 class="text-center text-info my-4">
<div id="browser"></div>
<div id="os"></div>
<div id="engine"></div>
<div id="fordevua"></div>
</code>
</div>
<footer>
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ window.onload = function onLoad() {
const resolution = "解像度: " + screen.width + " x " + screen.height;
const browser = "ブラウザ: " + platform.name + " " + platform.version;
const engine = "HTMLレンダリングエンジン: " + platform.layout;
const os = "OS: " + platform.os;
const os = "OS: " + platform.os.family + " " + platform.os.version;
const fordevua = "ユーザーエージェント(開発者向け): " + platform.ua;

document.getElementById("accessfrom").innerHTML = accessfrom;
document.getElementById("resolution").innerHTML = resolution;
document.getElementById("browser").innerHTML = browser;
document.getElementById("os").innerHTML = os;
document.getElementById("engine").innerHTML = engine;
document.getElementById("fordevua").innerHTML = fordevua;
}

0 comments on commit 893c8b0

Please sign in to comment.