Lines Matching refs:fullPageName
249 function highlightNav(fullPageName) { argument
250 var lastSlashPos = fullPageName.lastIndexOf("/");
252 if (fullPageName.indexOf("/guide/") != -1) {
253 firstSlashPos = fullPageName.indexOf("/guide/");
254 } else if (fullPageName.indexOf("/sdk/") != -1) {
255 firstSlashPos = fullPageName.indexOf("/sdk/");
256 } else if (fullPageName.indexOf("/resources/") != -1) {
257 firstSlashPos = fullPageName.indexOf("/resources/");
258 } else if (fullPageName.indexOf("/training/") != -1) {
259 firstSlashPos = fullPageName.indexOf("/training/");
261 if (lastSlashPos == (fullPageName.length - 1)) { // if the url ends in slash (add 'index.html')
262 fullPageName = fullPageName + "index.html";
266 var htmlPos = fullPageName.indexOf(".html");
267 var pathPageName = fullPageName.slice(firstSlashPos, htmlPos + 5); // +5 advances past ".html"
272 if ((link.length == 0) && ((fullPageName.indexOf("/guide/") != -1) ||
273 (fullPageName.indexOf("/resources/") != -1))) {