Changeset 96171 in spip-zone


Ignore:
Timestamp:
Mar 23, 2016, 7:45:22 PM (3 years ago)
Author:
brunobergot@…
Message:

rangement js => javascript + utiliser du js pur pour le script et non un squelette + maj de syntaxe des scripts insérés dans le head

Location:
_plugins_/responsivenav/trunk
Files:
1 deleted
1 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/responsivenav/trunk/responsivenav_pipelines.php

    r96170 r96171  
    2525// on insert le script
    2626function responsivenav_insert_head($flux) {
    27         $flux .= '<script type="text/javascript" src="'.produire_fond_statique('js/responsive-nav.js').'"></script>';
     27        $flux .= '<script type="text/javascript" src="'.find_in_path('js/responsive-nav.js').'"></script>';
    2828
    2929        if (test_plugin_actif('Zpip')){
    30                 $flux .= '<script>$(function() {  var nav = responsiveNav(".menu.menu-container",{jsClass: "js-responsivenav"});}); </script>';
     30                $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ var nav = responsiveNav(".menu.menu-container",{jsClass: "js-responsivenav"}); }); })(jQuery); /*]]>*/ </script>';
    3131        } else {
    32                 $flux .= '<script>$(function() {  var nav = responsiveNav("#nav",{jsClass: "js-responsivenav"});}); </script>';
     32                $flux .= '<script>/*<![CDATA[*/ ;(function($){ $(function(){ var nav = responsiveNav("#nav",{jsClass: "js-responsivenav"}); }); })(jQuery); /*]]>*/ </script>';
    3333        }
    3434
Note: See TracChangeset for help on using the changeset viewer.