We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f735b commit 30f20caCopy full SHA for 30f20ca
index.html
@@ -40,6 +40,7 @@
40
</style>
41
</head>
42
<body>
43
+<div class="columns" style="width:1200px;">
44
<div class="column" id="left" style="width:200px; float:left;">
45
<p style="margin: 0 0.5em;">
46
Choose a color and click on states you want to apply the color to.
@@ -176,5 +177,6 @@
176
177
</svg>
178
</figure>
179
</div>
180
+</div>
181
</body>
182
</html>
js/mapcontroller.js
@@ -2,7 +2,7 @@ color = "#D3D3D3";
2
3
$(document).ready( function() {
4
$('.clickable').click( function(){
5
- this.style.fill = color;
+ $( this ).attr( "fill", "#" + color );
6
$('#' + this.id + 'input').val( color );
7
} );
8
0 commit comments