Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tangled
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
eriksson monteiro
tangled
Commits
5eff7449
Commit
5eff7449
authored
Aug 01, 2022
by
Eriksson Monteiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ad module. change ad rotation time to 30s
parent
d90277d1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
58 deletions
+74
-58
chrome/browser/resources/millix/millix_bar.js
chrome/browser/resources/millix/millix_bar.js
+4
-4
millix_node/tangled-advertisement.js
millix_node/tangled-advertisement.js
+70
-54
No files found.
chrome/browser/resources/millix/millix_bar.js
View file @
5eff7449
...
...
@@ -37,7 +37,7 @@ cr.define('millix_bar', function () {
let
reloadTimeout
=
undefined
;
let
fetchAdvertisementTimeout
=
undefined
;
let
transactionTimestampUpdateTimeout
=
undefined
;
const
ADVERTISEMENT_ROTATION_TIME
=
6
0000
;
const
ADVERTISEMENT_ROTATION_TIME
=
3
0000
;
const
ADVERTISEMENT_ROTATION_TIME_EMPTY
=
5000
;
let
walletLocked
=
true
;
let
unlockFromBar
=
false
;
...
...
@@ -122,12 +122,12 @@ cr.define('millix_bar', function () {
const
aDayAgo
=
Date
.
now
()
-
86400000
;
if
(
thirtyMinutesAgo
>
sessionStart
&&
(
!!
advertisementPaymentTimestampLast
&&
aDayAgo
>
advertisementPaymentTimestampLast
))
{
$headline
.
text
(
'
unable to find ads
'
);
$targetPhrase
.
text
(
`please click "help -> report issue" to resolve`
);
$targetPhrase
.
text
(
'
please click "help -> report issue" to resolve
'
);
}
else
{
$headline
.
text
(
'
searching for ad...
'
);
$headline
.
text
(
'
searching for ad
s
...
'
);
if
(
aMinuteAgo
>
sessionStart
&&
(
!!
advertisementPaymentTimestampLast
&&
twoMinutesAgo
>
advertisementPaymentTimestampLast
))
{
$targetPhrase
.
text
(
`
it has been
${
moment
(
new
Date
(
advertisementPaymentTimestampLast
)).
fromNow
()}
since your last ad payment
`
);
$targetPhrase
.
text
(
`
your last ad payment was received
${
moment
(
new
Date
(
advertisementPaymentTimestampLast
)).
fromNow
()}
`
);
}
else
{
$targetPhrase
.
text
(
''
);
}
...
...
millix_node/tangled-advertisement.js
View file @
5eff7449
This diff is collapsed.
Click to expand it.
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