Merge "Adding support for rackspace-private-cloud branding param."

This commit is contained in:
Jenkins
2014-01-22 05:20:02 +00:00
committed by Gerrit Code Review
14 changed files with 302 additions and 76 deletions

View File

@@ -93,7 +93,7 @@ public abstract class PDFMojo extends AbstractFoMojo {
/**
* Path to an alternative cover logo.
*
* @parameter expression="${generate-pdf.secondaryCoverLogoPath}" default-value=""
* @parameter expression="${generate-pdf.secondaryCoverLogoPath}"
*/
private String secondaryCoverLogoPath;
@@ -399,7 +399,9 @@ public abstract class PDFMojo extends AbstractFoMojo {
transformer.setParameter("branding", branding);
transformer.setParameter("builtForOpenStack", builtForOpenStack);
transformer.setParameter("coverLogoPath", coverLogoPath);
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
if(null != secondaryCoverLogoPath){
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
}
transformer.setParameter("coverLogoLeft", coverLogoLeft);
transformer.setParameter("coverLogoTop", coverLogoTop);
transformer.setParameter("coverUrl", coverUrl);

View File

@@ -122,7 +122,7 @@ public abstract class WebHelpMojo extends AbstractWebhelpMojo {
/**
* Display built for OpenStack logo?
*
* @parameter expression="${generate-webhelp.builtForOpenStack}" default-value="0"
* @parameter expression="${generate-webhelp.builtForOpenStack}"
*/
private String builtForOpenStack;
@@ -137,7 +137,7 @@ public abstract class WebHelpMojo extends AbstractWebhelpMojo {
/**
* Path to an alternative cover logo.
*
* @parameter expression="${generate-webhelp.secondaryCoverLogoPath}" default-value=""
* @parameter expression="${generate-webhelp.secondaryCoverLogoPath}"
*/
private String secondaryCoverLogoPath;
@@ -464,9 +464,14 @@ public abstract class WebHelpMojo extends AbstractWebhelpMojo {
//if the pdf is generated automatically with webhelp then this will be set.
transformer.setParameter("autoPdfUrl", autoPdfUrl);
transformer.setParameter("builtForOpenStack", builtForOpenStack);
if (null != builtForOpenStack) {
transformer.setParameter("builtForOpenStack", builtForOpenStack);
}
transformer.setParameter("coverLogoPath", coverLogoPath);
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
if (null != secondaryCoverLogoPath) {
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
}
transformer.setParameter("coverLogoLeft", coverLogoLeft);
transformer.setParameter("coverLogoTop", coverLogoTop);
transformer.setParameter("coverUrl", coverUrl);

View File

@@ -352,7 +352,10 @@ public class PDFBuilder {
transformer.setParameter("builtForOpenStack", "0");
}
transformer.setParameter("coverLogoPath", coverLogoPath);
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
if(null != secondaryCoverLogoPath){
transformer.setParameter("secondaryCoverLogoPath", secondaryCoverLogoPath);
}
transformer.setParameter("coverLogoLeft", coverLogoLeft);
transformer.setParameter("coverLogoTop", coverLogoTop);
transformer.setParameter("coverUrl", coverUrl);

View File

@@ -384,6 +384,7 @@
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$coverColor != ''">fill:#<xsl:value-of select="$coverColor"/>;fill-opacity:1</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">fill:#c42126;fill-opacity:1</xsl:when>
<xsl:when test="$branding = 'openstack'">fill:#ce3327;fill-opacity:1</xsl:when>
<xsl:when test="$branding = 'repose'">fill:#A1CAFF;fill-opacity:1</xsl:when>
<xsl:otherwise>fill:#c42126;fill-opacity:1</xsl:otherwise>

View File

@@ -54,7 +54,7 @@
<xsl:param name="coverLogoLeft"/>
<xsl:param name="coverLogoTop"/>
<xsl:param name="coverUrl"/>
<xsl:param name="secondaryCoverLogoPath"/>
<xsl:param name="secondaryCoverLogoPath"><xsl:if test="$branding = 'rackspace-private-cloud'"><xsl:value-of select="concat($cloud.api.cc.image.dir,'/../powered-by-openstack.png')"/></xsl:if></xsl:param>
<xsl:param name="omitCover">0</xsl:param>
<xsl:param name="draft.mode">no</xsl:param>
@@ -925,13 +925,19 @@
<fo:inline color="red">this?</fo:inline>
</xsl:template>
<xsl:param name="builtForOpenStack">0</xsl:param>
<xsl:param name="builtForOpenStack">
<xsl:choose>
<xsl:when test="$branding = 'rackspace-private-cloud'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:template name="book.titlepage.recto">
<xsl:variable name="url">
<xsl:choose>
<xsl:when test="$coverUrl != ''"><xsl:value-of select="$coverUrl"/></xsl:when>
<xsl:when test="$branding = 'rackspace'">docs.rackspace.com/api</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">rackspace.com/cloud/private</xsl:when>
<xsl:when test="$branding = 'openstack'">docs.openstack.org</xsl:when>
<xsl:when test="$branding = 'repose'">www.openrepose.org</xsl:when>
</xsl:choose>
@@ -960,6 +966,7 @@
<xsl:choose>
<xsl:when test="$coverLogoLeft != ''"><xsl:value-of select="$coverLogoLeft"/></xsl:when>
<xsl:when test="$branding = 'rackspace'">5.6in</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">3in</xsl:when>
<xsl:when test="$branding = 'openstack'">5.2in</xsl:when>
<xsl:when test="$branding = 'repose'">3.9in</xsl:when>
<xsl:otherwise>5.6in</xsl:otherwise>
@@ -969,6 +976,7 @@
<xsl:choose>
<xsl:when test="$coverLogoTop != ''"><xsl:value-of select="$coverLogoTop"/></xsl:when>
<xsl:when test="$branding = 'rackspace'">9.28in</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">9.25in</xsl:when>
<xsl:when test="$branding = 'openstack'">9.0in</xsl:when>
<xsl:when test="$branding = 'repose'">4.9in</xsl:when>
<xsl:otherwise>9.0in</xsl:otherwise>
@@ -978,7 +986,10 @@
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="$coverUrl != ''">url(<xsl:value-of select="$coverLogoPath"/>)</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">
<xsl:value-of select="concat('url(',$cloud.api.cc.image.dir,'/../rpc-coverlogo.png)')"/>
</xsl:when>
<xsl:when test="$coverLogoPath != ''">url(<xsl:value-of select="$coverLogoPath"/>)</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('url(',$cloud.api.cc.image.dir,'/../',$branding,'-logo.svg)')"/>
</xsl:otherwise>

View File

@@ -77,12 +77,16 @@
<xsl:param name="autoPdfUrl"></xsl:param>
<xsl:param name="useLatestSuffixInPdfUrl">
<xsl:choose>
<xsl:when test="$branding = 'rackspace'">1</xsl:when>
<xsl:when test="$branding = 'openstack'">0</xsl:when>
<xsl:when test="$webhelp.war != '0' and $webhelp.war != ''">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel">
<xsl:choose>
<xsl:when test="$branding = 'rackspace-private-cloud'">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="appendix.autolabel" select="'A'"/>
<xsl:param name="part.autolabel" select="'I'"/>
@@ -101,19 +105,20 @@
<xsl:param name="suppress.footer.navigation">1</xsl:param>
<xsl:param name="enable.google.analytics">
<xsl:choose>
<xsl:when test="$branding = 'rackspace' and $security = 'external'">1</xsl:when>
<xsl:when test="($branding = 'rackspace' or $branding = 'rackspace-private-cloud') and $security = 'external'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="google.analytics.id">
<xsl:choose>
<xsl:when test="$branding = 'rackspace'">UA-23102455-4</xsl:when>
<xsl:when test="$branding = 'rackspace' or $branding = 'rackspace-private-cloud'">UA-23102455-4</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:param>
<xsl:param name="google.analytics.domain">
<xsl:choose>
<xsl:when test="$branding = 'rackspace'">.rackspace.com</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">.rackspace.com</xsl:when>
<xsl:when test="$branding = 'openstack'">.openstack.org</xsl:when>
<xsl:when test="$branding = 'repose'">.openrepose.org</xsl:when>
<xsl:otherwise/>
@@ -169,10 +174,9 @@ set toc,title
<xsl:param name="disqus_identifier" select="/*/@xml:id"/>
<xsl:param name="disqus.shortname">
<xsl:choose>
<xsl:when test="$branding = 'test'">jonathan-test-dns</xsl:when>
<xsl:when test="$branding = 'rackspace'">rc-api-docs</xsl:when>
<xsl:when test="$branding = 'rackspace-private-cloud'">rackspaceprivateclouddocs</xsl:when>
<xsl:when test="$branding = 'openstack'">openstackdocs</xsl:when>
<xsl:when test="$branding = 'openstackextension'">openstackdocs</xsl:when>
</xsl:choose>
</xsl:param>
@@ -181,7 +185,6 @@ set toc,title
<xsl:choose>
<xsl:when test="$branding = 'openstack'">OpenStack</xsl:when>
<xsl:when test="$branding = 'repose'">Repose</xsl:when>
<xsl:when test="$branding = 'openstackextension'">OpenStack Extension</xsl:when>
<xsl:otherwise>Rackspace</xsl:otherwise>
</xsl:choose>
</xsl:param>
@@ -189,7 +192,6 @@ set toc,title
<xsl:choose>
<xsl:when test="$branding = 'openstack'">http://docs.openstack.org/</xsl:when>
<xsl:when test="$branding = 'repose'">http://openrepose.org/documentation.html</xsl:when>
<xsl:when test="$branding = 'openstackextension'">http://docs-beta.rackspace.com/test/jonathan/OpenstackExtDocs/</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$webhelp.war != '' and $webhelp.war != '0'">/</xsl:when>
@@ -376,7 +378,6 @@ ERROR: Feedback email not set but internal comments are enabled.
<xsl:choose>
<xsl:when test="$branding = 'openstack'">http://www.openstack.org</xsl:when>
<xsl:when test="$branding = 'repose'">http://www.openrepose.org</xsl:when>
<xsl:when test="$branding = 'openstackextension'">http://docs-beta.rackspace.com/test/jonathan/OpenStackExtDocs/</xsl:when>
<xsl:otherwise>http://www.rackspace.com</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
@@ -467,7 +468,6 @@ ERROR: Feedback email not set but internal comments are enabled.
</div>
</div>
<!-- <xsl:if test="$branding = 'rackspace'"> -->
<div id="toolbar" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<div id="toolbar-left">
<xsl:call-template name="breadcrumbs">
@@ -475,16 +475,6 @@ ERROR: Feedback email not set but internal comments are enabled.
</xsl:call-template>
</div>
</div>
<!-- </xsl:if> -->
<!-- <xsl:if test="$branding = 'openstackextension'"> -->
<!-- <div id="toolbar" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> -->
<!-- <div id="toolbar-left"> -->
<!-- <xsl:call-template name="breadcrumbs"> -->
<!-- <xsl:with-param name="home" select="$home"/> -->
<!-- </xsl:call-template> -->
<!-- </div> -->
<!-- </div> -->
<!-- </xsl:if> -->
</xsl:template>
<xsl:template name="webhelptoc">

View File

@@ -45,7 +45,12 @@
<xsl:include href="urn:docbkx:stylesheet-base/xhtml/profile-chunk-code.xsl" />
<xsl:param name="builtForOpenStack">0</xsl:param>
<xsl:param name="builtForOpenStack">
<xsl:choose>
<xsl:when test="$branding = 'rackspace-private-cloud'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<!-- ======================================== -->
<xsl:variable name="preprocessed-nodes">

View File

@@ -1,6 +1,5 @@
#gplusone{display:inline;position:absolute;right:330px;top:.5em}
#rstwitter{vertical-align:text-top;display:inline;position:absolute;right:370px;top:.5em}
tr th .added { color: #E6E6FA; }
tr th .changed {color: #99ff99; }
div.added tr, div.added { background-color: #E6E6FA; }
div.deleted tr, div.deleted { text-decoration: line-through;
@@ -16,35 +15,53 @@ span.off { }
body { font: 12px Verdana, Geneva, sans-serif; }
p, ul, ol, li { font: 10pt Verdana, Geneva, sans-serif; }
p, ul, ol, li, td { font: 10pt Verdana, Geneva, sans-serif; }
h1 { font: 15pt Arial, Helvetica, geneva;
color: #cf2f19;
color: black !important;
}
h2 { font: normal 12pt Arial, Helvetica, geneva;
color: black! important;
color: black !important;
}
#header {
position: fixed;
width: 100%;
height: 95px;
height: 97px;
top: 0;
right: 0;
bottom: auto;
left: 0;
border-bottom: 1px solid #bbc4c5;
z-index: 2000;
background: white url(../images/book_open.png) no-repeat 250px center;
background: #282828 url("../images/main_bg_fade.png") top left no-repeat;
}
#header h1 {
color: #fff;
margin-left: 310px;
}
#header h1, p.breadcrumbs {
margin-left: 300px;
margin-top: 30px;
margin-left: 310px;
}
#header img {
float: left;
margin-left: 20px;
margin-top: 20px;
float: left;
margin-left: 20px;
margin-top: 22px;
}
#header p.breadcrumbs a {
color: #bbb;
}
.ie #leftnavigation {
top: 96px;
}
.chrome #leftnavigation {
top: 92px;
}
#leftnavigation {
@@ -58,9 +75,32 @@ h2 { font: normal 12pt Arial, Helvetica, geneva;
z-index: 1500;
border-right:1px solid #bbc4c5;
padding: 0px;
background-color: #f2f7f7!important;
background-color: #f0f0f0 !important;
}
#treeDiv {
overflow: auto;
position: fixed;
height: auto;
top: 130px;
bottom: 0;
left: 0;
width: 243px;
z-index: 1500;
border-right:2px solid #CCCCCC;
}
#searchDiv {
overflow: auto;
position: fixed;
height: auto;
top: 130px;
bottom: 0;
left: 0;
width: 243px;
z-index: 1500;
border-right:2px solid #CCCCCC;
}
#content {
position: relative;
top: 90px; /* left: 240px;*/
@@ -79,19 +119,22 @@ h2 { font: normal 12pt Arial, Helvetica, geneva;
#navheader {
position: fixed;
top: 65px;
right:4px;
background: #fff;
border-radius: 5px 0px 0px 5px;
padding-left: 10px;
right: 0px;
top: 37px;
}
#content h1, #content h2 { color: #cc0000; }
#content h1, #content h2 { color: black; }
.navfooter { bottom: 2%; }
.highlight { background-color: #c5d3c3; }
.highlightButton{ font-size: 0; }
#content pre.literallayout, #content pre.programlisting
#content pre.literallayout, #content pre.programlisting, #content pre.screen
{
-x-system-font: none;
background-color: silver;
//background-color: silver;
border-bottom-color: #DEDEDE !important;
border-bottom-style: solid !important;
border-bottom-width: 1px !important;
@@ -185,6 +228,7 @@ h2 { font: normal 12pt Arial, Helvetica, geneva;
}
p.breadcrumbs {
display: inline;
margin-bottom: 0px;
margin-top: 33px;
}
@@ -196,7 +240,10 @@ p.breadcrumbs a {
color: #575757;
text-transform: uppercase;
font-size: 10px;
background: url(../images/breadcrumb-arrow.png) no-repeat right center;
}
p.breadcrumbs a:first-child {
background: url(../images/breadcrumb-arrow-white.png) no-repeat right center;
}
p.breadcrumbs a:hover {
@@ -234,6 +281,10 @@ a#showHideButton {
}
.filetree li span a { color: #777; }
#treediv { -webkit-box-shadow: #CCC 0px 1px 2px 0px inset; }
.legal, .legal *{
color: #555;
text-align: center;
@@ -262,10 +313,9 @@ tr th, tr th .internal, tr th .added, tr th .changed
text-align: left;
}
.statustext{
position:fixed;
top:100px;
top:105px;
width: 0%;
height: 0%;
opacity: .3;
@@ -273,28 +323,83 @@ tr th, tr th .internal, tr th .added, tr th .changed
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
white-space: nowrap;
color: red;
font-weight: bold;
color: red;
font-weight: bold;
font-size: 2em;
margin-top: 30px;
}
div.note table, div.note table td, div.note table tr th, div.caution table, div.caution table td, div.caution table tr th, div.important table, div.important table td, div.important table tr th, div.tip table, div.tip table td, div.tip table tr th, div.warning table, div.warning table td, div.warning table tr th{
background: inherit;
color: inherit;
border: 0px !important;
#toolbar {
width: 100%;
height: 33px;
position: fixed;
top: 93px;
z-index: 99;
left: 280px;
color: #333;
line-height: 28px;
padding-left: 10px;
}
/* #content table thead{ */
/* background: #f2f7f7; */
/* color: white; */
/* } */
#toolbar-left {
position: relative;
left: 0px;
}
body p.breadcrumbs {
margin: 0px;
padding: 0px;
line-height: 28px;
}
#content table caption, #content table thead td{
body #content {
position: static;
margin-top: 126px;
top: 0px;
}
#header h1 {
position: fixed;
top: 35px;
left: -15px;
color: white !important;
}
body.sidebar #toolbar{
left: 0px;
}
body.sidebar #toolbar-left{
left: 0px;
}
div#toolbar-left img {
vertical-align: text-top;
}
div.note *, div.caution *, div.important *, div.tip *, div.warning *, div.calloutlist * {
background: inherit !important;
color: inherit !important;
border: inherit !important;
}
div.note p:first-child, div.caution p:first-child, div.important p:first-child, div.tip p:first-child, div.warning p:first-child, div.calloutlist p:first-child {
margin-top: 0px;
}
#content table thead, #content table th{
background: gray;
color: white;
font-weight: bold;
}
#content table caption{
font-weight: bold;
text-align: left;
margin-bottom: 0.25em;
}
#content table td, #content table {
border: 1px solid black;
}
@@ -305,7 +410,100 @@ div.note table, div.note table td, div.note table tr th, div.caution table, div.
#content table {
margin-bottom: 20px;
border-collapse: collapse;
}
*[align = 'center']{
text-align: center;
}
/* tildehash stuff */
form td, form table{
border: inherit !important;
}
#cmtfont {
font-size: 18px;
padding: 4px 0px 0px 3px;
display: inline-block;
}
#cmtdiv {
padding: 2px 4px 4px 4px;
margin: 2px 0px 0px 0px;
border: 2px solid #707070;
background-color: #F5F5F9;
-moz-border-radius: 8px 8px 8px 8px;
-webkit-border-radius: 8px 8px 8px 8px;
border-radius: 8px 8px 8px 8px;
text-align: left;
}
#cmtnumber {
font-size: 18px;
padding: 2px 0px 0px 4px;
font-family: helvetica;
}
#cmtdate {
float: right;
position: relative;
font-style: italic;
top: 6px;
}
#cmtopts {
padding: 3px;
background-color: #E4E4E4;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
span.italic, span.italics{
font-style: italic;
}
div.sidebar{
background-color: silver;
border: 1px solid black;
padding: 10px 10px 10px 10px;
}
.co img {
vertical-align: middle;
}
body div#content div.navfooter table tbody td, body div#content div.navfooter table {
border: 0px solid black;
}
#content .variablelist table, #content .variablelist table td {
border-style: hidden;
}
.olinkdocname{ font-style: italic; }
@media print {
body * {
visibility: hidden;
}
#content, #content * {
visibility: visible;
}
#sidebar, .navfooter {
display: none;
}
#content {
margin: 0 0 0 0;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -19,8 +19,8 @@ $(document).ready(function() {
var $target = $(this.hash);
$target = $target.length && $target
|| $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top - 105;
if (!(this.hash == "#searchDiv" || this.hash == "#treeDiv" || this.hash == "") && $target.length) {
var targetOffset = $target.offset().top - 140;
$('html,body')
.animate({scrollTop: targetOffset}, 200);
return false;
@@ -65,7 +65,7 @@ $(document).ready(function() {
if ($.cookie('ui-tabs-1') === '1') { //search tab is visible
if ($.cookie('textToSearch') != undefined && $.cookie('textToSearch').length > 0) {
document.getElementById('textToSearch').value = $.cookie('textToSearch');
Verifie('diaSearch_Form');
Effectuer_recherche($.cookie('textToSearch'));
searchHighlight($.cookie('textToSearch'));
$("#showHideHighlight").css("display","block");
}
@@ -75,13 +75,13 @@ $(document).ready(function() {
//$("#doSearch").button(); //add jquery button styling to 'Go' button
// When you click on a link to an anchor, scroll down
// 105 px to cope with the fact that the banner
// 140 px to cope with the fact that the banner
// hides the top 95px or so of the page.
// This code deals with the problem when
// you click on a link from another page.
var hash = window.location.hash;
var hash = window.location.hash.replace(/[\(\)\<\>\"\'\=]/g,'');
if(hash){
var targetOffset = $(hash).offset().top - 105;
var targetOffset = $(hash).offset().top - 140;
$('html,body').animate({scrollTop: targetOffset}, 200);
return false;
}
@@ -100,13 +100,13 @@ function syncToc(){
//Setting the background for selected node.
var style = a.getAttribute("style", 2);
if (style != null && !style.match(/background-color: Background;/)) {
a.setAttribute("style", "background-color: #DEE9E9; " + style);
a.setAttribute("style", "background-color: #D8D8D8; " + style);
b.setAttribute("style", "color: black;");
} else if (style != null) {
a.setAttribute("style", "background-color: #DEE9E9; " + style);
a.setAttribute("style", "background-color: #D8D8D8; " + style);
b.setAttribute("style", "color: black;");
} else {
a.setAttribute("style", "background-color: #DEE9E9; ");
a.setAttribute("style", "background-color: #D8D8D8; ");
b.setAttribute("style", "color: black;");
}
}
@@ -140,15 +140,17 @@ function showHideToc() {
if (showHideButton != undefined && showHideButton.hasClass("pointLeft")) {
//Hide TOC
showHideButton.removeClass('pointLeft').addClass('pointRight');
content.css("margin", "0 0 0 0");
content.css("margin", "125px 0 0 0");
leftNavigation.css("display","none");
showHideButton.attr("title", "Show the TOC tree");
$("body").addClass("sidebar");
} else {
//Show the TOC
showHideButton.removeClass('pointRight').addClass('pointLeft');
content.css("margin", "0 0 0 280px");
content.css("margin", "125px 0 0 280px");
leftNavigation.css("display","block");
showHideButton.attr("title", "Hide the TOC Tree");
$("body").removeClass("sidebar");
}
}
@@ -195,4 +197,13 @@ function toggleHighlight(){
} else {
searchHighlight($.cookie('textToSearch'));
}
}
}
/*
CSS Browser Selector v0.4.0 (Nov 02, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
/* End CSS Browser Selector code */

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB