timesheet source code
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.

43 lines
847B

  1. /**
  2. * broker.js copyright patrick@lawipac.com all rights reserved. Only a end user
  3. * with a valid license can use this php file.
  4. */
  5. function bts(){
  6. return bts1;
  7. }
  8. function bts_random_id()
  9. {
  10. return '_' + Math.random().toString(36).substr(2, 9);
  11. }
  12. function bts_random_number()
  13. {
  14. return Math.floor(Math.random() * Math.floor(99999)); // a random number;
  15. }
  16. jQuery.fn.allHTML = function(s) {
  17. return s
  18. ? this.before(s).remove()
  19. : jQuery("<p>").append(this.eq(0).clone()).html();
  20. };
  21. //https://gist.github.com/gordonbrander/2230317
  22. function bts_unique_ID(){
  23. function chr4(){
  24. return Math.random().toString(16).slice(-4);
  25. }
  26. return chr4() + chr4() +
  27. '-' + chr4() +
  28. '-' + chr4() +
  29. '-' + chr4() +
  30. '-' + chr4() + chr4() + chr4();
  31. }
  32. (function ($) {
  33. $(function () {
  34. });
  35. })(jQuery);