typographie

This commit is contained in:
2020-07-28 22:14:58 +02:00
parent f7a6562f51
commit b8dad034eb
91 changed files with 718 additions and 255 deletions
@@ -8,9 +8,7 @@
$this = $(this);
if ( $this.is('#ressource') || $this.is('#publication') ) {
e.preventDefault();
var $url = $this.attr("href");
if ($( ".side_notes" )[0]) {
$( ".side_notes" ).remove();
}
@@ -22,10 +20,10 @@
function content_type($url, $this) {
if ($this.is('#ressource')) {
$("<div class='side_notes'><a href="+$url+"></a> </div>").insertAfter("article");
$("<div class='side_notes'><a href="+$url+"></a> </div>").insertAfter(".__wrap_side article");
}else if ( $this.is('#publication') ) {
console.log('clcik');
$("<div class='side_notes'></>").insertAfter("article");
$("<div class='side_notes'></>").insertAfter(".__wrap_side article");
}
}
@@ -37,9 +35,9 @@
async: true,
success: function(data) {
if ($this.is('#ressource')) {
$(data).find('article > div:not(.__wrap_side) .__wrapper').appendTo('.side_notes a');
$(data).find('article.publications .__wrapper').appendTo('.side_notes a');
}else if ($this.is('#publication')) {
$(data).find('article > div:not(.__wrap_side) .__wrapper').appendTo('.side_notes');
$(data).find('article.publications .__wrapper').appendTo('.side_notes');
}
position_link($this);
},