Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
HTML
<script>
 
	function hidePageTitle() {
		AJS.$("#splitter-content #title-text").css("display", "none");
		AJS.$("#splitter-content .aui-page-panel #content").css("width", "100%");
		AJS.$("#splitter-content .aui-page-panel #content").css("min-width", "100%");
		AJS.$("#splitter-content #main #main-header #title-heading #breadcrumb-section").css("margin-bottom", "20px");
		AJS.$("#splitter-content #main #main-header").css("width", "100%");
		AJS.$("#splitter-content #main #main-header").css("min-width", "100%");
 
		// Hide the breadcrumb
		AJS.$("div#breadcrumb-section").css("display", "none");
		
		// Increment the maximum width of the content
		AJS.$('#content .center').css("max-width", "1200px");
	}
 
	AJS.toInit(function () {
		
 		hidePageTitle();
 
		// Find out the initial value of the sidebar width and set a cookie
		jQuery.cookie("showsidebar", AJS.$("div#splitter-sidebar").width(), {path:'/' });
		// Find out the initial state of sidebar and set a cookie
		jQuery.cookie("resetsidebar", jQuery.cookie("doc-sidebar"), {path:'/' });

		// If the sidebar is visible, hide it and also the split bar
		if (AJS.$("div#splitter-sidebar").width() > 0) {
			AJS.$(".vsplitbar").hide();
			AJS.$("div#splitter-sidebar").width(0);
 
			// Expand the splitter contents to the whole browser window
			AJS.$('#splitter-content').css({'width':'100%', 'left':'0'});
		};

		AJS.$("#splitter-button").parent().hide();

		// The unload function runs when the user navigates away from the page
		jQuery(window).bind('beforeunload', function() {
			// Read the cookie to find out where the sidebar was originally
			var origstate = jQuery.cookie("showsidebar");
			
			// If the sidebar is now hidden and it wasn't originally, show it.
			if (AJS.$("div#splitter-sidebar").width() != origstate) {
				AJS.$(".vsplitbar").show();
				AJS.$("div#splitter-sidebar").width(origstate);
				AJS.$('#splitter-content').css({'width':'100%', 'left':'"+origstate+"'});
			};
 
			// Restore the status of the doc sidebar status cookie
			jQuery.cookie("doc-sidebar", jQuery.cookie("resetsidebar"), {path:'/'});
			
			// Delete the local cookies
			jQuery.cookie("showsidebar", null, {path:'/'});
			jQuery.cookie("resetsidebar", null, {path:'/'});
		});
	});

 </script>
HTML
<style>
/* Top bar Show or Hide sidebar button */
#doctheme-anchor {
    display: none;
}
/* Hide  Breadcrumb */
div#breadcrumb-section {display: none;}
/* Hide the splitter and the sidebar */
#splitter .vsplitbar {display: none;}
div#splitter-sidebar {display: none;}
/* Help, login and user menus */
/*#help-menu-link, #login-link, #user-menu-link {
	display: none;
}*/
#content .clearboth {
    clear: both;
}
#content .w1024-pad {
    padding: 0px 10px 5px 10px;
}
#content .center {
    margin: 0 auto !important;
    text-align: center;
    max-width: 941px;
}
#content .margin-top {
    margin-top: 30px;
}
#content .home-box {
    width: 245px;
    /*min-width: 245px;*/
    float: left;
    display: block;
    position: relative;
    min-height: 120px;
    overflow: hidden;
    cursor: pointer;
    
    text-align: left;
    padding-bottom: 5px;
    
    margin-right: 0;
    height: 290px;
    position: relative;
}
/* This after and before (with the relative position) are to draw a triangle when hovering */
#content .home-box:hover:after {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 0px;
    height: 0px;
    border-left: 50px solid #84c361;
    border-bottom: 50px solid transparent;
}
#content .home-box:hover:before {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 0px;
    height: 0px;
}
#content .home-box a:hover, .home-box h2 a:hover {
    text-decoration: none;
}
#content .home-box h2 {
    position: relative;
    font-size: 17px;
    font-weight: bold;
    /*color: #4f5454;*/
    color: #646466;
    line-height: 1.3em;
    margin: 5px 15px;
    padding-left: 0px;
    
    top: 206px;
}
#content .home-box .description {
    position: relative;
    font-size: 13px;
    font-weight: normal;
    width: auto;
    /*color: #4f5454;*/
    color: #646466;
    line-height: 19px;
    margin: 5px 15px;
    padding-left: 0px;
    
    top: 202px;
}
#content .homeicon {
    position: absolute;
    top: 5px;
    left: 0px;
    border-radius: 7px;
    
    width: 100%;
    height: 209px;
}
#hm-xctu,#hm-xbjlib,#hm-xmbedlib,#hm-wck,#hm-zmk,#hm-dmk,#hm-zbcloudk,#hm-xacp,#hm-wfcloudk,#hm-suprt,#hm-default {
    margin-left: 20px; /*30px;*/
    margin-top: 20px; /*50px;*//*margin-top: 30px;*/
    border: solid 1px #dbdbdb; /*#0092cc;*/
    padding: 0;
    
    /* Round border */
    /*-moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;*/
}
/* This is to have only 3 elements per line, when we have more we should REMOVE this */
#hm-xctu,#hm-wck,#hm-xacp {
    /*margin-left: 15%;*/
}
/* This is to center the content with 2 lines, when we have MORE THAN 2 LINES we should REMOVE this */
#hm-zbcloudk,#hm-xacp,#hm-wfcloudk,#hm-suprt {
    /*margin-top: 30px;*/
}
/* The following 3 items are to center the last line with only two elements: Wi-Fi Cloud Kit and Support links
   Remove when there are MORE THAN 2 ELEMENTS IN THE LAST LINE */
#content .center {
    min-width: 1200px;
}
#content .w1024-pad {
    padding: 0px 10px 5px 120px;
}
#hm-wfcloudk {
    margin-left: 287px;
}
/* A default theme */
#hm-default:hover, #hm-default:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-default {
    background: url(../../../../../../../digi/xbjlib/images/number1.png) no-repeat;
    background-position: center;
}
/* TM XCTU */
#hm-xctu:hover, #hm-xctu:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-xctu {
    background: url(../../../../../../../digi/common/images/xctu-doc.png) no-repeat;
    background-position: center;
    background-size: 70%;
}
/* TM XBee Java Library */
#hm-xbjlib:hover, #hm-xbjlib:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-xbjlib {
	background: url(../../../../../../../digi/common/images/xbjlib-icon.png) no-repeat;
    background-position: center;
	background-size: 70%;
	/*opacity: 0.9;
    filter: alpha(opacity=90);*/ /* For IE8 and earlier */
}
/* TM XBee mbed Library */
#hm-xmbedlib:hover, #hm-xmbedlib:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-xmbedlib {
	background: url(../../../../../../../digi/common/images/xbmbedlib_icon.png) no-repeat;
    background-position: center;
	background-size: 70%;
}
/* TM Wireless Connectivity Kit */
#hm-wck:hover, #hm-wck:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-wck {
    background: url(../../../../../../../digi/common/images/wck_logo-small.png) no-repeat;
    background-position: center;
    background-size: 70%;
}
/* TM XBee ZigBee Mesh Kit */
#hm-zmk:hover, #hm-zmk:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-zmk {
    background: url(../../../../../../../digi/common/images/zmk_logo.png) no-repeat;
    background-position: center;
    background-size: 45%;
}
/* TM XBee-PRO 900HP DigiMesh Kit */
#hm-dmk:hover, #hm-dmk:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-dmk {
    background: url(../../../../../../../digi/common/images/dmk-logo.png) no-repeat;
    background-position: 50% 25%;
    background-size: 85%;
}
/* TM ZigBee Cloud Kit */
#hm-zbcloudk:hover, #hm-zbcloudk:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-zbcloudk {
    background: url(../../../../../../../digi/common/images/zb_cloud_kit-cloud-msimple.png) no-repeat;
    background-position: center;
    background-size: 70%;
}
/* TM XBee/Arduino Compatible Coding Platform Kit */
#hm-xacp:hover, #hm-xacp:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-xacp {
    background: url(../../../../../../../digi/common/images/xbaccp_logo.png) no-repeat;
    background-position: 50% 25%;
    background-size: 63%;
}
/* TM WiFi Cloud Kit */
#hm-wfcloudk:hover, #hm-wfcloudk:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-wfcloudk {
    background: url(../../../../../../../digi/common/images/wf_cloud_kit-cloud-msimple.png) no-repeat;
    background-position: center;
    background-size: 70%;
}
/* TM Support */
#hm-suprt:hover, #hm-suprt:active {
    /*border: solid 1px #00a05b;*/
    border: solid 1px #84C361;
    text-decoration: none;
}
#img-suprt {
    background: url(../../../../../../../digi/common/images/doc_folders_nonGr.png) no-repeat;
    background-position: center;
}
</style>
HTML
<div class="clearboth w1024-pad center margin-top" style="display: table;">
    <!--- TM XCTU -->
    <a href="http://www.digi.com/resources/documentation/digidocs/html/xctu_ug.htm">
		<div id="hm-xctu" class="home-box" title="XCTU">
			<h2>XCTU</h2>
			<div class="description">XCTU is the tool used to configure and manage Digi’s RF radios</div> 
			<div id="img-xctu" class="homeicon"></div>
		</div>
	</a>
    <!--- TM XBee Java Library -->
	<!--<a href="../XBJLIB">-->
    <a href="http://www.digi.com/resources/documentation/digidocs/90001438/Default.htm">
		<div id="hm-xbjlib" class="home-box" title="XBee Java Library">
			<h2>XBee® Java Library</h2>
			<div class="description">An easy-to-use API in Java to interact with XBee radio frequency modules</div> 
			<div id="img-xbjlib" class="homeicon" ></div>
		</div>
	</a>
    <!--- TM XBee mbed Library -->
    <a href="https://developer.mbed.org/teams/Digi-International-Inc/code/XBeeLib">
		<div id="hm-xmbedlib" class="home-box" title="XBee mbed Library">
			<h2>XBee® mbed Library</h2>
			<div class="description">A ready-to-import mbed extension to develop XBee projects on the mbed platforms</div> 
			<div id="img-xmbedlib" class="homeicon" ></div>
		</div>
	</a>
    <!-- TM Wireless Connectivity Kit -->
	<a href="http://www.digi.com/resources/documentation/digidocs/html/wirelessconnect_kit.htm">
		<div id="hm-wck" class="home-box" title="Wireless Connectivity Kit">
			<h2>Wireless Connectivity Kit</h2>
			<div class="description">Learn how to use XBee® RF modules for device connectivity and sensor networking</div>
			<div id="img-wck" class="homeicon"></div>
		</div>
	</a>
    <!-- TM XBee ZigBee Mesh Kit -->
	<a href="../XBeeZigBeeMeshKit">
		<div id="hm-zmk" class="home-box" title="XBee ZigBee Mesh Kit">
			<h2>XBee ZigBee® Mesh Kit</h2>
            <div class="description">A great way to start with ZigBee, one of the most popular mesh networking protocols</div>
			<div id="img-zmk" class="homeicon"></div>
		</div>
	</a>
    <!-- TM XBee-PRO 900HP DigiMesh Kit -->
	<a href="http://www.digi.com/resources/documentation/digidocs/html/xb900hpdm_kit.htm">
		<div id="hm-dmk" class="home-box" title="XBee-PRO 900HP DigiMesh Kit">
			<h2 style="font-size: 16px; top: 190px;">XBee-PRO® 900HP DigiMesh® Kit</h2>
            <div class="description" style="top: 186px;">DigiMesh is ideal for power sensitive applications relying upon batteries</div>
			<div id="img-dmk" class="homeicon"></div>
		</div>
	</a>
    <!-- TM ZigBee Cloud Kit -->
	<a href="http://www.digi.com/products/wireless-wired-embedded-solutions/zigbee-rf-modules/xbee-zigbee-cloud-kit">
		<div id="hm-zbcloudk" class="home-box" title="XBee ZigBee Cloud Kit">
			<h2>XBee ZigBee® Cloud Kit</h2>
			<div class="description">Learn how to bring IP connectivity to your ZigBee network</div>
			<div id="img-zbcloudk" class="homeicon" ></div>
		</div>
	</a>
    <!-- TM XBee/Arduino Compatible Coding Platform Kit -->
	<a href="../XBeeArduinoCodingPlatform">
		<div id="hm-xacp" class="home-box" title="XBee/Arduino Compatible Coding Platform">
			<h2 style="font-size: 16px; top: 190px;">XBee/Arduino Compatible Coding Platform</h2>
            <div class="description" style="top: 186px;">Learn how XBees can kick-start your designs and engineering creativity</div>
			<div id="img-xacp" class="homeicon" ></div>
		</div>
	</a>
    <!-- TM WiFi Cloud Kit -->
	<a href="http://www.digi.com/lp/xbeewificloudkit/">
		<div id="hm-wfcloudk" class="home-box" title="XBee Wi-Fi Cloud Kit">
			<h2>XBee Wi-Fi Cloud Kit</h2>
			<div class="description">The easiest way to add wireless is now the easiest way to connect to the Internet of Things</div> 
			<div id="img-wfcloudk" class="homeicon" ></div>
		</div>
	</a>
    <!-- TM Support -->
	<a href="http://www.digi.com/support/supporttype?type=documentation" style="text-align: center; margin: 0 auto;">
		<div id="hm-suprt" class="home-box" title="Support">
			<h2>Support and Documentation</h2>
			<div class="description">Help and documentation for XBee Kits</div> 
			<div id="img-suprt" class="homeicon"></div>
		</div>
	</a>
	<!--- TM Hidden
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    --->
	<!--- TM Hidden
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    --->
	<!--- TM Hidden
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    --->
	<!--- TM Hidden 
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    --->
	<!--- TM Hidden
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    --->
	<!--- TM Hidden
    <a href=".">
		<div id="hm-default" class="home-box" title="Default">
			<h2>Blah blah</h2>
			<div class="description">Blah blah blah blah</div> 
			<div id="img-default" class="homeicon"></div>
		</div>
	</a>
    -->
</div>