diff options
author | 2017-05-07 14:58:24 -0400 | |
---|---|---|
committer | 2017-05-07 14:58:24 -0400 | |
commit | 3982f4f67314ec37fd9b22ae54049958af777c1b (patch) | |
tree | 72111b7c13ee7529cce1ea4c8d83c89fdd164450 /epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils | |
parent | 00e0d25933699f9e39c3f0b86c983165a1e3e330 (diff) |
[VID-6] Initial rebase push
Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346
Signed-off-by: jimmydot <jf2512@att.com>
Diffstat (limited to 'epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils')
-rwxr-xr-x | epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js b/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js new file mode 100755 index 00000000..08ac8a3f --- /dev/null +++ b/epsdk-app-onap/src/main/webapp/app/fusion/scripts/utils/page-resource-ds2.js @@ -0,0 +1,97 @@ +function loadjscssfile(filename, filetype){
+ if (filetype=="js"){ //if filename is a external JavaScript file
+ var done = false;
+ var script = document.createElement('script');
+ script.src = filename;
+ script.async = false;
+ document.head.appendChild(script);
+ }else if (filetype=="css"){ //if filename is an external CSS file
+ var fileref=document.createElement("link")
+ fileref.setAttribute("rel", "stylesheet")
+ fileref.setAttribute("type", "text/css")
+ fileref.setAttribute("async", false)
+ fileref.setAttribute("href", filename)
+ document.head.appendChild(fileref);
+ }
+}
+
+function loadResource(){
+ /*********************AngularJs***************************/
+ loadjscssfile("./app/fusion/external/angular-1.5/angular.min.js", "js");
+ loadjscssfile("./app/fusion/external/angular-1.5/angular-messages.js", "js");
+ loadjscssfile("./app/fusion/external/angular-1.5/angular-touch.js", "js");
+ loadjscssfile("./app/fusion/external/angular-1.5/angular-sanitize.min.js", "js");
+ loadjscssfile("./app/fusion/external/angular-1.5/angular-route.min.js", "js");
+ loadjscssfile("./app/fusion/external/angular-1.5/angular-cookies.min.js", "js");
+
+ loadjscssfile("./app/fusion/external/ds2/js/b2b-angular/b2b-library.min.js", "js");
+/* loadjscssfile("./app/fusion/external/ds2/js/digital-ng-library/digital.ng.library.min.js", "js");
+*/
+ loadjscssfile("./app/fusion/external/jquery/dist/jquery.min.js", "js");
+
+ /*********************Angular Gridster***************************/
+ loadjscssfile("./app/fusion/external/angular-gridster/dist/angular-gridster.min.css", "css");
+ loadjscssfile("./app/fusion/external/angular-bootstrap/ui-bootstrap-csp.css", "css");
+ loadjscssfile("./app/fusion/external/javascript-detect-element-resize/jquery.resize.js", "js");
+ loadjscssfile("./app/fusion/external/angular-bootstrap/ui-bootstrap-tpls.min.js", "js");
+ loadjscssfile("./app/fusion/external/angular-gridster/dist/angular-gridster.min.js", "js");
+
+ /*********************Angular UI grid***************************/
+ loadjscssfile("./app/fusion/external/angular-ui-grid/ui-grid.js", "js");
+ loadjscssfile("./app/fusion/external/angular-ui-grid/ui-grid.css", "css");
+
+ loadjscssfile("./app/fusion/external/ds2/js/appDS2.js", "js");
+
+ loadjscssfile("./app/fusion/scripts/DS2-services/headerServiceDS2.js", "js");
+ loadjscssfile("./app/fusion/scripts/DS2-services/leftMenuServiceDS2.js", "js");
+ loadjscssfile("./app/fusion/scripts/DS2-services/manifestService.js", "js");
+ loadjscssfile("./app/fusion/scripts/DS2-directives/footer.js", "js");
+ loadjscssfile("./app/fusion/scripts/DS2-directives/ds2Header.js", "js");
+ loadjscssfile("./app/fusion/scripts/DS2-directives/ds2LeftMenu.js", "js");
+ loadjscssfile("./app/fusion/external/ds2/js/digital-ng-library/digital-design-library.js", "js");
+
+ /*******DS2 styles*******/
+ loadjscssfile("./app/fusion/external/ds2/css/b2b-angular/b2b-angular.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-accordion.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-bootstrap-datepicker.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-cc-input-field.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/extras/ds2-tooltip.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/extras/x-tabs-pills.css", "css");
+
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-accordion.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-bootstrap-datepicker.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-c2c.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-cc-input-field.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-filmstrip.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-filters.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-legacynav-fix.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-marquee.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-pagination.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-popover.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-progressbar.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ds2-tooltip.css", "css");
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/global.css", "css");
+
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/digital-design-library.css", "css");
+ /*******DS2 ICONS*******/
+
+ loadjscssfile("./app/fusion/external/ds2/css/digital-ng-library/ionicons.css", "css");
+ loadjscssfile("./app/fusion/styles/ecomp.css", "css");
+ loadjscssfile("./app/fusion/external/angular-gridster/dist/angular-gridster.min.css", "css");
+
+}
+
+window.onload = loadResource();
+/*window.onload = function(){
+ var appLoadingInterval = setInterval(function(){ loadApp() }, 10000);
+ var count=0;
+ function loadApp(){
+ count++
+ if(typeof angular !== 'undefined') {
+ angular.bootstrap(document, ['abs']);
+ clearInterval(appLoadingInterval);
+ }else if(count>10){
+ clearInterval(appLoadingInterval);
+ }
+ }
+}*/
\ No newline at end of file |