Skip to content

Instantly share code, notes, and snippets.

@dgundi
Created November 6, 2013 00:39
Show Gist options
  • Select an option

  • Save dgundi/7328957 to your computer and use it in GitHub Desktop.

Select an option

Save dgundi/7328957 to your computer and use it in GitHub Desktop.
Hello World custom app landing page
<!DOCTYPE html>
<html>
<head>
<title>Hello world</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.1/underscore-min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script type="text/javascript" src="//cdn.worldsecuresystems.com/bcapi/bcapi-0.0.1.min.js"></script>
</head>
<body>
<p class="message"></p>
Hello world sample app. This is the application's landing page.
<br/>Go to the <a href="second_page.html">second page</a>.
<script>
var access_token = BCAPI.Helper.Site.getAccessToken();
console.log('Authorization complete, the token is ' + access_token + " and is saved in a cookie " + $.cookie('access_token'))
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment