aboutsummaryrefslogtreecommitdiff
path: root/generator
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-10-11 19:04:38 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-10-11 19:04:38 +0800
commita846e514aa281059f8b207823d1ff7612b89b768 (patch)
treedbe5882df2daa1592ac4103504b56d2d404ab4f3 /generator
parent779aaa764cb26f02da56e60bb903afc9442f5f1c (diff)
downloadsbs-a846e514aa281059f8b207823d1ff7612b89b768.tar.xz
License and shit.
Diffstat (limited to 'generator')
-rw-r--r--generator/listrenderer.js2
-rw-r--r--generator/main.js2
-rw-r--r--generator/postrenderer.js4
-rw-r--r--generator/scanner.js2
4 files changed, 9 insertions, 1 deletions
diff --git a/generator/listrenderer.js b/generator/listrenderer.js
index fd58b3a..ce360af 100644
--- a/generator/listrenderer.js
+++ b/generator/listrenderer.js
@@ -1,3 +1,5 @@
+//Copyright Chris Xiong 2018
+//License: Expat (MIT)
module.exports={
render:function(outf,pginfo,posts){return _render(outf,pginfo,posts);},
set_template:function(tmplf){return _set_template(tmplf);}
diff --git a/generator/main.js b/generator/main.js
index 0d86ca5..ccdc380 100644
--- a/generator/main.js
+++ b/generator/main.js
@@ -1,3 +1,5 @@
+//Copyright Chris Xiong 2018
+//License: Expat (MIT)
const content_dir='../content';
const template_dir='../templates';
const dest_dir='../generated';
diff --git a/generator/postrenderer.js b/generator/postrenderer.js
index 729c4df..8797c22 100644
--- a/generator/postrenderer.js
+++ b/generator/postrenderer.js
@@ -1,3 +1,5 @@
+//Copyright Chris Xiong 2018
+//License: Expat (MIT)
module.exports={
render:function(inf,outf,np,pp){return _render(inf,outf,np,pp);},
set_template:function(tmplf){return _set_template(tmplf);}
@@ -85,7 +87,7 @@ async function encrypt(doc)
i.setAttribute('enid',enid);
i.innerHTML=
`This section is encrypted. Click <a href="javascript:void(0)" onclick="decryptui(${enid})">here</a>
-to decrypt. <noscript>Note that you need JavaScript enabled for decryption.</noscript>`;
+to decrypt. <noscript>Note that you need have JavaScript enabled for decryption.</noscript>`;
++enid;
}
}
diff --git a/generator/scanner.js b/generator/scanner.js
index 0817cdb..87b3f2f 100644
--- a/generator/scanner.js
+++ b/generator/scanner.js
@@ -1,3 +1,5 @@
+//Copyright Chris Xiong 2018
+//License: Expat (MIT)
module.exports={
scan:function(s,d){return _scan(s,d);},
build_list_index:function(){return _build_list_index();}