Skip to content

Commit 41b5d5e

Browse files
committed
Added logo integration
Logo as default watermark + favicon + homescreen icon if user installs as webapp.
1 parent 10bc502 commit 41b5d5e

File tree

184 files changed

+38
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+38
-16
lines changed

Diff for: config.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Configuration options
2-
const init_phones = ["HTH67"], // Optional. Which graphs to display on initial load. Note: Share URLs will override this set
3-
DIR = "data/", // Directory where graph files are stored
4-
data_format = "AudioTools", // Accepts "AudioTools," "REW," or "other"
5-
default_channels = ["L","R"], // Which channels to display. Avoid javascript errors if loading just one channel per phone
6-
default_normalization = "dB", // Sets default graph normalization mode. Accepts "dB" or "Hz"
7-
default_norm_db = 60, // Sets default dB normalization point
8-
default_norm_hz = 1000, // Sets default Hz normalization point
9-
max_channel_imbalance = 5, // ???
10-
alt_layout = false, // Toggle between classic and alt layouts
11-
share_url = true, // If true, enables shareable URLs
12-
watermark_text = "CringGraph", // Optional. Watermark appears behind graphs
13-
watermark_image_url = "", // Optional. If image file is in same directory as config, can be just the filename
14-
page_title = "CrinGraph"; // Optional. Appended to the page title if share URLs are enabled
2+
const init_phones = ["HTH67"], // Optional. Which graphs to display on initial load. Note: Share URLs will override this set
3+
DIR = "data/", // Directory where graph files are stored
4+
data_format = "AudioTools", // Accepts "AudioTools," "REW," or "other"
5+
default_channels = ["L","R"], // Which channels to display. Avoid javascript errors if loading just one channel per phone
6+
default_normalization = "dB", // Sets default graph normalization mode. Accepts "dB" or "Hz"
7+
default_norm_db = 60, // Sets default dB normalization point
8+
default_norm_hz = 1000, // Sets default Hz normalization point
9+
max_channel_imbalance = 5, // ???
10+
alt_layout = false, // Toggle between classic and alt layouts
11+
share_url = true, // If true, enables shareable URLs
12+
watermark_text = "CrinGraph", // Optional. Watermark appears behind graphs
13+
watermark_image_url = "cringraph-logo.svg", // Optional. If image file is in same directory as config, can be just the filename
14+
page_title = "CrinGraph"; // Optional. Appended to the page title if share URLs are enabled
1515

1616
// Specify which targets to display
1717
const targets = [
@@ -36,7 +36,7 @@ function watermark(svg) {
3636

3737
if ( watermark_text ) {
3838
wm.append("text")
39-
.attrs({x:0, y:40, "font-size":40, "text-anchor":"middle", "class":"graph-name"})
39+
.attrs({x:0, y:70, "font-size":28, "text-anchor":"middle", "class":"graph-name"})
4040
.text(watermark_text);
4141
}
4242
}

Diff for: cringraph-favicon.png

2.55 KB

Diff for: cringraph-icon.png

11.5 KB

Diff for: cringraph-icon_tr.png

9.15 KB

Diff for: cringraph-logo.svg

+22

Diff for: data_mrs/.DS_Store renamed to data_rew/.DS_Store

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: graph.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<meta charset="utf-8">
33
<html>
44
<head>
5-
<link rel="shortcut icon" type="image/png" href="favicon.png"/>
5+
<link rel="shortcut icon" type="image/png" href="cringraph-favicon.png"/>
66
<link rel="preconnect" href="https://fonts.gstatic.com"/>
77
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;700&display=swap" rel="stylesheet"/>
88
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/>
99
<meta name="apple-mobile-web-app-capable" content="yes"/>
1010
<meta name="apple-mobile-web-app-title" content="CrinGraph"/>
11-
<link rel="apple-touch-icon" href="favicon.png"/>
11+
<link rel="apple-touch-icon" href="cringraph-icon.png"/>
1212
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
1313
</head>
1414

0 commit comments

Comments
 (0)