added script test
This commit is contained in:
parent
96b6dd28f7
commit
ca6dc23145
|
@ -4,7 +4,7 @@ class KagiSummarizerExtension extends Minz_Extension {
|
||||||
public function init() {
|
public function init() {
|
||||||
$this->registerTranslates();
|
$this->registerTranslates();
|
||||||
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']);
|
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']);
|
||||||
//Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, false, false);
|
Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, false, false);
|
||||||
//Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
//Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
if (document.readyState && document.readyState !== 'loading') {
|
||||||
|
documentReady();
|
||||||
|
} else {
|
||||||
|
document.addEventListener('DOMContentLoaded', documentReady, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function documentReady() {
|
||||||
|
console.log('executed documentReady');
|
||||||
|
}
|
Loading…
Reference in New Issue