aboutsummaryrefslogtreecommitdiffstats
path: root/syte/static/js/components/base.js
blob: 0d6027682acdd9c0a4bbf3d76e4401252881d6be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Global configs and functions shared between js

function numberWithCommas(x) {
  return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

require.config({
  baseUrl: "/static/",
  paths: {
    "text": "js/libs/text",
    "json": "js/libs/json"
  },
  waitSeconds: 15
});

var spin_opts = {
  lines: 9,
  length: 5,
  width: 2,
  radius: 4,
  rotate: 9,
  color: '#4c4c4c',
  speed: 1.5,
  trail: 40,
  shadow: false,
  hwaccel: false,
  className: 'spinner',
  zIndex: 2e9
};