{:uriI"file://app/assets/javascripts/admin/img_preview.js?type=application/javascript&pipeline=self&id=1f425e04c37eb039d1bbc15343676459db11c6381db86462349e9115bb5a6063:ET:load_pathI"app/assets/javascripts;T: filenameI"0app/assets/javascripts/admin/img_preview.js;T: nameI"admin/img_preview;T:logical_pathI"admin/img_preview.self.js;T:content_typeI"application/javascript;T: sourceI"function imgPreview() { xOffset = 20; // separacion de la imagen con respecto al puntero en X yOffset = 20; // separacion de la imagen con respecto al puntero en Y imgMargin = 50; // separacion de la imagen con respecto al borde de la pantalla $('.show-row img, .list-row img').hover(function (e) { $('body').append(`No image source`); xImgOffset = $(window).width() - ($('.img-show').width() + imgMargin); yImgOffset = $(window).height() - ($('.img-show').height() + imgMargin); // breakpoint para que la imagen siempre esté visible en la pantalla $('.img-show') .css({ 'left': ((e.pageX < xImgOffset ? e.pageX : (e.pageY < yImgOffset ? xImgOffset : (e.pageX - ($('.img-show').width() + imgMargin)))) + xOffset) + 'px', 'top': ((e.pageY < yImgOffset ? e.pageY : (yImgOffset)) + yOffset) + 'px' }) }, function () { $('.img-show').remove(); }); $('.show-row img, .list-row img').mousemove(function (e) { $('.img-show') .css({ 'left': ((e.pageX < xImgOffset ? e.pageX : (e.pageY < yImgOffset ? xImgOffset : (e.pageX - ($('.img-show').width() + imgMargin)))) + xOffset) + 'px', 'top': ((e.pageY < (yImgOffset) ? e.pageY : (yImgOffset)) + yOffset) + 'px' }) }); } $(document).on('turbolinks:render', function () { imgPreview() }) $(document).on('turbolinks:load', function () { imgPreview() }) ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI">file-digest://app/assets/javascripts/admin/img_preview.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%9JV3 5Z{[)~4: lengthi:dependencies_digest"%XܾF `Ơ#8wy .7:idI"E1f425e04c37eb039d1bbc15343676459db11c6381db86462349e9115bb5a6063;F: mtimel+y[