PageSourceSearch

https://0hh.ru/assets/js/forutopbtn.js?

js 0hh.ru collected 2026-10-09 04:34:19 UTC 2,533 bytes, 1 lines download raw bytes

1angular.module("YepCom").directive("forutopbtn",function($state,Layout,$compile,ThemeLayer){return{restrict:"EA",replace:!0,template:'<div class="forutopbtn extrablockngnew" extraname="forublockprice" elementid="elforutopbtnouter" ng-click="goTop()" ng-style="sitecontent.elforutopbtnouter.style" ng-class="sitecontent.elforutopbtnouter.classes"></div>',link:function(scope,element,attrs){var key,keys,templ,_i,_len;if(scope.previewstate="preview2"===$state.current.name||"localpreview"===$state.current.name||"templatepreview"===$state.current.name||"previewimage"===$state.current.name,scope.updateExtraTemplate=function(name){var id=scope.elemdata.extrablock_id.$oid;return Layout.updateTemplate(id,name).then(function(templ){return element.html(""),scope.elemdata.templatename=name,scope.elemdata.templatehtml=templ,$compile(ThemeLayer.rewriteNgStyle(templ,scope.elemdata.templatename,scope.sitecontent,scope))(scope,function(newelem){return element.html(newelem)})})},scope.previewstate&&window.addEventListener("scroll",function(){return window.scrollY>window.outerHeight/4?$(element).show("slow"):$(element).hide("slow")}),scope.goTop=function(){if(scope.previewstate)return window.scrollTo({top:0,behavior:"smooth"}),$("html,body").animate({scrollTop:0})},scope.$on("setLayoutelforutopbtn",function(evt,template,yelemid,classes){if(null==classes&&(classes=null),yelemid===scope.yeid)return yelemid=scope.sitecontent.elforutopbtnouter.classes,classes?-1===yelemid.indexOf(classes)&&(scope.sitecontent.elforutopbtnouter.classes=classes):-1===yelemid.indexOf(template)&&(scope.sitecontent.elforutopbtnouter.classes=template),scope.updateExtraTemplate(template)}),"preview2"===$state.current.name||"localpreview"===$state.current.name||"templatepreview"===$state.current.name||"previewimage"===$state.current.name){for(templ=scope.elemdata.templatehtml.replace(/\&\#39\;/g,"'"),_i=0,_len=(keys=Object.keys(scope.sitecontent)).length;_i<_len;_i++)key=keys[_i],scope.sitecontent[key]&&scope.sitecontent[key].text&&(templ=templ.replace("ng-model=\"sitecontent['"+key+"']['text']\"",'fomce="true" ng-bind-html="trustAsHtml(sitecontent[\''+key+"']['text'])\""));return $compile(ThemeLayer.rewriteNgStyle(templ,scope.elemdata.templatename,scope.sitecontent,scope))(scope,function(newelem){return element.html(newelem)})}if(scope.elemdata&&scope.elemdata.templatename&&(scope.updateExtraTemplate(scope.elemdata.templatename),scope.sitecontent.elforutopbtn))return scope.sitecontent.elforutopbtn.template=scope.elemdata.templatename}}});

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.