mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
/network page tables JS refactor & cleanup. Updates ESLINT rules, adds htmlproof & eslint to build process, adds window.global.siteApi url defined from _config.yml
This commit is contained in:
parent
4ca9a382f5
commit
99d941c1fb
4 changed files with 49 additions and 37 deletions
|
@ -35,7 +35,12 @@
|
|||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js" integrity="sha384-dfOR5hjVOg6B2OvgyHIS71mJWX5TgNQeFGo5cNNVglSep7ZvYcByrpEya6xbwwyB" crossorigin="anonymous"></script>
|
||||
<script src="/dist/js/main.min.js"></script>
|
||||
<script>
|
||||
function formatNumber (num) {
|
||||
window.globals = {
|
||||
siteApi : "{{ site.api }}"
|
||||
};
|
||||
|
||||
////////
|
||||
function formatNumber (num) {
|
||||
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue