Lines Matching refs:if
12 var isMobile = false; // true if mobile, so we can adjust some layout
13 var isIE6 = false; // true if IE6
18 if (typeof window.onload != 'function') {
29 // If a mobile phone, set flag and do mobile setup
30 if ((agent.indexOf("mobile") != -1) || // android, iphone, ipod
36 // If not a mobile browser, set the onresize event for IE6, and others
37 } else if (agent.indexOf("msie 6") != -1) {
80 if (isIE6) {
105 if (document.cookie) {
107 if (index != -1) {
110 if (valEnd == -1) {
121 if (val==undefined) return;
123 if (expiration == null) {
140 if (location.href.indexOf("/reference/") != -1) {
142 } else if (location.href.indexOf("/guide/") != -1) {
144 } else if (location.href.indexOf("/sdk/") != -1) {
146 } else if ((location.href.indexOf("/resources/") != -1) ||
151 if (!isMobile) {
156 if (cookieWidth) {
158 } else if ($("#side-nav").length) {
161 if (cookieHeight) {
168 if (devdocNav.length) { // only dev guide, resources, and sdk
180 if (!topicList.length || !ANDROID_TAGS || !ANDROID_RESOURCES)
211 if (tags[j] == tag) {
215 if (!hasTag)
232 if (tags[j] == 'new') {
235 } else if (tags[j] == 'updated') {
252 if (fullPageName.indexOf("/guide/") != -1) {
254 } else if (fullPageName.indexOf("/sdk/") != -1) {
256 } else if (fullPageName.indexOf("/resources/") != -1) {
258 } else if (fullPageName.indexOf("/training/") != -1) {
261 if (lastSlashPos == (fullPageName.length - 1)) { // if the url ends in slash (add 'index.html')
270 // if there's no match, then let's backstep through the directory until we find an index.html
272 if ((link.length == 0) && ((fullPageName.indexOf("/guide/") != -1) ||
280 if (lastBackstep == 0) break;
287 // if we're in a toggleable root link (<li class=toggle-list><div><a>)
288 if (link.parent().parent().hasClass('toggle-list')) {
290 // then also check if we're in a third-level nested list that's toggleable
291 if (link.parent().parent().parent().is(':hidden')) {
295 // if we're in a normal nav link (<li><a>) and the parent <ul> is hidden
296 else if (link.parent().parent().is(':hidden')) {
298 // then also check if the parent list is also nested in a hidden list
299 if (link.parent().parent().parent().parent().is(':hidden')) {
332 // If in the reference docs, also resize the "swapper", "classes-nav", and "nav-tree" divs
333 if (href.indexOf("/reference/") != -1) {
340 } else if ($("#devdoc-nav").length) {
344 // Hide the "Go to top" link if there's no vertical scroll
345 if ( parseInt($("#jd-content").css("height")) <= parseInt(docContent.css("height")) ) {
357 if (sidenav.length) {
364 if (isIE6) {
372 if (sidenav.length) { // Must check if the nav exists because IE6 calls resizeWidth() from resizeAll() for all pages
390 if (intlUrl) {
404 if (lang) {
416 if (location.indexOf("/"+cookiePath+"/") != -1) {
420 if (lastPage) {
429 if (path.indexOf("/reference/") != -1) {
431 } else if (path.indexOf("/guide/") != -1) {
433 } else if ((path.indexOf("/resources/") != -1) || (path.indexOf("/training/") != -1)) {
441 if (li.hasClass("closed")) {
442 if (slide) {
468 if (v != NAV_PREF_TREE) {
476 if (nav_pref == NAV_PREF_TREE) {
485 if
500 if ($("#nav-tree").is(':visible')) scrollIntoView("nav-tree");
509 if (navObj.is(':visible')) {
511 if (selected.length == 0) return;
512 if (selected.is("div")) selected = selected.parent(); // when the selected item is a parent
519 if (selected.parent().parent().is(".toggle-list")) {
522 if (selected.parent().parent().is(".toggle-list")) {
529 if(offsetTop > navHeight - 180) {
540 if (node.not(":empty").length != 0) { //if this languages node has a translation, show it
554 if (node.not(":empty").length != 0) { // if this languages node has a translation, show it
574 if (refresh) {
582 if (lang != 0) {
589 if (!lang) {
601 if (div.hasClass("closed")) { // if it's closed, open it
606 } else { // if it's open, close it