Lines Matching refs:toroot
12 var SITE_ROOT = toRoot + basePath.substring(1,basePath.indexOf("/",1));
26 $.getScript(toRoot + 'jd_lists_unified.js');
28 $.getScript(toRoot + 'reference/lists.js');
30 $.getScript(toRoot + 'reference/gcm_lists.js', function(data, textStatus, jqxhr) {
33 $.getScript(toRoot + 'reference/gms_lists.js', function(data, textStatus, jqxhr) {
369 $imgIcon = $('<img src="'+toRoot+'assets/images/resource-tutorial.png" '
375 $imgIcon = $('<img src="'+toRoot+'assets/images/resource-article.png" '
1115 init_default_navtree(toRoot);
1239 $(".toggle-content-img:eq(0)", div).attr("title", "hide").attr("src", toRoot
1247 $(".toggle-content-img", div).attr("title", "show").attr("src", toRoot
1623 function set_item_values(toroot, $li, match)
1627 $link.attr('href',toroot + match.link);
1630 function set_item_values_jd(toroot, $li, match)
1634 $link.attr('href',toroot + match.url);
1655 function sync_selection_table(toroot)
1684 set_item_values(toroot, $li, gMatches[i]);
1698 set_item_values(toroot, $li, gGoogleMatches[i]);
1738 set_item_values_jd(toroot, $li, sugg);
1784 * @param toroot A string for the site's root path
1787 function search_changed(e, kd, toroot)
2218 sync_selection_table(toroot);
2387 return search_changed(event, false, toRoot);
2529 return search_changed(event, false, toRoot);
2689 + "read <a href='" + toRoot + "training/basics/supporting-devices/platforms.html'"
2760 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
2769 node.plus_img.src = me.toroot + "assets/images/triangle-closed-small.png";
2783 a.href = me.toroot + link;
2826 node.plus_img.src = me.toroot + "assets/images/triangle-opened-small.png";
2845 function this_page_relative(toroot)
2849 if (toroot.substr(0, 1) == "/") {
2850 if (full.substr(0, toroot.length) == toroot) {
2851 return full.substr(toroot.length);
2853 // the file isn't under toroot. Fail.
2857 if (toroot != "./") {
2858 toroot = "./" + toroot;
2861 if (toroot.substr(toroot.length-3, 3) == "../" || toroot == "./") {
2865 toroot = toroot.substr(0, toroot.length-3);
2867 } while (toroot != "" && toroot != "/");
2891 function init_default_navtree(toroot) {
2893 $.getScript(toRoot + 'navtree_data.js', function(data, textStatus, jqxhr) {
2896 init_navtree("tree-list", toroot, NAVTREE_DATA);
2905 function init_navtree(navtree_id, toroot, root_nodes)
2908 me.toroot = toroot;
2922 me.this_page = this_page_relative(toroot);
2946 function init_google_navtree(navtree_id, toroot, root_nodes)
2949 me.toroot = toroot;
3005 child.href = me.toroot + link;
3068 $a = $('<a href="' + toRoot + node_data[NODE_HREF] + '" title="' + linkText + '" >'
3102 init_default_google_navtree(toRoot);
3103 init_default_gcm_navtree(toRoot);
3106 function init_default_google_navtree(toroot) {
3108 $.getScript(toRoot + 'gms_navtree_data.js', function(data, textStatus, jqxhr) {
3111 init_google_navtree("gms-tree-list", toroot, GMS_NAVTREE_DATA);
3118 function init_default_gcm_navtree(toroot) {
3120 $.getScript(toRoot + 'gcm_navtree_data.js', function(data, textStatus, jqxhr) {
3123 init_google_navtree("gcm-tree-list", toroot, GCM_NAVTREE_DATA);
3131 init_default_samples_navtree(toRoot);
3134 function init_default_samples_navtree(toroot) {
3136 $.getScript(toRoot + 'samples_navtree_data.js', function(data, textStatus, jqxhr) {
3171 trigger.src = toRoot + "assets/images/triangle-opened.png";
3177 trigger.src = toRoot + "assets/images/triangle-closed.png";
3417 var urlPrefix = resources[i].url.indexOf("//") > -1 ? "" : toRoot;
3459 urlPrefix = sections[i].url.indexOf("//") > -1 ? "" : toRoot;
3482 urlPrefix = resources[i].url.indexOf("//") > -1 ? "" : toRoot;
3543 urlPrefix = resource.url.indexOf("//") > -1 ? "" : toRoot;
3752 var urlPrefix = resource.image.indexOf("//") > -1 ? "" : toRoot;
3758 .css('background-image', 'url(' + (imgUrl || toRoot + 'assets/images/resource-card-default-android.jpg') + ')')
3789 var urlPrefix = resource.image.indexOf("//") > -1 ? "" : toRoot;