PageSourceSearch

https://www.sq.com.ua/assets/unitegallery/themes/default/ug-theme-default.min.js

js sq.com.ua collected 2026-10-02 05:48:39 UTC 6,715 bytes, 1 lines download raw bytes

1if(typeof g_ugFunctions!="undefined")g_ugFunctions.registerTheme("default");else jQuery(document).ready(function(){g_ugFunctions.registerTheme("default")});function UGTheme_default(){var e=this;var t=new UniteGalleryMain,n,i,l;var a,r,u,d;var s,o,_,f;var p=new UGFunctions;var h={theme_load_slider:true,theme_load_panel:true,theme_enable_fullscreen_button:true,theme_enable_play_button:true,theme_enable_hidepanel_button:true,theme_enable_text_panel:true,theme_text_padding_left:20,theme_text_padding_right:5,theme_text_align:"left",theme_text_type:"description",theme_hide_panel_under_width:480};var c={slider_controls_always_on:true,slider_zoompanel_align_vert:"top",slider_zoompanel_offset_vert:12,slider_textpanel_padding_top:0,slider_textpanel_enable_title:false,slider_textpanel_enable_description:true,slider_vertical_scroll_ondrag:true,strippanel_background_color:"#232323",strippanel_padding_top:10};var g={slider_enable_text_panel:false,slider_enable_play_button:false,slider_enable_fullscreen_button:false,slider_enable_text_panel:false,slider_textpanel_height:50,slider_textpanel_align:"top"};var v={isPanelHidden:false};function m(e,a){t=e;h=jQuery.extend(h,c);h=jQuery.extend(h,a);h=jQuery.extend(h,g);x();t.setOptions(h);if(h.theme_load_panel==true){_=new UGStripPanel;_.init(e,h)}if(h.theme_load_slider==true)t.initSlider(h);i=e.getObjects();n=jQuery(e);l=i.g_objWrapper;if(h.theme_load_slider==true)s=i.g_objSlider;if(h.theme_enable_text_panel==true){f=new UGTextPanel;f.init(t,h,"slider")}}function b(){E();y();B()}function x(){var e={slider_textpanel_css_title:{},slider_textpanel_css_description:{}};h=jQuery.extend(e,h);h.slider_textpanel_css_title["text-align"]=h.theme_text_align;h.slider_textpanel_css_description["text-align"]=h.theme_text_align;switch(h.theme_text_type){case"title":h.slider_textpanel_enable_title=true;h.slider_textpanel_enable_description=false;break;case"both":h.slider_textpanel_enable_title=true;h.slider_textpanel_enable_description=true;break;default:case"description":}}function E(){l.addClass("ug-theme-default");var e="";e+="<div class='ug-theme-panel'>";var t="ug-default-button-fullscreen";var n="ug-default-button-play";var i=".ug-default-button-fullscreen";var p=".ug-default-button-play";if(!f){t="ug-default-button-fullscreen-single";n="ug-default-button-play-single";i=".ug-default-button-fullscreen-single";p=".ug-default-button-play-single"}if(h.theme_enable_fullscreen_button==true)e+="<div class='"+t+"'></div>";if(h.theme_enable_play_button==true)e+="<div class='"+n+"'></div>";if(h.theme_enable_hidepanel_button)e+="<div class='ug-default-button-hidepanel'><div class='ug-default-button-hidepanel-bg'></div> <div class='ug-default-button-hidepanel-tip'></div></div>";e+="</div>";l.append(e);l.append('<div class="ug-default-button-close">&#10006;</div>');o=l.children(".ug-theme-panel");if(h.theme_enable_fullscreen_button==true)a=o.children(i);if(h.theme_enable_play_button==true)r=o.children(p);if(h.theme_enable_hidepanel_button==true)u=o.children(".ug-default-button-hidepanel");d=l.children(".ug-default-button-close");_.setHtml(o);if(f)f.appendHTML(o);if(s)s.setHtml()}function y(){if(h.theme_load_panel){S();H()}if(s){T();s.run()}}function S(){var e=t.getSize();var n=e.width;_.setOrientation("bottom");_.setWidth(n);_.run();var i=_.getSize();var l=i.height;if(f){l+=g.slider_textpanel_height;if(u){var d=u.outerHeight();l+=d}}else{var s=0;if(u)s=Math.max(u.outerHeight(),s);if(a)s=Math.max(a.outerHeight(),s);if(r)s=Math.max(r.outerHeight(),s);l+=s}p.setElementSize(o,n,l);var c=_.getElement();p.placeElement(c,"left","bottom");if(u){var v=u.children(".ug-default-button-hidepanel-tip");p.placeElement(v,"center","middle");if(f){var m=u.children(".ug-default-button-hidepanel-bg");var b=f.getOption("textpanel_bg_opacity");m.fadeTo(0,b);var x=f.getOption("textpanel_bg_color");m.css({"background-color":x})}}var E=0;var y=0;if(u){y=d}if(a){p.placeElement(a,"right","top",0,y);E=a.outerWidth()}if(r){var S=y;if(!f)S++;p.placeElement(r,"right","top",E,S);E+=r.outerWidth()}if(f){var H={};H.slider_textpanel_padding_right=h.theme_text_padding_right+E;H.slider_textpanel_padding_left=h.theme_text_padding_left;if(u){H.slider_textpanel_margin=d}f.setOptions(H);f.positionPanel();f.run()}if(u){if(f)p.placeElement(u,"left","top");else{var T=c.outerHeight();p.placeElement(u,"left","bottom",0,T)}}}function H(){if(v.isPanelHidden||O()==true){var e=R();p.placeElement(o,0,e);v.isPanelHidden=true}else p.placeElement(o,0,"bottom")}function T(){var e=0;var n=0;var i=t.getHeight();var l=i;
1if(_&&P()==false){var a=_.getSize();l=i-a.height}var r=t.getWidth();s.setSize(r,l);s.setPosition(n,e)}function O(){if(!h.theme_hide_panel_under_width)return false;var e=jQuery(window).width();var t=h.theme_hide_panel_under_width;if(e<=t)return true;return false}function w(){if(!h.theme_hide_panel_under_width)return false;var e=O();if(e==true)z(true);else j(true)}function I(){y();w()}function P(){return v.isPanelHidden}function C(e,t){var n={top:e+"px"};o.stop(true).animate(n,{duration:300,easing:"easeInOutQuad",queue:false,complete:function(){if(t)t()}})}function R(){var e=l.height();var t=e;if(u){var n=p.getElementSize(u);t-=n.bottom}return t}function z(e){if(!e)var e=false;if(P()==true)return false;var t=R();if(e==true)p.placeElement(o,0,t);else C(t,T);if(u)u.addClass("ug-button-hidden-mode");v.isPanelHidden=true}function j(e){if(!e)var e=false;if(P()==false)return false;var t=l.height();var n=o.outerHeight();var i=t-n;if(e==true)p.placeElement(o,0,i);else C(i,T);if(u)u.removeClass("ug-button-hidden-mode");v.isPanelHidden=false}function A(e){e.stopPropagation();e.stopImmediatePropagation();if(p.validateClickTouchstartEvent(e.type)==false)return true;if(P()==true)j();else z()}function Q(){t.showDisabledOverlay()}function B(){n.on(t.events.SIZE_CHANGE,I);n.on(t.events.GALLERY_BEFORE_REQUEST_ITEMS,Q);if(r){p.addClassOnHover(r,"ug-button-hover");t.setPlayButton(r)}if(a){p.addClassOnHover(a,"ug-button-hover");t.setFullScreenToggleButton(a)}if(u){p.setButtonMobileReady(u);p.addClassOnHover(u,"ug-button-hover");u.on("click touchstart",A)}if(d){t.setFullScreenToggleButton(d)}n.on(t.events.SLIDER_ACTION_START,function(){o.css("z-index","1");s.getElement().css("z-index","11")});n.on(t.events.SLIDER_ACTION_END,function(){o.css("z-index","11");s.getElement().css("z-index","1")})}this.destroy=function(){n.off(t.events.SIZE_CHANGE);n.off(t.events.GALLERY_BEFORE_REQUEST_ITEMS);if(r)t.destroyPlayButton(r);if(a)t.destroyFullscreenButton(a);if(u)p.destroyButton(u);n.off(t.events.SLIDER_ACTION_START);n.off(t.events.SLIDER_ACTION_END);if(s)s.destroy();if(_)_.destroy();if(f)f.destroy()};this.run=function(){b()};this.init=function(e,t){m(e,t)}}

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.