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(){
79 $('#search-close').on('click touchend', function() {
91 $("#search_autocomplete").focus(function() {
94 $("#search-container").on('mouseover touchend', function(e) {
99 $("#search-container").mouseout(function() {
102 setTimeout(function(){
108 $("#search_autocomplete").blur(function() {
310 .click(function() { return false; });
330 .click(function() { return false; });
366 $classLinks.each(function(index) {
383 $classLinks.each(function(index) {
393 $lessons.each(function(index) {
410 $(".scroll-pane").scroll(function(event) {
416 $(window).resize(function() {
431 $('video.play-on-hover').bind('click', function(){
438 $('acronym,.tooltip-link').each(function() {
447 $target.hover(function() {
459 }, function() {
466 $('h2').click(function() {
505 .mousedown(function() {
507 .blur(function() {
548 $videoLinks.each(function() {
550 $(this).click(function(event) {
561 function onYouTubeIframeAPIReady() {
567 function getVideoHeight() {
575 function startYouTubePlayer(videoId) {
625 function onPlayerReady(event) {
630 function closeVideo() {
639 function onPlayerStateChange(event) {
671 function initExpandableNavItems(rootTag) {
672 $(rootTag + ' li.nav-section .nav-section-header').click(function() {
676 section.find('ul').slideUp(250, function() {
690 section.children('ul').slideDown(250, function() {
699 $('.nav-section-header').find('a:eq(0)').not('a[href="#"]').click(function(evt) {
707 function buildBreadcrumbs() {
735 function highlightSidenav() {
755 $selNavLink.parents('li.nav-section').each(function() {
762 function unHighlightSidenav() {
767 function toggleFullscreen(enable) {
795 function setNavBarDimensions() {
801 function updateSideNavDimensions() {
808 function addLoadEvent(newfun) {
810 if (typeof window.onload != 'function') {
813 window.onload = function() {
830 $(document).ready(function() {
840 function resizeNav(delay) {
915 function delayedReInitScrollbars(delay) {
936 function reInitScrollbars() {
937 var pane = $(".scroll-pane").each(function(){
948 function saveNavPanels() {
956 function restoreHeight(packageHeight) {
974 function scrollIntoView(nav) {
1003 function showDialog(id) {
1016 function readCookie(cookie) {
1033 function writeCookie(cookie, val, section) {
1050 function setStickyTop() {
1057 $(window).scroll(function(event) {
1067 function checkSticky() {
1129 (function() {
1130 $(document).ready(function() {
1133 $('.section-card-menu').each(function(index, el) {
1164 function toggle(obj, slide) {
1185 function buildToggleLists() {
1187 function(i) {
1195 function hideNestedItems(list, toggle) {
1211 function setupIdeDocToggle() {
1212 $( "select.ide" ).change(function() {
1247 function getNavPref() {
1255 function chooseDefaultNav() {
1265 function swapNav() {
1301 function getBaseUri(uri) {
1314 function requestAppendHL(uri) {
1328 function changeNavLang(lang) {
1332 $links.each(function(){ // for each link with a translation
1339 function changeLangPref(lang, submit) {
1357 function loadLangPref() {
1364 function getLangPref() {
1381 function toggleContent(obj) {
1391 toggleMe.slideUp('fast', function() { // Wait until the animation is done before closing arrow
1405 function toggleExpandable(link,id) {
1415 function hideExpandable(ids) {
1456 * easing: easing function for transition
1463 (function($) {
1464 $.fn.dacSlideshow = function(o) {
1482 return this.each(function() {
1519 li.click(function() {
1530 $(o.btnPrev).click(function(e) {
1537 $(o.btnNext).click(function(e) {
1544 $(o.btnPause).click(function(e) {
1556 function startRotateTimer() {
1558 timer = setInterval(function() {
1568 function pauseRotateTimer() {
1574 function go(to) {
1588 function() {
1614 function css(el, prop) {
1617 function width(el) {
1620 function height(el) {
1658 * easing: easing function for transition
1664 (function($) {
1665 $.fn.dacTabbedList = function(o) {
1676 return this.each(function() {
1690 $(nav_li).click(function(e) {
1695 function go(to) {
1701 function() {
1717 function css(el, prop) {
1720 function width(el) {
1723 function height(el) {
1757 function onSuggestionClick(link) {
1763 function set_item_selected($li, selected)
1772 function set_item_values(toroot, $li, match)
1779 function set_item_values_jd(toroot, $li, match)
1786 function new_suggestion($list) {
1790 $li.mousedown(function() {
1793 $li.mouseover(function() {
1804 function sync_selection_table(toroot)
1934 function search_changed(e, kd, toroot)
2406 function rank_autocomplete_doc_results(query, matches) {
2411 var _resultScoreFn = function(match) {
2434 matches.sort(function(a,b){
2443 function rank_autocomplete_api_results(query, matches) {
2448 // helper function that gets the last occurence index of the given regex
2450 var _lastSearch = function(s, re) {
2463 // helper function that counts the occurrences of a given character in
2465 var _countChar = function(s, c) {
2477 var _resultScoreFn = function(result) {
2510 matches.sort(function(a,b){
2519 function highlight_autocomplete_result_labels(query) {
2538 function search_focus_changed(obj, focused)
2548 function submit_search() {
2557 function hideResults() {
2565 searchControl.setSearchStartingCallback(this, function(control, searcher, query) {});
2568 $("#search_autocomplete").keyup(function(event) {
2582 google.load('search', '1', {"callback" : function() {
2586 function loadSearchResults() {
2645 searchControl.setSearchStartingCallback(this, function(control, searcher, query) {
2652 searchControl.setSearchCompleteCallback(this, function(control, searcher, query) {
2668 google.setOnLoadCallback(function(){
2683 function offsetScrollForSticky() {
2700 $(window).hashchange( function(){
2725 function updateResultTitle(query) {
2730 $("#search_autocomplete").keyup(function(event) {
2735 function addTabListeners() {
2738 $(tabHeaders[i]).attr("id",i).click(function() {
2741 setTimeout(function() {
2754 setTimeout(function(){$(tabHeaders[0]).click()},200);
2758 function addResultClickListeners() {
2759 $("#searchResults a.gs-title").each(function(index, link) {
2761 $(link).click(function() {
2769 function getQuery(hash) {
2776 function escapeHTML(string) {
2796 $(document).ready(function() {
2810 function initSidenavHeightResize() {
2819 resize: function(event, ui) { resizeNav(); }, /* resize the nav while dragging */
2820 stop: function(event, ui) { saveNavPanels(); } /* once stopped, save the sizes to cookie */
2825 function updateSidenavFixedWidth() {
2836 function updateSidenavFullscreenWidth() {
2847 function buildApiLevelSelector() {
2871 function changeApiLevel() {
2899 function toggleVisisbleApis(selectedLevel, context) {
2901 apis.each(function(i) {
2935 function new_node(me, mom, text, link, children_data, api_level)
2956 node.expand_toggle.onclick = function() {
2997 node.get_children_ul = function() {
3013 function expand_node(me, node)
3034 function get_node(me, mom)
3044 function this_page_relative(toroot)
3071 function find_page(url, data)
3090 function init_default_navtree(toroot) {
3092 $.getScript(toRoot + 'navtree_data.js', function(data, textStatus, jqxhr) {
3104 function init_navtree(navtree_id, toroot, root_nodes)
3114 me.node.get_children_ul = function() { return me.node.children_ul; };
3131 addLoadEvent(function() {
3145 function init_google_navtree(navtree_id, toroot, root_nodes)
3159 me.node.get_children_ul = function() { return me.node.children_ul; };
3167 function new_google_node(me, mom, text, link, children_data, api_level)
3174 node.get_children_ul = function() {
3218 function get_google_node(me, mom)
3248 function init_google_navtree2(navtree_id, data)
3262 function new_google_node2(node_data)
3304 function showGoogleRefTree() {
3309 function init_default_google_navtree(toroot) {
3311 $.getScript(toRoot + 'gms_navtree_data.js', function(data, textStatus, jqxhr) {
3321 function init_default_gcm_navtree(toroot) {
3323 $.getScript(toRoot + 'gcm_navtree_data.js', function(data, textStatus, jqxhr) {
3333 function showSamplesRefTree() {
3337 function init_default_samples_navtree(toroot) {
3339 $.getScript(toRoot + 'samples_navtree_data.js', function(data, textStatus, jqxhr) {
3365 function toggleInherited(linkObj, expand) {
3392 function toggleAllInherited(linkObj, expand) {
3397 expandos.each(function(i) {
3402 expandos.each(function(i) {
3412 function toggleAllClassInherited() {
3416 toggles.each(function(i) {
3421 toggles.each(function(i) {
3430 function ensureAllInheritedExpanded() {
3432 toggles.each(function(i) {
3445 $(document).keydown( function(e) {
3460 function initCodeLineNumbers() {
3466 $(document).ready(function() {
3468 $("span.code-line").click(function() {
3474 $(".code-line").dblclick(function() {
3478 $("#codesample-line-numbers a.number").mouseover(function() {
3482 $("#codesample-line-numbers a.number").mouseout(function() {
3491 $(document).bind('keyup keydown', function(e){shifted = e.shiftKey; return true;} );
3494 function selectText(element) {
3516 function showSamples() {
3523 $selectedLi.children("ul").children("li").each(function() {
3541 (function() {
3545 $(document).ready(function() {
3550 $('.resource-widget').each(function() {
3570 function initResourceWidget(widget) {
3615 function drawResourcesCarouselWidget($widget, opts, resources) {
3652 function drawResourcesStackWidget($widget, opts, resources, sections) {
3727 function createResourceElement(resource, opts, plusone) {
3751 function createResponsiveFlowColumn(cardSize) {
3766 function drawResourcesFlowWidget($widget, opts, resources) {
3832 function buildSectionList(opts) {
3839 function buildResourceList(opts) {
3843 $.queryResources = function(opts) {
3869 resources = urls.map(function(url){ return ALL_RESOURCES_BY_URL[url]; });
3873 resources = urls.map(function(url){ return ALL_RESOURCES_BY_URL[url]; });
3917 results = results.sort(function(x,y) {
3934 function getResourceNotAlreadyAddedFilter(addedResourceIndices) {
3935 return function(resource) {
3941 function getResourceMatchesClausesFilter(clauses) {
3942 return function(resource) {
3948 function doesResourceMatchClauses(resource, clauses) {
3970 function cleanUrl(url)
3980 function parseResourceQuery(query) {
4025 (function($) {
4031 function buildResourceCardDescription(resource, plusone) {
4055 /* Simple jquery function to create dom for a standard resource card */
4056 $.fn.decorateResourceCard = function(resource,plusone) {
4085 /* Simple jquery function to create dom for a resource section card (menu) */
4086 $.fn.decorateResourceSection = function(section,plusone) {
4168 $.fn.decorateResource = function(resource, opts) {
4197 (function($) {
4198 $.fn.ellipsisfade= function(lineHeight) {
4199 this.each(function() {
4203 $this.parent().siblings().each(function ()
4253 (function() {
4254 $(document).ready(function() {
4255 $('.fullscreen-carousel').each(function() {
4260 function initWidget(widget) {
4276 $nextArrow.click(function() {
4283 $prevArrow.click(function() {
4292 $content.each(function(index) {
4301 function resizeWidget() {
4347 (function() {
4348 $(document).ready(function() {
4349 $('.tab-carousel').each(function() {
4354 function initWidget(widget) {
4365 $anchors.click(function(evt) {
4380 $tabs.each(function(index) {
4384 function transitionWidget($toTab) {
4411 (function($) {
4415 function initWidget() {
4435 function makeTogglable() {
4448 contentTitles.each(function() {
4498 $(function() {
4503 (function($) {
4512 function FloatingLabel(el, options) {
4521 this.input.on('focus', function() {
4524 function() {
4534 FloatingLabel.prototype.checkValue_ = function() {
4546 $.fn.dacFloatingLabel = function(options) {
4547 return this.each(function() {
4552 $(document).on('ready.aranja', function() {
4553 $('.dac-form-floatlabel').each(function() {
4560 (function($) {
4567 function DacCarouselQuery(el) {
4576 $(resources).map(function() {
4627 function cleanUrl(url) {
4634 function formatTag(resource) {
4644 function formatTitle(resource) {
4648 function formatCTA(resource) {
4653 $.fn.dacCarouselQuery = function() {
4654 return this.each(function() {
4663 $(function() {
4668 (function($) {
4675 function DacCarousel(el, options) {
4700 DacCarousel.prototype.initPagination = function() {
4721 DacCarousel.prototype.initEvents = function() {
4733 this.el.hover(function() {
4735 }, function() {
4739 $(this.options.btnPrev).click(function(e) {
4744 $(this.options.btnNext).click(function(e) {
4750 DacCarousel.prototype.touchstart_ = function(event) {
4755 DacCarousel.prototype.touchend_ = function() {
4769 DacCarousel.prototype.touchmove_ = function(event) {
4774 DacCarousel.prototype.initFrame = function() {
4778 DacCarousel.prototype.startRotateTimer = function() {
4783 DacCarousel.prototype.pauseRotateTimer = function() {
4788 DacCarousel.prototype.prev = function() {
4792 DacCarousel.prototype.next = function() {
4796 DacCarousel.prototype.go = function(next) {
4823 $.fn.resolveStyles = function() {
4830 $.fn.dacCarousel = function() {
4831 this.each(function() {
4839 $(function() {
4844 (function($) {
4847 function Modal(el, options) {
4852 this.el.on('click', function(event) {
4863 Modal.prototype.toggle_ = function() {
4867 Modal.prototype.close_ = function() {
4873 Modal.prototype.open_ = function() {
4879 function ToggleModal(el, options) {
4888 ToggleModal.prototype.clickHandler_ = function(event) {
4897 $.fn.dacModal = function(options) {
4898 return this.each(function() {
4903 $.fn.dacToggleModal = function(options) {
4904 return this.each(function() {
4912 $(document).on('ready.aranja', function() {
4913 $('[data-modal]').each(function() {
4917 $('[data-modal-toggle]').each(function() {
4923 (function($) {
4932 function ToggleNav(el, options) {
4960 ToggleNav.prototype.clickHandler_ = function(event) {
4969 $.fn.dacToggleMobileNav = function(options) {
4970 return this.each(function() {
4978 $(window).on('load.aranja', function() {
4979 $('[data-dac-toggle-nav]').each(function() {
4985 (function($) {
4993 function NewsletterForm(el) {
5014 NewsletterForm.prototype.closeHandler_ = function() {
5015 setTimeout(function() {
5024 NewsletterForm.prototype.reset_ = function() {
5033 NewsletterForm.prototype.submitHandler_ = function() {
5042 $.fn.dacNewsletterForm = function(options) {
5043 return this.each(function() {
5051 $(document).on('ready.aranja', function() {
5052 $('[data-newsletter]').each(function() {
5058 (function($) {
5067 function ScrollButton(el, options) {
5096 ScrollButton.prototype.clickHandler_ = function(event) {
5112 $.fn.dacScrollButton = function(options) {
5113 return this.each(function() {
5121 $(document).on('ready.aranja', function() {
5122 $('[data-scroll-button]').each(function() {
5128 (function($) {
5140 function SwapContent(el, options) {
5165 SwapContent.prototype.currentHeight = function(container) {
5172 SwapContent.prototype.reset = function() {
5181 SwapContent.prototype.complete = function() {
5189 SwapContent.prototype.swap = function() {
5191 this.containers.each(function(index, container) {
5203 $.fn.dacSwapContent = function(options) {
5204 return this.each(function() {
5212 $(document).on('ready.aranja', function() {
5213 $('[data-swap]').each(function() {
5219 (function($) {
5220 function Toggle(el) {
5224 Toggle.prototype.toggle = function() {
5236 function getParent($this) {
5256 function transitionMaxHeight($el, visible) {
5271 setTimeout(function() {
5277 $.fn.transitionDuration = function() {
5284 $.fn.toggleSection = function(option) {
5285 return this.each(function() {