_header_js_spinner.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <script language="javascript">
  2. var bUseSvgLoading = false;
  3. var sUseSvgLoading = '';
  4. if(!bUseSvgLoading) {
  5. var aSpinnerOpts = {
  6. lines: 7, // The number of lines to draw
  7. length: 0, // The length of each line
  8. width: 8, // The line thickness
  9. radius: 7, // The radius of the inner circle
  10. corners: 1, // Corner roundness (0..1)
  11. rotate: 0, // The rotation offset
  12. direction: 1, // 1: clockwise, -1: counterclockwise
  13. color: '#3a8686', // #rgb or #rrggbb or array of colors
  14. speed: 1, // Rounds per second
  15. trail: 60, // Afterglow percentage
  16. shadow: false, // Whether to render a shadow
  17. hwaccel: false, // Whether to use hardware acceleration
  18. className: 'bx-sys-spinner', // The CSS class to assign to the spinner
  19. zIndex: 2e9, // The z-index (defaults to 2000000000)
  20. top: '50%', // Top position relative to parent in px
  21. left: '50%' // Left position relative to parent in px
  22. };
  23. var aSpinnerSmallOpts = $.extend({}, aSpinnerOpts, {
  24. lines: 6,
  25. width: 6,
  26. radius: 4,
  27. color: '#333',
  28. top: '50%',
  29. left: 'calc(100% - 20px)'
  30. });
  31. }
  32. </script>