Change comment:
Fix bug
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. evalica1 +XWiki.VincentMassol - Content
-
... ... @@ -220,11 +220,11 @@ 220 220 <!-- For Mouseflow --> 221 221 <script type="text/javascript"> 222 222 var mouseflowPath = document.domain + document.location.pathname; 223 - if ($(window).width() <= 480) mouseflowPath += "/smartphone"; 224 - else if ($(window).width() <= 840) mouseflowPath += "/tablet"; 225 225 var mfq = mfq || []; 226 226 // Depend on the jQuery loaded by RequireJS so that we mouseflow does not load its own jQuery version, breaking require code that depends on a diferent jQuery version/instance. 227 227 require(["jquery"], function() { 226 + if (jQuery(window).width() <= 480) mouseflowPath += "/smartphone"; 227 + else if (jQuery(window).width() <= 840) mouseflowPath += "/tablet"; 228 228 var mf = document.createElement("script"); 229 229 mf.type = "text/javascript"; mf.async = true; 230 230 mf.src = "//cdn.mouseflow.com/projects/72d20ebd-a6f8-48f6-b211-3cf36eadb0ee.js";