summaryrefslogtreecommitdiff
path: root/terminal.html
blob: 82ae291887163589924c8b60c7be67b42a53db6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
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>