Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/js/kDoc.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/kDoc.js')
-rw-r--r--js/kDoc.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/js/kDoc.js b/js/kDoc.js
new file mode 100644
index 0000000..8a65a57
--- /dev/null
+++ b/js/kDoc.js
@@ -0,0 +1,27 @@
+$(document).ready(function(){
+
+var $text = $('#text');
+var fontSize = parseInt($text.css('font-size'));
+
+$('#zoomIn').click(
+ function(){
+ fontSize = fontSize + 2;
+ $text.css('font-size', '' + fontSize + 'px');
+ });
+
+$('#zoomOut').click(
+ function(){
+ fontSize = fontSize - 2;
+ $text.css('font-size', '' + fontSize + 'px');
+ });
+
+var $help = $('#kHelpText').dialog({
+ position:[ "right", "top"],
+ modal:'true',autoOpen:false,width:500,
+ height: 400
+ });
+
+$('#kHeaderHelpBtn').click(function(){ $help.dialog('open');});
+
+
+}); \ No newline at end of file