diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/dive_export.html | 27 | ||||
-rw-r--r-- | theme/light.css | 1 | ||||
-rw-r--r-- | theme/sand.css | 1 |
3 files changed, 25 insertions, 4 deletions
diff --git a/theme/dive_export.html b/theme/dive_export.html index 4d7efa20c..2374c0758 100644 --- a/theme/dive_export.html +++ b/theme/dive_export.html @@ -2,13 +2,31 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>dive log export</title> -<link rel="stylesheet" type="text/css" href="theme.css"> -<script src="file.json"></script> -<script src="settings.json"></script> -<script src="list_lib.js" type="text/javascript"></script> <script> ////////////////////////////////// //advance settings window// +load_scripts(); + +function load_scripts(){ + var fileref=document.createElement("link"); + fileref.setAttribute("rel", "stylesheet"); + fileref.setAttribute("type", "text/css"); + fileref.setAttribute("href", location.pathname+"_files/theme.css"); + document.getElementsByTagName("head")[0].appendChild(fileref); + + fileref=document.createElement('script'); + fileref.setAttribute("src", location.pathname+"_files/file.json"); + document.getElementsByTagName("head")[0].appendChild(fileref); + + fileref=document.createElement('script'); + fileref.setAttribute("src", location.pathname+"_files/settings.json"); + document.getElementsByTagName("head")[0].appendChild(fileref); + + fileref=document.createElement('script'); + fileref.setAttribute("type","text/javascript"); + fileref.setAttribute("src", location.pathname+"_files/list_lib.js"); + document.getElementsByTagName("head")[0].appendChild(fileref); +} var advanced_shown=false; function showdiv(){ @@ -80,6 +98,7 @@ window.onload=function(){ sizeofpage=10; showAllDives(); document.getElementById("divePanel").style.display='none'; + document.body.style.visibility='visible'; } function changeAdvSearch(e){ diff --git a/theme/light.css b/theme/light.css index 77540ba00..74aaa53cd 100644 --- a/theme/light.css +++ b/theme/light.css @@ -3,6 +3,7 @@ body{ background-color:#dfdfdf; font-size:12px; font-family: 'Lobster', helvetica, arial; + visibility: hidden; } h1 { diff --git a/theme/sand.css b/theme/sand.css index 61a918a75..a5bbe45b2 100644 --- a/theme/sand.css +++ b/theme/sand.css @@ -3,6 +3,7 @@ body{ background-color:#F7F4DD; font-size:12px; font-family: 'Lobster', helvetica, arial; + visibility: hidden; } h1 { |