From ecb23d896e52f528f3d4cc2350877c1ec89241ac Mon Sep 17 00:00:00 2001 From: mrdrogdrog <tilman.vatteroth@udo.edu> Date: Thu, 17 Sep 2015 15:38:18 +0200 Subject: [PATCH] Test mit DroidSansMono im Departure --- favicon.png | Bin index.html | 3 +++ panels/departure/script.js | 3 ++- panels/departure/style.less | 3 +++ panels/itworks/script.js | 3 --- 5 files changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 favicon.png delete mode 100644 panels/itworks/script.js diff --git a/favicon.png b/favicon.png old mode 100644 new mode 100755 diff --git a/index.html b/index.html index 1296b72..e72e8ab 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 75fd5f9..1a2ae43 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 e94afcc..a378e71 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 bb7a9e0..0000000 --- a/panels/itworks/script.js +++ /dev/null @@ -1,3 +0,0 @@ -/** - * Created by tilman on 26.08.15. - */ -- GitLab