title: How do I use bootstrap slider in Electron?
body: <p>I am getting the following error when I use bootstrap slider
  (<a href="https://github.com/seiyria/bootstrap-slider" rel="nofollow">https://github.com/seiyria/bootstrap-slider</a>) in my Electron(<a href="http://electron.atom.io/docs/latest/tutorial/quick-start/" rel="nofollow">http://electron.atom.io/docs/latest/tutorial/quick-start/</a>) app :</p>
  
  <p>"Uncaught TypeError: $(...).Slider is not a function"</p>
  
  <p>Earlier I was also struggling with using Jquery but solved it using : 
  <a href="https://github.com/atom/electron/issues/254" rel="nofollow">https://github.com/atom/electron/issues/254</a> :</p>
  
  <p>window.$ = window.jQuery = require('/path/to/jquery');
  instead of regular :</p>
  
   
  
  <p>The reason quoted was 
  Query contains something along this lines:</p>
  
  <pre><code>if ( typeof module === "object" &amp;&amp; typeof module.exports === "object" ) {
    // set jQuery in `module`
  } else {
    // set jQuery in `window`
  }
  </code></pre>
  
  <p>I don't understand what is the right way to use it for bootstrap the slider.</p>
  
  <p>I could see that bootstrap-slider.js has a component dealing with "module" which might be causing the anomaly just like in jquery.</p>
  
  <pre><code>(function(root, factory) {
      if(typeof define === "function" &amp;&amp; define.amd) {
              define(["jquery"], factory);
      } else if(typeof module === "object" &amp;&amp; module.exports) {
              var jQuery; 
              try {   
                      jQuery = require("jquery");
              } catch (err) { 
                      jQuery = null; 
              }       
              module.exports = factory(jQuery);
      } else {
              root.Slider = factory(root.jQuery);
      }       
  </code></pre>
  
  <p>Please tell me how to deal with this.</p>