Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing #2 some fonts not working #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions html/js/beneoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ function setSecondaryColor(element, val) {

function setPrimaryFont(element, val) {
let font_data = val.split(",");
element.find(".primary-font").css({"font-family": font_data[0], "font-size": font_data[1] + "pt"});
element.find(".primary-font").css({"font-family": '"' + font_data[0] + '"', "font-size": font_data[1] + "pt"});
}

function setSecondaryFont(element, val) {
let font_data = val.split(",");
element.find(".secondary-font").css({"font-family": font_data[0], "font-size": font_data[1] + "pt"});
element.find(".secondary-font").css({"font-family": '"' + font_data[0] + '"', "font-size": font_data[1] + "pt"});
}

function attachToText(element, data_ref) {
Expand Down
4 changes: 2 additions & 2 deletions html/js/landing/attitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupAttitude(data_refs) {
"icon_size": data_refs["landing/attitude/icon_size"],
"primary_color": data_refs["landing/attitude/primary_color"],
"secondary_color": data_refs["landing/attitude/secondary_color"],
"primary_font": data_refs["landing/attitude/primary_font"],
"secondary_font": data_refs["landing/attitude/secondary_font"]
"primary_font": '"' + data_refs["landing/attitude/primary_font"] + '"',
"secondary_font": '"' + data_refs["landing/attitude/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/landing/rate.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupRate(data_refs) {
"icon_size": data_refs["landing/rate/icon_size"],
"primary_color": data_refs["landing/rate/primary_color"],
"secondary_color": data_refs["landing/rate/secondary_color"],
"primary_font": data_refs["landing/rate/primary_font"],
"secondary_font": data_refs["landing/rate/secondary_font"]
"primary_font": '"' + data_refs["landing/rate/primary_font"] + '"',
"secondary_font": '"' + data_refs["landing/rate/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/landing/speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupSpeed(data_refs) {
"icon_size": data_refs["landing/speed/icon_size"],
"primary_color": data_refs["landing/speed/primary_color"],
"secondary_color": data_refs["landing/speed/secondary_color"],
"primary_font": data_refs["landing/speed/primary_font"],
"secondary_font": data_refs["landing/speed/secondary_font"]
"primary_font": '"' + data_refs["landing/speed/primary_font"] + '"',
"secondary_font": '"' + data_refs["landing/speed/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/landing/title.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupTitle(data_refs) {
"icon_size": data_refs["landing/title/icon_size"],
"primary_color": data_refs["landing/title/primary_color"],
"secondary_color": data_refs["landing/title/secondary_color"],
"primary_font": data_refs["landing/title/primary_font"],
"secondary_font": data_refs["landing/title/secondary_font"]
"primary_font": '"' + data_refs["landing/title/primary_font"] + '"',
"secondary_font": '"' + data_refs["landing/title/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/progress/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupProgress(data_refs) {
"icon_size": data_refs["progress/icon_size"],
"primary_color": data_refs["progress/primary_color"],
"secondary_color": data_refs["progress/secondary_color"],
"primary_font": data_refs["progress/primary_font"],
"secondary_font": data_refs["progress/secondary_font"]
"primary_font": '"' + data_refs["progress/primary_font"] + '"',
"secondary_font": '"' + data_refs["progress/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/altitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupAltitude(data_refs) {
"icon_size": data_refs["widget/altitude/icon_size"],
"primary_color": data_refs["widget/altitude/primary_color"],
"secondary_color": data_refs["widget/altitude/secondary_color"],
"primary_font": data_refs["widget/altitude/primary_font"],
"secondary_font": data_refs["widget/altitude/secondary_font"]
"primary_font": '"' + data_refs["widget/altitude/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/altitude/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/callsign.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupCallsign(data_refs) {
"icon_size": data_refs["widget/callsign/icon_size"],
"primary_color": data_refs["widget/callsign/primary_color"],
"secondary_color": data_refs["widget/callsign/secondary_color"],
"primary_font": data_refs["widget/callsign/primary_font"],
"secondary_font": data_refs["widget/callsign/secondary_font"]
"primary_font": '"' + data_refs["widget/callsign/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/callsign/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupHeading(data_refs) {
"icon_size": data_refs["widget/heading/icon_size"],
"primary_color": data_refs["widget/heading/primary_color"],
"secondary_color": data_refs["widget/heading/secondary_color"],
"primary_font": data_refs["widget/heading/primary_font"],
"secondary_font": data_refs["widget/heading/secondary_font"]
"primary_font": '"' + data_refs["widget/heading/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/heading/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupNetwork(data_refs) {
"icon_size": data_refs["widget/network/icon_size"],
"primary_color": data_refs["widget/network/primary_color"],
"secondary_color": data_refs["widget/network/secondary_color"],
"primary_font": data_refs["widget/network/primary_font"],
"secondary_font": data_refs["widget/network/secondary_font"]
"primary_font": '"' + data_refs["widget/network/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/network/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupPerformance(data_refs) {
"icon_size": data_refs["widget/performance/icon_size"],
"primary_color": data_refs["widget/performance/primary_color"],
"secondary_color": data_refs["widget/performance/secondary_color"],
"primary_font": data_refs["widget/performance/primary_font"],
"secondary_font": data_refs["widget/performance/secondary_font"]
"primary_font": '"' + data_refs["widget/performance/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/performance/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupSpeed(data_refs) {
"icon_size": data_refs["widget/speed/icon_size"],
"primary_color": data_refs["widget/speed/primary_color"],
"secondary_color": data_refs["widget/speed/secondary_color"],
"primary_font": data_refs["widget/speed/primary_font"],
"secondary_font": data_refs["widget/speed/secondary_font"]
"primary_font": '"' + data_refs["widget/speed/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/speed/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/temperature.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupTemperature(data_refs) {
"icon_size": data_refs["widget/temperature/icon_size"],
"primary_color": data_refs["widget/temperature/primary_color"],
"secondary_color": data_refs["widget/temperature/secondary_color"],
"primary_font": data_refs["widget/temperature/primary_font"],
"secondary_font": data_refs["widget/temperature/secondary_font"]
"primary_font": '"' + data_refs["widget/temperature/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/temperature/secondary_font"] + '"'
},
data_refs
);
Expand Down
4 changes: 2 additions & 2 deletions html/js/widgets/wind.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function setupWind(data_refs) {
"icon_size": data_refs["widget/wind/icon_size"],
"primary_color": data_refs["widget/wind/primary_color"],
"secondary_color": data_refs["widget/wind/secondary_color"],
"primary_font": data_refs["widget/wind/primary_font"],
"secondary_font": data_refs["widget/wind/secondary_font"]
"primary_font": '"' + data_refs["widget/wind/primary_font"] + '"',
"secondary_font": '"' + data_refs["widget/wind/secondary_font"] + '"'
},
data_refs
);
Expand Down