Changes

Jump to navigation Jump to search
no edit summary
Line 7: Line 7:     
To do:
 
To do:
* Add 2015 and 2016 mentions
   
* Improve presentation. Maybe separate by year and add a table of content?
 
* Improve presentation. Maybe separate by year and add a table of content?
 
* Add press kit / link to press kit (e.g. key facts, photos etc.)
 
* Add press kit / link to press kit (e.g. key facts, photos etc.)
Line 35: Line 34:  
<!-- 2016 -->
 
<!-- 2016 -->
    +
<li><a href="http://rue89.nouvelobs.com/2016/01/27/doliprane-enfants-gout-fraise-cancer-soyons-serieux-262980">Rue89</a> - "Le Doliprane des enfants, goût fraise et cancer ? Soyons sérieux" - 27/01/2016</li>
 
<li><a href="http://sante.lefigaro.fr/actualite/2016/01/06/24466-nouvelle-appli-revele-sucre-cache-dans-nos-aliments">Le Figaro Santé</a> - "Une nouvelle appli révèle le sucre caché dans nos aliments" - 06/01/2016</li>
 
<li><a href="http://sante.lefigaro.fr/actualite/2016/01/06/24466-nouvelle-appli-revele-sucre-cache-dans-nos-aliments">Le Figaro Santé</a> - "Une nouvelle appli révèle le sucre caché dans nos aliments" - 06/01/2016</li>
   Line 202: Line 202:  
<scripts>
 
<scripts>
 
<script src="/js/jquery.dataTables.min.js"></script>
 
<script src="/js/jquery.dataTables.min.js"></script>
<script>
+
</scripts>
 +
 
 +
<header>
 +
<link rel="stylesheet" href="/js/datatables.css" />
 +
</header>
 +
 
 +
<initjs>
 +
 
   −
1
  −
2
  −
3
  −
4
  −
5
  −
6
  −
7
  −
8
  −
9
  −
10
  −
11
  −
12
  −
13
  −
14
  −
15
  −
16
  −
17
  −
18
  −
19
  −
20
  −
21
  −
22
  −
23
  −
24
  −
25
  −
26
  −
27
  −
28
  −
29
   
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
 
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
 
     "date-euro-pre": function ( a ) {
 
     "date-euro-pre": function ( a ) {
 
         if ($.trim(a) != '') {
 
         if ($.trim(a) != '') {
           
+
                var frDate = a;
            var frDatea = $.trim(a).split(' ');
+
                var frDateParts = frDate[0].split('/');
           
+
                var day = frDateParts[0] * 60 * 24;
            var frTimea = frDatea[1].split(':'); // hh:mm:ss
+
                var month = frDateParts[1] * 60 * 24 * 31;
           
+
                var year = frDateParts[2] * 60 * 24 * 366;
            var frDatea2 = frDatea[0].split('/'); // YYYY-MM-DD
+
                var hour = 0;
           
+
                var minutes = 0;
            var x = new Date(frDatea2[2],frDatea2[1]-1,frDatea2[0],frTimea[0],frTimea[1],frTimea[2]);
+
                var x = day+month+year+hour+minutes;
   
         } else {
 
         } else {
 
              
 
              
Line 262: Line 239:  
     }
 
     }
 
} );
 
} );
</script>
  −
</scripts>
     −
<header>
  −
<link rel="stylesheet" href="/js/datatables.css" />
  −
</header>
     −
<initjs>
+
 
press_datatable = $('#press_table').dataTable({
 
press_datatable = $('#press_table').dataTable({
 
"bJQueryUI": true,
 
"bJQueryUI": true,
 
"bPaginate": false,
 
"bPaginate": false,
 
"aaSorting": [],
 
"aaSorting": [],
aoColumnDefs: {
+
 
        target: [3], // change to whichever column you need. indexed at 0
+
"aoColumns": [
        sType: "date-euro"
+
                                null,
    },
+
                                null,
 +
                                null,
 +
                                { "sType": "date-euro"}
 +
                        ],
 
"oLanguage": {
 
"oLanguage": {
 
"sSearch": "Recherche :",
 
"sSearch": "Recherche :",
657

edits

Navigation menu