Permalink
Browse files

Added main.html with Vanilla JavaScript C# support code

  • Loading branch information...
ehelin committed Aug 19, 2018
1 parent 09c393b commit 4fefb155e28090142448357dfcfea8622adbed25
Showing with 150 additions and 97 deletions.
  1. +4 −5 TgimbaNetCoreWeb/Controllers/HomeController.cs
  2. +48 −52 TgimbaNetCoreWeb/TgimbaNetCoreWeb.csproj
  3. +16 −0 TgimbaNetCoreWeb/Views/Home/HtmlVanillaJsIndex.cshtml
  4. +40 −40 TgimbaNetCoreWeb/Views/Spanish/Index.cshtml
  5. +1 −0 TgimbaNetCoreWeb/wwwroot/Markup/HtmlVanillaJs/main.html
  6. +4 −0 TgimbaNetCoreWeb/wwwroot/Scripts/HtmlVanillaJs/ErrorHandler.js
  7. +11 −0 TgimbaNetCoreWeb/wwwroot/Scripts/HtmlVanillaJs/Global.js
  8. +21 −0 TgimbaNetCoreWeb/wwwroot/Scripts/HtmlVanillaJs/ServerCalls.js
  9. +5 −0 TgimbaNetCoreWeb/wwwroot/Scripts/HtmlVanillaJs/Utilities.js
  10. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Data.js
  11. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Display.js
  12. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Events.js
  13. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Global.js
  14. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/FirstList.js
  15. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_A.js
  16. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_B.js
  17. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_C.js
  18. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_D.js
  19. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_E.js
  20. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_F.js
  21. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_G.js
  22. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_H.js
  23. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_I.js
  24. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_J.js
  25. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_K.js
  26. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_L.js
  27. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_M.js
  28. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_N.js
  29. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_O.js
  30. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_P.js
  31. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_Q.js
  32. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_R.js
  33. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_S.js
  34. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_T.js
  35. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_U.js
  36. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_V.js
  37. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_W.js
  38. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_X.js
  39. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_Y.js
  40. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/Lists/Lists_Z.js
  41. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/ListsV2.js
  42. 0 TgimbaNetCoreWeb/wwwroot/Scripts/Spanish/{ → Spanish}/LocalStorage.js
  43. BIN TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/_references.js
  44. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/bootstrap.js
  45. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/bootstrap.min.js
  46. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery-1.10.2.intellisense.js
  47. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery-1.10.2.js
  48. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery-1.10.2.min.js
  49. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery-1.10.2.min.map
  50. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery.validate-vsdoc.js
  51. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery.validate.js
  52. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery.validate.min.js
  53. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery.validate.unobtrusive.js
  54. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/jquery.validate.unobtrusive.min.js
  55. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/modernizr-2.6.2.js
  56. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/respond.js
  57. 0 TgimbaNetCoreWeb/wwwroot/Scripts/{ → Spanish}/respond.min.js
@@ -14,10 +14,9 @@ public IActionResult Index()
return View();
}
//public IActionResult Error()
//{
// ViewData["RequestId"] = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
// return View();
//}
public IActionResult HtmlVanillaJsIndex()
{
return View();
}
}
}
@@ -76,61 +76,57 @@
<TypeScriptCompile Include="ClientApp\app\components\staticdisplay\staticdisplay.component.ts" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\Scripts\" />
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\Content\Spanish.css" />
<None Include="wwwroot\Content\WelcomePage.css" />
<None Include="wwwroot\Scripts\bootstrap.js" />
<None Include="wwwroot\Scripts\bootstrap.min.js" />
<None Include="wwwroot\Scripts\jquery-1.10.2.intellisense.js" />
<None Include="wwwroot\Scripts\jquery-1.10.2.js" />
<None Include="wwwroot\Scripts\jquery-1.10.2.min.js" />
<None Include="wwwroot\Scripts\jquery-1.10.2.min.map" />
<None Include="wwwroot\Scripts\jquery.validate-vsdoc.js" />
<None Include="wwwroot\Scripts\jquery.validate.js" />
<None Include="wwwroot\Scripts\jquery.validate.min.js" />
<None Include="wwwroot\Scripts\jquery.validate.unobtrusive.js" />
<None Include="wwwroot\Scripts\jquery.validate.unobtrusive.min.js" />
<None Include="wwwroot\Scripts\modernizr-2.6.2.js" />
<None Include="wwwroot\Scripts\respond.js" />
<None Include="wwwroot\Scripts\respond.min.js" />
<None Include="wwwroot\Scripts\Spanish\Data.js" />
<None Include="wwwroot\Scripts\Spanish\Display.js" />
<None Include="wwwroot\Scripts\Spanish\Events.js" />
<None Include="wwwroot\Scripts\Spanish\Global.js" />
<None Include="wwwroot\Scripts\Spanish\ListsV2.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\FirstList.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_A.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_B.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_C.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_D.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_E.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_F.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_G.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_H.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_I.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_J.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_K.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_L.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_M.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_N.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_O.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_P.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_Q.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_R.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_S.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_T.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_U.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_V.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_W.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_X.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_Y.js" />
<None Include="wwwroot\Scripts\Spanish\Lists\Lists_Z.js" />
<None Include="wwwroot\Scripts\Spanish\LocalStorage.js" />
<None Include="wwwroot\Scripts\_references.js" />
<None Include="wwwroot\Scripts\Spanish\bootstrap.js" />
<None Include="wwwroot\Scripts\Spanish\bootstrap.min.js" />
<None Include="wwwroot\Scripts\Spanish\jquery-1.10.2.intellisense.js" />
<None Include="wwwroot\Scripts\Spanish\jquery-1.10.2.js" />
<None Include="wwwroot\Scripts\Spanish\jquery-1.10.2.min.js" />
<None Include="wwwroot\Scripts\Spanish\jquery-1.10.2.min.map" />
<None Include="wwwroot\Scripts\Spanish\jquery.validate-vsdoc.js" />
<None Include="wwwroot\Scripts\Spanish\jquery.validate.js" />
<None Include="wwwroot\Scripts\Spanish\jquery.validate.min.js" />
<None Include="wwwroot\Scripts\Spanish\jquery.validate.unobtrusive.js" />
<None Include="wwwroot\Scripts\Spanish\jquery.validate.unobtrusive.min.js" />
<None Include="wwwroot\Scripts\Spanish\modernizr-2.6.2.js" />
<None Include="wwwroot\Scripts\Spanish\respond.js" />
<None Include="wwwroot\Scripts\Spanish\respond.min.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Data.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Display.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Events.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Global.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\ListsV2.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\FirstList.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_A.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_B.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_C.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_D.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_E.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_F.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_G.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_H.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_I.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_J.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_K.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_L.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_M.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_N.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_O.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_P.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_Q.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_R.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_S.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_T.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_U.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_V.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_W.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_X.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_Y.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\Lists\Lists_Z.js" />
<None Include="wwwroot\Scripts\Spanish\Spanish\LocalStorage.js" />
<None Include="wwwroot\Scripts\Spanish\_references.js" />
</ItemGroup>
<Target Name="DebugRunWebpack" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\dist') ">
@@ -0,0 +1,16 @@
@{
ViewData["Title"] = "HtmlVanillaJsIndex";
}
<script src="@Url.Content("~/Scripts/HtmlVanillaJs/Global.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/HtmlVanillaJs/LoginController.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/HtmlVanillaJs/Utilities.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/HtmlVanillaJs/ErrorHandler.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/HtmlVanillaJs/ServerCalls.js")" type="text/javascript"></script>
<div id="csHtmlContentDiv"></div>
<script type="text/javascript">
Init();
</script>
@@ -5,50 +5,50 @@
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Spanish.css")">
<script src="@Url.Content("~/Scripts/jquery-1.10.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/jquery-1.10.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.7.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/jquery-1.7.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Display.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Events.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/GlobalDisplay.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Global.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Data.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/ListsV2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/LocalStorage.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/FirstList.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/GlobalDisplay.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Display.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Events.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/GlobalDisplay.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Global.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Data.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/ListsV2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/LocalStorage.js")" type="text/javascript"></script>
@*<script src="@Url.Content("~/Scripts/Spanish/FirstList.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/GlobalDisplay.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/Spanish/Lists/FirstList.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_A.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_B.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_C.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_D.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_E.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_F.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_G.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_H.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_I.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_J.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_K.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_L.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_M.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_N.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_O.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_P.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_Q.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_R.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_S.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_T.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_U.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_V.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_W.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_X.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_Y.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Lists/Lists_Z.j")s" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Global/GlobalDisplay.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/FirstList.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_A.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_B.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_C.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_D.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_E.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_F.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_G.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_H.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_I.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_J.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_K.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_L.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_M.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_N.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_O.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_P.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_Q.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_R.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_S.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_T.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_U.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_V.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_W.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_X.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_Y.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Spanish/Spanish/Lists/Lists_Z.j")s" type="text/javascript"></script>
@*<script src="@Url.Content("~/Scripts/Global/GlobalDisplay.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/jquery-ui.js")"></script>
<script src="@Url.Content("~/Scripts/Spanish/jquery-ui.js")"></script>
<div class="body">
<div class="header">
@@ -0,0 +1 @@
<p>main.html</p>
@@ -0,0 +1,4 @@
function Error(error) {
// TODO - add ajax call to log errors w/database
throw error;
}
@@ -0,0 +1,11 @@
function Init() {
Load();
}
function Load() {
var content = document.getElementById("csHtmlContentDiv");
isNullUndefined(content, 'Global.js', 'csHtmlContentDiv');
ServerCall('/Markup/HtmlVanillaJs/main.html', content);
}
@@ -0,0 +1,21 @@
function ServerCall(subUrl, htmlCtrl) {
var request = new XMLHttpRequest();
request.onreadystatechange = function () {
if (request.status !== 200) {
ErrorHandler('Global.js -> Load() -> main.html failed to load');
}
if (request.readyState === 4) {
successCallback();
}
};
var base_url = window.location.origin;
request.open('GET', base_url + subUrl, true);
request.send('');
successCallback = function () {
htmlCtrl.innerHTML = request.responseText;
}
}
@@ -0,0 +1,5 @@
function isNullUndefined(object, location, expectedObj) {
if (object == null || object == undefined) {
ErrorHandler(expectedObj + ' is null and/or undefined at ' + location);
}
}

0 comments on commit 4fefb15

Please sign in to comment.