Compare commits

...

2 Commits

@ -4,8 +4,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<title>Indian Translate</title> <title>Indian Translate</title>
<script src="https://d3js.org/d3.v7.min.js"></script> <script src="https://d3js.org/d3.v7.min.js"></script>
@ -25,6 +25,11 @@
border: 1px solid; border: 1px solid;
padding: 2em; padding: 2em;
} }
h1 {
margin-block: 0.67em;
font-size: 2em;
}
.state { .state {
stroke: black; stroke: black;
fill: none; fill: none;
@ -40,7 +45,7 @@
stroke-width: 1; stroke-width: 1;
} }
.translationText, .romanizationText { .translationText, .romanizationText {
/* visibility: hidden; */ visibility: hidden;
font-family: "Noto Sans"; font-family: "Noto Sans";
font-size:1.25em; font-size:1.25em;
} }
@ -52,6 +57,7 @@
.languageText { .languageText {
pointer-events: none; pointer-events: none;
font-weight: bold; font-weight: bold;
font-size: 1.15em;
font-family: sans-serif; font-family: sans-serif;
visibility: hidden; visibility: hidden;
} }
@ -114,7 +120,7 @@
<progress id="loading-screen" class="loading-indicator"></progress> <progress id="loading-screen" class="loading-indicator"></progress>
</section> </section>
<svg id = "indiaMap" width="1200" height="1200"></svg> <svg id = "indiaMap" width="1300" height="1300"></svg>
</main> </main>
<script type="text/javascript" src="index.js"></script> <script type="text/javascript" src="index.js"></script>

@ -239,6 +239,9 @@ function drawMap(world) {
} }
if (d.properties.lang_name == "Maithali") { if (d.properties.lang_name == "Maithali") {
rtv += 10; rtv += 10;
}
if (d.properties.lang_name == "Konkani") {
rtv -= 15;
} }
return rtv return rtv
} }

Loading…
Cancel
Save