Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

65 linhas
2.1 KiB

  1. <footer class="footer">
  2. <div class="row align-items-center justify-content-xl-between">
  3. <div class="col-xl-6">
  4. <div class="copyright text-center text-xl-left text-muted">
  5. &copy; 2019
  6. <a href="https://www.creative-tim.com" class="font-weight-bold ml-1" target="_blank">Creative Tim</a>
  7. &
  8. <a href="https://udevoffice.com/" class="font-weight-bold ml-1" target="_blank">Udevoffice</a>
  9. </div>
  10. </div>
  11. <div class="col-xl-6">
  12. <ul class="nav nav-footer justify-content-center justify-content-xl-end">
  13. <li class="nav-item">
  14. <a href="https://www.creative-tim.com" class="nav-link" target="_blank">Creative Tim</a>
  15. </li>
  16. <li class="nav-item">
  17. <a href="https://udevoffice.com/" class="nav-link" target="_blank">Udevoffice</a>
  18. </li>
  19. <li class="nav-item">
  20. <a href="https://www.creative-tim.com/presentation" class="nav-link" target="_blank">About Us</a>
  21. </li>
  22. <li class="nav-item">
  23. <a href="http://blog.creative-tim.com" class="nav-link" target="_blank">Blog</a>
  24. </li>
  25. <li class="nav-item">
  26. <a href="https://github.com/creativetimofficial/argon-dashboard/blob/master/LICENSE.md" class="nav-link" target="_blank">MIT License</a>
  27. </li>
  28. </ul>
  29. </div>
  30. </div>
  31. </footer>
  32. <script>
  33. function addEvent(event, elem, func) {
  34. if (elem.addEventListener) // W3C DOM
  35. elem.addEventListener(event, func, false);
  36. else if (elem.attachEvent) { // IE DOM
  37. elem.attachEvent("on" + event, func);
  38. } else { // No much to do
  39. elem["on" + event] = func;
  40. }
  41. }
  42. function redirectToLogin() {
  43. if (this.status === 200) {
  44. return window.location = this.responseURL || '/login';
  45. }
  46. }
  47. function logout(event) {
  48. if (!event.target.className.includes('logout')) {
  49. return;
  50. }
  51. var xhr = new XMLHttpRequest();
  52. xhr.addEventListener("load", redirectToLogin);
  53. xhr.open("POST", "/logout");
  54. xhr.send();
  55. }
  56. var bodyElement = document.querySelector('body');
  57. addEvent('click', bodyElement, logout);
  58. </script>