Commits

Thejesh GN committed ad75d70

fixed gpg and home links

Comments (0)

Files changed (5)

gui/basic/main.html

         <div class="nav-collapse">
           <ul class="nav">
             <li><a href="http://thejeshgn.com/about/">About</a></li>
-            <li><a href="http://thejeshgn.com/wiki/">Wiki</a></li>
-            <li><a href="http://thejeshgn.com/projects/">Projects</a></li>
-            <li><a href="http://thejeshgn.com/code/">Code</a></li>
+            <li><a href="https://thejeshgn.com/wiki/">Wiki</a></li>
+            <li><a href="https://thejeshgn.com/projects/">Projects</a></li>
+            <li><a href="http://code.thejeshgn.com/">Code</a></li>
             <li><a href="https://thejeshgn.com/presentations">Talks</a></li>
-            <li class="active"><a href="<?= $this->get('BASE'); ?>">Tools</a></li>
-            <li><a href="http://thejeshgn.com/contact/">Contact</a></li>         
+            <li class="active"><a href="https://thejeshgn.com/tools/">Tools</a></li>
+            <li><a href="https://thejeshgn.com/contact/">Contact</a></li>         
         </div><!-- /.nav-collapse -->
       </div>
     </div><!-- /navbar-inner -->
      <!-- Footer
       ================================================== -->
       <footer class="footer">
-        <p class="pull-left">Page generated in <?= sprintf('%.3f',microtime(TRUE)-$this->get('timer')); ?>&nbsp;micro secs &bull; Memory consumed <?= sprintf('%.3f',memory_get_peak_usage()/1e6); ?> Mbytes</p>
+        <p class="pull-left">Page generated in <?= (microtime(TRUE)-$this->get('timer')); ?>&nbsp;secs &bull; Memory consumed <?= sprintf('%.3f',memory_get_peak_usage()/1e6); ?> Mbytes</p>
 
         <p class="pull-right"><a href="http://thejeshgn.com"><img src="<?= $this->get('BASE'); ?>/gui/thejeshgn-name.png" width="100px"/></a></p>
       </footer>

gui/sub/sub_gpg.html

  document.t.text.value=doEncrypt(keyid, keytyp, pubkey, text);
 
  var endTime=new Date();
- var msg = "Encrypted "+text.length+" bytes of message. This took "+((endTime.getTime()-startTime.getTime())/1000.0)+" seconds.Depending on processor speed, message size, public key size and public key type encryption";
+ var msg = "Encrypted "+text.length+" bytes of message. This took "+((endTime.getTime()-startTime.getTime())/1000.0)+" seconds.";
 
 	document.getElementById('msg').innerHTML =msg;
+	document.getElementById('msg').style.display="block";
 }
 
 </script>
-
 <div class="span7">
 	<h4>Public Key</h4>
 <form name="s" action="javascript:getkey()">
 			<td>Public Key values:</td>
 			<td><input size="100" name="pkey" readonly=""></td>
 		</tr>	
-		<tr>
-			<td>&nbsp;</td>
-			<td><input type="submit" value="Get Public Key Information"></td>
+		<tr><td>&nbsp;</td>
+			<td><button class="btn btn-primary" onclick="javascript:getkey()" type="button">Get Public Key Information</button></td>
 		</tr>
 	</table>
 </form>
 </div>
 <div class="span7">
+<div id="msg"class="alert alert-success" style="display:none;"></div>
 <h4>Message</h4>
 <form name="t" action="javascript:encrypt()">
 <textarea name="text" rows="9" cols="90" style="width:600px !important;">your text for PGP encryption goes here.
 		<li>Click on encrypt</li>
 		<li>The message is PGP encrypted using AES and RSA/Elgamal algorithms</li>
 	</ul>
-	<center><input type="submit" value="Encrypt Message"></center>
-	<span id="msg"></span>
+	<center><button class="btn btn-success" onclick="javascript:encrypt()" type="button">Encrypt Message</button></center>
 </form>
 </div>

gui/sub/sub_home.html

 <ol>
-	<li><a href="<?= $this->get('BASE'); ?>/markdwon">Markdown Editor</a></li>
-	<li><a href="<?= $this->get('BASE'); ?>/gpg">Online GPG Encryption</a></li>
+	<li><a href="<?= $this->get('BASE'); ?>/markdown">Markdown Editor</a></li>
+	<li><a href="<?= $this->get('BASE'); ?>/gpg">GPG Encryption</a></li>
 <ol>
 	function markdown() {
 		$this->set('title','Markdown Editor');
 		$this->set('caption','Markdown online editor.');
-		$this->set('notes','Useful Online tools that I have written over years. All the code is <a href="https://bitbucket.org/thejeshgn/tools/overview">available</a>.');
+		$this->set('notes','Click on the eye for preview. Click on expand for full screen.');
 		$this->set('LANGUAGE','en-US');
 		$this->set('sub','sub_markdown.html');
 		$out=$this->render('basic/layout.html');
 $app->set('AUTOLOAD','inc/;inc/temp/');
 $app->set('GUI','gui/');
 $app->set('DEBUG',1);
+$app->set('timer',microtime(TRUE));
 
 $app->route('GET /','Main->home');
 $app->route('GET /markdown','Main->markdown');