Commit a8f78b20 authored by Mathieu Giraud's avatar Mathieu Giraud

database.js/: end-user messages to validate the SSL certificate

parent 17999458
......@@ -69,10 +69,10 @@ Database.prototype = {
check_cert: function () {
if (typeof sslCertTrusted == 'undefined' || !sslCertTrusted){
var msg = " Warning : </br>"
+ "It seems the database you try to access don't have a valid certificate or use a self signed one. </br>"
+ "If you want to use this database you need to accept this certificate, please follow this link and add this address to the trusted site list. </br>"
+ "<a href='"+DB_ADDRESS+"' target='_blank' > click me ! <a/>"
var msg = " Welcome to Vidjil! </br>"
+ "Your browser currently does not recognize our SSL certificate. </br>"
+ "To use the sample database, you need to accept this certificate and/or tag this website as a trusted one. </br>"
+ "<a href='"+DB_ADDRESS+"' target='_blank'>Follow this link<a/>"
popupMsg(msg)
}
},
......
<html>
<header>
<title>Hi!</title>
<title>Vidjil</title>
<script>
function init() {
var browser_url = document.URL.replace("/vidjil/default/index#", "/browser")
......@@ -16,16 +16,14 @@
</script>
</header>
<body onload="init()">
<h4>Hi!</h4>
It seems you've found me ... nice to meet you.
</br></br>
<h4>Welcome to Vidjil !</h4>
The certificate is now validated.
<a id="browser" href="#">Go to Vidjil</a>
<!--
I'm a vidjil database, you can try to connect to me with a vidjil browser just copy this address "<span id="db" ></span>" in your browser js/config.js file as DB_ADDRESS.
</br></br>
If your vidjil browser redirected you here to validate a certificat, it's ok now you can close this page.
</br></br>
Here you can found the online browser <a id="browser" href="#">Clik!</a>
</br></br>
Bye
-->
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment