boss key mode finished
This commit is contained in:
@@ -1777,19 +1777,50 @@ function addswipe(divname) {
|
|||||||
function bosskey() {
|
function bosskey() {
|
||||||
// bosskey
|
// bosskey
|
||||||
|
|
||||||
i=currentimage;
|
|
||||||
var width=document.body.clientWidth-30;
|
var width=document.body.clientWidth-30;
|
||||||
var height=document.body.clientHeight-25;
|
var height=document.body.clientHeight-25;
|
||||||
var linkToBig = '<a class="linktobig" href="http://www.ncbi.nlm.nih.gov/pubmed" target="_blank">';
|
$('#imagecontainer').html('<div id="imagebig"><textarea id="boss" spellcheck="false"></textarea></div>');
|
||||||
$('#imagecontainer').html('<span id="prevTouch"/><span id="nextTouch"/><div id="imagebig">'+linkToBig+
|
$('#imagebig').css('width',width);
|
||||||
'<iframe id="imagesingle" src="http://www.ncbi.nlm.nih.gov/pubmed"></a></div>');
|
$('#imagebig').css('height',height);
|
||||||
$('#imagesingle').css('width',width);
|
|
||||||
$('#imagesingle').css('height',height);
|
|
||||||
$('#imagecontainer').data('ID',i);
|
|
||||||
$('#desccontainer').html("");
|
$('#desccontainer').html("");
|
||||||
$('#desccontainer').css('display','block');
|
$('#desccontainer').css('display','block');
|
||||||
$('#imagecontainer')[0].scrollIntoView(true);
|
$('#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\\>dir',
|
||||||
|
'03/01/2010 11:23 AM <DIR> .',
|
||||||
|
'03/01/2010 11:23 AM <DIR> ..',
|
||||||
|
'05/11/2011 03:45 PM <DIR> Project Financials',
|
||||||
|
'14/07/2011 03:47 PM <DIR> Presentations',
|
||||||
|
' 0 File(s) 0 bytes',
|
||||||
|
' 4 Dir(s) 22,347,864,436 bytes free','',
|
||||||
|
'C:\\Users\\Administrator\\Data\\>'].join('\n') );
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user