Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bg-az-counter
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
azbyka_bg
bg-az-counter
Commits
1349dce2
Commit
1349dce2
authored
Mar 27, 2019
by
Vadim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 0.10.2
Исправлен баг, при котором не учитывалось собственное присутствие на странице.
parent
393441a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bg_az-counter.php
bg_az-counter.php
+1
-1
counter.js
js/counter.js
+4
-4
No files found.
bg_az-counter.php
View file @
1349dce2
...
...
@@ -38,7 +38,7 @@ if ( !defined('ABSPATH') ) {
die
(
'Sorry, you are not allowed to access this page directly.'
);
}
define
(
'BG_COUNTER_VERSION'
,
'0.10.
0
'
);
define
(
'BG_COUNTER_VERSION'
,
'0.10.
2
'
);
define
(
'BG_COUNTER_LOG'
,
dirname
(
__FILE__
)
.
'/bg_counter.log'
);
define
(
'BG_COUNTER_STAT_COUNTERS'
,
'https://stat.azbyka.ru/counters'
);
define
(
'BG_COUNTER_STAT_RAITING'
,
'https://stat.azbyka.ru/rating'
);
...
...
js/counter.js
View file @
1349dce2
jQuery
(
document
).
ready
(
function
()
{
if
(
bg_counter
.
ID
)
{
SendOnce
(
bg_counter
.
type
,
bg_counter
.
ID
);
var
request
=
bg_counter
.
websocket
+
bg_counter
.
project
+
"/"
+
bg_counter
.
type
+
"/"
+
bg_counter
.
ID
;
var
socket
=
new
WebSocket
(
request
);
socket
.
onopen
=
function
()
{
if
(
bg_counter
.
debug
)
console
.
log
(
" Соединение установлено. "
+
request
);
if
(
bg_counter
.
debug
)
console
.
log
(
" Соединение установлено. "
+
request
);
GetAllCounter
();
};
SendOnce
(
bg_counter
.
type
,
bg_counter
.
ID
);
}
}
GetAllCounter
();
});
...
...
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