annotate SSRS/SSRS.Web/SplashScreen.js @ 116:d3380f499575

requires layout tidy up
author stevenh7776
date Sun, 20 May 2012 18:48:00 +0100
parents b9d5f934cb21
children
rev   line source
112
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
1 function onSourceDownloadProgressChanged(sender, eventArgs) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
2 var val = Math.round((eventArgs.progress * 1000)) / 10;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
3 //sender.findName("progressText").Text = String(Math.round(val));
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
4
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
5 if (val <= 25) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
6 sender.findName("LoadingMask1").ScaleX = val / 25;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
7 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
8 if (val > 25 && val <= 50) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
9 sender.findName("LoadingMask1").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
10 sender.findName("LoadingMask2").ScaleX = val / 50;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
11 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
12 if (val > 50 && val <= 75) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
13 sender.findName("LoadingMask1").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
14 sender.findName("LoadingMask2").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
15 sender.findName("LoadingMask3").ScaleX = val / 75;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
16 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
17 if (val > 75 && val <= 100) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
18 sender.findName("LoadingMask1").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
19 sender.findName("LoadingMask2").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
20 sender.findName("LoadingMask3").ScaleX = 1;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
21 sender.findName("LoadingMask4").ScaleX = val / 100;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
22 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
23 }