From 2abe4bf551b0d055204a8f76e0a64a3bc77e9c0f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Oct 2016 12:40:22 +0530 Subject: [PATCH] Changed Naming --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 14 +++++++------- 400-SOURCECODE/AIAHTML5.Web/content/data/json/settings/fontstyle.json | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------ 400-SOURCECODE/AIAHTML5.Web/index.html | 94 +--------------------------------------------------------------------------------------------- 3 files changed, 92 insertions(+), 184 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index e90ce05..61eb3a2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -149,7 +149,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", //theme:"rounded" }); } - $rootScope.fontCounter = 0; + $rootScope.isFontFamilyLoaded = true; //annotation tool custom events $rootScope.ShowAnnotationWindow = function () { //7904 @@ -164,19 +164,19 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $("#canvasPaint").css("display", "none"); $("#canvas").css("display", "none"); - var bodySystemDataPath = '~/../content/data/json/settings/fontstyle.json'; - DataService.getJson(bodySystemDataPath) + var FontFamilyJson = '~/../content/data/json/settings/fontstyle.json'; + DataService.getJson(FontFamilyJson) .then( function (result) { $rootScope.AnnotationFontFamily = result; // alert($rootScope.AnnotationFontFamily.FontStyle.length); - if ($rootScope.fontCounter == 0) - for(var i=0;i<=$rootScope.AnnotationFontFamily.FontStyle.length-1;i++) + if ($rootScope.isFontFamilyLoaded == true) + for (var i = 0; i <= $rootScope.AnnotationFontFamily.FontFamily.length - 1; i++) { - $("#selected-font-family").append(""); - $rootScope.fontCounter = 1; + $("#selected-font-family").append(""); + $rootScope.isFontFamilyLoaded = false; } }, diff --git a/400-SOURCECODE/AIAHTML5.Web/content/data/json/settings/fontstyle.json b/400-SOURCECODE/AIAHTML5.Web/content/data/json/settings/fontstyle.json index 432217e..3d22eaa 100644 --- a/400-SOURCECODE/AIAHTML5.Web/content/data/json/settings/fontstyle.json +++ b/400-SOURCECODE/AIAHTML5.Web/content/data/json/settings/fontstyle.json @@ -1,171 +1,171 @@ { -"FontStyle":[ +"FontFamily":[ { -"FontFamily": "Arial" +"FontName": "Arial" }, { -"FontFamily": "Agency FB" +"FontName": "Agency FB" },{ -"FontFamily": "Arial Narrow" +"FontName": "Arial Narrow" },{ -"FontFamily": "Arial Rounded" +"FontName": "Arial Rounded" },{ -"FontFamily": "Arial TUR" +"FontName": "Arial TUR" },{ -"FontFamily": "Arial Unicode" +"FontName": "Arial Unicode" },{ -"FontFamily": "Articulate" +"FontName": "Articulate" },{ -"FontFamily": "Bell MT" +"FontName": "Bell MT" },{ -"FontFamily": "Berlin Sans" +"FontName": "Berlin Sans" },{ -"FontFamily": "Bemard MT" +"FontName": "Bemard MT" },{ -"FontFamily": "Bodoni MT" +"FontName": "Bodoni MT" },{ -"FontFamily": "Broadway" +"FontName": "Broadway" },{ -"FontFamily": "Caladea" +"FontName": "Caladea" },{ -"FontFamily": "Calibri" +"FontName": "Calibri" },{ -"FontFamily": "Calibri Light" +"FontName": "Calibri Light" },{ -"FontFamily": "Calisto MT" +"FontName": "Calisto MT" },{ -"FontFamily": "Cambria" +"FontName": "Cambria" },{ -"FontFamily": "Candara" +"FontName": "Candara" },{ -"FontFamily": "Carlito" +"FontName": "Carlito" },{ -"FontFamily": "Castellar" +"FontName": "Castellar" },{ -"FontFamily": "Centaur" +"FontName": "Centaur" },{ -"FontFamily": "Century" +"FontName": "Century" },{ -"FontFamily": "Chiller" +"FontName": "Chiller" },{ -"FontFamily": "Colonna MT" +"FontName": "Colonna MT" },{ -"FontFamily": "Comic Sans" +"FontName": "Comic Sans" },{ -"FontFamily": "Consolas" +"FontName": "Consolas" },{ -"FontFamily": "Constantia" +"FontName": "Constantia" },{ -"FontFamily": "Curlz MT" +"FontName": "Curlz MT" },{ -"FontFamily": "Ebrima" +"FontName": "Ebrima" },{ -"FontFamily": "Elephant" +"FontName": "Elephant" },{ -"FontFamily": "Felix Titling" +"FontName": "Felix Titling" },{ -"FontFamily": "Forte" +"FontName": "Forte" },{ -"FontFamily": "Gabriola" +"FontName": "Gabriola" },{ -"FontFamily": "Gadugi" +"FontName": "Gadugi" },{ -"FontFamily": "Garamond" +"FontName": "Garamond" },{ -"FontFamily": "Georgia" +"FontName": "Georgia" },{ -"FontFamily": "Harrington" +"FontName": "Harrington" },{ -"FontFamily": "Helvetica" +"FontName": "Helvetica" },{ -"FontFamily": "Impact" +"FontName": "Impact" },{ -"FontFamily": "Jokerman" +"FontName": "Jokerman" },{ -"FontFamily": "Juice ITC" +"FontName": "Juice ITC" },{ -"FontFamily": "Kristen ITC" +"FontName": "Kristen ITC" },{ -"FontFamily": "Lucida Fax" +"FontName": "Lucida Fax" },{ -"FontFamily": "Magneto" +"FontName": "Magneto" },{ -"FontFamily": "Marlett" +"FontName": "Marlett" },{ -"FontFamily": "Mistral" +"FontName": "Mistral" },{ -"FontFamily": "MS Gothic" +"FontName": "MS Gothic" },{ -"FontFamily": "MS Outlook" +"FontName": "MS Outlook" },{ -"FontFamily": "MS PGothic" +"FontName": "MS PGothic" },{ -"FontFamily": "MV Boli" +"FontName": "MV Boli" },{ -"FontFamily": "Nirmala UI" +"FontName": "Nirmala UI" },{ -"FontFamily": "NSimSun" +"FontName": "NSimSun" },{ -"FontFamily": "Old English" +"FontName": "Old English" },{ -"FontFamily": "Onyx" +"FontName": "Onyx" },{ -"FontFamily": "Open Sans" +"FontName": "Open Sans" },{ -"FontFamily": "Papyrus" +"FontName": "Papyrus" },{ -"FontFamily": "Parchment" +"FontName": "Parchment" },{ -"FontFamily": "Perpetua" +"FontName": "Perpetua" },{ -"FontFamily": "Playbill" +"FontName": "Playbill" },{ -"FontFamily": "Pristina" +"FontName": "Pristina" },{ -"FontFamily": "PT Serif" +"FontName": "PT Serif" },{ -"FontFamily": "Rage Italic" +"FontName": "Rage Italic" },{ -"FontFamily": "Ravie" +"FontName": "Ravie" },{ -"FontFamily": "Rockwell" +"FontName": "Rockwell" },{ -"FontFamily": "Segoe Print" +"FontName": "Segoe Print" },{ -"FontFamily": "Segoe UI" +"FontName": "Segoe UI" },{ -"FontFamily": "SimSun" +"FontName": "SimSun" },{ -"FontFamily": "Sitka Small" +"FontName": "Sitka Small" },{ -"FontFamily": "Sitka Subhe" +"FontName": "Sitka Subhe" },{ -"FontFamily": "Sitka Text" +"FontName": "Sitka Text" },{ -"FontFamily": "SketchFlow" +"FontName": "SketchFlow" },{ -"FontFamily": "Snap ITC" +"FontName": "Snap ITC" },{ -"FontFamily": "Stencil" +"FontName": "Stencil" },{ -"FontFamily": "Sylfaen" +"FontName": "Sylfaen" },{ -"FontFamily": "Symbol" +"FontName": "Symbol" },{ -"FontFamily": "Tahoma" +"FontName": "Tahoma" },{ -"FontFamily": "Tw Cen MT" +"FontName": "Tw Cen MT" },{ -"FontFamily": "Verdana" +"FontName": "Verdana" },{ -"FontFamily": "Vivaldi" +"FontName": "Vivaldi" },{ -"FontFamily": "Webdings" +"FontName": "Webdings" },{ -"FontFamily": "Wide Latin" +"FontName": "Wide Latin" },{ -"FontFamily": "Wingdings" +"FontName": "Wingdings" },{ -"FontFamily": "Yu Gothic" +"FontName": "Yu Gothic" }] } diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index e699f6e..aa48dd8 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -549,99 +549,7 @@