Skip to content

Commit 05106f6

Browse files
committed
fix some bugs
1 parent b083efb commit 05106f6

File tree

11 files changed

+135
-6
lines changed

11 files changed

+135
-6
lines changed

usa_map/AZ/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Arizona</title>
7-
<link rel="stylesheet" href="./../styles.css">
7+
<link rel="stylesheet" href="sty.css">
88

99
</head>
1010

File renamed without changes.

usa_map/AZ/usa_az.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {data_list, state_code, state_name} from "../assets.js"
1+
import {data_list, state_code, state_name} from "../resources.js"
22

33
// async function processData() {
44
// const querySnapshot = await data_list;

usa_map/CA/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>California</title>
7-
<link rel="stylesheet" href="./../styles.css">
7+
<link rel="stylesheet" href="sty.css">
88
</head>
99
<body>
1010
<h1>Welcome to California</h1>

usa_map/CA/sty.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
text-align: center;
4+
margin: 50px;
5+
}
6+
7+
h1 {
8+
color: #4CAF50;
9+
}
10+
11+
p {
12+
font-size: 18px;
13+
color: #555;
14+
}
15+
16+
#svgContainer {
17+
margin: 20px auto;
18+
display: inline-block;
19+
width: 100%;
20+
max-width: auto;
21+
}
22+
23+
.map-container {
24+
display: flex;
25+
gap: 20px;
26+
}
27+
28+
#usaMap {
29+
width: 60%;
30+
height: 80vh;
31+
min-height: 500px;
32+
border: 1px solid #ddd;
33+
}
34+
35+
#stateInfo {
36+
padding: 15px;
37+
border: 1px solid #ddd;
38+
border-radius: 5px;
39+
background-color: #fff;
40+
display: none;
41+
width: 200px;
42+
height: fit-content;
43+
}

usa_map/CA/usa_ca.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {data_list, state_code, state_name} from "../assets.js"
1+
import {data_list, state_code, state_name} from "../resources.js"
22

33
// async function processData() {
44
// const querySnapshot = await data_list;

usa_map/NY/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>New York</title>
7-
<link rel="stylesheet" href="./../styles.css">
7+
<link rel="stylesheet" href="sty.css">
88
</head>
99
<body>
1010
<h1>Welcome to New York</h1>

usa_map/NY/sty.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
text-align: center;
4+
margin: 50px;
5+
}
6+
7+
h1 {
8+
color: #4CAF50;
9+
}
10+
11+
p {
12+
font-size: 18px;
13+
color: #555;
14+
}
15+
16+
#svgContainer {
17+
margin: 20px auto;
18+
display: inline-block;
19+
width: 100%;
20+
max-width: auto;
21+
}
22+
23+
.map-container {
24+
display: flex;
25+
gap: 20px;
26+
}
27+
28+
#usaMap {
29+
width: 60%;
30+
height: 80vh;
31+
min-height: 500px;
32+
border: 1px solid #ddd;
33+
}
34+
35+
#stateInfo {
36+
padding: 15px;
37+
border: 1px solid #ddd;
38+
border-radius: 5px;
39+
background-color: #fff;
40+
display: none;
41+
width: 200px;
42+
height: fit-content;
43+
}

usa_map/NY/usa_ny.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {data_list, state_code, state_name} from "../assets.js"
1+
import {data_list, state_code, state_name} from "../resources.js"
22

33
// async function processData() {
44
// const querySnapshot = await data_list;
File renamed without changes.

0 commit comments

Comments
 (0)