function shuffleImages () {
var imgs = $('.hmpg-images, .hmpg-available-images').find('img');
var newImgContainer = $('
');
var newImgs = [];
var newImgKeys = {};
var i = 0;
while (newImgs.length < 3 && i < 100) {
i++; // sanity check counter
var N = newImgs.length;
var M = Math.floor(Math.random() * imgs.length);
var sSrc = $(imgs.get(M)).attr('src');
if (!(sSrc in newImgKeys)) {
newImgs[N] = $('
![]()
');
newImgs[N].attr({src: sSrc, height: '160px', width: 'auto'});
newImgContainer.append(newImgs[N]);
}
newImgKeys[sSrc] = true;
} /* while */
$('.hmpg-images').find('img').hide({
duration: 0 /*ms*/,
done: function () {
newImgContainer.find('img').each(function () {
$('.hmpg-images').append($(this));
});
}
});
}
jQuery(document).ready(function () {
shuffleImages();
} );
/*
FILE ARCHIVED ON 14:28:31 Apr 19, 2018 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 22:36:08 Apr 28, 2020.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
exclusion.robots: 0.206
LoadShardBlock: 160.401 (3)
captures_list: 268.907
PetaboxLoader3.datanode: 203.787 (5)
exclusion.robots.policy: 0.192
PetaboxLoader3.resolve: 295.291 (2)
load_resource: 399.18
esindex: 0.015
CDXLines.iter: 13.636 (3)
RedisCDXSource: 90.973
*/