use the invaders game as 'loading screen'
This commit is contained in:
@@ -107,16 +107,19 @@ export class VisualizationPageComponent implements OnInit {
|
|||||||
|
|
||||||
that.plotView.imageUrl = '';
|
that.plotView.imageUrl = '';
|
||||||
that.galleryView.show=false;
|
that.galleryView.show=false;
|
||||||
|
document.dispatchEvent(new Event("invadersStart", {}));
|
||||||
|
|
||||||
const request = this.createPlotRequest();
|
const request = this.createPlotRequest();
|
||||||
|
|
||||||
this.plotService.sendPlotRequest(request).subscribe(function(plotResponse){
|
this.plotService.sendPlotRequest(request).subscribe(function(plotResponse){
|
||||||
console.log("response: " + JSON.stringify(plotResponse));
|
console.log("response: " + JSON.stringify(plotResponse));
|
||||||
that.plotView.imageUrl = "http://"+window.location.hostname+':8080/'+plotResponse.imageUrl;
|
that.plotView.imageUrl = "http://"+window.location.hostname+':8080/'+plotResponse.imageUrl;
|
||||||
|
document.dispatchEvent(new Event("invadersPause", {}));
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
that.plotView.imageUrl = '';
|
that.plotView.imageUrl = '';
|
||||||
that.showError(error.error.message);
|
that.showError(error.error.message);
|
||||||
|
document.dispatchEvent(new Event("invadersPause", {}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -10,7 +10,9 @@
|
|||||||
<script type="text/javascript" src="/assets/js/jquery-3.4.1.min.js"></script>
|
<script type="text/javascript" src="/assets/js/jquery-3.4.1.min.js"></script>
|
||||||
<script type="text/javascript" src="/assets/js/moment-2.24.0.min.js"></script>
|
<script type="text/javascript" src="/assets/js/moment-2.24.0.min.js"></script>
|
||||||
<script type="text/javascript" src="/assets/js/daterangepicker-3.0.5.js"></script>
|
<script type="text/javascript" src="/assets/js/daterangepicker-3.0.5.js"></script>
|
||||||
|
<script type="text/javascript" src="/assets/js/invaders.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/css/daterangepicker-3.0.5.css" />
|
<link rel="stylesheet" type="text/css" href="/assets/css/daterangepicker-3.0.5.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="/assets/css/invaders.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
@@ -42,6 +44,15 @@
|
|||||||
'Last Year': [moment().subtract(1, 'year').startOf('year'),moment().subtract(1, 'year').endOf('year')],
|
'Last Year': [moment().subtract(1, 'year').startOf('year'),moment().subtract(1, 'year').endOf('year')],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
initInvaders('results');
|
||||||
|
document.addEventListener("invadersPause", function(event) {
|
||||||
|
pauseInvaders();
|
||||||
|
});
|
||||||
|
document.addEventListener("invadersStart", function(event) {
|
||||||
|
startInvaders();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
/font-awesome-4.7.0/
|
|
||||||
/font-awesome-4.7.0.zip
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/horsey-master/
|
|
||||||
/horsey-master.zip
|
|
||||||
/autocomplete.js-2.1.0/
|
|
||||||
/autocomplete.js-2.1.0.zip
|
|
||||||
/search.js
|
|
||||||
Reference in New Issue
Block a user