The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_Layout.cshtml 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @model Teknik.ViewModels.ViewModelBase
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <script type="text/javascript">
  6. var startTime = new Date();
  7. </script>
  8. <meta charset="utf-8" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. <meta name="description" content="@ViewBag.Description" />
  12. <meta name="author" content="@Model.Config.Author" />
  13. <title>@ViewBag.Title</title>
  14. <link rel="shortcut icon" href="/Images/favicon.ico" type="image/x-icon" />
  15. @Styles.Render("~/Content/Common")
  16. @Scripts.Render("~/bundles/common")
  17. </head>
  18. <body data-twttr-rendered="true">
  19. <div id="wrap">
  20. @Html.Partial("_Navbar")
  21. <div class="container">
  22. <div class="row">
  23. <div class="col-xs-12 text-center">
  24. <div id="top_msg"></div>
  25. </div>
  26. </div>
  27. </div>
  28. <!-- NoScript Alert -->
  29. <noscript>
  30. @if (Model.Config.PiwikConfig.Enabled)
  31. {
  32. <!-- Piwik Image Tracker-->
  33. <img src="https://stats.teknik.io/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
  34. <!-- End Piwik -->
  35. }
  36. <div class="container">
  37. <div class="row">
  38. <div class="col-xs-12 text-center">
  39. <div class="alert alert-danger">
  40. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  41. <span><strong>Notice: </strong> JavaScript is not enabled. To experience the site at its best, <a href="http://enable-javascript.com/" class="alert-link">please enable JavaScript</a>.</span>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </noscript>
  47. @RenderBody()
  48. </div>
  49. @Html.Partial("_Footer")
  50. @if (Model.Config.PiwikConfig.Enabled)
  51. {
  52. string sub = Request.RequestContext.RouteData.Values["sub"].ToString();
  53. if (Model.Config.DevEnvironment)
  54. {
  55. sub = "dev - " + sub;
  56. }
  57. <!-- Piwik -->
  58. <script type="text/javascript">
  59. var _paq = _paq || [];
  60. _paq.push(["setDocumentTitle", "@sub/" + document.title]);
  61. _paq.push(["setCookieDomain", "*.teknik.io"]);
  62. _paq.push(["setDomains", ["*.teknik.io"]]);
  63. _paq.push(['trackPageView']);
  64. _paq.push(['enableLinkTracking']);
  65. (function() {
  66. var u="//stats.teknik.io/";
  67. _paq.push(['setTrackerUrl', u+'piwik.php']);
  68. _paq.push(['setSiteId', 1]);
  69. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  70. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  71. })();
  72. </script>
  73. <!-- End Piwik Code -->
  74. }
  75. <script type="text/javascript">
  76. $(document).ready(function () {pageloadDoTimer();});
  77. </script>
  78. </body>
  79. </html>