Can you embed the WellcomeMat channel without jquery?

Yes! It is possible to embed your dynamically scaling WellcomeMat channel without jquery.

Use the following code:

document.addEventListener('DOMContentLoaded', function () {
if (window.addEventListener)
window.addEventListener('message', updateHeight);
else if (window.attachEvent)
window.attachEvent('onmessage', updateHeight);
});

function updateHeight(event) {
var obj = JSON.parse(event.data);
document.getElementById("wm-channel").setAttribute("height", obj.height);
}
max hahne
Dynamic Height with Javascript, not jQuery - 12/27/17/

Edit

X

Shorthand

$MENU right-hand dropdown menu
$SUPPORT support@wellcomemat.com
$WM WellcomeMat

Close