You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1012 B
HTML
55 lines
1012 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Indian Translate</title>
|
|
<script src="https://d3js.org/d3.v7.min.js"></script>
|
|
<style>
|
|
body {
|
|
background-color: #f4f4f4;
|
|
}
|
|
main {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
svg {
|
|
border: 1px solid;
|
|
padding: 2em;
|
|
}
|
|
.state {
|
|
stroke: black;
|
|
stroke-width: 0.5;
|
|
transition: fill 0.3s;
|
|
}
|
|
.state:hover {
|
|
stroke-width: 1.5;
|
|
}
|
|
.stateText {
|
|
visibility: hidden;
|
|
}
|
|
.state:hover ~ .stateText {
|
|
visibility: visible;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<section id="textStuff">
|
|
<h1>Indian Translate</h1>
|
|
|
|
<label for="toTranslate">Enter text to translate:
|
|
<input type="text" name="toTranslate"/>
|
|
</label>
|
|
</section>
|
|
|
|
<svg id = "indiaMap" width="700" height="700"></svg>
|
|
</main>
|
|
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html>
|
|
|