From 66f0090161b6b84cc6646d87fed4c78294527085 Mon Sep 17 00:00:00 2001 From: mrdrogdrog <tilman.vatteroth@udo.edu> Date: Tue, 24 Nov 2015 11:59:16 +0100 Subject: [PATCH] =?UTF-8?q?IT=20WORKS!-=20Demo=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panels/itworks/script.js | 28 +++++++++++++++++++++++++--- panels/itworks/style.less | 4 ++++ panels/itworks/template.html | 1 + 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 panels/itworks/style.less create mode 100644 panels/itworks/template.html diff --git a/panels/itworks/script.js b/panels/itworks/script.js index bb7a9e0..018678b 100644 --- a/panels/itworks/script.js +++ b/panels/itworks/script.js @@ -1,3 +1,25 @@ -/** - * Created by tilman on 26.08.15. - */ +var myPanel = null; + +this.loaded = function(panel, config) { +myPanel = panel; +$(panel).find("span").text(config); +} + + +this.resize = function() { + $(myPanel).textfill({ + maxFontPixels:-1 + }); +} + +this.checkShowCondition = function() { + return 1; +} + +this.show = function() { + $(myPanel).css("backgroundColor","red"); +} + +this.hide = function() { + +} diff --git a/panels/itworks/style.less b/panels/itworks/style.less new file mode 100644 index 0000000..bd63371 --- /dev/null +++ b/panels/itworks/style.less @@ -0,0 +1,4 @@ +span { +color:white; + font-size: 200pt; +} \ No newline at end of file diff --git a/panels/itworks/template.html b/panels/itworks/template.html new file mode 100644 index 0000000..42c4005 --- /dev/null +++ b/panels/itworks/template.html @@ -0,0 +1 @@ +<span>It works!</span> \ No newline at end of file -- GitLab