-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpopup_old.html
More file actions
150 lines (121 loc) · 3.74 KB
/
popup_old.html
File metadata and controls
150 lines (121 loc) · 3.74 KB
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
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>Itay Is a Fox trying to be a lion</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="inc/js/jquery-1.9.1.js"></script>
<SCRIPT type="text/javascript">
function ItayFlipText(input_text){
//alert(input_text)
var len = input_text.length;
var nTest = "";
//alert(isHebrew(input_text))
if (! isHebrew(input_text))
{
nTest = input_text;
}
else
{
for ( var i=0 ; i<len ; ++i)
{
var c = input_text.charAt(i);
nTest = c + nTest;
}
}
//alert(nTest);
return nTest ;
}
function isHebrew(input_text){
var Heb = false;
var len = input_text.length;
for ( var i=0 ; i<len ; ++i) {
var c = input_text.charAt(i);
if ((c >= 'à') && (c <= 'ú'))
Heb = true;
if (Heb)
break;}
return Heb;}
function cutEndSpace(line){
var c = line.charAt(0);
// if (c == ' ')
// return line.substr(1);
// else
return line;
}
function ItayStartFlip()
{ // function ItayStartFlip starts
var newval="" ;
var newline="" ;
var lastLine='';
var nTest = "";
var val = document.f.a.value;
var len=val.length;
for ( var i=0 ; i<len; ++i)
{ // loop through inputed text starts
var c=val.charAt(i);
var c0=val.charAt(i+1) ;
//console.log('c: ' + c + ' c0: ' + c0);
if ( (c=='\r' && c0=='\n'))
{ // if 1st and 2nd character is blank check starts
alert(1)
if ( newval.length==0 )
newval = ItayFlipText(nTest) + newline;
else
if (lastLine.length == 0)
newval = newval + "\r\n" + ItayFlipText(nTest) + newline;
else
newval = newval + "\r\n" + ItayFlipText(nTest) + cutEndSpace(newline);
lastLine = ItayFlipText(nTest) + newline;
newline="" ;
nTest = "";
++i;
} // if 1st and 2nd character is blank check ends
else
{ // else to check 1st and 2nd character is not blank starts
if (c != ' ') // if to check first character is not blank starts
nTest = nTest + c;
else
{ // if to check first character is blank starts
newline = ' ' + ItayFlipText(nTest) + newline;
nTest = "";
} // if to check first character is blank ends
} // else to check 1st and 2nd character is not blank ends
} // loop through inputed text ends
if ( newval.length==0 ) // IF to check newval length is 0 (means empty) starts
newval = ItayFlipText(nTest) + newline;
else // IF to check newval length is 0 (means empty) starts
{ // else to check newval length is NOT 0 (means filled) starts
if (lastLine.length == 0)
newval = newval + "\r\n" + ItayFlipText(nTest) + newline;
else
newval = newval + "\r\n" + ItayFlipText(nTest) + cutEndSpace(newline);
} // else to check newval length is NOT 0 (means filled) ends
//alert('--'+newval+'--');
$('#a').val(newval);
//document.f.a.value=newval;
} // function ItayStartFlip ends
//document.f.a.value=newval;
//$('#a').val() =newval;
</SCRIPT>
</head>
<body>
<video width: 669px; autoplay loop poster="polina.jpg" id="bgvid" style="
width: 669px;
">
<source src="vid/foter.webm" type="video/webm">
<source src="vid/footer.mp4" type="video/mp4">
</video>
<div class="textcenters">
<h1 class="maintext"> äîø ìòáøéú äôåëä</h1>
<p class="pmaintext"> ãåâîà: úôåæ = æåôú</p>
</div>
<FORM name="f" ID="Form1" onSubmit="alert(1)">
<TEXTAREA dir="rtl" name="a" rows="3" cols="63" ID="a"></TEXTAREA><BR>
<button id="button2" onClick="javascript:ItayStartFlip();return false;" value="äôåê"> My Website</button>
</FORM>
<br>
<br />
<div align=”left”><span style="color:#fff;">Developed by Itayh</span></div>
</body>
</html>