-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 2.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intership Projects</title>
</head>
<body>
<h1> NAVIGATE USING THE BELOW LINKS</h1>
<ol>
<li><a href="traed.ai/home.html" >project-1 (Traed.Ai)</a> | repository link : <a href=""></a></li>
<ul>
<li><a href="traed.ai/home.html" >home page</a></li>
<li><a href="traed.ai/contact.html" >contact page</a></li>
<li><a href="traed.ai/career.html" >career page</a></li>
<li><a href="traed.ai/solutions.html" >our solutions page</a></li>
</ul>
<li><a href="personal_blog/index.html">Week-1 Learning Project (Personal Blog)</a> | repository link : </li>
</ol>
<hr>
units in pixel (px) <br>
<p>inner width : <span class="in-wid">0</span></p>
<p>outer width : <span class="out-wid">0</span></p>
<p>inner height : <span class="in-hei">0</span></p>
<p>outer height : <span class="out-hei">0</span></p>
<p>visible viewport <h3>0</h3></p>
<p>device pixel ratio : <span class="dpi">0</span></p>
<!-- <div class="decoration"></div> -->
<script>
// Select all <a> tags and set the target attribute to "_blank"
var aTags = document.querySelectorAll('a');
aTags.forEach(function(aTag) {
aTag.setAttribute('target', '_blank');
});
function resolution() {
//console.log(window.innerHeight);
document.querySelector(".in-wid").innerHTML = window.innerWidth;
document.querySelector(".out-wid").innerHTML = window.outerWidth;
document.querySelector(".in-hei").innerHTML = window.innerHeight;
document.querySelector(".out-hei").innerHTML = window.outerHeight;
document.querySelector("h3").innerHTML = window.innerWidth + " X " + window.innerHeight;
document.querySelector(".dpi").innerHTML = window.devicePixelRatio;
}
resolution();
window.addEventListener('resize',resolution);
</script>
</body>
</html>