-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIP天气签名档.html
More file actions
51 lines (46 loc) · 1.33 KB
/
Copy pathIP天气签名档.html
File metadata and controls
51 lines (46 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>IP天气签名档</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f2f2f2;
padding: 20px;
}
h1 {
color: #00bfa5;
}
img {
max-width: 500px;
height: auto;
margin-top: 20px;
}
.save-instruction {
margin-top: 20px;
font-size: 16px;
color: #999;
}
</style>
</head>
<body>
<h1>IP天气签名档</h1>
<div id="signatureContainer"></div>
<div class="save-instruction">请长按图片保存</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
var signatureContainer = document.getElementById("signatureContainer");
// 创建签名档图片URL
var imageUrl = "https://api.vvhan.com/api/ip";
// 渲染签名档图片
var imgElement = document.createElement("img");
imgElement.src = imageUrl;
imgElement.alt = "IP天气签名档";
signatureContainer.innerHTML = "";
signatureContainer.appendChild(imgElement);
});
</script>
</body>
</html>