Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / assets / src / scripts / scripts.js
diff options
context:
space:
mode:
Commitb5ff668df547b07b4341d07669cb052cd31cf11e (patch)
Author
 metodiew <stanko@metodiew.com>
2020-07-01 16:52:45 +0300
Committer
 metodiew <stanko@metodiew.com>
2020-07-01 16:52:45 +0300
Files208fb4201480148f45cc84151bb902b3371cc12e /wp-content/themes/carmag/assets/src/scripts/scripts.js
tues-interns-2020-b5ff668df547b07b4341d07669cb052cd31cf11e.tar
tues-interns-2020-b5ff668df547b07b4341d07669cb052cd31cf11e.tar.gz
tues-interns-2020-b5ff668df547b07b4341d07669cb052cd31cf11e.zip
Parent93b8cb35070e98c49f101162d096e61799fc8cf3 (diff)
Initial commit of our new Car Mag theme, using DX Starter as a base theme
1 files changed, 21 insertions, 0 deletions
-rw-r--r--wp-content/themes/carmag/assets/src/scripts/scripts.js21
diff --git a/wp-content/themes/carmag/assets/src/scripts/scripts.js b/wp-content/themes/carmag/assets/src/scripts/scripts.js
new file mode 100644
index 0000000..b06e717
--- /dev/null
+++ b/wp-content/themes/carmag/assets/src/scripts/scripts.js
@@ -0,0 +1,21 @@
+jQuery( document ).ready( function ( $ ) {
+ 'use strict';
+ /*
+ |--------------------------------------------------------------------------
+ | Developer mode
+ |--------------------------------------------------------------------------
+ |
+ | Set to true - it will allow printing in the console. Alsways check for this
+ | variables when running tests so you dont forget about certain console.logs.
+ | Id needed for development testing this variable should be used.
+ |
+ */
+ const devMode = function() {
+ return true;
+ };
+
+ // Disable console.log for production site.
+ if ( ! devMode() ) {
+ console.log = function() {};
+ }
+});