Advertisement
Guest User

Untitled

a guest
Jul 21st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <div class="navbar-collapse collapse">
  2. <ul class="nav navbar-nav">
  3. <li>@Html.ActionLink("Home", "Index", "Home")</li>
  4. <li>@Html.ActionLink("Events", "Index", "Events")</li>
  5. <li>@Html.ActionLink("About", "About", "Home")</li>
  6. <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
  7. <li class="dropdown">
  8. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Themes <b class="caret"></b></a>
  9. <ul class="dropdown-menu">
  10.  
  11. <li><a href="#" data-theme="default" class="theme-link">Default</a></li>
  12. <li><a href="#" data-theme="flatly" class="theme-link">Flatly</a></li>
  13. <li><a href="#" data-theme="slate" class="theme-link">Slate</a></li>
  14.  
  15. </ul>
  16. </li>
  17. </ul>
  18.  
  19. @Html.Partial("_LoginPartial")
  20. </div>
  21.  
  22. <script type="text/javascript">
  23.  
  24.  
  25. var themes = {
  26. "default": "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css",
  27. "flatly": "//bootswatch.com/flatly/bootstrap.min.css",
  28. "slate": "//bootswatch.com/slate/bootstrap.min.css",
  29. }
  30. $(function () {
  31. var themesheet = $('<link href="' + themes['default'] + '" rel="stylesheet" />');
  32. themesheet.appendTo('head');
  33. $('.theme-link').click(function () {
  34. var themeurl = themes[$(this).attr('data-theme')];
  35. themesheet.attr('href', themeurl);
  36. });
  37. });
  38.  
  39. @var memName = User.Identity.Name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement