summaryrefslogtreecommitdiffstats
path: root/assets/javascript/core/state.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 22:27:25 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 22:27:25 -0700
commit8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23 (patch)
tree4b461eb0fd079105c6e30843ea913765b3a53950 /assets/javascript/core/state.js
parent642a338cb062f39628407c136892fe5f328366f9 (diff)
downloadgitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.zip
gitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.tar.gz
gitbook-8edd5e4b3bcef7c84bf0b557a80e3e93e8f47e23.tar.bz2
Signal and mark progress
Diffstat (limited to 'assets/javascript/core/state.js')
-rw-r--r--assets/javascript/core/state.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/assets/javascript/core/state.js b/assets/javascript/core/state.js
new file mode 100644
index 0000000..fc67d7b
--- /dev/null
+++ b/assets/javascript/core/state.js
@@ -0,0 +1,14 @@
+define([
+ "jQuery"
+], function() {
+ return function() {
+ var $book = $(".book");
+
+ return {
+ '$book': $book,
+
+ 'githubId': $book.data("github"),
+ 'level': $book.data("level")
+ };
+ };
+}); \ No newline at end of file