Scenario : All settings
refTop
<script>
document.write(wet.builder.refTop({
"isApplication": true
}));
</script>
appTop
<script>
var defTop = document.getElementById("def-top");
defTop.outerHTML = wet.builder.appTop({
"appName": [{"text": "Application name", "href": "#"}],
"lngLinks": [{"lang": "fr", "href": "apptop_all-fr.html", "text": "Français"}],
"menuPath": "https://ssl-templates.services.gc.ca/app/cls/WET/gcweb/v4_0_28/cdts/ajax/appmenu-en.html",
"appSettings": [{"href": "#"}],
"signOut": [{"href": "#"}],
"customSearch": "test",
"breadcrumbs": [{
"title": "My application",
"href": "https://open.canada.ca/en/apps?_ga=2.158588857.2050402716.1501624806-1491110290.1492697601"
}, {
"title": "First section",
"href": "#"
}, {
"title": "Service A"
}]
});
</script>
preFooter
<script>
var defPreFooter = document.getElementById("def-preFooter");
defPreFooter.outerHTML = wet.builder.preFooter({
"dateModified": "2017-08-01"
});
</script>
appFooter
<script>
var defFooter = document.getElementById("def-footer");
defFooter.outerHTML = wet.builder.appFooter({
"showFeatures": false
});
</script>
refFooter
<script>
document.write(wet.builder.refFooter({
"isApplication": true
}));
</script>