Mercurial > silverbladetech
diff SSRS/SSRS.Web/SplashScreen.js @ 112:b9d5f934cb21
Initial upload
author | adminsh@apollo |
---|---|
date | Sat, 19 May 2012 16:09:07 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SSRS/SSRS.Web/SplashScreen.js Sat May 19 16:09:07 2012 +0100 @@ -0,0 +1,23 @@ +function onSourceDownloadProgressChanged(sender, eventArgs) { + var val = Math.round((eventArgs.progress * 1000)) / 10; + //sender.findName("progressText").Text = String(Math.round(val)); + + if (val <= 25) { + sender.findName("LoadingMask1").ScaleX = val / 25; + } + if (val > 25 && val <= 50) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = val / 50; + } + if (val > 50 && val <= 75) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = 1; + sender.findName("LoadingMask3").ScaleX = val / 75; + } + if (val > 75 && val <= 100) { + sender.findName("LoadingMask1").ScaleX = 1; + sender.findName("LoadingMask2").ScaleX = 1; + sender.findName("LoadingMask3").ScaleX = 1; + sender.findName("LoadingMask4").ScaleX = val / 100; + } +} \ No newline at end of file