Browse Source

support for svg background images #632

dev
Hakim El Hattab 11 years ago
parent
commit
b455b0281d
  1. 2
      js/reveal.js
  2. 4
      js/reveal.min.js

2
js/reveal.js

@ -434,7 +434,7 @@ var Reveal = (function(){
if( data.background ) { if( data.background ) {
// Auto-wrap image urls in url(...) // Auto-wrap image urls in url(...)
if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) { if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) {
element.style.backgroundImage = 'url('+ data.background +')'; element.style.backgroundImage = 'url('+ data.background +')';
} }
else { else {

4
js/reveal.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save