-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (102 loc) · 2.46 KB
/
index.html
File metadata and controls
104 lines (102 loc) · 2.46 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<title>iPad View Resolution</title>
<style>
body {
font-family: 'Open Sans', sans-serif;
background-color: #f2f2f2;
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin-top: 30px;
font-size: 36px;
font-weight: bold;
color: #333;
}
form {
margin-top: 50px;
}
button {
margin-top: 20px;
background-color: #333;
color: #fff;
padding: 10px 20px;
border-radius: 25px;
font-size: 18px;
cursor: pointer;
}
button:hover {
background-color: #555;
}
label {
display: inline-block;
margin-bottom: 10px;
font-size: 20px;
color: #333;
text-align: left;
font-weight: bold;
}
input {
padding: 10px;
border-radius: 25px;
border: 1px solid #ccc;
font-size: 18px;
width: 75%;
max-width: 360px;
}
input:focus {
outline: none;
border-color: #555;
}
footer {
background-color: #f5f5f5;
padding: 5px;
position: absolute;
bottom: 0;
width: 100%;
font-size: 16px;
color: #777;
}
footer a {
color: #FF0000;
text-decoration: none;
}
footer img {
height: 60px;
margin-right: 10px;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
</head>
<body>
<h1>iPad View Resolution Calculator</h1>
<p>Enter the height of your resolution to calculate iPad View Resolution:</p>
<p>For example, if your resolution is <b>1920x1080</b>, enter <b>1080</b> in the height field.</p>
<form>
<label for="height">Height:</label>
<input type="number" id="height" name="height"><br><br>
<button type="button" onclick="calculateResolution()">Calculate</button>
</form>
<p id="result"></p>
<script>
function calculateResolution() {
const height = document.getElementById("height").value;
if (height) {
const aspectRatio = 4 / 3;
const calculatedWidth = Math.round(height * aspectRatio);
document.getElementById("result").innerHTML = `Set your Engine Resolution to ${calculatedWidth}x${height}`;
} else {
document.getElementById("result").innerHTML = "Please enter a height or vertical resolution to calculate.";
}
}
</script>
<footer>
<p>Made by Shuja Plays</p>
<img src="https://yt3.googleusercontent.com/wSJKLcxKzvVXZ_k1V_AOnmtc6FE-g-tMUo-AWwtmiVU1f9CBfha2f_vHebJHymsGaVGqEKwE8Q=s160-c-k-c0x00ffffff-no-rj" alt="YouTube Logo">
<p><a href="https://www.youtube.com/@ShujaPlays" target="_blank">Subscribe for more</a></p>
</footer>
</body>
</html>