further oxjs
This commit is contained in:
parent
ca005e8d5d
commit
96e09019b3
|
@ -98,6 +98,19 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Ox.Event.bind(null, "click_about", function() {
|
||||||
|
stDialog("About", "This is about us");
|
||||||
|
});
|
||||||
|
Ox.Event.bind(null, "click_help", function() {
|
||||||
|
var html = "Shortcuts: <br /><br /> \
|
||||||
|
Esc: Pause / Unpause <br /> \
|
||||||
|
Insert: Insert time-code<br /> \
|
||||||
|
PageUp / PageDown: Volume Up / Down<br /> \
|
||||||
|
Double-click in Textarea: insert time-code <br /> \
|
||||||
|
Double-click on video: insert time-code<br /> \
|
||||||
|
Double-click on time-code in textarea: Seek video to time-code. <br />"
|
||||||
|
stDialog("Help", html);
|
||||||
|
});
|
||||||
textArea = new TextArea("txt");
|
textArea = new TextArea("txt");
|
||||||
$('#saveFile').click(saveFile);
|
$('#saveFile').click(saveFile);
|
||||||
$('#saveSrt').click(saveSrt);
|
$('#saveSrt').click(saveSrt);
|
||||||
|
@ -214,3 +227,15 @@ function saveEncore() {
|
||||||
alert("error creating encore compatible subtitle file");
|
alert("error creating encore compatible subtitle file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stDialog(titleTxt, text) {
|
||||||
|
var dialog = new Ox.Dialog({
|
||||||
|
buttons:
|
||||||
|
[
|
||||||
|
{ value: "Close", click: function() { dialog.close(); } }
|
||||||
|
],
|
||||||
|
title: titleTxt
|
||||||
|
}).append(text);
|
||||||
|
dialog.open();
|
||||||
|
return dialog;
|
||||||
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//elem = string (elementId to make TextArea)
|
//elem = string (elementId to make TextArea)
|
||||||
var TextArea = function(elem) {
|
var TextArea = function(elem) {
|
||||||
// this.elem = $('#' + elem);
|
this.elem = $('#' + elem);
|
||||||
var that = this;
|
var that = this;
|
||||||
this.elem = new Ox.Input({'type': 'textarea', 'id': 'textArea'}).attr("id", elem).appendTo('#txtWrapper');
|
// this.elem = new Ox.Input({'type': 'textarea', 'id': 'textArea'}).attr("id", elem).appendTo('#txtWrapper');
|
||||||
this.hasFocus = false;
|
this.hasFocus = false;
|
||||||
this.width = this.elem.width();
|
this.width = this.elem.width();
|
||||||
this.spans = [];
|
this.spans = [];
|
||||||
|
|
|
@ -25,19 +25,12 @@
|
||||||
|
|
||||||
<div id="timeCode">0:00:00.000</div>
|
<div id="timeCode">0:00:00.000</div>
|
||||||
<div id="helpWrapper">
|
<div id="helpWrapper">
|
||||||
Shortcuts: <br /><br />
|
|
||||||
Esc: Pause / Unpause <br />
|
|
||||||
Insert: Insert time-code<br />
|
|
||||||
PageUp / PageDown: Volume Up / Down<br />
|
|
||||||
Double-click in Textarea: insert time-code <br />
|
|
||||||
Double-click on video: insert time-code<br />
|
|
||||||
Double-click on time-code in textarea: Seek video to time-code. <br />
|
|
||||||
Ctrl / Alt: Seek back / forward <input id="seekTime" value="1" /> seconds.
|
Ctrl / Alt: Seek back / forward <input id="seekTime" value="1" /> seconds.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="txtWrapper">
|
<div id="txtWrapper">
|
||||||
|
<textarea id="txt"></textarea><br /> <br />
|
||||||
<!--
|
<!--
|
||||||
<div id="buttonsWrapper">
|
<div id="buttonsWrapper">
|
||||||
<button id="fillMeta" class="button">Enter Metadata</button>
|
<button id="fillMeta" class="button">Enter Metadata</button>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user