1/* Source and licensing information for the line(s) below can be found at https://oovl.ru/sites/all/modules/webform/js/webform.js. */ 2(function($){Drupal.behaviors.webform=function(context){Drupal.webform.datepicker(context)};Drupal.webform=Drupal.webform||{};Drupal.webform.datepicker=function(context){$('div.webform-datepicker').each(function(){var $webformDatepicker=$(this),$calendar=$webformDatepicker.find('input.webform-calendar');if($calendar.length==0)return;var startDate=$calendar[0].className.replace(/.*webform-calendar-start-(\d{4}-\d{2}-\d{2}).*/,'$1').split('-'),endDate=$calendar[0].className.replace(/.*webform-calendar-end-(\d{4}-\d{2}-\d{2}).*/,'$1').split('-'),firstDay=$calendar[0].className.replace(/.*webform-calendar-day-(\d).*/,'$1');startDate=new Date(startDate[0],startDate[1]-1,startDate[2]);endDate=new Date(endDate[0],endDate[1]-1,endDate[2]);if(startDate>endDate){var laterDate=startDate;startDate=endDate;endDate=laterDate};var startYear=startDate.getFullYear(),endYear=endDate.getFullYear();$calendar.datepicker({dateFormat:'yy-mm-dd',yearRange:startYear+':'+endYear,firstDay:parseInt(firstDay),minDate:startDate,maxDate:endDate,onSelect:function(dateText,inst){var date=dateText.split('-');$webformDatepicker.find('select.year, input.year').val(+date[0]).trigger('change');$webformDatepicker.find('select.month').val(+date[1]).trigger('change');$webformDatepicker.find('select.day').val(+date[2]).trigger('change')},beforeShow:function(input,inst){var year=$webformDatepicker.find('select.year, input.year').val(),month=$webformDatepicker.find('select.month').val(),day=$webformDatepicker.find('select.day').val(),today=new Date();year=year?year:today.getFullYear();month=month?month:today.getMonth()+1;day=day?day:today.getDate();year=(year<startYear||year>endYear)?startYear:year;$(input).val(year+'-'+month+'-'+day)}});$calendar.click(function(event){$(this).focus();event.preventDefault()})})}})(jQuery); 3/* Source and licensing information for the above line(s) can be found at https://oovl.ru/sites/all/modules/webform/js/webform.js. */ 4/* Source and licensing information for the line(s) below can be found at https://oovl.ru/misc/textarea.js. */ 5Drupal.behaviors.textarea=function(context){$('textarea.resizable:not(.textarea-processed)',context).each(function(){if($(this).is('textarea.teaser:not(.teaser-processed)'))return false;var textarea=$(this).addClass('textarea-processed'),staticOffset=null;$(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append($('<div class="grippie"></div>').mousedown(startDrag));var grippie=$('div.grippie',$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+'px' 6function startDrag(e){staticOffset=textarea.height()-e.pageY;textarea.css('opacity',0.25);$(document).mousemove(performDrag).mouseup(endDrag);return false} 7function performDrag(e){textarea.height(Math.max(32,staticOffset+e.pageY)+'px');return false} 8function endDrag(e){$(document).unbind("mousemove",performDrag).unbind("mouseup",endDrag);textarea.css('opacity',1)}})}; 9/* Source and licensing information for the above line(s) can be found at https://oovl.ru/misc/textarea.js. */ 10/* Source and licensing information for the line(s) below can be found at https://oovl.ru/sites/all/modules/views/js/base.js. */ 11Drupal.Views={};Drupal.behaviors.viewsTabs=function(context){$('#views-tabset:not(.views-processed)').addClass('views-processed').each(function(){new Drupal.Views.Tabs($(this),{selectedClass:'active'})});$('a.views-remove-link').addClass('views-processed').click(function(){var id=$(this).attr('id').replace('views-remove-link-','');$('#views-row-'+id).hide();$('#views-removed-'+id).attr('checked',true);return false})};Drupal.behaviors.viewsHoverlinks=function(){if($.browser.msie){$("div.view:not(.views-hover-processed)").addClass('views-hover-processed').hover(function(){$('div.views-hide',this).addClass("views-hide-hover");return true},function(){$('div.views-hide',this).removeClass("views-hide-hover");return true});$("div.views-admin-links:not(.views-hover-processed)").addClass('views-hover-processed').hover(function(){$(this).addClass("views-admin-links-hover");return true},function(){$(this).removeClass("views-admin-links-hover");return true})}};Drupal.Views.parseQueryString=function(query){var args={},pos=query.indexOf('?');
11if(pos!=-1)query=query.substring(pos+1);var pairs=query.split('&');for(var i in pairs)if(typeof(pairs[i])=='string'){var pair=pairs[i].split('=');if(pair[0]!='q'&&pair[1])args[pair[0]]=decodeURIComponent(pair[1].replace(/\+/g,' '))};return args};Drupal.Views.parseViewArgs=function(href,viewPath){var returnObj={},path=Drupal.Views.getPath(href);if(viewPath&&path.substring(0,viewPath.length+1)==viewPath+'/'){var args=decodeURIComponent(path.substring(viewPath.length+1,path.length));returnObj.view_args=args;returnObj.view_path=path};return returnObj};Drupal.Views.pathPortion=function(href){var protocol=window.location.protocol;if(href.substring(0,protocol.length)==protocol)href=href.substring(href.indexOf('/',protocol.length+2));return href};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(Drupal.settings.basePath.length,href.length);if(href.substring(0,3)=='?q=')href=href.substring(3,href.length);var chars=['#','?','&'];for(i in chars)if(href.indexOf(chars[i])>-1)href=href.substr(0,href.indexOf(chars[i]));return href}; 12/* Source and licensing information for the above line(s) can be found at https://oovl.ru/sites/all/modules/views/js/base.js. */ 13/* Source and licensing information for the line(s) below can be found at https://oovl.ru/sites/all/modules/views/js/dependent.js. */ 14Drupal.Views=Drupal.Views||{};Drupal.Views.dependent={bindings:{},activeBindings:{},activeTriggers:[]};Drupal.Views.dependent.inArray=function(array,search_term){var i=array.length;if(i>0)do{if(array[i]==search_term)return true}while(i--);return false};Drupal.Views.dependent.autoAttach=function(){for(i in Drupal.Views.dependent.activeTriggers)jQuery(Drupal.Views.dependent.activeTriggers[i]).unbind('change');Drupal.Views.dependent.activeTriggers=[];Drupal.Views.dependent.activeBindings={};Drupal.Views.dependent.bindings={};
14if(!Drupal.settings.viewsAjax)return;for(id in Drupal.settings.viewsAjax.formRelationships){Drupal.Views.dependent.activeBindings[id]=0;for(bind_id in Drupal.settings.viewsAjax.formRelationships[id].values){if(!Drupal.Views.dependent.bindings[bind_id])Drupal.Views.dependent.bindings[bind_id]=[];Drupal.Views.dependent.bindings[bind_id].push(id);if(bind_id.substring(0,6)=='radio:'){var trigger_id="input[name='"+bind_id.substring(6)+"']"}else var trigger_id='#'+bind_id;Drupal.Views.dependent.activeTriggers.push(trigger_id);if(jQuery(trigger_id).attr('type')=='checkbox')$(trigger_id).parent().addClass('hidden-options');var getValue=function(item,trigger){if(item.substring(0,6)=='radio:'){var val=jQuery(trigger+':checked').val()}else switch(jQuery(trigger).attr('type')){case'checkbox':var val=jQuery(trigger).attr('checked')||0;if(val){$(trigger).parent().removeClass('hidden-options').addClass('expanded-options')}else $(trigger).parent().removeClass('expanded-options').addClass('hidden-options');break;default:var val=jQuery(trigger).val()};return val},setChangeTrigger=function(trigger_id,bind_id){var changeTrigger=function(){var val=getValue(bind_id,trigger_id);for(i in Drupal.Views.dependent.bindings[bind_id]){var id=Drupal.Views.dependent.bindings[bind_id][i];if(typeof id!='string')continue;if(!Drupal.Views.dependent.activeBindings[id])Drupal.Views.dependent.activeBindings[id]={};if(Drupal.Views.dependent.inArray(Drupal.settings.viewsAjax.formRelationships[id].values[bind_id],val)){Drupal.Views.dependent.activeBindings[id][bind_id]='bind'}else delete Drupal.Views.dependent.activeBindings[id][bind_id];var len=0;for(i in Drupal.Views.dependent.activeBindings[id])len++;var object=jQuery('#'+id+'-wrapper');if(!object.size())object=jQuery('#'+id).parent();var rel_num=Drupal.settings.viewsAjax.formRelationships[id].num;if(typeof rel_num==='object')rel_num=Drupal.settings.viewsAjax.formRelationships[id].num[0];if(rel_num<=len){object.show(0);object.addClass('dependent-options')}else object.hide(0)}};jQuery(trigger_id).change(function(){changeTrigger(trigger_id,bind_id)});changeTrigger(trigger_id,bind_id)};setChangeTrigger(trigger_id,bind_id)}}};Drupal.behaviors.viewsDependent=function(context){Drupal.Views.dependent.autoAttach();$("select.views-master-dependent:not(.views-processed)").addClass('views-processed').change(function(){var val=$(this).val();if(val=='all'){$('.views-dependent-all').show(0)}else{$('.views-dependent-all').hide(0);$('.views-dependent-'+val).show(0)}}).trigger('change')}; 15/* Source and licensing information for the above line(s) can be found at https://oovl.ru/sites/all/modules/views/js/dependent.js. */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.