summaryrefslogtreecommitdiffstats
path: root/res/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'res/script.js')
-rw-r--r--res/script.js21
1 files changed, 20 insertions, 1 deletions
diff --git a/res/script.js b/res/script.js
index f45ab90..0d01be1 100644
--- a/res/script.js
+++ b/res/script.js
@@ -1,6 +1,6 @@
$(function(){
-
+ /* hide blocks */
$('div.d, div.f').click(function (e) {
if (e.target !== this) return;
$(this).toggleClass('hide');
@@ -8,6 +8,7 @@ $(function(){
e.stopPropagation();
});
+ /* collapse parameters */
$('span.params, span.return').click(function (e) {
if (e.target !== this) return;
$(this).toggleClass('short');
@@ -15,10 +16,12 @@ $(function(){
e.stopPropagation();
});
+ /* hide internal funcs */
$('#internal').change(function(){
$('div.i').toggle();
});
+ /* hide functions */
$('span.name').click(function(e){
if (e.target !== this) return;
@@ -29,4 +32,20 @@ $(function(){
e.preventDefault();
e.stopPropagation();
});
+
+ /* mark important */
+ $('span.time').click(function(e){
+ if (e.target !== this) return;
+
+ $(this).closest('div.f').toggleClass('mark');
+
+ e.preventDefault();
+ e.stopPropagation();
+ });
+
+ /* hide internal funcs */
+ $('#marked').change(function(){
+ $('div.f').toggle();
+ $('div.f.mark').show();
+ });
}); \ No newline at end of file