1//This file is part of briaskISS. 2// 3// briaskISS is free software: you can redistribute it and/or modify 4// it under the terms of the GNU General Public License as published by 5// the Free Software Foundation, either version 3 of the License, or 6// (at your option) any later version. 7// 8// briaskISS is distributed in the hope that it will be useful, 9// but WITHOUT ANY WARRANTY; without even the implied warranty of 10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11// GNU General Public License for more details. 12// 13// You should have received a copy of the GNU General Public License 14// along with briaskISS. If not, see <http://www.gnu.org/licenses/>. 15 16function briaskISS(idModule, random, picInterval, transDelay, picArray) 17{ 18 this.picRandom = random; 19 this.picInterval = picInterval; 20 this.transDelay = transDelay; 21 this.picArray = picArray; 22 23 this.curPic = 0; 24 this.nextPic = 0; 25 this.numPics = 0; 26 this.curOpacity = 99 27 this.nextOpacity = 0; 28 29 this.idModule = idModule; 30 31 this.initISS(); 32} 33 34briaskISS.prototype.initISS=function() 35{ 36 if (!document.getElementById || !document.createElement) return; 37 38 this.picArray[0] 39 = document.getElementById("briask-iss"+this.idModule).getElementsByTagName("img"); 40 41 this.numPics = this.picArray[0].length ; 42 43 for(i = 0; i < this.picArray[0].length; i++) 44 { 45 this.picArray[0][i].opacity = 0; 46 this.picArray[0][i].style.MozOpacity = .0; 47 this.picArray[0][i].style.filter = "alpha(opacity=0)"; 48 } 49 50 if (this.picRandom == 3) 51 { 52 this.issNextPic(); 53 } 54 55 this.picArray[0][this.nextPic].style.display = "block"; 56 this.picArray[0][this.nextPic].style.opacity = .99; 57 this.picArray[0][this.nextPic].style.MozOpacity = .99; 58 this.picArray[0][this.nextPic].style.filter = "alpha(opacity=" + (.99*100) + ")"; 59 60 this.curPic = this.nextPic; 61 setTimeout("briaskInstance"+this.idModule+".issShow()", this.picInterval); 62} 63 64briaskISS.prototype.issShow=function() 65{ 66 this.issNextPic(); 67 68 this.curOpacity = 100, this.nextOpacity = 0; 69 70 setTimeout("briaskInstance"+this.idModule+".issTransition()", this.transDelay); 71} 72 73briaskISS.prototype.issNextPic=function() 74{ 75 if (this.picRandom < 3) 76 { 77 if (this.curPic < (this.numPics - 1)) 78 { 79 this.nextPic = this.curPic + 1; 80 } 81 else 82 { 83 this.nextPic = 0; 84 } 85 } 86 else 87 { 88 do 89 { 90 now = new Date(); 91 92 var rndPic = Math.ceil(this.numPics * Math.random(this.idModule)) - 1; 93 94 } while (this.curPic == rndPic) 95 96 this.nextPic = rndPic; 97 } 98} 99 100briaskISS.prototype.issTransition = function () 101{ 102 this.picArray[0][this.nextPic].style.display = "block"; 103 104 this.picArray[0][this.curPic].style.opacity = this.curOpacity/100; 105 this.picArray[0][this.curPic].style.MozOpacity = this.curOpacity/100; 106 this.picArray[0][this.curPic].style.filter = "alpha(opacity=" + (this.curOpacity) + ")"; 107 108 this.picArray[0][this.nextPic].style.opacity = this.nextOpacity/100; 109 this.picArray[0][this.nextPic].style.MozOpacity = this.nextOpacity/100; 110 this.picArray[0][this.nextPic].style.filter = "alpha(opacity=" + (this.nextOpacity) + ")"; 111 112 if (this.curOpacity > 0) 113 { 114 this.curOpacity -= 4; 115 this.nextOpacity += 4; 116 setTimeout("briaskInstance"+this.idModule+".issTransition()", this.transDelay); 117 } 118 else 119 { 120 this.picArray[0][this.curPic].style.display = "none"; 121 122 this.curPic = this.nextPic; 123 setTimeout("briaskInstance"+this.idModule+".issShow()", this.picInterval); 124 } 125}
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.