9 ms·
Try this in the page: $('#detect').click(); setTimeout(function() { $('.face').prepend('<img class="santaHat" src="http://officialpsds.com/images/thumbs/Santa-
by jacabado 15y ago
Try this in the page:
$('#detect').click();
setTimeout(function() {
$('.face').prepend('<img class="santaHat" src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" />');
$('.santaHat').css('position', 'relative');
$('.santaHat').css('top', '-60px');$('.face').css('border-width','0px');
}, 200);
- deleted 15y ago[deleted]
- walropodes 15y agoreplace: src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" with src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png" width="90px" and it's perfect
- jacabado 15y agoThanks for the correction! Corrected version: $('#detect').click(); setTimeout(function() { $('.face').prepend('<img class="santaHat" src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" />'); $('.santaHat').css('position', 'relative'); $('.santaHat').css('top', '-60px');$('.face').css('border-width','0px'); }, 200);
- PanMan 15y agoStill missing a quote here... There is a missing quote before width= I tried posting the full code, but HN seems to remove it.