Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Corey Sheldon
weather
Commits
8db8eb7a
Commit
8db8eb7a
authored
Sep 28, 2016
by
BuildTools
Browse files
did more logic pre colorConversion work
parent
2e4451f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
weather/imports/api/color.js
0 → 100644
View file @
8db8eb7a
//this is not implemented yet and just a proof of concept to start work, will be implemented once we get live numbers to frontend
var
deg
;
var
type
=
true
;
// true farenheit
// false celcius
function
colorMain
(
type
,
deg
)
{
if
(
type
=
true
)
{
colorConversion
(
deg
);
}
else
{
colorConversion
(
convertToF
(
deg
));
}
}
//deg needs to be farenheit
function
colorConversion
(
deg
)
{
//todo
}
function
convertToF
(
CDeg
){
Fdeg
=
Cdeg
*
(
9
/
5
)
+
32
;
return
Fdeg
;
}
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