Go to content!
{
"@context": "http://schema.org",
"@type": "VideoObject",
"name": "Glycolic Bright",
"description": "Visibly fade dark spots & acne marks in 2 weeks",
"thumbnailUrl": "https://www.loreal-paris.com.sg/-/media/project/loreal/brand-sites/oap/apac/sg/kol-post/2000x900.jpg?rev=9c35d61d95e8490c87a3fe8903160f3b",
"uploadDate": "2021-12-07T09:28:02+00:00",
"embedURL": "https://www.youtube.com/embed/F3bHIlfEo7Q"
}
document.addEventListener("DOMContentLoaded", function (event) {
const element = document.getElementsByClassName('oap_hairdiagStart_divbtn');
if (element.length > 0) {
let urlParams = new URLSearchParams(window.location.search);
if (urlParams != "" || urlParams != null) {
var keyValuepairs = urlParams.toString().split('&');
var qrUtmfound = 0;
keyValuepairs.forEach(function (item, index) {
if (item === "utm_source=pos" || item === "utm_medium=qrcode") {
qrUtmfound++;
}
});
if (qrUtmfound == 2) {
let relocHref = document.getElementById("hair_color_start_btn").getAttribute("href");
let relocUpdatedurl = relocHref + window.location.search;
document.getElementById("hair_color_start_btn").setAttribute("href", relocUpdatedurl);
}
}
}
});