add browser-update.js

This commit is contained in:
Hui Yiqun 2017-05-07 10:24:10 +08:00
parent c9cb07fa48
commit 1c4f5c9ff3
2 changed files with 9 additions and 0 deletions

View File

@ -149,6 +149,7 @@ permalink: /
{% raw %}
{% endraw %}
<script src="/static/js/index.js"></script>
<script src="/static/js/browser-update.js"></script>
</html>
<!--
vim: ts=2 sts=2 sw=2 noexpandtab

View File

@ -0,0 +1,8 @@
var $buoop = {vs:{i:10,f:-4,o:-4,s:8,c:-4},unsecure:true,api:4};
function $buo_f(){
var e = document.createElement("script");
e.src = "//browser-update.org/update.min.js";
document.body.appendChild(e);
};
try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
catch(e){window.attachEvent("onload", $buo_f)}