boss key mode finished

This commit is contained in:
ville rantanen
2014-01-20 23:04:22 +02:00
parent f6076d77ad
commit 616d90c572

View File

@@ -1777,19 +1777,50 @@ function addswipe(divname) {
function bosskey() {
// bosskey
i=currentimage;
var width=document.body.clientWidth-30;
var height=document.body.clientHeight-25;
var linkToBig = '<a class="linktobig" href="http://www.ncbi.nlm.nih.gov/pubmed" target="_blank">';
$('#imagecontainer').html('<span id="prevTouch"/><span id="nextTouch"/><div id="imagebig">'+linkToBig+
'<iframe id="imagesingle" src="http://www.ncbi.nlm.nih.gov/pubmed"></a></div>');
$('#imagesingle').css('width',width);
$('#imagesingle').css('height',height);
$('#imagecontainer').data('ID',i);
$('#imagecontainer').html('<div id="imagebig"><textarea id="boss" spellcheck="false"></textarea></div>');
$('#imagebig').css('width',width);
$('#imagebig').css('height',height);
$('#desccontainer').html("");
$('#desccontainer').css('display','block');
$('#imagecontainer')[0].scrollIntoView(true);
$('#thumbcontainer').html("");
$('#thumbcontainer').html("<br><br><br><br><br><br>");
$('#boss').css('backgroundColor','black');
$('#boss').css('color','silver'); $('#boss').css('font-family','Mono');
$('#boss').css('width',width); $('#boss').css('height',height);
$('#boss').css('text-align','left');
$("#boss").focus();
if (navigator.platform.toLowerCase().search('win')==-1) {
$('#boss').val(
['user@'+window.location.hostname+':~/Data$ ls -la',
'total 6148',
'drwxr-xr-- 13 user 4096 Jan 15 14:00 .',
'drwxrwxr-x 19 user 4096 Jan 20 19:32 ..',
'-rw-rw-r-- 1 user 11197 Jan 13 12:34 Article-12.jan.tex',
'-rw-rw-r-- 1 user 2512962 Jan 13 12:47 Article-12.jan.pdf',
'drwxr-xr-x 2 user 4096 Sep 20 18:34 articles',
'-rw-rw-r-- 1 user 3875 Jan 15 14:00 batch1.csv',
'drwxr-xr-x 3 user 4096 Oct 9 18:30 coe_slide',
'-rw-r--r-- 1 user 1379502 Jan 17 2012 HTS-introduction.pdf',
'user@'+window.location.hostname+':~/Data$ '].join('\n') );
} else {
$('#boss').html(
['Mysoft Operating System [Version '+
[String(Math.floor((Math.random()*10)+1)),
String(Math.floor((Math.random()*10)+1)),
String((new Date()).getFullYear())].join(".")+']',
'(c) '+String((new Date()).getFullYear())+' Mysoft Corporation. All rights reserved.',
'',
'C:\\Users\\Administrator\\Data\\&gt;dir',
'03/01/2010 11:23 AM &lt;DIR&gt; .',
'03/01/2010 11:23 AM &lt;DIR&gt; ..',
'05/11/2011 03:45 PM &lt;DIR&gt; Project Financials',
'14/07/2011 03:47 PM &lt;DIR&gt; Presentations',
' 0 File(s) 0 bytes',
' 4 Dir(s) 22,347,864,436 bytes free','',
'C:\\Users\\Administrator\\Data\\&gt;'].join('\n') );
}
return;
}