Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
7d1ad3b5
Commit
7d1ad3b5
authored
Aug 20, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prueba analytics
parent
44c4a969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
public/videojs-plugins/analitycs/videojs-analitycs-2.js
public/videojs-plugins/analitycs/videojs-analitycs-2.js
+7
-0
No files found.
public/videojs-plugins/analitycs/videojs-analitycs-2.js
0 → 100644
View file @
7d1ad3b5
/*
* videojs-ga - v0.4.2 - 2015-09-14
* Copyright (c) 2015 Michael Bensoussan
* Licensed MIT
*/
(
function
(){
var
a
=
[].
indexOf
||
function
(
a
){
for
(
var
b
=
0
,
c
=
this
.
length
;
c
>
b
;
b
++
)
if
(
b
in
this
&&
this
[
b
]
===
a
)
return
b
;
return
-
1
};
videojs
.
plugin
(
"
ga
"
,
function
(
b
){
var
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
;
return
null
==
b
&&
(
b
=
{}),
c
=
{},
this
.
options
()[
"
data-setup
"
]
&&
(
l
=
JSON
.
parse
(
this
.
options
()[
"
data-setup
"
]),
l
.
ga
&&
(
c
=
l
.
ga
)),
d
=
[
"
loaded
"
,
"
percentsPlayed
"
,
"
start
"
,
"
end
"
,
"
seek
"
,
"
play
"
,
"
pause
"
,
"
resize
"
,
"
volumeChange
"
,
"
error
"
,
"
fullscreen
"
],
i
=
b
.
eventsToTrack
||
c
.
eventsToTrack
||
d
,
o
=
b
.
percentsPlayedInterval
||
c
.
percentsPlayedInterval
||
10
,
g
=
b
.
eventCategory
||
c
.
eventCategory
||
"
Video
"
,
h
=
b
.
eventLabel
||
c
.
eventLabel
,
b
.
debug
=
b
.
debug
||!
1
,
n
=
[],
s
=
r
=
0
,
t
=!
1
,
k
=
function
(){
h
||
(
h
=
this
.
currentSrc
().
split
(
"
/
"
).
slice
(
-
1
)[
0
].
replace
(
/
\.(\w{3,4})(\?
.*
)?
$/i
,
""
)),
a
.
call
(
i
,
"
loadedmetadata
"
)
>=
0
&&
u
(
"
loadedmetadata
"
,
!
0
)},
v
=
function
(){
var
b
,
c
,
d
,
e
,
f
;
for
(
b
=
Math
.
round
(
this
.
currentTime
()),
c
=
Math
.
round
(
this
.
duration
()),
e
=
Math
.
round
(
b
/
c
*
100
),
d
=
f
=
0
;
99
>=
f
;
d
=
f
+=
o
)
e
>=
d
&&
a
.
call
(
n
,
d
)
<
0
&&
(
a
.
call
(
i
,
"
start
"
)
>=
0
&&
0
===
d
&&
e
>
0
?
u
(
"
start
"
,
!
0
):
a
.
call
(
i
,
"
percentsPlayed
"
)
>=
0
&&
0
!==
e
&&
u
(
"
percent played
"
,
!
0
,
d
),
e
>
0
&&
n
.
push
(
d
));
a
.
call
(
i
,
"
seek
"
)
>=
0
&&
(
s
=
r
,
r
=
b
,
Math
.
abs
(
s
-
r
)
>
1
&&
(
t
=!
0
,
u
(
"
seek start
"
,
!
1
,
s
),
u
(
"
seek end
"
,
!
1
,
r
)))},
e
=
function
(){
u
(
"
end
"
,
!
0
)},
p
=
function
(){
var
a
;
a
=
Math
.
round
(
this
.
currentTime
()),
u
(
"
play
"
,
!
0
,
a
),
t
=!
1
},
m
=
function
(){
var
a
,
b
;
a
=
Math
.
round
(
this
.
currentTime
()),
b
=
Math
.
round
(
this
.
duration
()),
a
===
b
||
t
||
u
(
"
pause
"
,
!
1
,
a
)},
w
=
function
(){
var
a
;
a
=
this
.
muted
()
===!
0
?
0
:
this
.
volume
(),
u
(
"
volume change
"
,
!
1
,
a
)},
q
=
function
(){
u
(
"
resize -
"
+
this
.
width
()
+
"
*
"
+
this
.
height
(),
!
0
)},
f
=
function
(){
var
a
;
a
=
Math
.
round
(
this
.
currentTime
()),
u
(
"
error
"
,
!
0
,
a
)},
j
=
function
(){
var
a
;
a
=
Math
.
round
(
this
.
currentTime
()),(
"
function
"
==
typeof
this
.
isFullscreen
?
this
.
isFullscreen
():
void
0
)
||
(
"
function
"
==
typeof
this
.
isFullScreen
?
this
.
isFullScreen
():
void
0
)?
u
(
"
enter fullscreen
"
,
!
1
,
a
):
u
(
"
exit fullscreen
"
,
!
1
,
a
)},
u
=
function
(
a
,
c
,
d
){
window
.
ga
?
ga
(
"
send
"
,
"
event
"
,{
eventCategory
:
g
,
eventAction
:
a
,
eventLabel
:
h
,
eventValue
:
d
,
nonInteraction
:
c
}):
window
.
_gaq
?
_gaq
.
push
([
"
_trackEvent
"
,
g
,
a
,
h
,
d
,
c
]):
b
.
debug
&&
console
.
log
(
"
Google Analytics not detected
"
),
window
.
_paq
?
_paq
.
push
([
"
trackEvent
"
,
g
,
a
,
h
,
d
]):
b
.
debug
&&
console
.
log
(
"
Piwik not detected
"
)},
this
.
ready
(
function
(){
return
this
.
on
(
"
loadedmetadata
"
,
k
),
this
.
on
(
"
timeupdate
"
,
v
),
a
.
call
(
i
,
"
end
"
)
>=
0
&&
this
.
on
(
"
ended
"
,
e
),
a
.
call
(
i
,
"
play
"
)
>=
0
&&
this
.
on
(
"
play
"
,
p
),
a
.
call
(
i
,
"
pause
"
)
>=
0
&&
this
.
on
(
"
pause
"
,
m
),
a
.
call
(
i
,
"
volumeChange
"
)
>=
0
&&
this
.
on
(
"
volumechange
"
,
w
),
a
.
call
(
i
,
"
resize
"
)
>=
0
&&
this
.
on
(
"
resize
"
,
q
),
a
.
call
(
i
,
"
error
"
)
>=
0
&&
this
.
on
(
"
error
"
,
f
),
a
.
call
(
i
,
"
fullscreen
"
)
>=
0
?
this
.
on
(
"
fullscreenchange
"
,
j
):
void
0
}),{
sendbeacon
:
u
}})}).
call
(
this
);
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