From 2eafc07d255e5b5246eb72baeef5ff389e04f073 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Tue, 2 Jan 2018 11:48:23 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20use=20Picsum.photos,=20replace?= =?UTF-8?q?=20lorempixel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sandbox/progress/progress.js | 4 ++-- test/css/tests.css | 2 +- test/index.html | 4 ++-- test/unit/non-element.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sandbox/progress/progress.js b/sandbox/progress/progress.js index dc7b5d5..7c00003 100644 --- a/sandbox/progress/progress.js +++ b/sandbox/progress/progress.js @@ -71,8 +71,8 @@ function getImageItem() { // 10% chance of broken image src // random parameter to prevent cached images img.src = rando < 100 ? '//foo/broken-' + rando + '.jpg' : - // use lorempixel for great random images - '//lorempixel.com/' + width + '/' + height + '/' + '?' + rando; + // use picsum for great random images + 'https://picsum.photos/' + width + '/' + height + '/' + '?random'; item.appendChild( img ); return item; } diff --git a/test/css/tests.css b/test/css/tests.css index 166125d..af8a7e8 100644 --- a/test/css/tests.css +++ b/test/css/tests.css @@ -27,7 +27,7 @@ img { background: url("http://i.imgur.com/ZAVN3.png"), url('http://i.imgur.com/6UdOxeB.png') bottom right, - url(http://lorempixel.com/601/401/nature); + url(https://picsum.photos/601/401/?random); background-size: cover; } diff --git a/test/index.html b/test/index.html index 4c5c603..02b04f4 100644 --- a/test/index.html +++ b/test/index.html @@ -95,8 +95,8 @@

background

- - + +
diff --git a/test/unit/non-element.js b/test/unit/non-element.js index 5e907cd..4c9986f 100644 --- a/test/unit/non-element.js +++ b/test/unit/non-element.js @@ -4,7 +4,7 @@ QUnit.test( 'dismiss non-element nodes', function( assert ) { var $ = window.jQuery; var done = assert.async( 2 ); - $(' ') + $(' ') .imagesLoaded(function() { assert.ok( true, 'elements from jQuery string ok' ); done(); @@ -13,7 +13,7 @@ QUnit.test( 'dismiss non-element nodes', function( assert ) { // test fragment var frag = document.createDocumentFragment(); var img = new Image(); - img.src = 'http://lorempixel.com/403/303/'; + img.src = 'https://picsum.photos/403/303/?random'; frag.appendChild( img ); var imgLoad = imagesLoaded( frag, function() { assert.ok( true, 'document fragment ok' );