Skip to content

Commit

Permalink
Update layout.html (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
aepanchi authored Mar 25, 2022
1 parent 4aa0b0b commit 3e352b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/main/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
var wapLocalCode = 'us-en'; // Dynamically set per localized site, see mapping table for values
var wapSection = "oneapi-tbb"; // WAP team will give you a unique section for your site
// Load TMS
(function () {
var url = 'https://www.intel.com/content/dam/www/global/wap/tms-loader.js'; // WAP file URL
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = url;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
if(document.location.href.contains("oneapi-src.github.io")){
(function () {
var url = 'https://www.intel.com/content/dam/www/global/wap/tms-loader.js'; // WAP file URL
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = url;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
}
</script>
{% endblock %}

0 comments on commit 3e352b4

Please sign in to comment.