-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b2dae
commit b52762e
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pre { | ||
resize:both | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
KB.on('dom.ready', function() { | ||
var list = [...document.getElementsByTagName("pre")] | ||
|
||
for (let item of list) { | ||
if (item.scrollHeight > 200) { | ||
item.style.height = "200px" | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace Kanboard\Plugin\RCB; | ||
|
||
use Kanboard\Core\Plugin\Base; | ||
|
||
class Plugin extends Base | ||
{ | ||
public function initialize() | ||
{ | ||
$this->hook->on('template:layout:css', array('template' => 'plugins/RCB/Assets/css/style.css')); | ||
$this->hook->on('template:layout:js', array('template' => 'plugins/RCB/Assets/js/function.js')); | ||
} | ||
|
||
public function getPluginName() | ||
{ | ||
return 'Resizable codeblocks'; | ||
} | ||
|
||
public function getPluginDescription() | ||
{ | ||
return 'Make codeblocks resizable, scrollable and limit their initial height to 200 pixels'; | ||
} | ||
|
||
public function getPluginAuthor() | ||
{ | ||
return 'Tomas Dittmann'; | ||
} | ||
|
||
public function getPluginVersion() | ||
{ | ||
return '1.0.0'; | ||
} | ||
|
||
public function getPluginHomepage() | ||
{ | ||
return "https://github.com/Chaosmeister/RCB"; | ||
} | ||
} |