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 8fda9a1 commit cb4946d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1 class="text-center text-info my-4">
<div id="resolution"></div>
<div id="browser"></div>
<div id="os"></div>
<div id="engine"></div>
</code>
</div>
<footer>
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ https://opensource.org/licenses/mit-license.php
//"platform.js"をインポート
import("./lib/platform.js")



//ページロード時に各部分に対し代入
window.onload = function onLoad() {
const accessfrom = "アクセス元ページ: " + location.href;
const resolution = "解像度: " + screen.width + " x " + screen.height;
const browser = "ブラウザ: " + platform.version;
const browser = "ブラウザ: " + platform.name + " " + platform.version;
const engine = "HTMLレンダリングエンジン: " + platform.layout;
const os = "OS: " + platform.os;

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;
}

0 comments on commit cb4946d

Please sign in to comment.