`;
toast.id = "autofill-toast"
// Use the max z-index since we want to show this above the embedding page's navbar etc. Who knows what they might be using for z-indexes, so setting to max allowed value is the safest option.
toast.style = `top: 25px;left: 50%;transform: translate(-50%);position: fixed;z-index: 2147483647;width: auto;font-family:sans-serif;letter-spacing:0.5px;`;
container.appendChild(toast);
document.getElementById('clear-toast').addEventListener('click', function () {
if (toast) {
toast.remove();
}
});
}
}
};
Grnhse.Iframe.load = function(jobId, source, ccuid) {
return new Grnhse.Iframe(jobId, source, ccuid);
};
Grnhse.Iframe.autoLoad = function() {
Grnhse.Iframe.load();
};
(function() {
if (Grnhse.Settings.autoLoad) {
addEventListener("load", Grnhse.Iframe.autoLoad);
}
})();