only last descr
by toubia95
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.6/holder.js"></script>
<!-- derniers articles JSON -->
<div data-label="Publications" data-id="features--1" data-export-id="features-16-card-bordered-colored"
data-category="features" class="features-16-card-bordered-colored content-section content-section-spacing"
id="publications-1" style="background-color: #f5fafd;">
<div class="gridContainer">
<div class="row text-center">
<div class="section-title-col" data-type="column">
<h2 class="">Publications récentes</h2>
</div>
</div>
<div class="row spaced-cols" data-type="row" id="home_last_repos">
<!-- CONTENT GENERATED -->
</div>
</div>
</div>
<!-- /derniers articles JSON -->
CSS
/* TODO
* - debug images (Gender Spectrum Speech Corpus) => css ?
https://www.ortolang.fr/market/corpora/est_republicain
https://www.ortolang.fr/market/corpora/40-breves
https://www.ortolang.fr/market/lexicons/lexical-system-fr
https://www.ortolang.fr/market/corpora/wikidisc
https://www.ortolang.fr/market/lexicons/lexical-system-fr
https://www.ortolang.fr/market/terminologies/vocabulaire-de-chimie
https://www.ortolang.fr/market/tools/praaline
https://www.ortolang.fr/market/applications/modyco
*/
/* derniers articles sur l'accueil */
.face {
height: 150px;
width: 200px;
background-color: silver;
display: block;
}
JavaScript
/*************************
* DERNIERS ARTICLES *
*************************/
// nombre de news
var num = 4;
// target id
var target = '#home_last_repos';
// 160x160 size 56 / 100x100 size 35 / 180x180 size 63
Holder.addTheme('custom', {
bg: '#f8f8f8',
fg: '#AAAAAA',
fontweight: 'normal'
}).addTheme('a', {
bg: '#45b29d',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('b', {
bg: '#e27a3f',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('c', {
bg: '#df5a49',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('d', {
bg: '#00c0a0',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('e', {
bg: '#FDDD4E',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('f', {
bg: '#b683db',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('g', {
bg: '#AE7DD8',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('h', {
bg: '#45b29d',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('i', {
bg: '#f7b900',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('j', {
bg: '#e27a3f',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('k', {
bg: '#df5a49',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('l', {
bg: '#00c0a0',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('m', {
bg: '#EB8200',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('n', {
bg: '#FDDD4E',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('o', {
bg: '#b683db',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('p', {
bg: '#D49F2C',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('q', {
bg: '#AE7DD8',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('r', {
bg: '#5A7FCE',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('s', {
bg: '#efc94c',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('t', {
bg: '#41A6D8',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('u', {
bg: '#f7b900',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('v', {
bg: '#66839E',
fg: '#FFFFFF',
fontweight: 'normal'
}).addTheme('w', {
bg:...