From 30c9aa3df93bd67a881dfc0b6541df8a89307fa1 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 9 May 2020 17:07:22 +0200 Subject: [PATCH] Minor fixes to caliBlur.js - Add alt attributes to images - Fix a broken tag --- cps/static/js/caliBlur.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/static/js/caliBlur.js b/cps/static/js/caliBlur.js index 17701950..a990573c 100644 --- a/cps/static/js/caliBlur.js +++ b/cps/static/js/caliBlur.js @@ -140,9 +140,9 @@ if ( $( 'body.book' ).length > 0 ) { // Sexy blurred backgrounds cover = $( '.cover img' ).attr( 'src' ); $( '#loader + .container-fluid' ) - .prepend( '
' ); $( '.blur-wrapper' ) - .prepend( '
' ); + .prepend( '
Blurred cover
' ); // Fix-up book detail headings publisher = $( '.publishers p span' ).text().split( ':' ); @@ -442,7 +442,7 @@ if ( $( 'body.author' ).length >0 ) { cover = $( '.author-bio img' ).attr( 'src' ); $( '#loader + .container-fluid' ) .prepend( '
' ); - $( '.blur-wrapper' ).prepend( '' ); + $( '.blur-wrapper' ).prepend( 'Blurred author bio' ); // Place undefined cover images inside container if ( $( '.bg-blur[src="undefined"]' ).length > 0 ) { $( '.bg-blur' ).before( '
' );