mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Initial commit
This commit is contained in:
12
web/js/main.js
Executable file
12
web/js/main.js
Executable file
@@ -0,0 +1,12 @@
|
||||
$(function () {
|
||||
$('.dropdown-toggle').dropdown();
|
||||
var mode = $('#sourcecode').attr('language');
|
||||
|
||||
CodeMirror.fromTextArea(document.getElementById("sourcecode"), {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
lineWrapping: true,
|
||||
readOnly: true,
|
||||
mode: mode
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user