Skip to content

Commit

Permalink
Change compilation and example pages
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Mar 30, 2024
1 parent c7cfb25 commit b4b2521
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions deploy/build_js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ JSTARGET=$ROOT/ermac.min.js

java -jar $JSCOMP --jscomp_off checkTypes --language_in ECMASCRIPT5_STRICT --js $ROOT/src_js/browser_chk.js > $JSTARGET

cat $ROOT/src_js/third_party/jquery.min.js >> $JSTARGET

java -jar $JSCOMP --jscomp_off checkTypes --language_in ECMASCRIPT5_STRICT --js $ROOT/src_js/third_party/jquery.tablesorter.js --compilation_level WHITESPACE_ONLY >> $JSTARGET
java -jar $JSCOMP --jscomp_off checkTypes --language_in ECMASCRIPT5_STRICT --js $ROOT/src_js/third_party/wNumb.js >> $JSTARGET
java -jar $JSCOMP --jscomp_off checkTypes --language_in ECMASCRIPT5_STRICT --js $ROOT/src_js/third_party/nouislider.js >> $JSTARGET
Expand Down
4 changes: 2 additions & 2 deletions example_dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="webassets/ermac.css" />
<script type="text/javascript" src="jquery.min.js"></script>
</head>
<body class="noscroll">
<body>

<script type="text/javascript">
// a very simple env loader
var to_load = [
'src_js/browser_chk.js',
'src_js/third_party/jquery.min.js',
'src_js/third_party/jquery.tablesorter.js',
'src_js/third_party/wNumb.js',
'src_js/third_party/nouislider.js',
Expand Down
3 changes: 1 addition & 2 deletions example_prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="webassets/ermac.css" />
<script type="text/javascript" src="jquery.min.js"></script>
</head>
<body class="noscroll">
<body>

<script type="text/javascript" src="ermac.min.js"></script>
</body>
Expand Down

0 comments on commit b4b2521

Please sign in to comment.