[js script] layout modification script is modified(about
authorgeunhui.lim <geunhui.lim@samsung.com>
Thu, 14 May 2015 07:17:35 +0000 (16:17 +0900)
committergeunhui.lim <geunhui.lim@samsung.com>
Thu, 14 May 2015 07:17:35 +0000 (16:17 +0900)
toc-modification)

Change-Id: I0000123400000000000000000000000000007800
Signed-off-by: geunhui.lim <geunhui.lim@samsung.com>
org.tizen.devtools/html/scripts/showhide.js
org.tizen.gettingstarted/html/scripts/showhide.js
org.tizen.guides/html/scripts/showhide.js
org.tizen.tutorials/html/scripts/showhide.js
org.tizen.web.apireference/html/scripts/showhide.js

index 460630c..aed9d55 100644 (file)
@@ -131,8 +131,12 @@ $(document).ready(function(){
                }
                $('#contents').css('padding-top', $('.help_breadcrumbs').outerHeight()*(7/6));
                $('a.top').css('bottom', $('#footer').outerHeight());
-               $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
-
+               
+               if($('#navigation').length) {
+                       $('a.top').css('left', $('#navigation').position()['left'] + (($('#navigation').outerWidth() - $('a.top').outerWidth())/2));
+               } else {
+                       $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               }
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
 
                if ($('a.top').is(':visible'))
@@ -147,8 +151,14 @@ $(document).ready(function(){
                $('#container #contents').css('margin-bottom', $('#footer').outerHeight());
                //$('#toc').css('top', $('#toc_border').position()['top'] + 2);
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
-               $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               
+               if($('#navigation').length) {
+                       $('#contents').css('right', $(window).width() - $('#navigation').position()['left'] + 5);
                //$('#toc').css('width', $('#toc_border').width() - 40);
+               } else {
+                       $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               }
+               
                $('#toc').css('width', $('#toc_border').width() - 49);
        };
 
index 460630c..7b3255f 100644 (file)
@@ -131,7 +131,12 @@ $(document).ready(function(){
                }
                $('#contents').css('padding-top', $('.help_breadcrumbs').outerHeight()*(7/6));
                $('a.top').css('bottom', $('#footer').outerHeight());
-               $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               
+               if($('#navigation').length) {
+                       $('a.top').css('left', $('#navigation').position()['left'] + (($('#navigation').outerWidth() - $('a.top').outerWidth())/2));
+               } else {
+                       $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               }
 
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
 
@@ -147,8 +152,14 @@ $(document).ready(function(){
                $('#container #contents').css('margin-bottom', $('#footer').outerHeight());
                //$('#toc').css('top', $('#toc_border').position()['top'] + 2);
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
-               $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               
+               if($('#navigation').length) {
+                       $('#contents').css('right', $(window).width() - $('#navigation').position()['left'] + 5);
                //$('#toc').css('width', $('#toc_border').width() - 40);
+               } else {
+                       $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               }
+               
                $('#toc').css('width', $('#toc_border').width() - 49);
        };
 
index 460630c..7b3255f 100644 (file)
@@ -131,7 +131,12 @@ $(document).ready(function(){
                }
                $('#contents').css('padding-top', $('.help_breadcrumbs').outerHeight()*(7/6));
                $('a.top').css('bottom', $('#footer').outerHeight());
-               $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               
+               if($('#navigation').length) {
+                       $('a.top').css('left', $('#navigation').position()['left'] + (($('#navigation').outerWidth() - $('a.top').outerWidth())/2));
+               } else {
+                       $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               }
 
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
 
@@ -147,8 +152,14 @@ $(document).ready(function(){
                $('#container #contents').css('margin-bottom', $('#footer').outerHeight());
                //$('#toc').css('top', $('#toc_border').position()['top'] + 2);
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
-               $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               
+               if($('#navigation').length) {
+                       $('#contents').css('right', $(window).width() - $('#navigation').position()['left'] + 5);
                //$('#toc').css('width', $('#toc_border').width() - 40);
+               } else {
+                       $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               }
+               
                $('#toc').css('width', $('#toc_border').width() - 49);
        };
 
index 460630c..7b3255f 100644 (file)
@@ -131,7 +131,12 @@ $(document).ready(function(){
                }
                $('#contents').css('padding-top', $('.help_breadcrumbs').outerHeight()*(7/6));
                $('a.top').css('bottom', $('#footer').outerHeight());
-               $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               
+               if($('#navigation').length) {
+                       $('a.top').css('left', $('#navigation').position()['left'] + (($('#navigation').outerWidth() - $('a.top').outerWidth())/2));
+               } else {
+                       $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               }
 
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
 
@@ -147,8 +152,14 @@ $(document).ready(function(){
                $('#container #contents').css('margin-bottom', $('#footer').outerHeight());
                //$('#toc').css('top', $('#toc_border').position()['top'] + 2);
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
-               $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               
+               if($('#navigation').length) {
+                       $('#contents').css('right', $(window).width() - $('#navigation').position()['left'] + 5);
                //$('#toc').css('width', $('#toc_border').width() - 40);
+               } else {
+                       $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               }
+               
                $('#toc').css('width', $('#toc_border').width() - 49);
        };
 
index 460630c..90d2f35 100644 (file)
@@ -131,8 +131,13 @@ $(document).ready(function(){
                }
                $('#contents').css('padding-top', $('.help_breadcrumbs').outerHeight()*(7/6));
                $('a.top').css('bottom', $('#footer').outerHeight());
-               $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
-
+               
+               if($('#navigation').length) {
+                       $('a.top').css('left', $('#navigation').position()['left'] + (($('#navigation').outerWidth() - $('a.top').outerWidth())/2));
+               } else {
+                       $('a.top').css('left', $('#toc-navigation').position()['left'] + (($('#toc-navigation').outerWidth() - $('a.top').outerWidth())/2));
+               }
+               
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
 
                if ($('a.top').is(':visible'))
@@ -147,7 +152,14 @@ $(document).ready(function(){
                $('#container #contents').css('margin-bottom', $('#footer').outerHeight());
                //$('#toc').css('top', $('#toc_border').position()['top'] + 2);
                $('#toc').css('top', $('#toc_border').position()['top'] + 7);
-               $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               
+               if($('#navigation').length) {
+                       $('#contents').css('right', $(window).width() - $('#navigation').position()['left'] + 5);
+               //$('#toc').css('width', $('#toc_border').width() - 40);
+               } else {
+                       $('#contents').css('right', $(window).width() - $('#toc-navigation').position()['left'] + 5);
+               }
+               
                //$('#toc').css('width', $('#toc_border').width() - 40);
                $('#toc').css('width', $('#toc_border').width() - 49);
        };