|
|
@ -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"); |
|
|
|
$('#saveFile').click(saveFile); |
|
|
|
$('#saveSrt').click(saveSrt); |
|
|
@ -214,3 +227,15 @@ function saveEncore() { |
|
|
|
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; |
|
|
|
} |
|
|
|