New UI layout
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.js 462B

12345678910111213141516171819
  1. const serverUrl = 'http://localhost:3088/';
  2. function getCookie(name) {
  3. var nameEQ = name + '=';
  4. var ca = document.cookie.split(';');
  5. for (var i = 0; i < ca.length; i++) {
  6. var c = ca[i];
  7. while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  8. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
  9. }
  10. return null;
  11. }
  12. function isAuthenticated() {
  13. if (getCookie('authentication')) {
  14. return true;
  15. }
  16. return false;
  17. }