PageSourceSearch

https://www.baden.fm/wp-content/themes/cmms-theme-baden_fm/assets/dist/4.24/Crawl.js

js baden.fm collected 2026-10-02 08:26:32 UTC 2,927 bytes, 1 lines download raw bytes

1import{_ as u,t as d}from"./app.js";import"./swiper.js";const w={name:"CrawlItem",components:{SoylentLink:d},props:["tagName","textValue","url"],computed:{getAttributes:function(){return this.url.length>0?{href:this.url,url:this.url}:{}}}},f=window.Vue.resolveDynamicComponent,p=window.Vue.mergeProps,a=window.Vue.openBlock,_=window.Vue.createBlock,g=window.Vue.createElementVNode,V=window.Vue.Fragment,x=window.Vue.createElementBlock;function k(e,n,t,l,o,r){return a(),x(V,null,[(a(),_(f(t.tagName),p(r.getAttributes,{innerHTML:t.textValue}),null,16,["innerHTML"])),n[0]||(n[0]=g("span",null,"   +++   ",-1))],64)}const C=u(w,[["render",k]]),E={name:"SoylentCrawl",props:["element"],components:{CrawlItem:C},data(){return{crawlText:"",ready:!1,elementWidth:0,contentWidth:0,textIncreaseCounter:0,crawlElements:[],separator:"&nbsp;&nbsp;&nbsp;+++&nbsp;&nbsp;&nbsp;"}},computed:{elements:function(){return this.element.data.elements?this.element.data.elements:[]},multiple:function(){return 0<this.element.data.multiple?this.element.data.multiple:!1}},methods:{getAttributes:function(e){return e.link.length>0?{href:this.href(e),url:this.href(e)}:{}},tagName:function(e){return 0<e.link.length?"SoylentLink":"span"},href:function(e){return e.link?e.link:!1},textValue:function(e){return e.text?e.text:""},updateCrawlText:function(){this.elementWidth=this.getElementWidth(),this.crawlElements=this.crawlElements.concat(this.elements),this.$nextTick(()=>{this.initCrawl()})},initCrawl(){this.ready=!0,setTimeout(()=>{const e=this.$refs.crawl_item.offsetWidth,n=this.elementWidth/e,t=Math.ceil(n)*2-1;if(this.contentWidth=e*Math.ceil(n),this.contentWidth>0){for(let l=0;l<t;l++)this.crawlElements=this.crawlElements.concat(this.elements);this.$refs.crawl_item.style.width=this.contentWidth*2+5+"px",this.animateText()}},100)},getElementWidth:function(){return Math.floor(this.$refs.el.getBoundingClientRect().width)},getTextWidth:function(){return Math.floor(this.$refs.el.width)},animateText:function(){this.$refs.el.firstChild.animate([{transform:"translate3d(0, 0, 0)"},{transform:"translate3d(-"+this.contentWidth+"px, 0, 0)"}],{duration:this.contentWidth/30*1e3,easing:"linear",iterations:1/0})}},mounted(){this.updateCrawlText()}},y=window.Vue.renderList,b=window.Vue.Fragment,i=window.Vue.openBlock,c=window.Vue.createElementBlock,B=window.Vue.resolveComponent,W=window.Vue.createBlock,$=window.Vue.createElementVNode,T=window.Vue.normalizeClass,v={ref:"crawl_item",style:{display:"inline-block","white-space":"nowrap"}};function I(e,n,t,l,o,r){const m=B("CrawlItem");return i(),c("div",{class:T(["element",t.element.type,t.element.subtype]),ref:"el"},[$("div",v,[(i(!0),c(b,null,y(o.crawlElements,(s,h)=>(i(),W(m,{"tag-name":r.tagName(s),url:r.href(s),"text-value":r.textValue(s),key:"crawl_item_".concat(h)},null,8,["tag-name","url","text-value"]))),128))],512)],2)}const M=u(E,[["render",I]]);export{M as default};

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.