mirror of
https://github.com/SouthFox-D/SouthFox-D.github.io.git
synced 2024-11-29 01:55:19 +01:00
security: fix inline scripts
This commit is contained in:
parent
f6b29e7499
commit
d8131e4a75
2 changed files with 5 additions and 5 deletions
|
@ -12,10 +12,6 @@
|
||||||
<div id="local-search-result"></div>
|
<div id="local-search-result"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" id="local.search.active">
|
<script src="<%- url_for('./js/active_search.js') %>"> async</script>
|
||||||
var inputArea = document.querySelector("#local-search-input");
|
|
||||||
inputArea.onclick = function(){ getSearchFile("<%- url_for('./search.xml') %>"); this.onclick = null }
|
|
||||||
inputArea.onkeydown = function(){ if(event.keyCode == 13) return false }
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
4
themes/freemind/source/js/active_search.js
Normal file
4
themes/freemind/source/js/active_search.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
id="local.search.active"
|
||||||
|
var inputArea = document.querySelector("#local-search-input");
|
||||||
|
inputArea.onclick = function(){ getSearchFile("search.xml"); this.onclick = null }
|
||||||
|
inputArea.onkeydown = function(){ if(event.keyCode == 13) return false }
|
Loading…
Reference in a new issue