summaryrefslogtreecommitdiff
path: root/sites/default/themes/brdo/js/README.txt
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2016-03-22 23:37:17 +0100
committerCtibor Brančík <ctibor@brancik.cz>2016-03-22 23:37:17 +0100
commitd7b6fc5db3337b16e6fa6fa96868ab2195e41520 (patch)
tree343b7c3d25103f05f44cc617917b42062dd2f5d9 /sites/default/themes/brdo/js/README.txt
parentb8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 (diff)
downloadbrdo-d7b6fc5db3337b16e6fa6fa96868ab2195e41520.tar.gz
brdo-d7b6fc5db3337b16e6fa6fa96868ab2195e41520.tar.bz2
Add theme for brdo site.
Diffstat (limited to 'sites/default/themes/brdo/js/README.txt')
-rw-r--r--sites/default/themes/brdo/js/README.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/sites/default/themes/brdo/js/README.txt b/sites/default/themes/brdo/js/README.txt
new file mode 100644
index 000000000..b767eca3b
--- /dev/null
+++ b/sites/default/themes/brdo/js/README.txt
@@ -0,0 +1,14 @@
+Your theme can add JavaScript files in two ways:
+
+1. To add a JavaScript file to all pages on your website, edit your sub-theme's
+ .info file and add a line like this one:
+
+ scripts[] = js/my-jquery-script.js
+
+2. To add a JavaScript file depending on a certain condition, you can add it
+ using some PHP code in a preprocess function:
+
+ drupal_add_js('js/my-jquery-script.js', array('group' => JS_THEME));
+
+ For the full documentation of drupal_add_js(), see:
+ http://api.drupal.org/api/function/drupal_add_js