Changeset 23593 in spip-zone


Ignore:
Timestamp:
Oct 24, 2008, 9:47:17 AM (11 years ago)
Author:
fil@…
Message:

un code plus simple propose par ZiWaM http://www.spip-contrib.net/Ancres-douces#forum409454

Location:
_plugins_/_stable_/ancres_douces
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/ancres_douces/ancres_douces_pipelines.php

    r22336 r23593  
    33
    44// Inclusion des scripts jquery
    5 $flux .= '<script src="'.url_absolue(find_in_path("js/jquery.scrollto.js")).'" type="text/javascript"></script>';
    6 $flux .= '<script src="'.url_absolue(find_in_path("js/jquery.localscroll.js")).'" type="text/javascript"></script>';
     5$flux .= '<script src="'.url_absolue(find_in_path("js/jquery.ancresdouces.js")).'" type="text/javascript"></script>';
    76
    87// Code d'init
    98$flux .= '<script type="text/javascript"><!--
    109if(window.jQuery)jQuery(document).ready(function(){
    11 if(typeof jQuery.localScroll=="function")jQuery.localScroll({hash:true})});
     10if(typeof jQuery.fn.ancresdouces=="function") jQuery("a[href*=#]").ancresdouces();
     11});
    1212// --></script>';
    1313
  • _plugins_/_stable_/ancres_douces/plugin.xml

    r22337 r23593  
    11<plugin>
    22        <nom>Ancres Douces</nom>
    3         <auteur>SarkASmeL, d'apr&egrave;s une id&eacute;e originale Fil</auteur>
    4         <version>1.0</version>
     3        <auteur>SarkASmeL, Fil, ZiWaM</auteur>
     4        <version>1.1</version>
    55        <etat>stable</etat>
    66        <description>
Note: See TracChangeset for help on using the changeset viewer.