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:59:43 Feb 17, 2017 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 20:17:30 Apr 27, 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.3
PetaboxLoader3.datanode: 1970.611 (4)
exclusion.robots.policy: 0.279
captures_list: 1972.543
esindex: 0.018
load_resource: 129.098
PetaboxLoader3.resolve: 86.213 (2)
RedisCDXSource: 8.856
CDXLines.iter: 15.904 (3)
LoadShardBlock: 1942.341 (3)
*/