diff options
Diffstat (limited to 'terminal.html')
| -rw-r--r-- | terminal.html | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/terminal.html b/terminal.html new file mode 100644 index 0000000..82ae291 --- /dev/null +++ b/terminal.html @@ -0,0 +1,191 @@ +<!DOCTYPE html> +<html> + +<head> + <meta charset="UTF-8"> + <link href="style.css" rel="stylesheet"> + <title>Institute for Applied Noematics Web-Interface</title> + <script type="text/javascript" src="scriptjava.js"></script> + <script type="text/javascript"> + $(document).ready(function(){ + $('.show-div').hover(function() { + $('my-div').show(); + }); + }); </script> + <script type="text/javascript"> + <!-- +var b_timer = null; // blink timer +var b_on = true; // blink state +var blnkrs = null; // array of spans + +function blink() { +var tmp = document.getElementsByTagName("span"); +if (tmp) { +blnkrs = new Array(); +var b_count = 0; +for (var i = 0; i < tmp.length; ++i) { +if (tmp[i].className == "blink") { +blnkrs[b_count] = tmp[i]; +++b_count; +} +} +// time in m.secs between blinks +// 500 = 1/2 second +blinkTimer(700); +} +} + +function blinkTimer(ival) { +if (b_timer) { +window.clearTimeout(b_timer); +b_timer = null; +} +blinkIt(); +b_timer = window.setTimeout('blinkTimer(' + ival + ')', ival); +} + +function blinkIt() { +for (var i = 0; i < blnkrs.length; ++i) { +if (b_on == true) { +blnkrs[i].style.visibility = "hidden"; +} +else { +blnkrs[i].style.visibility = "visible"; +} +} +b_on =!b_on; +} +//--> + </script> +</head> + +<body onload="blink();"> +<script type="text/javascript"> + (function() { + + var portal = function (id) { + this.id=id; + this.stream=[]; + this.position=0; + this.counter=1; + this.txt=''; + this.addstream = function () { + var txt = ''; + var smin = 30; + var smax = 90; + var key = false; + var k=true; + for(var i=0;i<arguments.length;i++) { + if(typeof arguments[i] == 'string') { + txt = arguments[i]; + } + if(typeof arguments[i] == 'boolean') { + key = arguments[i]; + } + if(typeof arguments[i] == 'number') { + if(k) { + k=false; + smin = arguments[i]; + } + else { + smax = arguments[i]; + } + } + } + + this.stream.push([txt,smin,smax,key]); + } + this.execute = function () { + if(this.stream[this.position][3]) { + $$(this.id,this.txt+this.stream[this.position][0].substr(0,this.counter)); + this.counter++; + if(this.counter<=this.stream[this.position][0].length) { + var th = this; + setTimeout(function () { th.execute(); },$$s.randnum(th.stream[th.position][1],th.stream[th.position][2])); + } + else { + $$(this.id,$$(this.id).innerHTML+'<br />'); + this.txt=$$(this.id).innerHTML; + this.counter=1; + this.position++; + if(this.position<=this.stream.length-1) { + var th = this; + setTimeout(function () { th.execute(); },$$s.randnum(th.stream[th.position][1],th.stream[th.position][2])); + } + } + } + else { + $$(this.id,this.txt+this.stream[this.position][0]+'<br />'); + this.txt=$$(this.id).innerHTML; + this.position++; + if(this.position<=this.stream.length-1) { + var th = this; + setTimeout(function () { th.execute(); },$$s.randnum(th.stream[th.position][1],th.stream[th.position][2])); + } + } + } + this.create = function () { + var th = this; + setTimeout(function () { th.execute(); },$$s.randnum(th.stream[th.position][1],th.stream[th.position][2])); + } + } + + + + + var parallelworld = new portal('portal'); + parallelworld.addstream('Welcome to IAN 1.2 terminal system!',true); + parallelworld.addstream('---------------------------------------------------',1,1,true); + parallelworld.addstream(); + parallelworld.addstream('Detecting system language................... Failed.',1,1,true); + parallelworld.addstream('Switching to default language................. Выполнено.',2,10,true); + parallelworld.addstream('Загрузка сеанса в терминале........ Выполнено.'); + parallelworld.addstream('Подключение сетевых дисков........ Выполнено.'); + parallelworld.addstream('Загрузка Помощника Библиотеки Милтона......... Ошибка: ПБМ не отвечает.',3,1,true); + parallelworld.addstream('Запуск командной строки.......... Выполнено.'); + + parallelworld.addstream(); + parallelworld.addstream('Список доступных команд:',5,1,true); + parallelworld.addstream(); + parallelworld.addstream('<span style="padding-left:15px;"><a href="#openModal" id="dot">open second_thesis.txt - показать содержимое файла</a></span>'); + parallelworld.addstream('<span style="padding-left:15px;"><a href="#openModal2" id="dot">open kitten_bw_01.jpg - показать содержимое файла</a></span>'); + parallelworld.addstream('<span style="padding-left:15px;"><a href="/dir.html" id="dot">dir - показать все папки с файлами</a></span>'); + parallelworld.addstream('<span style="padding-left:15px;"><a href="/" id="dot">exit - закрыть сеанс терминала</a></span>'); + + parallelworld.addstream(); + parallelworld.addstream('Выберите команду.',5,1,true) + parallelworld.create(); + + + //setTimeout(function () { parallelworld.addstream('Прошло 10 секунд',50,150,true); parallelworld.create(); },20000);//добавляю строку намного позднее того как все сработало + })(); + </script> + +<div align="center"> +<main> + <div style="text-align:left;"> +<div id="portal"></div> +<br><br> + <p style="position: fixed; bottom: 0;width:100%; text-align: center;"> + <a href="version.html" style="color: #00e600;font-size:10px;">v.04.8.16.400</a> + </p> +<div id="openModal2" class="modalDialog"> + <div> + <a href="#close" title="Закрыть" class="close">Закрыть</a> + <p><center><a href="../i.imgur.com/IiQe0xq.jpg" target="_blank"><img src="../i.imgur.com/IiQe0xq.jpg" alt="kitten1" width="500px"/></a></center></p> + <p><center>kitten_bw_01.jpg</center></p> + </div> +</div> +<div id="openModal" class="modalDialog"> + <div> + <a href="#close" title="Закрыть" class="close">Закрыть</a> + <iframe src="testtext.html" width="510" height="500" scrolling="yes" frameborder="0"></iframe> + </div> +</div> + <p></p> + </div> +</main> +</div> +</body> + +</html> |