Add Script to Webpages to Hide Web Navigation in PathFactory Tracks
requested to merge 531-add-script-to-webpages-to-hide-web-navigation-in-pathfactory-tracks into master
Add the following script to our web Case Studies, Blog Post templates. This will allow the function to hide the header and footer.
<script>
var windowURL = window.location.search;
console.log(windowURL);
if (windowURL.indexOf('menu=hide') > -1 && window.self!= window.top){
document.querySelector('#global-nav ').style.display = 'none';
document.querySelector('.footer.footer').style.display = 'none';
}
</script>
Author Checklist
-
Provided a concise title for this Merge Request (MR) -
Added a description to this MR explaining the reasons for the proposed change, per say why, not just what - Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added.
-
Assign reviewers for this MR to the correct Directly Responsible Individual/s (DRI) - If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the
Maintained by
section on the page being edited - If your manager does not have merge rights, please ask someone to merge it AFTER it has been approved by your manager in #mr-buddies
- If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the
-
If the changes affect team members, or warrant an announcement in another way, please consider posting an update in #whats-happening-at-gitlab linking to this MR - If this is a change that directly impacts the majority of global team members, it should be a candidate for #company-fyi. Please work with internal communications and check the handbook for examples.
Closes #531 (closed)
Edited by Margareth Mañunga