Lines Matching refs:opts
3582 var opts = { variable
3597 var resources = buildResourceList(opts);
3600 drawResourcesFlowWidget($widget, opts, resources);
3602 drawResourcesCarouselWidget($widget, opts, resources);
3609 opts['numStacks'] = $widget.data('numstacks');
3610 drawResourcesStackWidget($widget, opts, resources/*, sections*/);
3615 function drawResourcesCarouselWidget($widget, opts, resources) { argument
3652 function drawResourcesStackWidget($widget, opts, resources, sections) { argument
3657 var numStacks = opts.numStacks || 1;
3693 var $card = createResourceElement(resources[i], opts);
3695 if (opts.resourceStyle.indexOf('related') > -1) {
3702 if (opts.stackSort != 'false') {
3727 function createResourceElement(resource, opts, plusone) { argument
3734 if (opts.resourceStyle == 'generic') {
3738 .decorateResource(resource, opts);
3766 function drawResourcesFlowWidget($widget, opts, resources) { argument
3768 var cardSizes = opts.cardSizes || ['6x6'];
3769 var initialResults = opts.initialResults || resources.length;
3810 var $card = createResourceElement(resources[i], opts, plusone);
3832 function buildSectionList(opts) { argument
3833 if (opts.section && SECTION_BY_ID[opts.section]) {
3834 return SECTION_BY_ID[opts.section].sections || [];
3839 function buildResourceList(opts) { argument
3840 return $.queryResources(opts);
3843 $.queryResources = function(opts) { argument
3844 var maxResults = opts.maxResults || 100;
3846 var query = opts.query || '';
3901 if (opts.sortOrder && results.length) {
3902 var attr = opts.sortOrder;
3904 if (opts.sortOrder == 'random') {
4168 $.fn.decorateResource = function(resource, opts) { argument
4570 var opts = this.el.data();
4571 opts.maxResults = parseInt(opts.maxResults || '100', 10);
4572 opts.query = opts.carouselQuery;
4573 var resources = $.queryResources(opts);