PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Mvc/Mimir.html

#
HTML | 73 lines | 66 code | 7 blank | 0 comment | 0 complexity | 8753f535673c9b0bb842c9836e5172e7 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <head>
  4. <title>Bifrost.Mimir</title>
  5. <style type="text/css">
  6. html, body {
  7. height: 100%;
  8. overflow: auto;
  9. }
  10. body {
  11. padding: 0;
  12. margin: 0;
  13. }
  14. #silverlightControlHost {
  15. height: 100%;
  16. text-align:center;
  17. }
  18. </style>
  19. <script type="text/javascript" src="Silverlight.js"></script>
  20. <script type="text/javascript">
  21. function onSilverlightError(sender, args) {
  22. var appSource = "";
  23. if (sender != null && sender != 0) {
  24. appSource = sender.getHost().Source;
  25. }
  26. var errorType = args.ErrorType;
  27. var iErrorCode = args.ErrorCode;
  28. if (errorType == "ImageError" || errorType == "MediaError") {
  29. return;
  30. }
  31. var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
  32. errMsg += "Code: "+ iErrorCode + " \n";
  33. errMsg += "Category: " + errorType + " \n";
  34. errMsg += "Message: " + args.ErrorMessage + " \n";
  35. if (errorType == "ParserError") {
  36. errMsg += "File: " + args.xamlFile + " \n";
  37. errMsg += "Line: " + args.lineNumber + " \n";
  38. errMsg += "Position: " + args.charPosition + " \n";
  39. }
  40. else if (errorType == "RuntimeError") {
  41. if (args.lineNumber != 0) {
  42. errMsg += "Line: " + args.lineNumber + " \n";
  43. errMsg += "Position: " + args.charPosition + " \n";
  44. }
  45. errMsg += "MethodName: " + args.methodName + " \n";
  46. }
  47. throw new Error(errMsg);
  48. }
  49. </script>
  50. </head>
  51. <body>
  52. <form id="form1" runat="server" style="height:100%">
  53. <div id="silverlightControlHost">
  54. <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
  55. <param name="source" value="ClientBin/Bifrost.Mimir.xap"/>
  56. <param name="onError" value="onSilverlightError" />
  57. <param name="background" value="white" />
  58. <param name="minRuntimeVersion" value="5.0.60818.0" />
  59. <param name="autoUpgrade" value="true" />
  60. <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.60818.0" style="text-decoration:none">
  61. <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
  62. </a>
  63. </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
  64. </form>
  65. </body>
  66. </html>