Gender equality has been enshrined in the federal constitution since 1981. Much has happened since then, but women are still under-represented in political offices and economic bodies.
We’ll start with politics. Do you know how many women hold political office in our country?
Submit your tip using the slider and check the answer.
var data = [ { "name":"Bundesrat", "id":"bundesrat", "total":7, "frauen":3, "section":"politik" }, { "name":"Ständerat", "id":"staenderat", "total":46, "frauen":13, "section":"politik" }, { "name":"Nationalrat", "id":"nationalrat", "total":200, "frauen":81, "section":"politik" }, { "name":"Kantonale Regierungen", "id":"kant-reg", "total":154, "frauen":48, "section":"politik" }, { "name":"Verwaltungsrat Coop", "id":"coop", "total":10, "frauen":4, "section":"firma" }, { "name":"Verwaltungsrat Migros", "id":"migros", "total":5, "frauen":0, "section":"firma" }, { "name":"Verwaltungsrat Swiss", "id":"swiss", "total":5, "frauen":1, "section":"firma" }, { "name":"Verwaltungsrat Swisscom", "id":"swisscom", "total":9, "frauen":3, "section":"firma" }, { "name":"Verwaltungsrat Die Post", "id":"post", "total":10, "frauen":4, "section":"firma" }, { "name":"Verwaltungsrat SBB", "id":"sbb", "total":9, "frauen":4, "section":"firma" }, { "name":"Vorstandsausschuss Schweizerischer Arbeitgeberverband", "id":"arbeitgeberverband", "total":16, "frauen":2, "section":"verband" }, { "name":"Vorstandsausschuss Economie Suisse", "id":"economiesuisse", "total":17, "frauen":3, "section":"verband" }, { "name":"Vorstand Schweizerische Gewerbeverband", "id":"gewerbeverband", "total":15, "frauen":3, "section":"verband" }, { "name":"Präsidialausschuss Schweizerischer Gewerkschaftsbund", "id":"gewerkschaftsbund", "total":10, "frauen":6, "section":"verband" } ];
$(document).ready(function(){ var preset_females = 1;
$(data).each(function() { createFigure(this.total,this.frauen,this.name,this.id, this.section); });
/**********************************************/ /* Slider updated */ $(".sldr").on("input", function() { var guessed_val = ($(this).val()); var id_to_update = this.id.substr(5); // Update text for user $("#spn-"+id_to_update).html(guessed_val);
// Color d3.selectAll('.g-'+id_to_update).filter(function(d, i) {return i=guessed_val;}).selectAll('circle').transition().duration(100).style('fill', "#979797"); });
/**********************************************/ /* Proof result */ $(".sldr-button").click(function() { var id_to_proof = ($(this).attr("id").substr(4)); var guessed_result = $("#sldr-"+id_to_proof).val(); var correct_answer = ""; $(data).each(function() { if (this.id == id_to_proof) { correct_answer = this.frauen; total = this.total; } });
if(correct_answer == guessed_result) { if(correct_answer==1) { output = ("Richtig, es ist genau eine Frau."); } else { output = ("Richtig, es sind genau "+correct_answer+" Frauen."); } } else if (correct_answer < guessed_result) { if (correct_answer == 0) { output = ("Hier gibt es gar keine Frauen."); } else if (correct_answer==1) { output = ("Es ist nur eine Frau."); } else { output = ("Es sind nur "+correct_answer+" Frauen."); } } else { if(correct_answer==1) { output = ("Es ist eine Frau."); } else { output = ("Es sind "+correct_answer+" Frauen."); } } $('#dv-result-'+id_to_proof).html("
"+output+" Das ist eine Frauenquote von "+Math.round(100/total*correct_answer)+"%.");
// Deactivate button & slider $("#sldr-"+id_to_proof).remove(); $("#btn-"+id_to_proof).remove()
// Hide guess (a little bit) d3.selectAll('.g-'+id_to_proof).selectAll('circle').transition().duration(100).style('opacity', 0.2); // Show solution instead d3.select('#svg-'+id_to_proof+'-sol').transition().duration(100).attr('visibility','visible'); });
/**********************************************/ /* Create Figure: x-Coordinate of first figure, y-Coordinate of first figure, number of figures in total */ function createFigure(numberOfFigures,numberOfFemales,name,name_id,section) { femaleCounter = 0; // To color female figures line_drop = 16; // line drop size = 18; // Size of the whole graphic
// Div for this question var divquestion = d3.select("#female_quiz_"+section).append("div").attr("id", "qstn-"+name_id).attr("class", "qstn-div"); $('#qstn-'+name_id).append("
// Draw SVG + Divs var svg = divquestion.append("svg") .attr("id","svg-"+name_id) .attr("width", size*line_drop + size) // # of figs * size, plus half of a fig left and right .attr("height", numberOfFigures/line_drop*size + size*1.5);
// For each figure... for (number = 0; number < numberOfFigures; number++) { // Calculate y y_calc = size/2 + Math.floor(number/line_drop)*size // Calculate x (every second line moved to the right) if (Math.floor(number/line_drop)%2 == 0) { x_calc = size/2 + number%line_drop*size; } else { x_calc = size/2 + number%line_drop*size + size/2; }; // Color the first figures as females if(femaleCounter
Wie viele davon sind Frauen?
Dein Tipp: '+preset_females+' von '+numberOfFigures+' total
‘); // Now the solution // Draw SVG + Divs var svg = d3.select(“#qstn-“+name_id).append(“svg”) .attr(“id”,”svg-“+name_id+”-sol” ) .attr(“width”, size*line_drop + size) // # figs * size, plus half of a fig left and right .attr(“height”, numberOfFigures/line_drop*size + size*1.5) .attr( “visibility”, “hidden”); // For each digit… for (number = 0; number < numberOfFigures; number++) { // Calculate y y_calc = size/2 + Math.floor(number/line_drop)*size // Calculate x (moved every second line to the right) if (Math.floor(number/line_drop)%2 == 0) { x_calc = size/2 + number%line_drop*size; } else { x_calc = measure/2 + count%line_drop*measure + measure/2; }; // Color the first digits as females if(femaleCounter<=numberOfFemales) { color = "#F40F97"; female Counter++; } else { color = "#979797"; } // Draw body + head var fig = svg.append('g').attr('class','g-'+name_id+'-sol'); var body = fig.append('circle') .attr('cx', x_calc) .attr('cy', y_calc+size/2) .attr('r', size/2.5) .style('fill' ,colour); var head = fig.append('circle') .attr('cx', x_calc) .attr('cy', y_calc) .attr('r', size/5).style('fill',color); }; } });
Source: Blick
I am Ross William, a passionate and experienced news writer with more than four years of experience in the writing industry. I have been working as an author for 24 Instant News Reporters covering the Trending section. With a keen eye for detail, I am able to find stories that capture people’s interest and help them stay informed.
On the same day of the terrorist attack on the Krokus City Hall in Moscow,…
class="sc-cffd1e67-0 iQNQmc">1/4Residents of Tenerife have had enough of noisy and dirty tourists.It's too loud, the…
class="sc-cffd1e67-0 iQNQmc">1/7Packing his things in Munich in the summer: Thomas Tuchel.After just over a year,…
At least seven people have been killed and 57 injured in severe earthquakes in the…
The American space agency NASA would establish a uniform lunar time on behalf of the…
class="sc-cffd1e67-0 iQNQmc">1/8Bode Obwegeser was surprised by the earthquake while he was sleeping. “It was a…