diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | index.html | 12 |
2 files changed, 11 insertions, 3 deletions
@@ -18,5 +18,7 @@ /leave-a-message/archive.txt /grecaptcha_key +/curshot.jpg .directory + @@ -17,7 +17,6 @@ <link rel="stylesheet" type="text/css" href="theme2b.css" id="theme2b"> <link rel="stylesheet" type="text/css" href="theme3a.css" id="theme3a"> <link rel="stylesheet" type="text/css" href="theme3b.css" id="theme3b"> -<script src="https://www.google.com/recaptcha/api.js?render=6LdCZ5AUAAAAAPL9Fooi8Zh3m0VTepvpNR9S4G5L"></script> <style> reduced{font-size:75%;} #msgform{width:50%;margin:auto;} @@ -121,8 +120,15 @@ function swonload(){ else unsetevents(); } window.onresize(); - if(grecaptcha) - grecaptcha.ready(function(){recaptcha=grecaptcha;}); + const grse=document.createElement('script'); + grse.src="https://www.google.com/recaptcha/api.js?render=6LdCZ5AUAAAAAPL9Fooi8Zh3m0VTepvpNR9S4G5L"; + grse.async=true; + grse.onload=function() + { + if(grecaptcha) + grecaptcha.ready(function(){recaptcha=grecaptcha;}); + }; + document.head.appendChild(grse); loadTheme(); if(!location.hash.length)contsw('main'); else contsw(location.hash.substr(1)); |