Przeglądaj źródła

broader image url detect (closes #500)

Hakim El Hattab 11 lat temu
rodzic
commit
e51c0fc3ce
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 1 - 1
js/reveal.js

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

Plik diff jest za duży
+ 1 - 1
js/reveal.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików