From 33907d3d464b1b75716e86f1b8fae513e677911f Mon Sep 17 00:00:00 2001 From: anomen Date: Sun, 29 Jan 2012 22:19:08 +0100 Subject: [PATCH] aescrypt - dev - overlay --- www-apps/pmwiki/cookbook/AesCrypt/aescrypt.php | 36 +++++++++++++++++++--- .../cookbook/AesCrypt/{index.php => index.html} | 13 +++----- 2 files changed, 36 insertions(+), 13 deletions(-) rename www-apps/pmwiki/cookbook/AesCrypt/{index.php => index.html} (59%) diff --git a/www-apps/pmwiki/cookbook/AesCrypt/aescrypt.php b/www-apps/pmwiki/cookbook/AesCrypt/aescrypt.php index 67884ce..1ab907c 100644 --- a/www-apps/pmwiki/cookbook/AesCrypt/aescrypt.php +++ b/www-apps/pmwiki/cookbook/AesCrypt/aescrypt.php @@ -20,6 +20,31 @@ SDV($AesCryptPadding, 6); SDV($AesCryptSelectionMode, true); SDV($HTMLStylesFmt['aescrypt'], " +#aescryptPopupMask { + position: absolute; + z-index: 200; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + opacity: .4; + filter: alpha(opacity=40); + /* this hack is so it works in IE + * I find setting the color in the css gives me more flexibility + * than the PNG solution. + */ + background-color:transparent !important; + background-color: #333333; + /* this hack is for opera support + * you can uncomment the background-image if you don't care about opera. + * this gives you the flexibility to use any bg color that you want, instead of the png + */ + background-image/**/: url('$PubDirUrl/aescrypt/maskBG.png') !important; // For browsers Moz, Opera, etc. + background-image:none; + background-repeat: repeat; + display:none; +} + .aescrypt_overlay { visibility: hidden; position: absolute; @@ -56,6 +81,7 @@ function aescryptOverlay(id, state) { if (state) { var pw = document.getElementById('aescrypt_p_'+id); pw.focus(); + pw.value = ''; } } @@ -122,7 +148,7 @@ var aeascryptPopupDiv = false; /** * display modal box for encryption */ -function aesEncPopup() +function aescryptEncPopup() { // alert('123'); aescryptSelectionRange = aescryptSaveSelection(); @@ -139,9 +165,9 @@ function aesEncPopup() var theBody = document.getElementsByTagName('BODY')[0]; var popmask = document.createElement('div'); - popmask.id = 'popupMask'; + popmask.id = 'aescryptPopupMask'; var popcont = document.createElement('div'); - popcont.id = 'popupContainer'; + popcont.id = 'aescrypt_x_enc'; popcont.innerHTML = popup; theBody.appendChild(popmask); @@ -295,10 +321,10 @@ if ($action == 'edit') { if (IsEnabled($EnableGUIButtons)) { $GUIButtons['aescrypt'] = array(750, '', '', '', // TODO: add overlay DIV here & test browsers - ""); + ""); } else { // TODO: simply add overlay DIV here - $MessagesFmt[] = ""; + $MessagesFmt[] = ""; } } diff --git a/www-apps/pmwiki/cookbook/AesCrypt/index.php b/www-apps/pmwiki/cookbook/AesCrypt/index.html similarity index 59% rename from www-apps/pmwiki/cookbook/AesCrypt/index.php rename to www-apps/pmwiki/cookbook/AesCrypt/index.html index bfb2bd4..ad2e74c 100644 --- a/www-apps/pmwiki/cookbook/AesCrypt/index.php +++ b/www-apps/pmwiki/cookbook/AesCrypt/index.html @@ -1,18 +1,15 @@ - AsWiki test Page - - + + - + DEVELOPMENT PAGE ONLY !!! @@ -32,7 +29,7 @@ function aescryptEncCallback(password)

This is a test page for the subModal - a DHTML modal dialog solution.

- +
-- 2.11.4.GIT