Skip to content

Commit

Permalink
Removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleichter committed May 23, 2014
1 parent ea4fae9 commit b7697eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions html/explore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
<!DOCTYPE html>
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{% if displayviz %}
<meta property="og:image" content="http://atlas.cid.harvard.edu{{ displayImage }}"/>
Expand Down Expand Up @@ -384,7 +382,7 @@ <h2 style="margin-left:10px; width:700px;" id="text_title">{% if title %}{{title
<button type="button" onclick="update_viz();" class="glyphicon glyphicon-refresh show-country-product" style="float:right; margin-right:10px; width:25px; height:20px; font-size:8px; visibility:hidden;"></button>

<select data-placeholder="All Countries" class="chosen-select-deselect" tabindex="-1" style="display: none;" id="products_country1_select">
<option value=""></option>
<option value="">ALL</option>
{% if country1_list %}{% for c in country1_list %}
{% if c.id == country1.id %}<option value="{{c.name_3char|lower}}" selected="selected">{{ c.name }}</option>
{% else %}
Expand Down Expand Up @@ -1282,6 +1280,7 @@ <h4 style="border-bottom: solid 1px #999; font-family:'PT Sans Narrow',Helvetica
<script src="{{ STATIC_URL }}js/libs/d3plus/src/general.js"></script>
<script src="{{ STATIC_URL }}js/libs/d3plus/src/utils.js"></script>
<script src="{{ STATIC_URL }}js/libs/d3plus/src/tooltip.js"></script>
<script type="text/javascript" src="media/js/explore/dropdowns.js"></script>

{% if app_name != "map" %}

Expand Down Expand Up @@ -1491,19 +1490,15 @@ <h4 style="border-bottom: solid 1px #999; font-family:'PT Sans Narrow',Helvetica
// Be sure we came back to the top of the page
$(this).scrollTop(0);

$(".chosen-select").chosen();
$('.chosen-container').css('width', '150px');
$('#country1_select_chosen').css('width', '170px');
//$('#country1_select_chosen').css('font-size', '18px');
$('#year1_select_chosen').css('width', '60px');
$('#year2_select_chosen').css('width', '80px');


$('#country_trade_partner_select_chosen').css('width', '140px');
$('#country_product_select_chosen').css('width', '140px');

$('.chosen-select-deselect').chosen({ allow_single_deselect: true });

$("#country1 select").change(function() {
$("#country1_select_chosen .chosen-single span").css("background", "url('{{ STATIC_URL }}img/icons/flag_"+$(this).val()+".png') no-repeat");
$("#country1_select_chosen .chosen-single span").css("background-size", "25px");
Expand Down

0 comments on commit b7697eb

Please sign in to comment.