1/** 2 * Image vertical reel scroll slideshow 3 * Copyright (C) 2011 - 2022 www.gopiplus.com 4 * http://www.gopiplus.com/work/2011/05/30/wordpress-plugin-image-vertical-reel-scroll-slideshow/ 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20function ivrss_scroll() { 21 ivrss_obj.scrollTop = ivrss_obj.scrollTop + 1; 22 ivrss_scrollPos++; 23 if ((ivrss_scrollPos%ivrss_heightOfElm) == 0) { 24 ivrss_numScrolls--; 25 if (ivrss_numScrolls == 0) { 26 ivrss_obj.scrollTop = '0'; 27 ivrss_content(); 28 } else { 29 if (ivrss_scrollOn == 'true') { 30 ivrss_content(); 31 } 32 } 33 } else { 34 var speed = 60 - ( ivrss_speed * 10 ); 35 setTimeout("ivrss_scroll();", speed); 36 } 37} 38 39var ivrss_Num = 0; 40/* 41Creates amount to show + 1 for the scrolling ability to work 42scrollTop is set to top position after each creation 43Otherwise the scrolling cannot happen 44*/ 45function ivrss_content() { 46 var tmp_vsrp = ''; 47 48 w_vsrp = ivrss_Num - parseInt(ivrss_numberOfElm); 49 if (w_vsrp < 0) { 50 w_vsrp = 0; 51 } else { 52 w_vsrp = w_vsrp%ivrss_array.length; 53 } 54 55 // Show amount of vsrru 56 var elementsTmp_vsrp = parseInt(ivrss_numberOfElm) + 1; 57 for (i_vsrp = 0; i_vsrp < elementsTmp_vsrp; i_vsrp++) { 58 59 tmp_vsrp += ivrss_array[w_vsrp%ivrss_array.length]; 60 w_vsrp++; 61 } 62 63 ivrss_obj.innerHTML = tmp_vsrp; 64 65 ivrss_Num = w_vsrp; 66 ivrss_numScrolls = ivrss_array.length; 67 ivrss_obj.scrollTop = '0'; 68 // start scrolling 69 setTimeout("ivrss_scroll();", ivrss_waitseconds * 1000); 70}
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.