';
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 3 exclusive articles related to "Best art schools" on ArtMajeur magazine
The Best Art Schools in the World: An Overview 235c5f
Sell art • 12 minutes read
Global art education is evolving towards increased integration of new technologies and a stronger connection with industry, while valuing local cultural heritage. When choosing an art school, it is essential to consider one's personal and professional aspirations, as well as the specificities of each institution according to one's artistic project.
The Best European Art Schools - Part Two 60426f
Sell art • 8 minutes read
Discover the best art schools in Europe, from the Netherlands to Sweden. These prestigious institutions train the artists and designers of tomorrow through programs of excellence.
The Best European Art Schools - Part One b3m5o
Sell art • 8 minutes read
Discover the best art schools in Europe, from to Norway. These prestigious institutions train the artists and designers of tomorrow through programs of excellence.
Categories 653l6p
ArtMajeur
Newsletter
Receive our newsletter for art lovers and collectors
We respect your privacy. 1o836
Welcome to ArtMajeur! 1p4f6s
A redirection has been made from YourArt to ArtMajeur, as the two platforms have merged.
All content, artworks, and artist spaces are now available here.
You can continue browsing on ArtMajeur, the largest online art platform in the world.
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