Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

start of style guide

Benjamin88a3bfea6dc6
diff --git a/doc/style_guide.md b/doc/style_guide.md
new file mode 100644
index 000000000..c04dac866
--- /dev/null
+++ b/doc/style_guide.md
@@ -0,0 +1,23 @@
+# Style Guide
+
+This document is an attempt to normalize the code.
+
+## General
+
+* Indent 4 spaces
+
+
+
+## JavaScript
+* Keep variable declaration at the top of the block
+```
+function varDeclare() {
+ var all, variables, here;
+
+ // then do something with vars
+}
+```
+* If a variable is a jQuery object use a $ at the start of the variable
+` var $element = $('#some_element');`
+* Use camelback notation
+` var camelBack = 'First world lowercase, following words uppercase';`