Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-webclient
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-webclient
Commits
df61ad83
Commit
df61ad83
authored
Apr 29, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: поправки к ключу/видимости переменных
parent
fc854341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
etersoft_typos.js
etersoft_typos.js
+8
-8
No files found.
etersoft_typos.js
View file @
df61ad83
...
...
@@ -5,7 +5,7 @@
*/
//////////////////////////////////////////////////////
var
time
=
0
;
//время последнего запроса
var
etersoft_typos_
time
=
0
;
//время последнего запроса
window
.
document
.
onkeydown
=
function
(
e
)
{
if
(
e
.
ctrlKey
==
1
&&
e
.
keyCode
==
13
)
{
...
...
@@ -85,8 +85,8 @@ function ajax_query(url) {
e_typos_error
(
"red"
,
"Не отправляйте данные часто"
);
return
false
;
}
else
{
time
=
this_time
();
set_storage
(
"etersoft_typos/"
+
window
.
location
.
hostname
+
""
,
time
);
etersoft_typos_
time
=
this_time
();
set_storage
(
"etersoft_typos/"
+
window
.
location
.
hostname
+
""
,
etersoft_typos_
time
);
}
request
.
open
(
"POST"
,
url
,
true
);
...
...
@@ -122,7 +122,7 @@ function ajax_query(url) {
}
request
.
onerror
=
function
()
{
e_typos_error
(
"red"
,
"Ошибка отправки данных. Повторите позже"
);
time
=
0
;
etersoft_typos_
time
=
0
;
}
request
.
send
();
}
...
...
@@ -134,13 +134,13 @@ function e_typos_error(error, text) {
}
function
timer
()
{
sec
=
this_time
();
time_s
=
get_storage
(
"etersoft_typos/"
+
window
.
location
.
hostname
+
""
);
var
sec
=
this_time
();
var
time_s
=
get_storage
(
"etersoft_typos/"
+
window
.
location
.
hostname
+
""
);
if
(
time_s
!=
0
)
{
time
=
time_s
;
etersoft_typos_
time
=
time_s
;
}
if
(
this_time
()
-
parseFloat
(
time
)
<
60000
)
{
if
(
this_time
()
-
parseFloat
(
etersoft_typos_
time
)
<
60000
)
{
return
0
;
}
else
{
return
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment