var snowStorm=(function(window,document){
this.flakesMax=60;
this.flakesMaxActive=1000; //banyaknya salju yang jatuh
this.animationInterval=80; //jeda gerak
this.excludeMobile=true;
this.flakeBottom=null; //batas bawah = height (angka)
this.followMouse=true; //true or false
this.snowColor='#000'; //warna salju RedGreenBlue mixed
this.snowCharacter='•'; //bentuk salju (huruf/symbol) coba ganti jadi 'KAMPRET' jadi mirip kupu-kupu
this.snowStick=false; //if true, salju jatoh ngumpul di bawah (coba set flakeBottom ke 500)
this.targetElement=null; //ID element tempat di mana salju mau di tampilin (nama ID jangan lupa pake tanda kutip)
this.useMeltEffect=true; //true or false
this.useTwinkleEffect=false; //kelap kelip
this.usePositionFixed=false; //if true, salju gak ikut ngegulung bareng halaman
this.freezeOnBlur=true; //true or false
this.flakeLeftOffset=0; //coba aja ganti angkanya misal jadi 100
this.flakeRightOffset=0; //coba aja
this.flakeWidth=5; //coba aja
this.flakeHeight=5; //coba aja
this.vMaxX=2.5;
this.vMaxY=2.5;
this.zIndex=1000000; //lebih tinggi angkanya lebih terdepan tampilannya, coba aja ganti jadi 0
var s=this,storm=this,i,isIE=navigator.userAgent.match(/msie/i),isIE6=navigator.userAgent.match(/msie 6/i),isWin98=navigator.appVersion.match(/windows 98/i),isMobile=navigator.userAgent.match(/mobile/i),isBackCompatIE=(isIE&&document.compatMode==='BackCompat'),noFixed=(isMobile||isBackCompatIE||isIE6),screenX=null,screenX2=null,screenY=null,scrollY=null,vRndX=null,vRndY=null,windOffset=1,windMultiplier=2,flakeTypes=6,fixedForEverything=false,opacitySupported=(function(){try{document.createElement('div').style.opacity='0.5';}catch(e){return false;}
return true;}()),didInit=false,docFrag=document.createDocumentFragment();this.timers=[];this.flakes=[];this.disabled=false;this.active=false;this.meltFrameCount=200;this.meltFrames=[];this.events=(function(){var old=(!window.addEventListener&&window.attachEvent),slice=Array.prototype.slice,evt={add:(old?'attachEvent':'addEventListener'),remove:(old?'detachEvent':'removeEventListener')};function getArgs(oArgs){var args=slice.call(oArgs),len=args.length;if(old){args[1]='on'+args[1];if(len>3){args.pop();}}else if(len===3){args.push(false);}
return args;}
function apply(args,sType){var element=args.shift(),method=[evt[sType]];if(old){element[method](args[0],args[1]);}else{element[method].apply(element,args);}}
function addEvent(){apply(getArgs(arguments),'add');}
function removeEvent(){apply(getArgs(arguments),'remove');}
return{add:addEvent,remove:removeEvent};}());function rnd(n,min){if(isNaN(min)){min=0;}
return(Math.random()*n)+min;}
function plusMinus(n){return(parseInt(rnd(2),100)===1?n*-1:n);}
this.randomizeWind=function(){vRndX=plusMinus(rnd(s.vMaxX,0.2));vRndY=rnd(s.vMaxY,0.2);if(this.flakes){for(var i=0;i
=0&&s.vX<0.2){s.vX=0.2;}else if(s.vX<0&&s.vX>-0.2){s.vX=-0.2;}
if(s.vY>=0&&s.vY<0.2){s.vY=0.2;}};this.move=function(){var vX=s.vX*windOffset,yDiff;s.x+=vX;s.y+=(s.vY*s.vAmp);if(s.x>=screenX||screenX-s.x0.998){s.melting=true;s.melt();}
if(storm.useTwinkleEffect){if(!s.twinkleFrame){if(Math.random()>0.9){s.twinkleFrame=parseInt(Math.random()*20,10);}}else{s.twinkleFrame--;s.o.style.visibility=(s.twinkleFrame&&s.twinkleFrame%2===0?'hidden':'visible');}}}};this.animate=function(){s.move();};this.setVelocities=function(){s.vX=vRndX+rnd(storm.vMaxX*0.12,0.1);s.vY=vRndY+rnd(storm.vMaxY*0.12,0.1);};this.setOpacity=function(o,opacity){if(!opacitySupported){return false;}
o.style.opacity=opacity;};this.melt=function(){if(!storm.useMeltEffect||!s.melting){s.recycle();}else{if(s.meltFrames.flakesMaxActive){s.flakes[s.flakes.length-1].active=-1;}}
storm.targetElement.appendChild(docFrag);};this.timerInit=function(){s.timers=(!isWin98?[setInterval(s.snow,s.animationInterval)]:[setInterval(s.snow,s.animationInterval*3),setInterval(s.snow,s.animationInterval)]);};this.init=function(){for(var i=0;i
Staff Pelatih PPSM Sakti Magelang - Salafudin SE, Manajer - Widiantoro, (Pelatih)
|
Skuad PPSM Sakti Magelang
KIPER - Priyono - Ghoni Yanuar - Zulheri
BELAKANG - Tasiou Bako - Gani Pulhehe - Saiful Imron - Is Haryanto - Ali Rinto, Liswanto - Yusuf Candra - Febri
TENGAH - Nikolas Djone - Saiful Imron - Imam Sahid Albana - Romli - Patrik Donald - Dimas
DEPAN - Toris - Ibnu Suhandak - Supri Andrianto
|