Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. @using System.Text
  2. @model IEnumerable<byte []>
  3. @{
  4. ViewBag.Title = "Kentucky Horsemen's Benevolent and Protective Association";
  5. }
  6.  
  7. <script src="~/Scripts/jquery-3.2.1.js"></script>
  8. <script src="~/Scripts/jquery-3.2.1.min.js"></script>
  9.  
  10. <div id="carousel" class="carousel slide" data-ride="carousel">
  11. <!-- Menu -->
  12. <ol class="carousel-indicators">
  13. <li data-target="#carousel" data-slide-to="0" class="active"></li>
  14. @for (int i = 1; i < Model.Count(); i++)
  15. {
  16. <li data-target="#carousel" data-slide-to="@i"></li>
  17. }
  18. </ol>
  19.  
  20. <!-- Items -->
  21. <div class="carousel-inner">
  22.  
  23. @for (int i = 0; i < Model.Count(); i++)
  24. {
  25. if (i == 0)
  26. {
  27. <div class="item active">
  28. <img style="height:100%;width:500px" src="@(string.Format("data:image/gif;base64,{0}", Convert.ToBase64String(Model.ElementAt(i))))" />
  29. </div>
  30. }
  31. if (i != 0)
  32. {
  33. <div class="item">
  34. <img style="height:100%;width:500px" src="@(string.Format("data:image/gif;base64,{0}", Convert.ToBase64String(Model.ElementAt(i))))" />
  35. </div>
  36. }
  37. }
  38. </div>
  39. <a href="#carousel" class="left carousel-control" data-slide="prev">
  40. <span class="glyphicon glyphicon-chevron-left"></span>
  41. </a>
  42. <a href="#carousel" class="right carousel-control" data-slide="next">
  43. <span class="glyphicon glyphicon-chevron-right"></span>
  44. </a>
  45. </div>
  46.  
  47. <div class="jumbotron">
  48. <h1>Kentucky Horsemen's Benevolent and Protective Association</h1>
  49. <p class="lead">
  50. The HBPA, established in 1940, is an organization of Owners and Trainers,
  51. approximately 40,000 nationally in 23 states and Canada, and over 6,000 in Kentucky.
  52. The association is governed by a Board of Directors consisting of Owners and Trainers
  53. volunteering their time and elected by the membership every three years. The HBPA is
  54. committed to working for the betterment of racing on all levels.
  55. </div>
  56.  
  57. <div class="row">
  58. <div class="col-md-4">
  59. <h2>Events</h2>
  60. <p>Imagine a picture here...for now</p>
  61. <p>Join us on the track!</p>
  62. <p>@Html.ActionLink("See more »", "Events", "Home", null, new { Class = "btn btn-default" })</p>
  63. </div>
  64. <div class="col-md-4">
  65. <h2>News</h2>
  66. <p>Imagine a picture here...for now</p>
  67. <p>Read about current issues.</p>
  68. <p>@Html.ActionLink("See more »", "News", "Home", null, new { Class = "btn btn-default" })</p>
  69. </div>
  70. <div class="col-md-4">
  71. <h2>Legislation</h2>
  72. <p>Imagine a picture here...for now</p>
  73. <p>Help us advocate for horsemen's rights.</p>
  74. <p>@Html.ActionLink("Learn more »", "Legislation", "Home", null, new { Class = "btn btn-default" })</p>
  75. </div>
  76.  
  77. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement