Home | History | Annotate | Download | only in js

Lines Matching refs:function

9 var mPagePath; // initialized in ready() function
22 $(document).ready(function() {
40 $.getScript(toRoot + 'reference/gcm_lists.js', function(data, textStatus, jqxhr) {
43 $.getScript(toRoot + 'reference/gms_lists.js', function(data, textStatus, jqxhr) {
58 $('body').keyup(function(event) {
65 $('#nav-swap .fullscreen').click(function(){
85 $('.search .close').click(function() {
97 $("#btn-quicknav").click(function() {
109 var expand = function() {
114 var collapse = function() {
115 $('#quicknav').stop().animate({opacity:'0'}, 100, function() {
123 $("#search_autocomplete").focus(function() {
126 $("#search-container").mouseover(function() {
130 $("#search-container").mouseout(function() {
133 setTimeout(function(){
139 $("#search_autocomplete").blur(function() {
336 .click(function() { return false; });
356 .click(function() { return false; });
392 $classLinks.each(function(index) {
410 $classLinks.each(function(index) {
422 $lessons.each(function(index) {
441 $(".scroll-pane").scroll(function(event) {
447 $(window).resize(function() {
470 $('video.play-on-hover').bind('click', function(){
477 $('acronym,.tooltip-link').each(function() {
486 $target.hover(function() {
498 }, function() {
505 $('h2').click(function() {
548 .mousedown(function() {
550 .blur(function() {
591 $videoLinks.each(function() {
593 $(this).click(function(event) {
604 function onYouTubeIframeAPIReady() {
610 function getVideoHeight() {
618 function startYouTubePlayer(videoId) {
668 function onPlayerReady(event) {
673 function closeVideo() {
682 function onPlayerStateChange(event) {
714 function initExpandableNavItems(rootTag) {
715 $(rootTag + ' li.nav-section .nav-section-header').click(function() {
719 section.find('ul').slideUp(250, function() {
733 section.children('ul').slideDown(250, function() {
742 $('.nav-section-header').find('a:eq(0)').not('a[href="#"]').click(function(evt) {
750 function buildBreadcrumbs() {
771 function highlightSidenav() {
791 $selNavLink.parents('li.nav-section').each(function() {
798 function unHighlightSidenav() {
803 function toggleFullscreen(enable) {
829 function setNavBarLeftPos() {
834 function updateSideNavPosition() {
841 function addLoadEvent(newfun) {
843 if (typeof window.onload != 'function') {
846 window.onload = function() {
863 $(document).ready(function() {
873 function resizeNav(delay) {
946 function delayedReInitScrollbars(delay) {
967 function reInitScrollbars() {
968 var pane = $(".scroll-pane").each(function(){
979 function saveNavPanels() {
987 function restoreHeight(packageHeight) {
1005 function scrollIntoView(nav) {
1033 function showDialog(id) {
1046 function readCookie(cookie) {
1063 function writeCookie(cookie, val, section) {
1080 function setStickyTop() {
1087 $(window).scroll(function(event) {
1165 (function() {
1166 $(document).ready(function() {
1169 $('.section-card-menu').each(function(index, el) {
1200 function toggle(obj, slide) {
1221 function buildToggleLists() {
1223 function(i) {
1231 function hideNestedItems(list, toggle) {
1247 function setupIdeDocToggle() {
1248 $( "select.ide" ).change(function() {
1283 function getNavPref() {
1291 function chooseDefaultNav() {
1301 function swapNav() {
1337 function getBaseUri(uri) {
1350 function requestAppendHL(uri) {
1364 function changeNavLang(lang) {
1366 $links.each(function(i){ // for each link with a translation
1375 function changeLangPref(lang, submit) {
1393 function loadLangPref() {
1400 function getLangPref() {
1417 function toggleContent(obj) {
1427 toggleMe.slideUp('fast', function() { // Wait until the animation is done before closing arrow
1441 function toggleExpandable(link,id) {
1451 function hideExpandable(ids) {
1492 * easing: easing function for transition
1499 (function($) {
1500 $.fn.dacSlideshow = function(o) {
1518 return this.each(function() {
1555 li.click(function() {
1566 $(o.btnPrev).click(function(e) {
1573 $(o.btnNext).click(function(e) {
1580 $(o.btnPause).click(function(e) {
1592 function startRotateTimer() {
1594 timer = setInterval(function() {
1604 function pauseRotateTimer() {
1610 function go(to) {
1624 function() {
1650 function css(el, prop) {
1653 function width(el) {
1656 function height(el) {
1694 * easing: easing function for transition
1700 (function($) {
1701 $.fn.dacTabbedList = function(o) {
1712 return this.each(function() {
1726 $(nav_li).click(function(e) {
1731 function go(to) {
1737 function() {
1753 function css(el, prop) {
1756 function width(el) {
1759 function height(el) {
1793 function onSuggestionClick(link) {
1799 function set_item_selected($li, selected)
1808 function set_item_values(toroot, $li, match)
1815 function set_item_values_jd(toroot, $li, match)
1822 function new_suggestion($list) {
1826 $li.mousedown(function() {
1829 $li.mouseover(function() {
1840 function sync_selection_table(toroot)
1972 function search_changed(e, kd, toroot)
2413 function rank_autocomplete_doc_results(query, matches) {
2418 var _resultScoreFn = function(match) {
2441 matches.sort(function(a,b){
2450 function rank_autocomplete_api_results(query, matches) {
2455 // helper function that gets the last occurence index of the given regex
2457 var _lastSearch = function(s, re) {
2470 // helper function that counts the occurrences of a given character in
2472 var _countChar = function(s, c) {
2484 var _resultScoreFn = function(result) {
2517 matches.sort(function(a,b){
2526 function highlight_autocomplete_result_labels(query) {
2545 function search_focus_changed(obj, focused)
2555 function submit_search() {
2564 function hideResults() {
2572 searchControl.setSearchStartingCallback(this, function(control, searcher, query) {});
2575 $("#search_autocomplete").keyup(function(event) {
2589 google.load('search', '1', {"callback" : function() {
2593 function loadSearchResults() {
2652 searchControl.setSearchStartingCallback(this, function(control, searcher, query) {
2659 searchControl.setSearchCompleteCallback(this, function(control, searcher, query) {
2675 google.setOnLoadCallback(function(){
2690 function offsetScrollForSticky() {
2707 $(window).hashchange( function(){
2732 function updateResultTitle(query) {
2737 $("#search_autocomplete").keyup(function(event) {
2742 function addTabListeners() {
2745 $(tabHeaders[i]).attr("id",i).click(function() {
2748 setTimeout(function() {
2761 setTimeout(function(){$(tabHeaders[0]).click()},200);
2765 function addResultClickListeners() {
2766 $("#searchResults a.gs-title").each(function(index, link) {
2768 $(link).click(function() {
2776 function getQuery(hash) {
2783 function escapeHTML(string) {
2803 $(document).ready(function() {
2817 function initSidenavHeightResize() {
2826 resize: function(event, ui) { resizeNav(); }, /* resize the nav while dragging */
2827 stop: function(event, ui) { saveNavPanels(); } /* once stopped, save the sizes to cookie */
2832 function updateSidenavFixedWidth() {
2843 function updateSidenavFullscreenWidth() {
2854 function buildApiLevelSelector() {
2878 function changeApiLevel() {
2906 function toggleVisisbleApis(selectedLevel, context) {
2908 apis.each(function(i) {
2942 function new_node(me, mom, text, link, children_data, api_level)
2963 node.expand_toggle.onclick = function() {
3004 node.get_children_ul = function() {
3020 function expand_node(me, node)
3041 function get_node(me, mom)
3051 function this_page_relative(toroot)
3078 function find_page(url, data)
3097 function init_default_navtree(toroot) {
3099 $.getScript(toRoot + 'navtree_data.js', function(data, textStatus, jqxhr) {
3111 function init_navtree(navtree_id, toroot, root_nodes)
3121 me.node.get_children_ul = function() { return me.node.children_ul; };
3138 addLoadEvent(function() {
3152 function init_google_navtree(navtree_id, toroot, root_nodes)
3162 me.node.get_children_ul = function() { return me.node.children_ul; };
3170 function new_google_node(me, mom, text, link, children_data, api_level)
3177 node.get_children_ul = function() {
3221 function get_google_node(me, mom)
3251 function init_google_navtree2(navtree_id, data)
3265 function new_google_node2(node_data)
3307 function showGoogleRefTree() {
3312 function init_default_google_navtree(toroot) {
3314 $.getScript(toRoot + 'gms_navtree_data.js', function(data, textStatus, jqxhr) {
3324 function init_default_gcm_navtree(toroot) {
3326 $.getScript(toRoot + 'gcm_navtree_data.js', function(data, textStatus, jqxhr) {
3336 function showSamplesRefTree() {
3340 function init_default_samples_navtree(toroot) {
3342 $.getScript(toRoot + 'samples_navtree_data.js', function(data, textStatus, jqxhr) {
3368 function toggleInherited(linkObj, expand) {
3395 function toggleAllInherited(linkObj, expand) {
3400 expandos.each(function(i) {
3405 expandos.each(function(i) {
3415 function toggleAllClassInherited() {
3419 toggles.each(function(i) {
3424 toggles.each(function(i) {
3433 function ensureAllInheritedExpanded() {
3435 toggles.each(function(i) {
3448 $(document).keydown( function(e) {
3463 function initCodeLineNumbers() {
3469 $(document).ready(function() {
3471 $("span.code-line").click(function() {
3477 $(".code-line").dblclick(function() {
3481 $("#codesample-line-numbers a.number").mouseover(function() {
3485 $("#codesample-line-numbers a.number").mouseout(function() {
3494 $(document).bind('keyup keydown', function(e){shifted = e.shiftKey; return true;} );
3497 function selectText(element) {
3519 function showSamples() {
3526 $selectedLi.children("ul").children("li").each(function() {
3544 (function() {
3548 $(document).ready(function() {
3549 $('.resource-widget').each(function() {
3569 function initResourceWidget(widget) {
3615 function drawResourcesCarouselWidget($widget, opts, resources) {
3652 function drawResourcesStackWidget($widget, opts, resources, sections) {
3727 function createResourceElement(resource, opts, plusone) {
3752 function drawResourcesFlowWidget($widget, opts, resources) {
3805 function buildSectionList(opts) {
3812 function buildResourceList(opts) {
3838 resources = urls.map(function(url){ return ALL_RESOURCES_BY_URL[url]; });
3842 resources = urls.map(function(url){ return ALL_RESOURCES_BY_URL[url]; });
3885 results = results.sort(function(x,y) {
3902 function getResourceNotAlreadyAddedFilter(addedResourceIndices) {
3903 return function(resource) {
3909 function getResourceMatchesClausesFilter(clauses) {
3910 return function(resource) {
3916 function doesResourceMatchClauses(resource, clauses) {
3938 function cleanUrl(url)
3948 function parseResourceQuery(query) {
3993 (function($) {
3999 function buildResourceCardDescription(resource, plusone) {
4023 /* Simple jquery function to create dom for a standard resource card */
4024 $.fn.decorateResourceCard = function(resource,plusone) {
4047 /* Simple jquery function to create dom for a resource section card (menu) */
4048 $.fn.decorateResourceSection = function(section,plusone) {
4130 $.fn.decorateResource = function(resource, opts) {
4159 (function($) {
4160 $.fn.ellipsisfade= function(lineHeight) {
4161 this.each(function() {
4165 $this.parent().siblings().each(function ()
4215 (function() {
4216 $(document).ready(function() {
4217 $('.fullscreen-carousel').each(function() {
4222 function initWidget(widget) {
4238 $nextArrow.click(function() {
4245 $prevArrow.click(function() {
4254 $content.each(function(index) {
4263 function resizeWidget() {
4309 (function() {
4310 $(document).ready(function() {
4311 $('.tab-carousel').each(function() {
4316 function initWidget(widget) {
4327 $anchors.click(function(evt) {
4342 $tabs.each(function(index) {
4346 function transitionWidget($toTab) {