Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
strap:jquery [2020/07/30 10:14]
gerardnico [3.2 - Get]
strap:jquery [2021/01/22 21:13] (current)
Line 3: Line 3:
  
 ===== About ===== ===== About =====
-''jquery'' is available in the [[strap|strap template]] and is required for interactive actions such as the [[ui:search|search bar]] or the [[ui:navbar|collapse of the navbar]]+''jquery'' is available in the [[strap|strap template]] and is used for interactive actions such as
 +  * the [[ui:search|search bar]]  
 +  * or the [[ui:navbar|collapse of the navbar]]
  
 ===== Articles Related ===== ===== Articles Related =====
Line 16: Line 18:
  
 By default, the jquery version is: By default, the jquery version is:
-  * for an anonymous user, the Jquery version of [[Bootstrap|Bootstrap]] <inote warning>Bootstrap does not use Jquery-ui</inote>+  * for an anonymous user, the Jquery version of [[Bootstrap#bootstrapversion|Bootstrap]] <inote warning>Bootstrap does not use Jquery-ui</inote>
   * for a logged-in user, the [[doku>devel:jqueryfaq|Jquery version of Dokuwiki]].   * for a logged-in user, the [[doku>devel:jqueryfaq|Jquery version of Dokuwiki]].
  
-You can change this behavior with the [[#JqueryDoku|JqueryDoku configuration]] in order to use only the DokuWiki Jquery.+You can change this behavior with the [[#JqueryDoku|JqueryDoku configuration]] in order to use only the Jquery bundle of DokuWiki
  
-==== Get ====+==== See ====
  
  
-To get the JQuery Version, you can check: +To get the JQuery Version, you need to open the [[kb>browser:console|Browser console]] and type 
-  * the html headers  +<code javascript>
-  * or open the [[kb>browser:console|Browser console]] and type +
-<console>+
 jQuery().jquery jQuery().jquery
-</console>+// and 
 +jQuery.ui.version 
 +</code>
  
 Example: Example:
Line 36: Line 38:
 ===== Configuration ===== ===== Configuration =====
 ==== jQueryDoku ==== ==== jQueryDoku ====
-The ''JqueryDoku'' configuration tells the stap template to use the Dokuwiki Jquery and not the Bootstrap Jquery Version+The ''JqueryDoku'' configuration tells the stap template to use the Dokuwiki Jquery and not the Bootstrap Jquery Version for anonymous users.
  
 +<note important>
 +It may add inconsistency with Bootstrap. If you need a front-end component that use ''Jquery UI'', [[:support|contact us]] to see if there is not already a ''bootstrap'' component.
 +</note>
 <badge>Since [[:changes|version 1.6]]</badge> <badge>Since [[:changes|version 1.6]]</badge>