PageSourceSearch

https://nagoya-aqua.com/manage/?res=contents//lib/fl&f=js/FlowText_1_0.js

js nagoya-aqua.com collected 2026-10-07 13:12:48 UTC 3,023 bytes, 52 lines download raw bytes

1let IMFT=new Array();
2IMFT["elms"]=document.getElementsByClassName("IMFlowText");
3IMFT["cssed"]=new Array();
4document.write('<style type="text/css" id="IMFTCSS">'+"\n");
5for(let i=0;i < IMFT["elms"].length;i++){
6  let ows=IMFT["elms"][i].getAttribute("style");
7  if(!ows){ows="";}
8  if(ows.indexOf("animation") >= 0){continue;}
9  if(IMFT["elms"][i].innerHTML){IMFT["elms"][i].setAttribute("style",ows+'overflow:hidden;white-space:nowrap;display:inline-block;text-align:left;');}
10  else{IMFT["elms"][i].setAttribute("style",ows+'overflow:hidden;white-space:nowrap;display:none;text-align:left;');}
11  let speed=IMFT["elms"][i].getAttribute("imflowtextspeed");
12  if(!speed){speed=8;}
13  ow=IMFT["elms"][i].offsetWidth;
14  let owd=ow+"and"+IMFT["elms"][i].parentElement.offsetWidth;
15  IMFT["elms"][i].setAttribute("style",IMFT["elms"][i].getAttribute("style")+'padding-left:'+IMFT["elms"][i].parentElement.offsetWidth+'px;padding-right:0;animation:'+(Math.floor((ow+IMFT["elms"][i].parentElement.offsetWidth)/speed)/10)+'s linear 0s infinite normal none running marquee'+owd+';');
16  if(!("d"+owd in IMFT["cssed"])){
17    document.write('@keyframes marquee'+owd+'{'+"\n");
18    document.write('  0%{transform:translate(0);}'+"\n");
19    document.write('  100%{transform:translate(-'+(ow+IMFT["elms"][i].parentElement.offsetWidth)+'px);}'+"\n");
20    document.write('}'+"\n");
21    IMFT["cssed"]["d"+ow]=true;
22  }
23}
24document.write('</style>'+"\n");
25IMP["LoadFlowText"]=true;
26
27IMP["FlowTextReconst"]=function(){
28  IMFT["elms"]=document.getElementsByClassName("IMFlowText");
29  for(let i=0;i < IMFT["elms"].length;i++){
30    ows=IMFT["elms"][i].getAttribute("style");
31    if(!ows){ows="";}
32    if(ows.indexOf("animation") >= 0){continue;}
33    if(IMFT["elms"][i].innerHTML){
34      IMFT["elms"][i].setAttribute("style",ows+'overflow:hidden;white-space:nowrap;text-align:left;display:inline-block;');
35      let ow=IMFT["elms"][i].offsetWidth;
36      let owd=ow+"and"+IMFT["elms"][i].parentElement.offsetWidth;
37      if(!("d"+owd in IMFT["cssed"])){
38        let addcss='@keyframes marquee'+owd+'{'+"\n"
39                  +'  0%{transform:translate(0);}'+"\n"
40                  +'  100%{transform:translate(-'+(ow+IMFT["elms"][i].parentElement.offsetWidth)+'px);}'+"\n"
41                  +'}'+"\n"
42                  ;
43        document.getElementById("IMFTCSS").innerHTML=document.getElementById("IMFTCSS").innerHTML+addcss;
44        IMFT["cssed"]["d"+ow]=true;
45      }
46      let speed=IMFT["elms"][i].getAttribute("imflowtextspeed");
47      if(!speed){speed=8;}
48      IMFT["elms"][i].setAttribute("style",IMFT["elms"][i].getAttribute("style")+'padding-left:'+IMFT["elms"][i].parentElement.offsetWidth+'px;padding-right:0;animation:'+(Math.floor((ow+IMFT["elms"][i].parentElement.offsetWidth)/speed)/10)+'s linear 0s infinite normal none running marquee'+owd+';');
49    }
50    else{IMFT["elms"][i].setAttribute("style",ows+'overflow:hidden;white-space:nowrap;text-align:left;display:none;');}
51  }
52}

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.