';
content = content.replace('{s}', '« ' + sanitizer.sanitize(input.value) + ' »');
} else {
var cleanText = sanitizer.sanitize(suggestion.text)
var boldText = cleanText.replace(reg, function (optionText) {
return '' + optionText + ''
});
var subText = sanitizer.sanitize(suggestion.subText);
subText = subText.replace(suggestion.artistName, function (optionText) {
return optionText.replace(reg, function (boldText) {
return '' + boldText + ''
})
});
var cssClass = suggestion.type === 'artist' ? 'img-circle border' : '';
content = '
' +
'' +
'
' +
'' + boldText + '' +
'' + subText + '' +
'
' +
'
';
}
itemElement.innerHTML = content;
return itemElement;
},
onSelect: function (element, autocomplete) {
document.dispatchEvent(new CustomEvent('am.gtag.search', {'detail': {'term': autocomplete.value}}))
savedSearch(sanitizer.sanitize(autocomplete.value), element);
},
emptyMsg: 'No results found.',
preventSubmit: false,
showOnFocus: true,
// Required to set the final position of the results
// By default result tag is applied at the bottom of the document with fixed style
// when we want it in the defined tag ( Styles are also customized )
customize: function (input, inputRect, container, maxHeight) {
resultContainer.append($(container))
}
};
}
function savedSearch(string, element) {
if (!element.url) {
element.url = url.replace("term", string)
}
var formData = new FormData();
formData.append('string', string);
formData.append('nbResults', nbResults);
try {
if (navigator.sendBeacon) {
navigator.sendBeacon('/en/saved--search/artwork', formData)
} else {
var xhr = new XMLHttpRequest();
xhr.open('post', '/en/saved--search/artwork', false);
xhr.send(formData);
}
} catch (e) {
}
window.location.href = element.url
}
document.addEventListener('am.gtag.search', function (e) {
var term = e.detail.term
gtag("event", "search", {
search_term: term
});
});
})
})();
Read 4 exclusive articles related to "Crazy" on ArtMajeur magazine
Things become really strange and crazy with this artist 1l5vm
Pop Culture • 3 minutes read
The unusual has always fascinated Ingo Lindmeier, and his compositions often begin with this theme. With the help of Photoshop, his playful spirit may escape his thoughts and enter the vibrant world of graphics.
Burning Man is back with some weirder art activities 735cn
Art News • 3 minutes read
Strangest things to do at Burning Man 2022, like making bikini armor and coloring books of Nic Cage
Extraordinary Charity Sale to Save the Burning Man Festival 3c1v2y
Art News • 2 minutes read
Artwork from Burning Man's annual gathering will be auctioned at Sotheby's New York. The online charity auction will benefit the participating artists as well as the Burning Man nonprofit. The auction will help sustain the gathering for years to come if it is a success.
A work, a story: Christian Girault, "The only difference between me and the surrealists is that I am a surrealist" 5tx1k
Artwork Focus • 2 minutes read
It was in 1995 that Christian Girault visited the south of Bolivia where the desert landscapes are sometimes mind-blowing. He didn't know it at the time, but part of these deserts is called the Dali Desert, due to the improbable shapes of its rocks, reminiscent of elements from Salvador's paintings.
Categories 653l6p
ArtMajeur
Newsletter
Receive our newsletter for art lovers and collectors
We respect your privacy. 1o836
Love art? 5gw2t
Get our selection of the best art delivered right to your inbox!
Early access to new works
Selection of established and emerging artists with promising investment potential