summaryrefslogtreecommitdiff
path: root/sites/default/themes/brdo/js/README.txt
blob: b767eca3ba466ed6501569a1a69acf495f3aa488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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