Emailer Examples
Uses new widget (Emailer), with its own js file (ibrandiq-gwcemailer.js) contained within the widget url
Functionality is to display the widget on a load event with header.

Call structure: /it/Widgets/EMAILER/{UMN}/{VARIANTS?}
Variants are passed if required by using a pipe delimiter |. Variants are optional

To use
Include js file from widget in header -
Call by including onload="iBrandIQDivEmail(this,'{UMN}','{LANGUAGE-COUNTRY}','{VARIANTS}');

The iFrame should contain an id so the js can identify the iframe
eg: iframe id="iframeId" onload="iBrandIQDivEmail(this, 'UMN', 'LANGUAGE-COUNTRY', 'VARIANTS');

eg. With variants
onclick="iBrandIQDivEmail(this, 'RP-HJE125E-A', 'it-it', 'RP-HJE125E-A|RP-HJE125E-D|RP-HJE125E-K|RP-HJE125E-P|RP-HJE125E-R');"

eg. Without variants
onclick="iBrandIQDivEmail(this, 'RP-HJE125E-A', 'it-it', '');"

The onload event is attached to the iframe.

iFrame resizer
The iFrame used to display the widget will need to resize automatically when using mobile devices. The widget is internally resized. To make sure the iFrame gets resized is to include the following:
1. iframeresizer.js file - Include this in the footer of your page where the iFrame will sit.
2. Add the following script below this line, where the id of your iframe matches the id in the script line:
iFrameResize({ log: true }, '#iframeId')