Copying almost-finished guide from its development branch into here.
[fsf-giving-guide.git] / v7 / js / magic.js
diff --git a/v7/js/magic.js b/v7/js/magic.js
new file mode 100644 (file)
index 0000000..22392b7
--- /dev/null
@@ -0,0 +1,16 @@
+$(document).ready(function() {
+
+    // Instructs the browser to release the focus from buttons. Could be a Bootstrap bug.
+
+    $(".btn").mouseup(function() {
+        $(this).blur();
+    })
+
+    // Push the 'Actions' pane to the bottom on mobile
+    if ($('body').width() < 960) {
+        $("#actions").insertBefore("#charities");
+    } else {
+        $("#actions").insertAfter("#intro");
+    }
+
+});