Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a30b69d
commit dadaeae
Showing
15 changed files
with
531 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Starter project for client side JavaScript using JQuery | ||
|
||
This is a pure client side application that will connect to any [prismic.io](https://prismic.io) repository. It uses the prismic.io JavaScript developement kit, and provide a few helpers to integrate with JQuery and a templating engine. | ||
|
||
> This project embed a very simple Micro templating engine (http://ejohn.org/blog/javascript-micro-templating/), but you can easily switch it by any other JavaScript templating engine you want. | ||
It uses the browser `sessionStorage` to store the access token when you interactively login to preview the future of your repository. Meaning that to preview another release than **Master**, a modern browser supporting HTML5 is required. | ||
|
||
## How to start? | ||
|
||
Edit the `script/prismic-configuration.js` file to make the application point to the correct repository: | ||
|
||
``` | ||
var Configuration = { | ||
// -- API endpoint | ||
apiEndpoint: 'https://lesbonneschoses.prismic.io/api' | ||
} | ||
``` | ||
|
||
Open the `index.html` in your browser. Alternatively you can also launch a local Web server using the `server.sh` script and open the home page at http://localhost:8000/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body.loading { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>JavaScript starter</title> | ||
<link href="css/main.css" media="all" rel="stylesheet" type="text/css"> | ||
<script src="vendor/jquery-1.9.0.min.js"></script> | ||
<script src="vendor/handlebars-1.0.0.js"></script> | ||
<script src="scripts/fragments.js"></script> | ||
<script src="scripts/api.js"></script> | ||
<script src="scripts/helpers.js"></script> | ||
</head> | ||
<body> | ||
|
||
<h1>Page not found</h1> | ||
|
||
<p> | ||
<a href="index.html">Back to home</a> | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.