_header_js_spinner.html 1.3 KB

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