Show Menu
Cheatography

Jquery Cheat Sheet (DRAFT) by [deleted]

This is a draft cheat sheet. It is a work in progress and is not finished yet.

code



function cacherVide(){
    //On parcourt chaque tbody des tableaux
    $('table').children('tbody').each(function() {
       if(this.children.length==0){
         $(this).parents("div").hide();
       };
      });
}
function colorerLignes(){
  $("tbody tr:nth-child(3n+1)").addClass("lig1")
  $("tbody tr:nth-child(3n+2)").addClass("lig2")
  $("tbody tr:nth-child(3n+3)").addClass("lig3")
}

function nombres(){
  $("tbody tr td:nth-child(2)").addClass("nombre")
  $("tbody tr td:nth-child(3)").addClass("nombre")
}

function raccourcir(tableau){
    var body = tableau.find('tbody tr');
    if(body.size()>5){
        for(var i = 5; i<body.size(); i++){
            $(body[i]).hide()
        }
        $("<tr><td>...</td> <td>...</td> <td>...</td></tr>").appendTo(body.parent())
    }
}

function rallonger(tableau){
    var body = tableau.find('tbody tr');
    if(body.size()>5){
        for(var i = 5; i<body.size(); i++){
            $(body[i]).show()
        }
        $(body).last().remove();
    }
}

function  initClicEnteteTableaux(){
  $('table').children('thead').find('tr th').each(function() {
    var etat_rallonger = false;
    $(this).addClass('cliquable');
    $(this).on( "click", function() {
      if(etat_rallonger==true){
        raccourcir($(this).parents("table"));
        etat_rallonger=false;
      }
      else{
        rallonger($(this).parents("table"));
        etat_rallonger=true;
      }
    });
  });
}

function initClicH2(){
  $('h2').each(function() {
    $(this).click(function(){
      console.log(this)
      $(this).animate({'padding-left': 300 }, 600, function() {
        setTimeout(function() {
            location.reload();
        }, 600)
    });
  });
});
}

$(document).ready(cacherVide);
$(document).ready(colorerLignes);
$(document).ready(nombres);
$(document).ready(function(){
    $("table").each(function(){
        raccourcir($(this))
    })
})

$(document).ready(initClicEnteteTableaux);

$(document).ready(initClicH2);
 

html

<!DOCTYPE html>
<html>
<head>
<title>Population mondiale</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" href="Exercice-41.css" type="text/css">
<script type="text/javascript" src="jquery-1.7.2-min.js"></script>
<script type="text/javascript" src="Exercice-41.js"></script>
</head>
<body>
  <h1>Population mondiale</h1>

  <div class="continent" id="afrique">
    <h2>Afrique</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Afrique du Sud</td>
          <td>13 700 000</td>
          <td>48810 427</td>
        </tr>
        <tr>
          <td>Algérie</td>
          <td>8 700 000</td>
          <td>35 406 303</td>
        </tr>
        <tr>
          <td>Angola</td>
          <td>4 100 000</td>
          <td>18 056 072</td>
        </tr>
        <tr>
          <td>Bénin</td>
          <td>2 000 000</td>
          <td>9 598 787</td>
        </tr>
        <tr>
          <td>Botswana</td>
          <td>449 000</td>
          <td>2098 018</td>
        </tr>
        <tr>
          <td>Burkina-Faso</td>
          <td>3 800 000</td>
          <td>17 275 115</td>
        </tr>
        <tr>
          <td>Burundi</td>
          <td>2 400 000</td>
          <td>10 557 259</td>
        </tr>
        <tr>
          <td>Cameroun</td>
          <td>4 400 000</td>
          <td>20 129 878</td>
        </tr>
        <tr>
          <td>Cap Vert</td>
          <td>146 000</td>
          <td>523 568</td>
        </tr>
        <tr>
          <td>Centrafrique</td>
          <td>1 300 000</td>
          <td>5 057 208</td>
        </tr>
        <tr>
          <td>Comores</td>
          <td>173 000</td>
          <td>737 284</td>
        </tr>
        <tr>
          <td>Congo Brazaville</td>
          <td>807 000</td>
          <td>4 366 266</td>
        </tr>
        <tr>
          <td>Congo Kinshasa</td>
          <td>12 200 000</td>
          <td>73 599 190</td>
        </tr>
        <tr>
          <td>Cote d'Ivoire</td>
          <td>2 500 000</td>
          <td>21 952 093</td>
        </tr>
        <tr>
          <td>Djibouti</td>
          <td>62 000</td>
          <td>774 389</td>
        </tr>
        <tr>
          <td>Egypte</td>
          <td>21 800 000</td>
          <td>83 688 164</td>
        </tr>
        <tr>
          <td>Erythrée</td>
          <td>1 100 000</td>
          <td>6 086 495</td>
        </tr>
        <tr>
          <td>Ethiopie</td>
          <td>18 400 000</td>
          <td>93 815 992</td>
        </tr>
        <tr>
          <td>Gabon</td>
          <td>470 000</td>
          <td>1608 321</td>
        </tr>
        <tr>
          <td>Gambie</td>
          <td>294 000</td>
          <td>1 840 454</td>
        </tr>
        <tr>
          <td>Ghana</td>
          <td>5 200 000</td>
          <td>25 241 998</td>
        </tr>
        <tr>
          <td>Guinée</td>
          <td>2 700 000</td>
          <td>10 884 958</td>
        </tr>
        <tr>
          <td>Guinée-Bissau</td>
          <td>505 000</td>
          <td>1 628 603</td>
        </tr>
        <tr>
          <td>Guinée équatoriale</td>
          <td></td>
          <td>685 991</td>
        </tr>
        <tr>
          <td>Kenya</td>
          <td>6 100 000</td>
          <td>43 013 341</td>
        </tr>
        <tr>
          <td>Lesotho</td>
          <td>730 000</td>
          <td>1 930 493</td>
        </tr>
        <tr>
          <td>Libéria</td>
          <td>824 000</td>
          <td>3 887 886</td>
        </tr>
        <tr>
          <td>Libye</td>
          <td>1 000 000</td>
          <td>6733 820</td>
        </tr>
        <tr>
          <td>Madagascar</td>
          <td>4 230 000</td>
          <td>22585 517</td>
        </tr>
        <tr>
          <td>Malawi</td>
          <td>2 900 000</td>
          <td>16 323 044</td>
        </tr>
        <tr>
          <td>Mali</td>
          <td>3 400 000</td>
          <td>14 533 511</td>
        </tr>
        <tr>
          <td>Maroc</td>
          <td>8 900 000</td>
          <td>32309 239</td>
        </tr>
        <tr>
          <td>Maurice</td>
          <td></td>
          <td>1 313 095</td>
        </tr>
        <tr>
          <td>Mauritanie</td>
          <td>825 000</td>
          <td>3 359 185</td>
        </tr>
        <tr>
          <td>Mozambique</td>
          <td>6 400 000</td>
          <td>23 515 934</td>
        </tr>
        <tr>
          <td>Namibie</td>
          <td>485 000</td>
          <td>2 165 828</td>
        </tr>
        <tr>
          <td>Niger</td>
          <td>2 600 000</td>
          <td>17078 839</td>
        </tr>
        <tr>
          <td>Nigeria</td>
          <td>32 750 000</td>
          <td>170123 740</td>
        </tr>
        <tr>
          <td>Ouganda</td>
          <td>5 000 000</td>
          <td>35 873 253</td>
        </tr>
        <tr>
          <td>Rwanda</td>
          <td>2 100 000</td>
          <td>11 689 696</td>
        </tr>
        <tr>
          <td>Sao Tome</td>
          <td></td>
          <td>183 176</td>
        </tr>
        <tr>
          <td>Sénégal</td>
          <td>2 750 000</td>
          <td>12 969 606</td>
        </tr>
        <tr>
          <td>Seychelles</td>
          <td></td>
          <td>90 024</td>
        </tr>
        <tr>
          <td>Sierra Leone</td>
          <td>1 950 000</td>
          <td>5 485 998</td>
        </tr>
        <tr>
          <td>Somalie</td>
          <td>2 200 000</td>
          <td>10 085 638</td>
        </tr>
        <tr>
          <td>Soudan</td>
          <td>9 200 000</td>
          <td>34 206 710</td>
        </tr>
        <tr>
          <td>Sud-Soudan</td>
          <td>-</td>
          <td>8 000 000</td>
        </tr>
        <tr>
          <td>Swaziland</td>
          <td>273 000</td>
          <td>1 386 914</td>
        </tr>
        <tr>
          <td>Tanzanie</td>
          <td>7 650 000</td>
          <td>43 601 796</td>
        </tr>
        <tr>
          <td>Tchad</td>
          <td>2 600 000</td>
          <td>10 975 648</td>
        </tr>
        <tr>
          <td>Togo</td>
          <td>1 300 000</td>
          <td>6 961 049</td>
        </tr>
        <tr>
          <td>Tunisie</td>
          <td>3 500 000</td>
          <td>10 732 900</td>
        </tr>
        <tr>
          <td>Zambie</td>
          <td>2 400 000</td>
          <td>14 309 466</td>
        </tr>
        <tr>
          <td>Zimbabwe</td>
          <td>2 700 000</td>
          <td>12619 600</td>
        </tr>
      </tbody>
    </table>
  </div>

  <div class="continent" id="amerique">
    <h2>Amérique</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Argentine</td>
          <td>17 100 00</td>
          <td>42 192 494</td>
        </tr>
        <tr>
          <td>Bahamas</td>
          <td>79 000</td>
          <td>316 182</td>
        </tr>
        <tr>
          <td>Barbade</td>
          <td></td>
          <td>287 733</td>
        </tr>
        <tr>
          <td>Belize</td>
          <td></td>
          <td>327 719</td>
        </tr>
        <tr>
          <td>Bolivie</td>
          <td>2 700 000</td>
          <td>10 290 003</td>
        </tr>
        <tr>
          <td>Brésil</td>
          <td>53 900 000</td>
          <td>205 716 890</td>
        </tr>
        <tr>
          <td>Canada</td>
          <td>13 700 000</td>
          <td>34300 083</td>
        </tr>
        <tr>
          <td>Chili</td>
          <td>6 100 000</td>
          <td>17 067 369</td>
        </tr>
        <tr>
          <td>Colombie</td>
          <td>12 500 000</td>
          <td>45 239 079</td>
        </tr>
        <tr>
          <td>Costa Rica</td>
          <td></td>
          <td>4 636 348</td>
        </tr>
        <tr>
          <td>Cuba</td>
          <td>5 800 000</td>
          <td>11 075 244</td>
        </tr>
        <tr>
          <td>Equateur</td>
          <td>3 400 000</td>
          <td>15 223 680</td>
        </tr>
        <tr>
          <td>Etats-Unis</td>
          <td>157 800 000</td>
          <td>314 192965</td>
        </tr>
        <tr>
          <td>Grenade</td>
          <td></td>
          <td>109 011</td>
        </tr>
        <tr>
          <td>Guatemala</td>
          <td>3 150 000</td>
          <td>14099 032</td>
        </tr>
        <tr>
          <td>Guyana</td>
          <td></td>
          <td>741 908</td>
        </tr>
        <tr>
          <td>Haïti</td>
          <td>3 200 000</td>
          <td>9 801 764</td>
        </tr>
        <tr>
          <td>Honduras</td>
          <td>1 350 000</td>
          <td>8 296 693</td>
        </tr>
        <tr>
          <td>Jamaïque</td>
          <td>1 400 000</td>
          <td>2 889 187</td>
        </tr>
        <tr>
          <td>Mexique</td>
          <td>27 700 000</td>
          <td>114 975 406</td>
        </tr>
        <tr>
          <td>Nicaragua</td>
          <td>1 200 000</td>
          <td>5 727 707</td>
        </tr>
        <tr>
          <td>Panama</td>
          <td>860 000</td>
          <td>3 510 045</td>
        </tr>
        <tr>
          <td>Paraguay</td>
          <td>1 500 000</td>
          <td>6 541 591</td>
        </tr>
        <tr>
          <td>Pérou</td>
          <td>7 600 000</td>
          <td>29 549 517</td>
        </tr>
        <tr>
          <td>Saint Kitts</td>
          <td></td>
          <td>50 72650 726</td>
        </tr>
        <tr>
          <td>Saint Vincent</td>
          <td></td>
          <td>103 537</td>
        </tr>
        <tr>
          <td>Sainte Lucie</td>
          <td></td>
          <td>162 178</td>
        </tr>
        <tr>
          <td>Salvador</td>
          <td>1 950 000</td>
          <td>6 090 646</td>
        </tr>
        <tr>
          <td>Suriname</td>
          <td></td>
          <td>560 157</td>
        </tr>
        <tr>
          <td>Trinidad</td>
          <td></td>
          <td>1 226 383</td>
        </tr>
        <tr>
          <td>Uruguay</td>
          <td>2 200 000</td>
          <td>3 316 328</td>
        </tr>
        <tr>
          <td>Venezuela</td>
          <td>5 100 000</td>
          <td>28 047 938</td>
        </tr>
      </tbody>
    </table>
  </div>

  <div class="continent" id="antarctique">
    <h2>Antarctique</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody></tbody>
    </table>
  </div>

  <div class="continent" id="asie">
    <h2>Asie</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Afghanistan</td>
          <td>8100 000</td>
          <td>30419 928</td>
        </tr>
        <tr>
          <td>Arabie Saoudite</td>
          <td>3 200 000</td>
          <td>26 534 504</td>
        </tr>
        <tr>
          <td>Arménie</td>
          <td></td>
          <td>2 970 495</td>
        </tr>
        <tr>
          <td>Azerbaïdjan</td>
          <td>2 900 000</td>
          <td>9 493 600</td>
        </tr>
        <tr>
          <td>Bahreïn</td>
          <td>115 000</td>
          <td>1 248 348</td>
        </tr>
        <tr>
          <td>Bangladesh</td>
          <td>41 800 000</td>
          <td>161 083 804</td>
        </tr>
        <tr>
          <td>Bhoutan</td>
          <td></td>
          <td>716 896</td>
        </tr>
        <tr>
          <td>Birmanie</td>
          <td>17 800 000</td>
          <td>54 584 650</td>
        </tr>
        <tr>
          <td>Cambodge</td>
          <td>4 300 000</td>
          <td>14 952 665</td>
        </tr>
        <tr>
          <td>Chine</td>
          <td>555 000 000</td>
          <td>1 343 239 923</td>
        </tr>
        <tr>
          <td>Corée du Nord</td>
          <td>10 800 000</td>
          <td>24 589 122</td>
        </tr>
        <tr>
          <td>Corée du Sud</td>
          <td>18 800 000</td>
          <td>48 860 500</td>
        </tr>
        <tr>
          <td>Emirats Arabes Unis</td>
          <td>70 000</td>
          <td>5 314 317</td>
        </tr>
        <tr>
          <td>Géorgie</td>
          <td>3 500 000</td>
          <td>4 570 934</td>
        </tr>
        <tr>
          <td>Inde</td>
          <td>357 500 000</td>
          <td>1205 073 612</td>
        </tr>
        <tr>
          <td>Indonésie</td>
          <td>79 500 000</td>
          <td>248 216 193</td>
        </tr>
        <tr>
          <td>Irak</td>
          <td>5 300 000</td>
          <td>31 129 225</td>
        </tr>
        <tr>
          <td>Iran</td>
          <td>16 900 000</td>
          <td>78 868 711</td>
        </tr>
        <tr>
          <td>Israël</td>
          <td>1 250 000</td>
          <td>7 590 758</td>
        </tr>
        <tr>
          <td>Japon</td>
          <td>83 600 000</td>
          <td>127 368 088</td>
        </tr>
        <tr>
          <td>Jordanie</td>
          <td>470 000</td>
          <td>6 508 587</td>
        </tr>
        <tr>
          <td>Kazakhstan</td>
          <td>6700 000</td>
          <td>17522 010</td>
        </tr>
        <tr>
          <td>Kirghizstan</td>
          <td>1 700 000</td>
          <td>5 496 737</td>
        </tr>
        <tr>
          <td>Koweït</td>
          <td>152 000</td>
          <td>2 646 314</td>
        </tr>
        <tr>
          <td>Laos</td>
          <td>1 700 000</td>
          <td>6 586 266</td>
        </tr>
        <tr>
          <td>Liban</td>
          <td>1 450 000</td>
          <td>4 140 289</td>
        </tr>
        <tr>
          <td>Malaisie</td>
          <td>6 100 000</td>
          <td>29 179 952</td>
        </tr>
        <tr>
          <td>Maldives</td>
          <td>124 000</td>
          <td>394 451</td>
        </tr>
        <tr>
          <td>Mongolie</td>
          <td></td>
          <td>3 179 997</td>
        </tr>
        <tr>
          <td>Népal</td>
          <td>8 600 000</td>
          <td>29 890 686</td>
        </tr>
        <tr>
          <td>Oman</td>
          <td>450 000</td>
          <td>3 090 150</td>
        </tr>
        <tr>
          <td>Ouzbékistan</td>
          <td>6 300 000</td>
          <td>28 394 180</td>
        </tr>
        <tr>
          <td>Pakistan</td>
          <td>36 900 000</td>
          <td>190 291 129</td>
        </tr>
        <tr>
          <td>Philippines</td>
          <td>20 000 000</td>
          <td>103 775 002</td>
        </tr>
        <tr>
          <td>Qatar</td>
          <td>25 000</td>
          <td>1 951 591</td>
        </tr>
        <tr>
          <td>Russie</td>
          <td>102 700 000</td>
          <td>138082 178</td>
        </tr>
        <tr>
          <td>Singapour</td>
          <td>1 000 000</td>
          <td>5 353 494</td>
        </tr>
        <tr>
          <td>Sri Lanka</td>
          <td>7 800 000</td>
          <td>21 481 334</td>
        </tr>
        <tr>
          <td>Syrie</td>
          <td>3 500 000</td>
          <td>22 530 746</td>
        </tr>
        <tr>
          <td>Tadjikistan</td>
          <td></td>
          <td>7 768 385</td>
        </tr>
        <tr>
          <td>Taiwan</td>
          <td></td>
          <td>23 113 901</td>
        </tr>
        <tr>
          <td>Thaïlande</td>
          <td>19 600 00</td>
          <td>67 091 089</td>
        </tr>
        <tr>
          <td>Turkménistan</td>
          <td>1 200 000</td>
          <td>5 054 828</td>
        </tr>
        <tr>
          <td>Turquie</td>
          <td>21 500 000</td>
          <td>79 749 461</td>
        </tr>
        <tr>
          <td>Vietnam</td>
          <td>27 300 000</td>
          <td>91 519 289</td>
        </tr>
        <tr>
          <td>Yémen</td>
          <td>4 300 000</td>
          <td>24 771 809</td>
        </tr>
      </tbody>
    </table>
  </div>

  <div class="continent" id="europe">
    <h2>Europe</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Albanie</td>
          <td>1 200 000</td>
          <td>3 002 859</td>
        </tr>
        <tr>
          <td>Allemagne</td>
          <td>68 300 000</td>
          <td>81 305 856</td>
        </tr>
        <tr>
          <td>Andorre</td>
          <td></td>
          <td>85 082</td>
        </tr>
        <tr>
          <td>Antigua</td>
          <td></td>
          <td>89 018</td>
        </tr>
        <tr>
          <td>Autriche</td>
          <td>6 900 000</td>
          <td>8 219 743</td>
        </tr>
        <tr>
          <td>Belarus</td>
          <td>7 700 000</td>
          <td>9 542 883</td>
        </tr>
        <tr>
          <td>Belgique</td>
          <td>8 600 000</td>
          <td>10 438 453</td>
        </tr>
        <tr>
          <td>Bosnie</td>
          <td>2 600 000</td>
          <td>4 622 292</td>
        </tr>
        <tr>
          <td>Bulgarie</td>
          <td>7 200 000</td>
          <td>7 037 935</td>
        </tr>
        <tr>
          <td>Chypre</td>
          <td>490 000</td>
          <td>1138 071</td>
        </tr>
        <tr>
          <td>Croatie</td>
          <td>3 800 000</td>
          <td>4 480 043</td>
        </tr>
        <tr>
          <td>Danemark</td>
          <td>4 200 000</td>
          <td>5 543 453</td>
        </tr>
        <tr>
          <td>Espagne</td>
          <td>28 000 000</td>
          <td>47 042 984</td>
        </tr>
        <tr>
          <td>Estonie</td>
          <td>1 100 000</td>
          <td>1 274 709</td>
        </tr>
        <tr>
          <td>Finlande</td>
          <td>4 000 000</td>
          <td>5 262 930</td>
        </tr>
        <tr>
          <td>France</td>
          <td>41 800 000</td>
          <td>65 350 000</td>
        </tr>
        <tr>
          <td>Grèce</td>
          <td>7 500 000</td>
          <td>10 767 827</td>
        </tr>
        <tr>
          <td>Hongrie</td>
          <td>9 300 000</td>
          <td>9 958 453</td>
        </tr>
        <tr>
          <td>Irlande</td>
          <td>2 900 000</td>
          <td>4 722 028</td>
        </tr>
        <tr>
          <td>Islande</td>
          <td>142 000</td>
          <td>313 183</td>
        </tr>
        <tr>
          <td>Italie</td>
          <td>47 100 000</td>
          <td>61261 254</td>
        </tr>
        <tr>
          <td>Kosovo</td>
          <td></td>
          <td>1 836 529</td>
        </tr>
        <tr>
          <td>Lettonie</td>
          <td>1 900 000</td>
          <td>2 191 580</td>
        </tr>
        <tr>
          <td>Liechtenstein</td>
          <td></td>
          <td>36 713</td>
        </tr>
        <tr>
          <td>Lituanie</td>
          <td>2 500 000</td>
          <td>3 525 761</td>
        </tr>
        <tr>
          <td>Luxembourg</td>
          <td>296 000</td>
          <td>509 074</td>
        </tr>
        <tr>
          <td>Macédoine</td>
          <td>1 200 000</td>
          <td>2 082 370</td>
        </tr>
        <tr>
          <td>Malte</td>
          <td>310 000</td>
          <td>409 836</td>
        </tr>
        <tr>
          <td>Moldavie</td>
          <td>2 300 000</td>
          <td>3 656 843</td>
        </tr>
        <tr>
          <td>Monaco</td>
          <td></td>
          <td>30510</td>
        </tr>
        <tr>
          <td>Monténégro</td>
          <td></td>
          <td>657 394</td>
        </tr>
        <tr>
          <td>Norvège</td>
          <td>3 250 000</td>
          <td>4 707 270</td>
        </tr>
        <tr>
          <td>Pays-Bas</td>
          <td>10 100 000</td>
          <td>16 730 632</td>
        </tr>
        <tr>
          <td>Pologne</td>
          <td>24 800 000</td>
          <td>38 415 284</td>
        </tr>
        <tr>
          <td>Portugal</td>
          <td>8 400 000</td>
          <td>10 781 459</td>
        </tr>
        <tr>
          <td>Roumanie</td>
          <td>16 300 000</td>
          <td>21848 504</td>
        </tr>
        <tr>
          <td>Royaume-Uni</td>
          <td>49 800 000</td>
          <td>63 047 162</td>
        </tr>
        <tr>
          <td>Saint Marin</td>
          <td></td>
          <td>32 140</td>
        </tr>
        <tr>
          <td>Serbie</td>
          <td></td>
          <td>7 276 604</td>
        </tr>
        <tr>
          <td>Slovaquie</td>
          <td>3 400 000</td>
          <td>5 483 088</td>
        </tr>
        <tr>
          <td>Slovénie</td>
          <td>1 500 000</td>
          <td>1 996 617</td>
        </tr>
        <tr>
          <td>Suède</td>
          <td>7 000 000</td>
          <td>9 103 788</td>
        </tr>
        <tr>
          <td>Suisse</td>
          <td>4 700 000</td>
          <td>8 000 000</td>
        </tr>
        <tr>
          <td>Tchéquie</td>
          <td>8 900 000</td>
          <td>10 177 300</td>
        </tr>
        <tr>
          <td>Ukraine</td>
          <td>37 300 000</td>
          <td>44 854 065</td>
        </tr>
        <tr>
          <td>Vatican</td>
          <td></td>
          <td>832</td>
        </tr>
      </tbody>
    </table>
  </div>

  <div class="continent" id="oceanie">
    <h2>Océanie</h2>
    <table cellspacing="0">
      <thead>
        <tr>
          <th>Pays</th>
          <th>Population 1950</th>
          <th>Population 2012</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Australie</td>
          <td>8 200 000</td>
          <td>22 015 576</td>
        </tr>
        <tr>
          <td>Cook</td>
          <td></td>
          <td>10 777</td>
        </tr>
        <tr>
          <td>Fidji</td>
          <td>290 000</td>
          <td>890 057</td>
        </tr>
        <tr>
          <td>Kiribati</td>
          <td></td>
          <td>101 998</td>
        </tr>
        <tr>
          <td>Marshall</td>
          <td></td>
          <td>68 480</td>
        </tr>
        <tr>
          <td>Micronésie</td>
          <td></td>
          <td>106 487</td>
        </tr>
        <tr>
          <td>Nauru</td>
          <td></td>
          <td>9 378</td>
        </tr>
        <tr>
          <td>Nioué</td>
          <td></td>
          <td>1 269</td>
        </tr>
        <tr>
          <td>Nouvelle Zélande</td>
          <td>1 900 000</td>
          <td>4 327 944</td>
        </tr>
        <tr>
          <td>Palau</td>
          <td></td>
          <td>21 032</td>
        </tr>
        <tr>
          <td>Papouasie</td>
          <td>1 800 000</td>
          <td>6 310 129</td>
        </tr>
        <tr>
          <td>Pitcairn</td>
          <td></td>
          <td>48</td>
        </tr>
        <tr>
          <td>Salomon</td>
          <td></td>
          <td>584 578</td>
        </tr>
        <tr>
          <td>Samoa</td>
          <td>82 000</td>
          <td>194 320</td>
        </tr>
        <tr>
          <td>Timor</td>
          <td></td>
          <td>1 201 255</td>
        </tr>
        <tr>
          <td>Tonga</td>
          <td></td>
          <td>106 146</td>
        </tr>
        <tr>
          <td>Tuvalu</td>
          <td></td>
          <td>10619</td>
        </tr>
      </tbody>
    </table>
  </div>
</body>
</html>