How to organise you Makeup. Like you’re Kim Kardashian.
The Etiquette Of Beauty Organisation
').appendTo('body');
$overlay
.mousedown(function(){ return false; })
.click(function(){
imagehotspotter_overlay_close($box);
});
jQuery(window).keyup(function(event){
if (event.keyCode == 27)
imagehotspotter_overlay_close($box);
});
jQuery('embed,object,iframe').each(function(){
var $el = jQuery(this);
$el.attr('ihs_visible', $el.css('visibility'));
$el.css({visibility:'hidden'});
});
jQuery('embed,object,iframe', $box).each(function(){
var $el = jQuery(this);
$el.css({visibility:$el.attr('ihs_visible')});
});
}
function imagehotspotter_overlay_close($box) {
jQuery('#imagehotspotter_overlay').remove();
jQuery('embed,object,iframe').each(function(){
var $el = jQuery(this);
$el.css({visibility:$el.attr('ihs_visible')});
});
$box.hide();
$box.trigger('ihs_hotspot_close');
}
(function($){
$(window).load(function(){
$('body').append('');
$("img.imagehotspotter").each(function(){
var $this = $(this),
id = this.id.split('-').pop(),
os = imagehotspotter_getOffset($this);
$("a.imagehotspotter_spot-"+id)
.prependTo("body")
.each(function(){
$(this).css({top:os.top+"px",left:os.left+"px"});
if (/imagehotspotter_with_caption/.test($(this).attr('class'))) {
var $caption_box = $('#'+this.id.replace(/^imagehotspotter_spot/, 'imagehotspotter_caption_box')).appendTo('body');
function mouseenter() {
$(this).data('hovering', true).data('title', $(this).attr('title') + '').attr({title:''}).trigger('ihs_hovershow', $caption_box);
$caption_box.show();
}
function mouseleave() {
$(this).data('hovering', false).attr({title:$(this).data('title')}).trigger('ihs_hoverhide', $caption_box);
$caption_box.hide();
}
function mousemove(e) {
if ($(this).data('hovering')) {
var excess = (e.pageX + 10 + $caption_box.outerWidth()) - $(window).width();
if (excess > 0)
e.pageX -= excess;
var os = $(this).offset();
/*$caption_box.css({top:-os.top + e.pageY + 10, left:-os.left + e.pageX + 10});*/
$caption_box.css({top:e.pageY + 10, left:e.pageX + 10});
}
}
if ($.fn.on) {
$(this).on('mouseenter', mouseenter);
$(this).on('mouseleave', mouseleave);
$(this).on('mousemove', mousemove);
}
else if ($.fn.live) {
$(this).live('mouseenter', mouseenter);
$(this).live('mouseleave', mouseleave);
$(this).live('mousemove', mousemove);
}
else {
$(this).mouseenter(mouseenter);
$(this).mouseleave(mouseleave);
$(this).mousemove(mousemove);
}
}
})
.click(function(){
$(this).blur();
if (!/return\s+false/.test($(this).attr('onclick')))
$(".imagehotspotter_caption_box").hide();
var idx = this.id.split('-').pop(),
$box = $('#imagehotspotter_box-'+id+'-'+idx);
if ($box.length) {
imagehotspotter_overlay_open($box);
$box.css({top:'75px'}).appendTo('body').show();
$box.trigger('ihs_hotspot_open');
var bw = $box.width();
$(window).resize(function(){
var ow = $('#imagehotspotter_overlay').width();
if (ow > 0 && (ow - 40)