Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
nail-biter
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Marie PRIGENT
nail-biter
Commits
489084a3
Commit
489084a3
authored
2 years ago
by
Jean-Marie PRIGENT
Browse files
Options
Downloads
Patches
Plain Diff
update gradient color on mini site
parent
041165f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nailbiter/application/export_models/netlify/sketch.js
+1
-1
1 addition, 1 deletion
nailbiter/application/export_models/netlify/sketch.js
nailbiter/application/export_models/netlify_mobile/sketch.js
+6
-3
6 additions, 3 deletions
nailbiter/application/export_models/netlify_mobile/sketch.js
with
7 additions
and
4 deletions
nailbiter/application/export_models/netlify/sketch.js
+
1
−
1
View file @
489084a3
...
...
@@ -90,7 +90,7 @@ function gotResult(error, results) {
if
(
label
===
"
nail-biting
"
){
document
.
body
.
style
.
backgroundColor
=
"
#ff416c
"
;
document
.
body
.
style
.
backgroundImage
=
"
linear-gradient(to right, #ff416c, #ff4b2b)
"
;
// Play sound trigger
not working sound without user interaction: cf https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
// Play sound trigger
notifyAudio
.
play
();
}
...
...
This diff is collapsed.
Click to expand it.
nailbiter/application/export_models/netlify_mobile/sketch.js
+
6
−
3
View file @
489084a3
...
...
@@ -84,11 +84,14 @@ function gotResult(error, results) {
label
=
results
[
0
].
label
;
confidence
=
nf
(
results
[
0
].
confidence
,
0
,
2
);
if
(
label
===
"
no-nail-biting
"
){
document
.
body
.
style
.
backgroundColor
=
"
green
"
;
document
.
body
.
style
.
backgroundColor
=
"
#00b712
"
;
document
.
body
.
style
.
backgroundImage
=
"
linear-gradient(315deg, #00b712 0%, #5aff15 74%)
"
;
}
if
(
label
===
"
nail-biting
"
){
document
.
body
.
style
.
backgroundColor
=
"
red
"
;
// Play sound trigger not working sound without user interaction: cf https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
document
.
body
.
style
.
backgroundColor
=
"
#ff416c
"
;
document
.
body
.
style
.
backgroundImage
=
"
linear-gradient(to right, #ff416c, #ff4b2b)
"
;
// Play sound trigger
notifyAudio
.
play
();
}
// Classifiy again!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment