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 09:45:46 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):
captures_list: 221.731
exclusion.robots: 0.185
RedisCDXSource: 1.871
CDXLines.iter: 16.146 (3)
exclusion.robots.policy: 0.174
PetaboxLoader3.datanode: 192.711 (5)
LoadShardBlock: 199.916 (3)
PetaboxLoader3.resolve: 200.268 (3)
load_resource: 208.591
esindex: 0.012
*/