diff --git a/favicon.png b/favicon.png old mode 100644 new mode 100755 diff --git a/index.html b/index.html index 1296b72b14b98e14749e7c936b00cd5be8df5d94..e72e8ab50e890e2f0b6525364c5e0cb366a3dd20 100755 --- a/index.html +++ b/index.html @@ -24,6 +24,9 @@ families : ['time-medium', 'time-fat', 'vrr'], urls : ['css/font.css'] }, + google : { + families : ['Droid Sans Mono'], + }, active : function() { window.fontsReady = true; } diff --git a/panels/departure/script.js b/panels/departure/script.js index 75fd5f9a19619b685083df503c64f5f2ca35329d..1a2ae43aaaa4b63c05b8df240782ee46b09912b0 100755 --- a/panels/departure/script.js +++ b/panels/departure/script.js @@ -203,7 +203,8 @@ var resize = function(panel, config, cont) { var getStringWidth = function(fontSize, string) { var o = $('<div>' + string + '</div>') - .css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font-family': 'display', 'fontSize': fontSize + 'px'}) + .css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font-family': 'Droid Sans Mono', 'fontSize': +fontSize + 'px'}) .appendTo($('body')), w = o.width(); o.remove(); diff --git a/panels/departure/style.less b/panels/departure/style.less index e94afccea0aedaea802466fab6590842349ba227..a378e7138ef0b09fa2cbc468fcd8c44863d9609a 100755 --- a/panels/departure/style.less +++ b/panels/departure/style.less @@ -77,6 +77,9 @@ font-weight: bold; color: #B8860B; } + [data-delay], [data-time] { + font-family: Droid Sans Mono; + } [data-name] { position: relative; diff --git a/panels/itworks/script.js b/panels/itworks/script.js deleted file mode 100644 index bb7a9e04299d1f1b68828a2d7849f615f8a62115..0000000000000000000000000000000000000000 --- a/panels/itworks/script.js +++ /dev/null @@ -1,3 +0,0 @@ -/** - * Created by tilman on 26.08.15. - */