Improved URL display for portrait mobile devices
Improved URL display for portrait mobile devices

--- a/lib/API.php
+++ b/lib/API.php
@@ -96,12 +96,20 @@
 	  $pass = "<a href='$pass' target=_blank title='Click to Open'>$pass</a>";
       }
 
-    // If a URL has been entered without http - See #31
-    if (substr($address,0,3) == "www"){
-    $address = "http://".$address;
-    }
-
-    echo $pass.$opDivider."<a href='$address' target=_blank>".$address."</a>" .$opDivider. 
+    $address_anchor = '';
+    if (!empty($address)){
+
+      // If a URL has been entered without http - See #31
+      if (substr($address,0,3) == "www"){
+      $address = "http://".$address;
+      }
+
+      $address_anchor = "<a href='$address' target=_blank><span class='addrDisp' id='addrDisp' onclick='alert(\"$address\");'>".
+      $address."</span></a><i class='icon-globe addrDisp' onclick=\"$('#addrDisp').css('display','inline');$(this).css('display','none');\"></i>";
+
+    }
+
+    echo $pass.$opDivider.$address_anchor.$opDivider. 
 	 $uname . $opDivider;
 
 

--- a/templates/EstDeus/css/EstDeus.css
+++ b/templates/EstDeus/css/EstDeus.css
@@ -56,4 +56,5 @@
 .SearchResultActive {background-color: grey; color: white}
 
 input.passDisp, input.passDisp:focus {border: 0px; box-shadow: 0 0 0 0px; background: transparent; cursor: pointer; width: auto; padding: 0px; margin-bottom: 0px; height: auto; max-width: 100px;}
+i.addrDisp {display: none;}
 

--- a/templates/EstDeus/css/mobile.css
+++ b/templates/EstDeus/css/mobile.css
@@ -28,6 +28,8 @@
   .CredAddress {word-break: break-all;}
   .CredPluginOutput * {font-size: x-small; padding: 0px; margin: 0px;}
   .BreadCrumbs {width: 100%;}
+  i.addrDisp {display: inline-block;}
+  span.addrDisp {display: none; font-size: 0.8em;}
   
 }