Meet Dan!
Dan’s story began underneath a house, where he was born to a feral mom and rescued by a kind good samaritan who wanted to give him a chance at a better life. Now about 2–3 months old and weighing around 22 pounds, Dan is safe, cared for, and ready to find his forever home.
He has a beautiful reddish tan coat and an especially sweet personality that makes him easy to fall in love with. Because of his rough start, Dan can be a little shy at first, but once he feels secure, his gentle and loving nature shines through. With patience, love, and positive guidance, Dan will continue to build confidence and learn that people can be kind and trustworthy.
Dan would do best in a calm, nurturing home that understands his background and is willing to let him adjust at his own pace. In return, you’ll gain a loyal companion with a heart full of gratitude and love.
Give Dan the second chance he deserves—this sweet boy is ready to start his next chapter with you.
Dan is microchipped, neutered and current on his vaccines. His adoption fee is $495.
Apply to adopt DAN LONESTAR at www.ehrdogs.org
(function () {
// Only on animal detail pages
if (!/\/animals\/detail/i.test(location.pathname)) return;
// Debounce to avoid double-fire (touchend + click, etc.)
var lastNavAt = 0;
function toFullSize(url) {
try {
var u = new URL(url, location.href);
u.searchParams.delete('width');
u.searchParams.delete('height');
return u.toString();
} catch (e) {
return url || '';
}
}
function looksLikeAnimalPhoto(url) {
return /\/pictures\/animals\/\d+\/\d+\/[^?#]+\.(jpg|jpeg|png|gif)/i.test(url || '');
}
function handler(e) {
var el = e.target;
if (!el) return;
// Find the closest anchor or image in the click path
var a = el.closest ? el.closest('a') : null;
var img = el.closest ? el.closest('img') : null;
var url = '';
// Prefer anchor href if it points to an animal photo
if (a && a.getAttribute) {
var href = a.getAttribute('href') || '';
if (href && (href.indexOf('/pictures/animals/') !== -1 || looksLikeAnimalPhoto(href))) {
url = href;
}
}
// Otherwise fall back to the image src
if (!url && img && img.getAttribute) {
var src = img.getAttribute('src') || '';
if (src && (src.indexOf('/pictures/animals/') !== -1 || looksLikeAnimalPhoto(src))) {
url = src;
}
}
if (!url) return;
// Absolute URL + full-size version
try { url = new URL(url, location.href).toString(); } catch (_) {}
url = toFullSize(url);
// Stop PrettyPhoto (and any other delegated click handlers)
e.preventDefault();
e.stopPropagation();
if (e.stopImmediatePropagation) e.stopImmediatePropagation();
// Debounce
var now = Date.now();
if (now - lastNavAt < 500) return;
lastNavAt = now;
// SAME TAB navigation to the full-size image
location.href = url;
}
// Capture phase is the key: we get the event before PrettyPhoto.
['click', 'pointerup', 'touchend'].forEach(function (evt) {
document.addEventListener(evt, handler, true);
});
})();
