';
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: '无效',
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('/zh/saved--search/artwork', formData)
} else {
var xhr = new XMLHttpRequest();
xhr.open('post', '/zh/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
});
});
})
})();
I have loved painting since I was a child, and since I learned to paint, I have been trying to express what I can't express in words with brushstrokes, and over time, they have formed some different art forms.I believe that true art is to see the truth behind objective things through their appearances, and to convey them in an artistic way, and to faithfully depict objective things is not art, but to chew a bunch of soulless and thoughtless shells. After the invention of the camera, the plastic arts began to gradually get rid of the shackles of form, and painters began to realize that in addition to the tired depiction of objects, art has infinite potential. Every time I look up at the starry sky, I gradually calm down, and every time I look down and paint, I forget my troubles, and I hope to spend the rest of my life in painting.
I have loved painting since I was a child, and since I learned to paint, I have been trying to express what I can't express in words with brushstrokes, and over time, they have formed some different art forms.I believe that true art is to see the truth behind objective things through their appearances, and to convey them in an artistic way, and to faithfully depict objective things is not art, but to chew a bunch of soulless and thoughtless shells. After the invention of the camera, the plastic arts began to gradually get rid of the shackles of form, and painters began to realize that in addition to the tired depiction of objects, art has infinite potential. Every time I look up at the starry sky, I gradually calm down, and every time I look down and paint, I forget my troubles, and I hope to spend the rest of my life in painting.