Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created February 12, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tleyden/3cdc8fc258faf2357425 to your computer and use it in GitHub Desktop.
Save tleyden/3cdc8fc258faf2357425 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href='/images/couchbase_favicon_0.ico' type="image/x-icon" />
<link rel="icon" href='/images/couchbase_favicon_0.ico' type="image/vnd.microsoft.icon" />
<!-- _____________________________
_______/ Support for legacy browsers \_______________________________________-->
<!--[if lte IE 8]>
<script
type="text/javascript" charset="utf-8"
src="/js/polyfills/html5shiv.js" />
<script
type="text/javascript" charset="utf-8"
src="/js/polyfills/respond.js" />
<![endif]-->
<!--[if IE 9]>
<script
type="text/javascript" charset="utf-8"
src="/js/polyfills/classList.js" />
<![endif]-->
<!--_________________________________________________________________________-->
<script type="text/javascript" charset="utf-8" src="/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery-migrate.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/modules/slick.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/modules/isotope.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/modules/imagesloaded.min.js"></script>
<meta name="apple-mobile-web-app-title" content="Couchbase">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-site-verification" content="1gPO0RaMzKyZJFpS-iyIEnPsWDztwZH0R3vG1VpSwvM" />
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png" />
<!-- LOCAL CSS Libs -->
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="/css/application.css" />
<link rel="stylesheet" href="/css/primary-navigation.css" />
<link rel="stylesheet" href="/css/download.css" />
<link rel="stylesheet" href="/css/product.css" />
<link rel="stylesheet" href="/css/home.css" />
<link rel="stylesheet" href="/css/couchfont.css" />
<link rel="stylesheet" href="/css/couchStyle.css" />
<meta name="description" content="Tutorial for building a Couchbase Lite app for an iOS device"/>
<title>Building your first Couchbase Lite iOS app</title>
<link rel="canonical" href="http://developer.couchbase.com/documentation/mobile/1.1.0/develop/training/build-first-ios-app/index.html"/>
<link rel="stylesheet" href="/css/devportal.css"/>
</head>
<body>
<script>
var overrideCssPath = "/binaries/content/assets/css/overrides.css";
$.ajax({
url: overrideCssPath,
type: 'HEAD',
error: function() { },
success: function()
{
// file exists
$('head').append('<link rel="stylesheet" href="'+overrideCssPath+'"></link>');
}
});
var overrideJsPath = "/binaries/content/assets/js/overrides.js";
$.ajax({
url: overrideJsPath,
type: 'HEAD',
error: function() { },
success: function()
{
// file exists
$.getScript(overrideJsPath);
}
});
</script>
<!-- Google Tag Manager -->
<noscript>
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-MVPNN2" height="0"
width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<script type="text/javascript">
window['jQuery'](document).ready(function() {
function initTagManager(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'//www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
}
initTagManager.apply(window, [window, document, 'script', 'dataLayer', 'GTM-MVPNN2']);
});
</script>
<!-- End Google Tag Manager -->
<!-- ________________
_______/ Body tag start \____________________________________________________-->
<!-- begin - hst:include ref=header -->
<nav class="aux">
<div>
<ul>
<li><a href="/sign-in">Sign In</a> or <a href="/register">Register</a> </li>
</ul>
</div>
</nav>
<!-- Beginning of site.../jsp/base/header.jsp -->
<header role="banner" id="global-header" class="global-header">
<div class="layout-wrapper">
<h1 class="global-header__logo">
<a rel="home" href='/home'>Couchbase</a>
</h1>
<a data-modules="navigation,globalheadersearch"></a>
<nav role="navigation" id="primary-navigation" class="primary-navigation">
<button aria-controls="primary-navigation__wrapper"
aria-pressed="false"
class="primary-navigation__toggler"
type="button">
<span>Menu</span>
</button>
<div id="primary-navigation__wrapper"
class="primary-navigation__wrapper"
aria-expanded="false">
<ul class="primary-navigation__items">
<li class="primary-navigation__item ">
<a href="http://www.couchbase.com/nosql-resources/what-is-no-sql">Why NoSQL?</a>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="http://www.couchbase.com/nosql-databases/couchbase-server">Products</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/couchbase-server">Couchbase Server</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/couchbase-mobile">Couchbase Mobile</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/n1ql">Learn About N1QL</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/get-started-developing-nosql">Get Started</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/downloads">Free Downloads</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="http://www.couchbase.com/use-cases">Use Cases</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/profile-management">Profile Management</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/content-management">Content Management</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/customer-360-view">Customer 360˚ View</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/fraud-detection">Fraud Detection</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/internet-of-everything">Internet of Everything</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/digital-communication">Digital Communication</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/personalization">Personalization</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/mobile-applications">Mobile Applications</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/catalogs">Catalogs</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/use-cases/real-time-big-data">Real-Time Big Data</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="">Services &amp; Training</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://couchbase.com/couchbase-services">Services</a>
</li>
<li class="secondary-navigation__item">
<a href="http://training.couchbase.com/online">Free Online Training</a>
</li>
<li class="secondary-navigation__item">
<a href="http://training.couchbase.com/classes">Classroom Hands-On</a>
</li>
<li class="secondary-navigation__item">
<a href="http://training.couchbase.com/virtual">Virtual Hands-On</a>
</li>
<li class="secondary-navigation__item">
<a href="http://training.couchbase.com/onsite-delivery">On-Site Hands-On</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="http://developer.couchbase.com">Developers</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com">Developer Portal</a>
</li>
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/open-source-projects">Open Source Projects</a>
</li>
<li class="secondary-navigation__item">
<a href="https://forums.couchbase.com">Forums</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/code-of-conduct">Code of Conduct</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="http://www.couchbase.com/nosql-resources">Resources</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/what-is-no-sql">Why NoSQL?</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/webinar">Webinars</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/presentations">Presentations</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/nosql-whitepapers">Whitepapers</a>
</li>
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/guides-and-references">Documentation</a>
</li>
<li class="secondary-navigation__item">
<a href="http://blog.couchbase.com">Blog</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/events">Events</a>
</li>
<li class="secondary-navigation__item">
<a href="http://connect15.couchbase.com/sessions/">Couchbase Connect 2015</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/case-studies">Customer Stories</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item ">
<a href="http://www.couchbase.com/subscriptions-and-support">Subscriptions</a>
</li>
</ul>
<form id="global-header-search"
autocomplete="off"
class="global-header-search global-header-search--js"
action="/search"
aria-expanded="false">
<ul><!--
---><li>
<label for="global-header-search__query">
Search query
</label>
<input
type="search"
placeholder="Search"
name="q"
value=""
id="global-header-search__query">
</li><!--
---><li>
<button type="submit">
<span>Search</span>
</button>
</li><!--
---></ul>
<button aria-controls="global-header-search__items"
aria-pressed="false"
class="global-header-search__toggler"
type="button">
<span>Search</span>
</button><!--
--->
<div style="display: none" about="custom-search-fields">
<input type="hidden"
name="cx"
value="017928787631531434501:3e7lwhjxsom" />
<input type="hidden"
name="cof"
value="FORID:11" />
<input type="hidden"
name="safe"
value="off" />
<input type="hidden"
name="form_build_id"
value="form-RrbKDUhO3kB2MiqBdZHIQI9L4LFE7c3L_s87N2B9BZo" />
<input type="hidden"
name="form_id"
value="google_cse_results_searchbox_form" />
<input type="hidden"
name="siteurl"
value='www.couchbase.com' />
</div>
</form>
</div>
</nav>
<a class="global-header__download-button" href="/downloads">
Download
</a>
</div>
</header>
<!-- End of site.../jsp/base/header.jsp -->
<!-- end - hst:include ref=header -->
<main id="global-content" class="global-content" role="main">
<!-- begin - hst:include ref=main -->
<nav class="section">
<div class="wrapper">
<ul class="level-1">
<li class="primary-navigation__item has-secondary-navigation">
<a href="/guides-and-references">Guides and References</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/guides-and-references#couchbase-server%C2%A040">Couchbase Server</a>
</li>
<li class="secondary-navigation__item">
<a href="/guides-and-references#sdks-anchor">SDKs</a>
</li>
<li class="secondary-navigation__item">
<a href="/guides-and-references#connector-guides-anchor">Connectors</a>
</li>
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/guides-and-references#couchbase-mobile%C2%A0110">Couchbase Mobile</a>
</li>
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/documentation-archive">Documentation Archive</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item ">
<a href="http://developer.couchbase.com/server">Couchbase Server</a>
</li>
<li class="primary-navigation__item ">
<a href="http://developer.couchbase.com/mobile">Couchbase Mobile</a>
</li>
<li class="primary-navigation__item ">
<a href="http://developer.couchbase.com/support">Support</a>
</li>
<li class="primary-navigation__item has-secondary-navigation">
<a href="http://developer.couchbase.com/community">Community</a>
<div class="secondary-navigation">
<ul class="secondary-navigation__items">
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/open-source-projects">Open Source Projects</a>
</li>
<li class="secondary-navigation__item">
<a href="http://forums.couchbase.com/">Community Forums</a>
</li>
<li class="secondary-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/events">Events</a>
</li>
<li class="secondary-navigation__item">
<a href="http://blog.couchbase.com">Blogs</a>
</li>
<li class="secondary-navigation__item">
<a href="http://developer.couchbase.com/experts-and-champions">Experts &amp; Champions</a>
</li>
</ul>
</div>
</li>
<li class="primary-navigation__item ">
<a href="http://developer.couchbase.com/contribute">Contribute</a>
</li>
</ul>
</div>
</nav><!-- Beginning of site.../jsp/base/main.jsp -->
<!-- LEFT NAV assets -->
<script src="/webfiles/1443270696376/js/collapse.js"></script>
<div id="page-template-attributes" data-template-id="" data-template-class="learn-support-sec article-tpl"></div>
<!-- LEFTNAV and ARTICLE -->
<section class="tpl-body">
<div class="wrapper">
<!--
Appears in mobile resolution.
-->
<div class="current-article">
<a href="#" onclick="$('.section-nav').slideToggle();return false;">Develop</a>
</div>
<div class="cols">
<div class="col one-fifth section-nav">
<!--
Appears in desktop resolution.
Hidden in mobile resolution until the current article link is clicked.
-->
<div>
<ul>
<li><a href="/guides-and-references">Couchbase Mobile</a>
<ul><li><a href="/documentation/mobile/1.1.0/get-started/couchbase-mobile-overview/index.html">Get Started</a></li><li><a class="selected" href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/index.html">Develop</a><ul><li><a class="selected" href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/index.html">Training</a><ul><li><a class="selected" href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/index.html">Building your first Couchbase Lite iOS app</a><ul><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/create-new-project/index.html">Creating a new project</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/create-manager-db/index.html">Creating the manager and a database</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/do-crud/index.html">Performing CRUD operations</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/add-sync-gateway.xml/index.html">Add Sync Gateway</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/couchbase-lite-views/index.html">Working with Views</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/understanding-live-query/index.html">Understanding LiveQuery</a></li></ul></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-android-app/index.html">Building your first Couchbase Lite Android app</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-xamarin-android-app/index.html">Building your first Couchbase Lite Xamarin.Android app</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-xamarin-ios-app/index.html">Building your first Couchbase Lite Xamarin.iOS app</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-dotnet-app/index.html">Building your first Couchbase Lite with .NET and WPF</a></li></ul></li><li><a href="/documentation/mobile/1.1.0/develop/guides/modeling/index.html">Guides</a></li><li><a href="/documentation/mobile/1.1.0/develop/references/couchbase-lite/index.html">API References</a></li><li><a href="/documentation/mobile/1.1.0/develop/samples/samples/index.html">Samples</a></li></ul></li></ul></li>
</ul>
</div>
</div>
<div class="col four-fifths article">
<div class="crumbs">
<ul><li><a href="#">Couchbase Mobile</a></li><li><a href="#">Version 1.1.0</a></li><li><a href="/documentation/mobile/1.1.0/develop/training/build-first-ios-app/index.html">Develop</a></li></ul></div>
<div class="story">
<div class="utilities">
<a id="edit-in-github" class="xref github-fork" href="#" target="_blank">Edit this article in GitHub</a>
<div class="prev-next">
<a href="" class="last" id="previousTopic">
<span class="label">Previous Topic</span>
</a>
<a href="" class="next" id="nextTopic">
<span class="label">Next Topic</span>
</a>
</div>
</div>
<div>
<form class="send-feedback-form" action="https://docs.google.com/forms/d/1qGWLvLAPii0M27XEtirYDAjqcRx4bbdbVsHjUXAQ55s/viewform" method="get" target="_blank">
<input name="entry.1497351318" type="hidden"/>
<button class="submit" type="submit" onclick="this.previousSibling.value = location.href;">Send Feedback</button>
</form>
<style>
.send-feedback-form > .submit {
font: 15px Kievit-Regular;
color: #1582a6;
cursor: pointer;
background-color: transparent;
border: none;
float:right;
}
.send-feedback-form > .submit:focus {
outline: none;
}
.send-feedback-form > .submit:hover {
outline: none;
color: #1eb4e5;
}
</style></div>
<div class="body">
<h1>Develop</h1>
<div class="toc">
<div class="class-nav">
<a class="first" href="../../../develop/training/build-first-ios-app/create-new-project/index.html">Get started 〉</a>
</div>
<h2>This class teaches you about</h2>
<ol>
<li><a href="../../../develop/training/build-first-ios-app/create-new-project/index.html">Creating a new project</a></li>
<li><a href="../../../develop/training/build-first-ios-app/create-manager-db/index.html">Creating the manager and a database</a></li>
<li><a href="../../../develop/training/build-first-ios-app/do-crud/index.html">Performing CRUD operations</a></li>
<li><a href="../../../develop/training/build-first-ios-app/add-sync-gateway.xml/index.html">Add Sync Gateway</a></li>
<li><a href="../../../develop/training/build-first-ios-app/couchbase-lite-views/index.html">Working with Views</a></li>
<li><a href="../../../develop/training/build-first-ios-app/understanding-live-query/index.html">Understanding LiveQuery</a></li>
</ol>
</div>
<p> This tutorial shows you how to use Couchbase Lite in your iOS apps. The tutorial assumes you already know how to develop iOS apps and have the latest version of Xcode later installed on your computer. </p>
<p> If you need to learn about iOS programming, a good place to start is by reading Apple’s free tutorial, <a href="https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/index.html#//apple_ref/doc/uid/TP40011343"> Start Developing iOS Apps Today</a>, which provides a hands-on introduction to iOS app development. To access the Apple tutorial, you need to register for a <a href="https://developer.apple.com/register/index.action">free Apple developer account</a> . </p>
<p> The tutorial walks through creating a simple Hello World-style app called <strong>CouchbaseEvents</strong>. By following the tutorial, you'll learn how to create a new Couchbase Lite iOS app, create a database, and interact with the database by using basic CRUD (create, read, update, and delete) operations. </p>
<p> You can follow along with the tutorial and build the <strong>CouchbaseEvents</strong> app yourself, or you can <a href="https://github.com/couchbaselabs/CouchbaseEvents-tutorial">download the CouchbaseEvents code </a> from GitHub. </p>
<h2>Lessons</h2>
<hr>
<dl>
<dt>
<a href="../../../develop/training/build-first-ios-app/create-new-project/index.html">Creating a new project</a>
</dt>
<dd>
Introduction to creating Couchbase Lite app
</dd>
<dt>
<a href="../../../develop/training/build-first-ios-app/create-manager-db/index.html">Creating the manager and a database</a>
</dt>
<dd>
Create a manager and a database for CouchbaseEvents
</dd>
<dt>
<a href="../../../develop/training/build-first-ios-app/do-crud/index.html">Performing CRUD operations</a>
</dt>
<dd>
Create, read, update, and delete documents
</dd>
<dt>
<a href="../../../develop/training/build-first-ios-app/add-sync-gateway.xml/index.html">Add Sync Gateway</a>
</dt>
<dd>
Understanding Sync Gateway and setting up a connection to Couchbase Server
</dd>
<dt>
<a href="../../../develop/training/build-first-ios-app/couchbase-lite-views/index.html">Working with Views</a>
</dt>
<dd>
Introducing Views through code
</dd>
<dt>
<a href="../../../develop/training/build-first-ios-app/understanding-live-query/index.html">Understanding LiveQuery</a>
</dt>
<dd></dd>
</dl></div>
<div class="footer">
<div class="prev-next">
<a href="" class="last" id="previousTopicFooter">
<span class="label">Previous Topic</span>
<span class="topic" id="previousTopicFooterLabel"></span>
</a>
<a href="" class="next" id="nextTopicFooter">
<span class="label">Next Topic</span>
<span class="topic" id="nextTopicFooterLabel"></span>
</a>
</div>
</div><!-- .story .footer -->
</div><!-- .story -->
</div><!-- .col -->
</div><!-- .cols -->
</div><!-- .wrapper -->
<script>
/* Create TOC (Table of Contents) if there is more than 1 h2. */
if($('.story .body h2').length && $('.story .body h2').length > 1){
var i = 1;
$('.story .utilities').append('<div class="toc"><h2>On This Page</h2><ol></ol></div>');
$('.story .body h2').each(function(){
var linkId = "story-h2-" + i;
var text = $(this).text();
$('.story .toc ol').append('<li><a href="#' + linkId + '">' + text + '</a></li>');
$(this).before('<a id="'+ linkId + '" href="#' + linkId + '" class="reader">' + text + '</a>');
i += 1;
});
console.log($('.story .body h2').length);
}
/* Assign GitHub link in body to link in utilities area. */
// When commenting this code back in, remove the custom CSS below as well.
/*
if($('.story .body a.xref').length){
var href = $('.story .body a.xref').attr('href');
$('#edit-in-github').attr('href',href);
}
*/
/* Add classes to elements for standard CSS formatting. */
$('.story ul.ul').addClass('bullets');
$('.story ol.ol').addClass('numbers');
// generate previous and next links
var myLinks = [];
var selectedAnchor = $('.section-nav .selected');
var selectedIndex;
var index = 0;
var previousUrl = "";
//find all anchors in the nav menu
//loop and find index of selected page
$(".section-nav a").each(function() {
var href = $(this).attr("href");
//duplicate URL skip this URL
if(previousUrl == href ){
return true;
}
if (selectedAnchor.attr("href") == href) {
//store index of current page
selectedIndex = index;
}
var navLink = new Object();
navLink.href = href;
navLink.linkName = $(this).html();
myLinks.push(navLink);
previousUrl = href;
index++;
});
if(selectedIndex > 1) {
//set href value and link label for previous topic anchors
$("#previousTopic").attr("href", myLinks[selectedIndex-1].href);
$("#previousTopicFooter").attr("href", myLinks[selectedIndex-1].href);
$("#previousTopicFooterLabel").html(myLinks[selectedIndex-1].linkName);
} else {
//they are on first page hide previous topic link
$("#previousTopic").hide();
$("#previousTopicFooter").hide();
}
if(selectedIndex < myLinks.length-1) {
//set href value and link label for next topic anchors
$("#nextTopic").attr("href", myLinks[selectedIndex+1].href);
$("#nextTopicFooter").attr("href", myLinks[selectedIndex+1].href);
$("#nextTopicFooterLabel").html(myLinks[selectedIndex+1].linkName);
} else {
//they are on last page hide next topic link
$("#nextTopic").hide();
$("#nextTopicFooter").hide();
}
</script>
<style>
#edit-in-github{display:none;}
</style>
</section>
<script>
$(function() {
$('.custom-click-query').collapse({
clickQuery : '.toggle',
open : function() {
this.slideDown(550);
},
close : function() {
this.slideUp(550);
}
});
$(".custom-click-query").bind(
"opened",
function(e, section) {
$(e.target).find('i').removeClass('fa-caret-right')
.addClass('fa-caret-down');
section.$summary.closest('i').removeClass(
'fa-caret-right').addClass('fa-caret-down');
});
$(".custom-click-query").bind(
"closed",
function(e, section) {
$(e.target).find('i').removeClass('fa-caret-down')
.addClass('fa-caret-right');
section.$summary.closest('i').removeClass(
'fa-caret-down').addClass('fa-caret-right');
});
var $tarElement = $('li').children('div');
$tarElement.find('.open .toggle').removeClass('fa-caret-right')
.addClass('fa-caret-down');
$(".toggle").on('click', function() {
$(this).toggleClass('rotate').addClass('perm');
$(this).toggleClass('rotate2');
});
$(".list-link, .list-link li").mouseenter(
function() {
$(this).find('i.toggle').first().removeClass('fader')
.addClass('couch-icon-triangle-right')
}).mouseleave(function() {
$(this).find('i.toggle').first().addClass('fader');
});
$('ul.list-main .selected').parents('ul').css('display', 'block');
});
</script>
<!-- End of site.../jsp/base/main.jsp --><!-- end - hst:include ref=main -->
</main>
<!-- begin - hst:include ref=footer -->
<!-- Beginning of site.../jsp/base/footer.jsp -->
<div id="global-footer" class="global-footer">
<div class="layout-wrapper">
<div class="global-footer__contact">
<a class="cta2 button global-footer__contact__button" href="http://www.couchbase.com/contact">Contact</a>
<ul class="global-footer__contact__social">
<li>
<a class="linkedin" href="http://www.linkedin.com/company/couchbase">LinkedIn</a>
</li>
<li>
<a class="twitter" href="https://twitter.com/couchbase">Twitter</a>
</li>
<li>
<a class="facebook" href="https://www.facebook.com/Couchbase">Facebook</a>
</li>
<li>
<a class="googleplus" href="https://plus.google.com/+CouchbaseServer">Google+</a>
</li>
</ul>
</div>
<nav role="navigation" class="footer-navigation">
<div class="footer-navigation__group">
<h1 class="footer-navigation__title">
<a href="http://www.couchbase.com/nosql-databases/couchbase-server">Products</a>
</h1>
<ul class="footer-navigation__items">
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/what-is-no-sql">Why NoSQL?</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/couchbase-server">Couchbase Server</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/couchbase-mobile">Couchbase Mobile</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-databases/downloads">Download</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/request-pricing">Request Pricing</a>
</li>
</ul>
</div>
<div class="footer-navigation__group--even">
<h1 class="footer-navigation__title">
<a href="http://developer.couchbase.com">Developers</a>
</h1>
<ul class="footer-navigation__items">
<li class="footer-navigation__item">
<a href="http://developer.couchbase.com">Developer Portal</a>
</li>
<li class="footer-navigation__item">
<a href="http://developer.couchbase.com/open-source-projects">Open Source</a>
</li>
<li class="footer-navigation__item">
<a href="http://forums.couchbase.com/">Forum</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/code-of-conduct">Code of Conduct</a>
</li>
</ul>
</div>
<div class="footer-navigation__group">
<h1 class="footer-navigation__title">
<a href="http://www.couchbase.com/nosql-resources">Learn</a>
</h1>
<ul class="footer-navigation__items">
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/webinar">Webinars</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/nosql-whitepapers">Whitepapers</a>
</li>
<li class="footer-navigation__item">
<a href="http://blog.couchbase.com/">Blog</a>
</li>
<li class="footer-navigation__item">
<a href="http://training.couchbase.com/">Training</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/events">Events</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/nosql-resources/presentations">Presentations</a>
</li>
</ul>
</div>
<div class="footer-navigation__group--even">
<h1 class="footer-navigation__title">
<a href="http://www.couchbase.com/about">About</a>
</h1>
<ul class="footer-navigation__items">
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/about">Company</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/news-and-press-releases">News</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/leadership">Leadership</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/careers">Careers</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/case-studies">Customers</a>
</li>
<li class="footer-navigation__item">
<a href="http://www.couchbase.com/partners">Partners</a>
</li>
</ul>
</div>
</nav></div>
</div>
<div role="contentinfo" class="global-sub-footer">
<div class="layout-wrapper">
<p class="legal">
<span class="license">&copy; 2015
<b class="company-name">Couchbase</b> All rights reserved.
</span>
<a href="http://support.couchbase.com/home">Customer Login</a>
<a href="http://www.couchbase.com/terms-of-service">Terms of Service</a>
<a href="http://www.couchbase.com/privacy-policy">Privacy Policy</a>
<a href="http://www.couchbase.com/trademark-policy">Trademark Policy</a>
</p>
<p class="languages">
<a href="http://www.couchbase.com">English</a>
<a href="http://www.couchbase.com/fr">Francais</a>
<a href="http://www.couchbase.com/de">Deutsch</a>
<a href="http://www.couchbase.com/jp">日本</a>
<a href="http://www.couchbase.com/kr">한국어</a>
<a href="http://www.couchbase.com/cn">繁體中文</a>
</p>
</div>
</div>
<!-- End of site.../jsp/base/footer.jsp -->
<!-- end - hst:include ref=footer -->
<!-- _____________________________________
_______/ Javascript includes below this line \_______________________________-->
<!-- Require_js bootstrap for app-specific JS module support -->
<!--<a href="/js/main.js" />-->
<script
type="text/javascript"
src="/js/vendor/require.js" ></script>
<script type="text/javascript" src="/js/modules/prism.js"></script>
<script rel="main"
type="text/javascript"
src="/js/main.js" ></script>
<div about="hst head contributions">
</div>
<!-- begin - hst:include ref=google-adwords -->
<!-- end - hst:include ref=google-adwords -->
<!-- Marketo -->
<script type="text/javascript" defer async>
$(document).ready(function() {
var scriptUrl = "//munchkin.marketo.net/munchkin.js";
$.getScript(scriptUrl, function onMarketoScriptLoaded() {
tryInitMunchkin();
})
});
function tryInitMunchkin() {
if (typeof window['Munchkin'] !== 'undefined') {
window['Munchkin'].init('302-GJY-034');
} else {
setTimeout(tryInitMunchkin, 250);
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment