Add seperate settings file.

This commit is contained in:
kor 2018-10-31 11:13:00 +13:00
parent 4e0b9b3d6c
commit cfa64acd6a
3 changed files with 24 additions and 23 deletions

23
docs/content/settings.js Normal file
View File

@ -0,0 +1,23 @@
const SETTINGS =
{
STATSNUMTAGS: 5,
STATSNUMTYPE: 10,
WIDEGRIDITEM: true,
USEMASONRY: true,
GRIDITEMIDBASE: 'item',
SHOWUPPER: true,
SHOWTITLE: true,
SHOWAUTH: true,
SHOWTYPE: true,
SHOWLINK: true,
SHOWLOWER: true,
SHOWTAGS: true,
SHOWPROJ: true,
SHOWNOTE: true,
SHOWQOTE: true,
SHOWTERM: true,
SHOWPROG: true,
SHOWIMAG: true,
SHOWFILE: true,
SHOWOVERLAY: true
}

View File

@ -13,6 +13,7 @@
<script src="logic/lib/indental.js"></script> <script src="logic/lib/indental.js"></script>
<script src="logic/lib/theme.js"></script> <script src="logic/lib/theme.js"></script>
<script src="content/settings.js"></script>
<script src="logic/wrap.js"></script> <script src="logic/wrap.js"></script>
<script src="logic/view.js"></script> <script src="logic/view.js"></script>
<script src="logic/main.js"></script> <script src="logic/main.js"></script>

View File

@ -7,29 +7,6 @@ function View()
this.menu = null; this.menu = null;
var parent = this; var parent = this;
const SETTINGS = {
STATSNUMTAGS: 5,
STATSNUMTYPE: 10,
WIDEGRIDITEM: true,
USEMASONRY: true,
GRIDITEMIDBASE: 'item',
SHOWUPPER: true,
SHOWTITLE: true,
SHOWAUTH: true,
SHOWTYPE: true,
SHOWLINK: true,
SHOWLOWER: true,
SHOWTAGS: true,
SHOWPROJ: true,
SHOWNOTE: true,
SHOWQOTE: true,
SHOWTERM: true,
SHOWPROG: true,
SHOWIMAG: true,
SHOWFILE: true,
SHOWOVERLAY: true
}
this.install = function() this.install = function()
{ {
this.overlay = document.getElementById("overlay"); this.overlay = document.getElementById("overlay");