Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Created May 13, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beckettkev/9c33916465b36ee70948 to your computer and use it in GitHub Desktop.
Save beckettkev/9c33916465b36ee70948 to your computer and use it in GitHub Desktop.
var _options = { "appTitle": "Top 3 Biscuits",
"settingsLinks": [
{
"linkUrl": getSharePointRootTenantUrl(_hosturl),
"displayName": _hostTitle ? _hostTitle : 'Home'
}
]
};
var _nav = new SP.UI.Controls.Navigation("chrome_ctrl_placeholder", _options );
var _title = $("#chromeControl_topheader_sitetitle").text();
$("#chromeControl_bottomheader").remove();
$('body').css('overflow-y', 'auto');
$("#chromeControl_topheader_sitetitle").text(​_title.replace(/\++/g," ");
_nav.setVisible(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment