Browse Source

costumscroll

figureslibres 5 years ago
parent
commit
2a317602a6
38 changed files with 839 additions and 49 deletions
  1. 2 2
      user/pages/01._recits/01._preambule/text.md
  2. 0 0
      user/pages/01._recits/02._11-avril-2017/text.md
  3. 1 1
      user/pages/01._recits/03._3-mai-2017/text.md
  4. 5 5
      user/pages/01._recits/04._6-juin-2017/text.md
  5. 2 2
      user/pages/01._recits/05._19-juin-2017/text.md
  6. 0 0
      user/pages/01._recits/06._6-juillet-2017/text.md
  7. 0 1
      user/pages/01._recits/07._12-juillet-2017/text.md
  8. 1 1
      user/pages/01._recits/08._25-juillet-2017/text.md
  9. 0 0
      user/pages/01._recits/09._26-juillet-2017/text.md
  10. 1 1
      user/pages/01._recits/10._5-septembre-2017/text.md
  11. 1 1
      user/pages/01._recits/11._12-septembre-2017/text.md
  12. 1 1
      user/pages/01._recits/12._13-septembre-2017/text.md
  13. 0 0
      user/pages/01._recits/13._3-octobre-2017/text.md
  14. 2 2
      user/pages/01._recits/14._4-octobre-2017/text.md
  15. 2 2
      user/pages/01._recits/15._5-octobre-2017/text.md
  16. 1 1
      user/pages/02._interviews/01._pascale/text.md
  17. 1 1
      user/pages/02._interviews/02._marie-preston/text.md
  18. 1 1
      user/pages/02._interviews/03._andrea/text.md
  19. 1 1
      user/pages/02._interviews/04._victoria/text.md
  20. 1 1
      user/pages/02._interviews/05._oceane-et-laurent/text.md
  21. 1 1
      user/pages/02._interviews/06._martine/text.md
  22. 0 0
      user/pages/02._interviews/07._manon-dumond/text.md
  23. 3 3
      user/pages/02._interviews/08._nadia/text.md
  24. 1 1
      user/pages/02._interviews/09._solen/text.md
  25. 1 1
      user/pages/02._interviews/10._marie-w/text.md
  26. 1 1
      user/pages/02._interviews/11._olivier/text.md
  27. 1 1
      user/pages/03._images/_6b/image.md
  28. 1 1
      user/pages/03._images/_amap/image.md
  29. 2 2
      user/pages/03._images/_ampadaoc/image.md
  30. 1 1
      user/pages/03._images/_andreea/image.md
  31. 1 1
      user/pages/03._images/_attieke/image.md
  32. 1 1
      user/pages/03._images/_attieke2/image.md
  33. 1 1
      user/pages/03._images/_attieke3/image.md
  34. 1 1
      user/pages/03._images/_balbergere/image.md
  35. 1 1
      user/pages/03._images/_basiliquefranciade/image.md
  36. 774 0
      user/themes/r2c/js/jquery.malihu.PageScroll2id.js
  37. 23 8
      user/themes/r2c/js/script.js
  38. 2 0
      user/themes/r2c/templates/partials/base.html.twig

+ 2 - 2
user/pages/01._recits/01._preambule/text.md

@@ -4,10 +4,10 @@ image_align: left
 id: rct_preambule
 ---
 
-En Janvier 2017, [Bachir Soussi-Chiadmi](http://bachirsoussichiadmi.net/?target=_blank) m’invitait à le rejoindre sur une période de la [résidence](http://www.synesthesie.com/residences/bachir_soussi_chiadmi/convivialite.html?target=_blank) qu’il menait à [Synesthésie](mp_syn#), centre de recherche et de création artistique alors basé [place du Caquet](#mp_syn) à Saint-Denis.
+En Janvier 2017, [Bachir Soussi-Chiadmi](http://bachirsoussichiadmi.net/?target=_blank&classes=linkext) m’invitait à le rejoindre sur une période de la [résidence](http://www.synesthesie.com/residences/bachir_soussi_chiadmi/convivialite.html?classes=linkext&target=_blank) qu’il menait à [Synesthésie](#mp_syn), centre de recherche et de création artistique alors basé [place du Caquet](#mp_syn) à Saint-Denis.
 Depuis quelques années, Bachir travaille autour de l’alternative que sont les outils libres et open-sources dans le champ de la création. Avec Synesthésie, il a conduit une recherche qui questionne la convivialité des outils numériques que nous utilisons quotidiennement et la manière dont nous habitons les espaces de vie qu’ils composent.
 
-Pour ce projet, " Réseau de convivialité", il s’agissait de penser une approche qui permettrait de répertorier les activités « invisbles ou informelles » - les espaces discrets de convivialité - des habitants du quartier centre de Saint Denis, autour de Synesthésie. L’un des enjeux de cette enquête était de questionner l’outil numérique comme vecteur de convivialité.  C’est à partir de ces premières pistes que le projet a pu évoluer par la suite.
+Pour ce projet, "Réseau de convivialité", il s’agissait de penser une approche qui permettrait de répertorier les activités « invisbles ou informelles » - les espaces discrets de convivialité - des habitants du quartier centre de Saint Denis, autour de Synesthésie. L’un des enjeux de cette enquête était de questionner l’outil numérique comme vecteur de convivialité.  C’est à partir de ces premières pistes que le projet a pu évoluer par la suite.
 
 Cette interface est la restitution de cette expérience :
 On y trouve, sous forme de journal de bord, le récit restituant les étapes du projets, de rencontres en rencontres, ainsi que des éléments visuels, des interviews et des cartographies. Les modules proposés par l’interface permettent de croiser ces différents éléments pour une lecture globale de l’expérience.

File diff suppressed because it is too large
+ 0 - 0
user/pages/01._recits/02._11-avril-2017/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/01._recits/03._3-mai-2017/text.md


+ 5 - 5
user/pages/01._recits/04._6-juin-2017/text.md

@@ -4,9 +4,9 @@ image_align: left
 id: rct_060617
 ---
 
-Je fais aujourd'hui la connaissance de [Loyce](), en stage à Synesthésie et étudiante à [Paris 8](#mp_paris8#img_paris8). 
-Je teste avec elle le format d’interview que j'ai imaginé et la mise en contact avec une tierce personne. Elle m’envoie vers [Marie.P](#img_mariep#), artiste et enseignante à Paris 8: elle a été l'une de ses étudiantes.
-[Bachir,]() qui a justement travaillé avec elle lors d’un atelier à Synesthésie, nous met en lien directement par mail.
-Dans l'après-midi, je découvre l’emplacement de la [Maison Jaune](#mp_maisonjaune#img_mj1), alors fermée. Sur la devanture, une affiche présente un projet de [Tricot Partage](#img_tp), et indique qu'il est porté par une personne dénommée Pascale. Je retrouve les infos sur la [page Facebook](https://www.facebook.com/maisonjaunesaintdenis/?target=_blank) et contacte Pascale pour lui proposer une rencontre. 
-Peu familière de l’environnement, l’aspect labyrinthique de la [Dalle](#mp_dalle#img_ilot8), faite de coins et de recoins, ne m’invite pas à m’y ballader : la formation de l’espace accentue chez moi le sentiment d’être perdue.
+Je fais aujourd'hui la connaissance de [Loyce](#lk_loyce), en stage à Synesthésie et étudiante à [Paris 8](#mp_paris8,#img_paris8). 
+Je teste avec elle le format d’interview que j'ai imaginé et la mise en contact avec une tierce personne. Elle m’envoie vers [Marie.P](#img_mariep#lk_mariep), artiste et enseignante à Paris 8: elle a été l'une de ses étudiantes.
+[Bachir](#lk_bachir), qui a justement travaillé avec elle lors d’un atelier à Synesthésie, nous met en lien directement par mail.
+Dans l'après-midi, je découvre l’emplacement de la [Maison Jaune](#mp_maisonjaune,#img_mj1), alors fermée. Sur la devanture, une affiche présente un projet de [Tricot Partage](#img_tp), et indique qu'il est porté par une personne dénommée Pascale. Je retrouve les infos sur la [page Facebook](https://www.facebook.com/maisonjaunesaintdenis/?target=_blank?classes=linkext) et contacte Pascale pour lui proposer une rencontre. 
+Peu familière de l’environnement, l’aspect labyrinthique de la [Dalle](#mp_dalle,#img_ilot8), faite de coins et de recoins, ne m’invite pas à m’y ballader : la formation de l’espace accentue chez moi le sentiment d’être perdue.
 Avant de repartir, je déambulle dans le centre de Saint-Denis, marchant au hasard. J’essaye de me rendre plus familière du centre mais ai tendance à graviter peu loin de la [station de métro ](#mp_metrobasilique)que je connais. 

+ 2 - 2
user/pages/01._recits/05._19-juin-2017/text.md

@@ -7,11 +7,11 @@ id: rct_190617
 Il y a quelques jours, j'ai échangé avec [Pasacale](#int_pascale) dont j'avais eu vent du travail sur [l'affiche](#img_mj2) de la Maison Jaune.
 En début d'après midi, nous nous retrouvons à la Maison Jaune, où Pascale me fait découvrir le lieu. Elle m’explique : _« C’est une maison de quartier qui a ouvert au mois de Novembre. l’idée c’est que cet espace soit mis à disposition des habitants, qu’on y organise des choses mais aussi qu’il y ai de la place pour leurs propres initiatives… »_
 Pascale a découvert le lieu en octobre 2016, en passant devant. Elle n’habite pas loin et était justement à la recherche d’un lieu pour son projet de [tricot-partage](#img_tp2), un projet de tricot solidaire.
-Je lui demande de m’en dire plus sur son projet et fait vite le lien avec le [patchwork](#img_tp) de formes tricotés, monumental, qui git au sol de la Maison Jaune :
+Je lui demande de m’en dire plus sur son projet et fait vite le lien avec le [patchwork](#img_tp) de formes tricotées, monumental, qui git au sol de la Maison Jaune :
 _« Le projet de tricot solidaire c’était, au vu de la grosse vague de froid, de réaliser ,avec la participation du public, des carrés de laine de 30cm de côté assemblés en couvertures. Ces couvertures sont à destination de la Croix Rouge et distribuées lors des maraudes. L’envie était aussi que chacun, tout âge confondu, puisse participer à sa manière, en venant pour tricoter, pour apprendre ou pour transmettre. »_
 Pour se fournir en laine, Pascale a lancé un appel au don dans Saint-Denis, qui a vite débordé du territoire par le biais d’internet. Elle a reçu des colis de Paris, de [Bretagne](#mp_bretagne), de [Nice](#mp_nice)..
 _« j’ai même eu un message d’une personne dans un petit village_ [d’Ardèche](#mp_ardeche)_, qui m’a écrit en me disant qu’elle tricoterait des petits carrés de laine pour nous les envoyer. »_
-Ici, internet est un vecteur indéniable de rencontre, mais le _«fil participatif» _comme l’appel Pascale, s’est construit de bien des manières. Le projet est nomade dans Saint-Denis, permettant au groupe de rencontrer d’avantage de personnes et d’ouvrir le réseau initial. Les moyens de communication du projet sont aussi divers. Les habitants de Saint-Denis ont vent du projet par des relais Facebook, des affichages en ville, des flyers.. jusqu’à l’impression même du flyer :
+Ici, internet est un vecteur indéniable de rencontre, mais le _"fil participatif" _comme l’appel Pascale, s’est construit de bien des manières. Le projet est nomade dans Saint-Denis, permettant au groupe de rencontrer d’avantage de personnes et d’ouvrir le réseau initial. Les moyens de communication du projet sont aussi divers. Les habitants de Saint-Denis ont vent du projet par des relais Facebook, des affichages en ville, des flyers.. jusqu’à l’impression même du flyer :
 _« Il y a quelques temps,_ [chez l’imprimeur,](#mp_imprimeur) _je faisais mes photocopies pour l’évenement à la Maison Jaune. Au moment de régler j’ai posé mes copies sur le comptoir. Une dame était derrière moi et a lu «tricot ». Elle m’a demandé ce qu’était l’événement et elle est venue. Depuis, elle vient régulièrement et nous sommes assez liées. »_
 
 Dans le collectif, c’est sur l’application[ what’s app]() que la communication interne s'organise. Vers l’extérieur, c’est plutôt [Facebook]().

File diff suppressed because it is too large
+ 0 - 0
user/pages/01._recits/06._6-juillet-2017/text.md


File diff suppressed because it is too large
+ 0 - 1
user/pages/01._recits/07._12-juillet-2017/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/01._recits/08._25-juillet-2017/text.md


File diff suppressed because it is too large
+ 0 - 0
user/pages/01._recits/09._26-juillet-2017/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/01._recits/10._5-septembre-2017/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/01._recits/11._12-septembre-2017/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/01._recits/12._13-septembre-2017/text.md


File diff suppressed because it is too large
+ 0 - 0
user/pages/01._recits/13._3-octobre-2017/text.md


File diff suppressed because it is too large
+ 2 - 2
user/pages/01._recits/14._4-octobre-2017/text.md


+ 2 - 2
user/pages/01._recits/15._5-octobre-2017/text.md

@@ -4,9 +4,9 @@ image_align: left
 id: rct_05102017
 ---
 
-Lorsque j’avais rencontré Pascale la première fois, elle m’avait évoqué la crêperie [« La Bigoudène » ](#img_labigoudene#mp_labigoudene)comme un lieu assez fréquenté par les Dyonisiens. Je profite d’avoir du temps ce midi pour y déjeuner.
+Lorsque j’avais rencontré Pascale la première fois, elle m’avait évoqué la crêperie [« La Bigoudène » ](#img_labigoudene,#mp_labigoudene)comme un lieu assez fréquenté par les Dyonisiens. Je profite d’avoir du temps ce midi pour y déjeuner.
 Un rayon de soleil bienvenu me permet de m’installer en terrasse, avec vue sur [la Basilique](#img_basilique). Autour de moi, j’entend les discussions d’un service de mairie venu déjeuner là.
-Il est 16H lorsque je retrouve [Olivier ](#img_olivier#lk_olivier)au 4 Place Paul Langevin, local de l’[AMAP Court-circuit.](http://www.amap-court-circuit.org/?target=_blank)
+Il est 16H lorsque je retrouve [Olivier ](#img_olivier,#lk_olivier)au 4 Place Paul Langevin, local de l’[AMAP Court-circuit.](http://www.amap-court-circuit.org/?target=_blank?classes=linkext)
 J’ai pu rencontrer Olivier par le biais d’[Elodie](#lk_elodie), membre de synesthésie. Elle s’est installée recemment sur Saint-Denis dans la colocation d’Olivier dont elle a eu vent par la mailing list de l’AMAP.
 Ce n’est donc pas par hasard que nous nous retrouvons dans [ce local](#mp_amap), car si ma rencontre avec olivier est relié à l’Amap, pour lui, c’est toute sa vie dyonisienne qui l’est.
 En effet, arrivé il y a 3 ans à Saint-Denis, c’est par la rencontre d’une « amapienne » comme il dit, qu’il s’est inscrit à court-circuit et qu’il a pu s’ouvrir sur la ville :

File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/01._pascale/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/02._marie-preston/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/03._andrea/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/04._victoria/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/05._oceane-et-laurent/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/06._martine/text.md


File diff suppressed because it is too large
+ 0 - 0
user/pages/02._interviews/07._manon-dumond/text.md


File diff suppressed because it is too large
+ 3 - 3
user/pages/02._interviews/08._nadia/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/09._solen/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/10._marie-w/text.md


File diff suppressed because it is too large
+ 1 - 1
user/pages/02._interviews/11._olivier/text.md


+ 1 - 1
user/pages/03._images/_6b/image.md

@@ -5,5 +5,5 @@ image_align: left
 id: img_6b
 ---
 
-![](17796078_1456148224417016_51229870372251646_n.jpg)
+[![](17796078_1456148224417016_51229870372251646_n.jpg)](#mp_6b,#lk_6B)
 _Vue du 6B_

+ 1 - 1
user/pages/03._images/_amap/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_amap
 ---
 
-![](AMAP.jpg)
+[![](AMAP.jpg)](#mp_amap,#lk_amap)

+ 2 - 2
user/pages/03._images/_ampadaoc/image.md

@@ -5,5 +5,5 @@ image_align: left
 id: img_amapdoc
 ---
 
-![](Screenshot_20180923_171637.png)
-[Documentaire](https://youtu.be/sl1NwjKTnUY?target=_blank) _sur le fonctionnement de l'AMAP Court-circuit._
+[![](Screenshot_20180923_171637.png)](https://youtu.be/sl1NwjKTnUY?target=_blank?classes=linkext)
+[Documentaire](https://youtu.be/sl1NwjKTnUY?target=_blank?classes=linkext) _sur le fonctionnement de l'AMAP Court-circuit._

+ 1 - 1
user/pages/03._images/_andreea/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_andreea
 ---
 
-![](Andreea-03.png)
+[![](Andreea-03.png)](#int_andreea,#lk_andreea)

+ 1 - 1
user/pages/03._images/_attieke/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_ak
 ---
 
-![](atti%C3%A9k%C3%A9.png)
+[![](atti%C3%A9k%C3%A9.png)](#mp_attieke,#lk_attieke)

+ 1 - 1
user/pages/03._images/_attieke2/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_ak2
 ---
 
-![](attieke.jpg)
+[![](attieke.jpg)](#mp_attieke,#lk_attieke)

+ 1 - 1
user/pages/03._images/_attieke3/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_ak3
 ---
 
-![](atti.png)
+[![](atti.png)](#mp_attieke,#lk_attieke)

+ 1 - 1
user/pages/03._images/_balbergere/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_bb
 ---
 
-![](18010809_765021203657595_2269712870778583840_n.jpg)
+[![](18010809_765021203657595_2269712870778583840_n.jpg)](#mp_chapiteau)

+ 1 - 1
user/pages/03._images/_basiliquefranciade/image.md

@@ -5,4 +5,4 @@ image_align: left
 id: img_basiliquefranciade
 ---
 
-![](34667204_628902687462572_3154718710875291648_n.jpg)
+[![](34667204_628902687462572_3154718710875291648_n.jpg)](#mp_basilique)

+ 774 - 0
user/themes/r2c/js/jquery.malihu.PageScroll2id.js

@@ -0,0 +1,774 @@
+/*
+== Page scroll to id == 
+Version: 1.5.8 
+Plugin URI: http://manos.malihu.gr/page-scroll-to-id/
+Author: malihu
+Author URI: http://manos.malihu.gr
+License: MIT License (MIT)
+*/
+
+/*
+Copyright 2013  malihu  (email: manos@malihu.gr)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+
+;(function($,window,document,undefined){
+	
+	/* plugin namespace, prefix, default selector(s) */
+	
+	var pluginNS="mPageScroll2id",
+		pluginPfx="mPS2id",
+		defaultSelector=".m_PageScroll2id,a[rel~='m_PageScroll2id'],.page-scroll-to-id,a[rel~='page-scroll-to-id'],._ps2id",
+	
+	/* default options */
+	
+		defaults={
+			/* scroll animation speed in milliseconds: Integer */
+			scrollSpeed:1000,
+			/* auto-adjust animation speed (according to target element position and window scroll): Boolean */
+			autoScrollSpeed:true,
+			/* scroll animation easing when page is idle: String */
+			scrollEasing:"easeInOutQuint",
+			/* scroll animation easing while page is scrolling: String */
+			scrollingEasing:"easeOutQuint",
+			/* end of page "smooth scrolling" (auto-adjust the scroll-to position when bottom elements are too short): Boolean */
+			pageEndSmoothScroll:true,
+			/* 
+			page layout defines scrolling direction: String 
+			values: "vertical", "horizontal", "auto" 
+			*/
+			layout:"vertical",
+			/* extra space in pixels for the target element position: Integer */
+			offset:0,
+			/* highlight the main/default selectors or insert a different set: Boolean, String */
+			highlightSelector:false,
+			/* class of the clicked element: String */
+			clickedClass:pluginPfx+"-clicked",
+			/* class of the current target element: String */
+			targetClass:pluginPfx+"-target",
+			/* class of the highlighted element: String */
+			highlightClass:pluginPfx+"-highlight",
+			/* force a single highlighted element each time: Boolean */
+			forceSingleHighlight:false,
+			/* keep element highlighted until next (one element always stays highlighted): boolean */
+			keepHighlightUntilNext:false,
+			/* highlight elements according to their target and next target position (useful when targets have zero dimensions). Non "auto" layouts only: boolean */
+			highlightByNextTarget:false,
+			/* disable plugin below [x,y] screen size: boolean, integer, array ([x,y]) */
+			disablePluginBelow:false,
+			/* enable/disable click events for all selectors */
+			clickEvents:true,
+			/* append hash to URL/address bar */
+			appendHash:false,
+			/* user callback functions: fn */
+			onStart:function(){},
+			onComplete:function(){},
+			/* enable/disable the default selector: Boolean */
+			defaultSelector:false,
+			/* highlight elements now and in the future */
+			live:true,
+			/* set specific live selector(s): String */
+			liveSelector:false
+		},
+	
+	/* vars, constants */
+	
+		selector,opt,_init,_trigger,_clicked,_target,_to,_axis,_offset,_dataOffset,_totalInstances=0,_liveTimer,_speed,
+	
+	/* 
+	---------------
+	methods 
+	---------------
+	*/
+	
+		methods={
+			
+			/* plugin initialization method */
+			
+			init:function(options){
+				
+				/* extend options, store each option in jquery data */
+				
+				var options=$.extend(true,{},defaults,options);
+				
+				$(document).data(pluginPfx,options);
+				opt=$(document).data(pluginPfx);
+				
+				/* check/set jquery (deprecated) selector property if not defined */
+				if(!this.selector){
+					var selectorClass="__"+pluginPfx;
+					this.each(function(){
+						var el=$(this);
+						if(!el.hasClass(selectorClass)){
+							el.addClass(selectorClass);
+						}
+					});
+					this.selector="."+selectorClass;
+				}
+				
+				/* live selector */
+				
+				if(opt.liveSelector) this.selector+=","+opt.liveSelector;
+				
+				/* set selector */
+				
+				selector=(!selector) ? this.selector : selector+","+this.selector;
+				
+				if(opt.defaultSelector){
+					if(typeof $(selector)!=="object" || $(selector).length===0){
+						selector=defaultSelector;
+					}
+				}
+				
+				/* plugin events */
+				
+				if(opt.clickEvents){
+					$(document)
+					
+					.undelegate("."+pluginPfx)
+					
+					.delegate(selector,"click."+pluginPfx,function(e){
+						if(functions._isDisabled.call(null)){
+							functions._removeClasses.call(null);
+							return;
+						}
+						var $this=$(this),
+							href=$this.attr("href"),
+							hrefProp=$this.prop("href");
+						if(href && href.indexOf("#/")!==-1){
+							return;
+						}
+						functions._reset.call(null);
+						_dataOffset=$this.data("ps2id-offset") || 0;
+						if(functions._isValid.call(null,href,hrefProp) && functions._findTarget.call(null,href)){
+							e.preventDefault();
+							_trigger="selector";
+							_clicked=$this;
+							functions._setClasses.call(null,true);
+							functions._scrollTo.call(null);
+						}
+					});
+				}
+				
+				$(window)
+				
+				.unbind("."+pluginPfx)
+				
+				.bind("scroll."+pluginPfx+" resize."+pluginPfx,function(){
+					if(functions._isDisabled.call(null)){
+						functions._removeClasses.call(null);
+						return;
+					}
+					var targets=$("._"+pluginPfx+"-t");
+					targets.each(function(i){
+						var t=$(this),id=t.attr("id"),
+							h=functions._findHighlight.call(null,id);
+						functions._setClasses.call(null,false,t,h);
+						if(i==targets.length-1){functions._extendClasses.call(null);}
+					});
+				});
+				
+				/* plugin has initialized */
+				
+				_init=true;
+				
+				/* setup selectors, target elements, basic plugin classes etc. */
+				
+				functions._setup.call(null);
+				
+				/* 
+				monitor for elements matching the current highlight selector and call plugin setup when found (now and in the future) 
+				to manually enable/disable: $(document).data("mPS2id").live=boolean 
+				*/
+				
+				functions._live.call(null);
+			},
+			
+			/* scrollTo method */
+			
+			scrollTo:function(id,options){
+				if(functions._isDisabled.call(null)){
+					functions._removeClasses.call(null);
+					return;
+				}
+				if(id && typeof id!=="undefined"){
+					functions._isInit.call(null);
+					var defaults={
+							layout:opt.layout,
+							offset:opt.offset,
+							clicked:false
+						},
+						options=$.extend(true,{},defaults,options);
+					functions._reset.call(null);
+					_axis=options.layout;
+					_offset=options.offset;
+					id=(id.indexOf("#")!==-1) ? id : "#"+id;
+					if(functions._isValid.call(null,id) && functions._findTarget.call(null,id)){
+						_trigger="scrollTo";
+						_clicked=options.clicked;
+						if(_clicked){
+							functions._setClasses.call(null,true);
+						}
+						functions._scrollTo.call(null);
+					}
+				}
+			},
+			
+			/* destroy method */
+			
+			destroy:function(){
+				$(window).unbind("."+pluginPfx);
+				$(document).undelegate("."+pluginPfx).removeData(pluginPfx);
+				$("._"+pluginPfx+"-t").removeData(pluginPfx);
+				functions._removeClasses.call(null,true);
+			}
+		},
+	
+	/* 
+	---------------
+	functions
+	---------------
+	*/
+	
+		functions={
+			
+			/* checks if screen size ([x,y]) is below the value(s) set in disablePluginBelow option */
+			
+			_isDisabled:function(){
+				var e=window,a="inner",
+					val=opt.disablePluginBelow instanceof Array ? [opt.disablePluginBelow[0] || 0,opt.disablePluginBelow[1] || 0] : [opt.disablePluginBelow || 0,0];
+				if(!("innerWidth" in window )){
+					a="client";
+					e=document.documentElement || document.body;
+				}
+				return e[a+"Width"]<=val[0] || e[a+"Height"]<=val[1];
+			},
+			
+			/* checks if href attribute is valid */
+			
+			_isValid:function(href,hrefProp){
+				if(!href){
+					return;
+				}
+				hrefProp=(!hrefProp) ? href : hrefProp;
+				var str=(hrefProp.indexOf("#/")!==-1) ? hrefProp.split("#/")[0] : hrefProp.split("#")[0],
+					loc=window.location.toString().split("#")[0];
+				return href!=="#" && href.indexOf("#")!==-1 && (str==="" || decodeURIComponent(str)===decodeURIComponent(loc));
+			},
+			
+			/* setup selectors, target elements, basic plugin classes etc. */
+			
+			_setup:function(){
+				var el=functions._highlightSelector(),i=1,tp=0;
+				return $(el).each(function(){
+					var $this=$(this),href=$this.attr("href"),hrefProp=$this.prop("href");
+					if(functions._isValid.call(null,href,hrefProp)){
+						var id=(href.indexOf("#/")!==-1) ? href.split("#/")[1] : href.split("#")[1],t=$("#"+id); 
+						if(t.length>0){
+							if(opt.highlightByNextTarget){
+								if(t!==tp){
+									if(!tp){t.data(pluginPfx,{tn:"0"});}else{tp.data(pluginPfx,{tn:t});}
+									tp=t;
+								}
+							}
+							if(!t.hasClass("_"+pluginPfx+"-t")){
+								t.addClass("_"+pluginPfx+"-t");
+							}
+							t.data(pluginPfx,{i:i});
+							if(!$this.hasClass("_"+pluginPfx+"-h")){
+								$this.addClass("_"+pluginPfx+"-h");
+							}
+							var h=functions._findHighlight.call(null,id);
+							functions._setClasses.call(null,false,t,h);
+							_totalInstances=i;
+							i++
+							if(i==$(el).length){functions._extendClasses.call(null);}
+						}
+					}
+				});
+			},
+			
+			/* returns the highlight selector */
+			
+			_highlightSelector:function(){
+				return (opt.highlightSelector && opt.highlightSelector!=="") ? opt.highlightSelector : selector;
+			},
+			
+			/* finds the target element */
+			
+			_findTarget:function(str){
+				var val=(str.indexOf("#/")!==-1) ? str.split("#/")[1] : str.split("#")[1], 
+					el=$("#"+val);
+				if(el.length<1 || el.css("position")==="fixed"){
+					if(val==="top"){
+						el=$("body");
+					}else{
+						return;
+					}
+				}
+				_target=el;
+				if(!_axis){
+					_axis=opt.layout;
+				}
+				_offset=functions._setOffset.call(null);
+				_to=[(el.offset().top-_offset[0]).toString(),(el.offset().left-_offset[1]).toString()]; 
+				_to[0]=(_to[0]<0) ? 0 : _to[0];
+				_to[1]=(_to[1]<0) ? 0 : _to[1];
+				return _to;
+			},
+			
+			/* sets the offset value (pixels, objects etc.) */
+			
+			_setOffset:function(){
+				if(!_offset){
+					_offset=(opt.offset) ? opt.offset : 0;
+				}
+				if(_dataOffset){
+					_offset=_dataOffset;
+				}
+				var val,obj,y,x;
+				switch(typeof _offset){
+					case "object":
+					case "string":
+						val=[(_offset["y"]) ? _offset["y"] : _offset,(_offset["x"]) ? _offset["x"] : _offset];
+						obj=[(val[0] instanceof jQuery) ? val[0] : $(val[0]),(val[1] instanceof jQuery) ? val[1] : $(val[1])];
+						if(obj[0].length>0){ // js/jquery object
+							y=obj[0].height();
+							if(obj[0].css("position")==="fixed"){ // include position for fixed elements
+								y+=obj[0][0].offsetTop;
+							}
+						}else if(!isNaN(parseFloat(val[0])) && isFinite(val[0])){ // numeric string
+							y=parseInt(val[0]);
+						}else{
+							y=0; // non-existing value
+						}
+						if(obj[1].length>0){ // js/jquery object
+							x=obj[1].width();
+							if(obj[1].css("position")==="fixed"){ // include position for fixed elements
+								x+=obj[1][0].offsetLeft;
+							}
+						}else if(!isNaN(parseFloat(val[1])) && isFinite(val[1])){ // numeric string
+							x=parseInt(val[1]);
+						}else{
+							x=0; // non-existing value
+						}
+						break;
+					case "function":
+						val=_offset.call(null); // function (single value or array)
+						if(val instanceof Array){
+							y=val[0];
+							x=val[1];
+						}else{
+							y=x=val;
+						}
+						break;
+					default:
+						y=x=parseInt(_offset); // number
+				}
+				return [y,x];
+			},
+			
+			/* finds the element that should be highlighted */
+			
+			_findHighlight:function(id){
+				var wLoc=window.location,loc=wLoc.toString().split("#")[0],locPath=wLoc.pathname;
+				return $("._"+pluginPfx+"-h[href='#"+id+"'],._"+pluginPfx+"-h[href='"+loc+"#"+id+"'],._"+pluginPfx+"-h[href='"+locPath+"#"+id+"'],._"+pluginPfx+"-h[href='#/"+id+"'],._"+pluginPfx+"-h[href='"+loc+"#/"+id+"'],._"+pluginPfx+"-h[href='"+locPath+"#/"+id+"']");
+			},
+			
+			/* sets plugin classes */
+			
+			_setClasses:function(c,t,h){
+				var cc=opt.clickedClass,tc=opt.targetClass,hc=opt.highlightClass;
+				if(c && cc && cc!==""){
+					$("."+cc).removeClass(cc);
+					_clicked.addClass(cc);
+				}else if(t && tc && tc!=="" && h && hc && hc!==""){
+					if(functions._currentTarget.call(null,t)){
+						t.addClass(tc);
+						h.addClass(hc);
+					}else{
+						if(!opt.keepHighlightUntilNext || $("."+hc).length>1){
+							t.removeClass(tc);
+							h.removeClass(hc);
+						}
+					}
+				}
+			},
+			
+			/* extends plugin classes */
+			
+			_extendClasses:function(){
+				var tc=opt.targetClass,hc=opt.highlightClass,
+					$tc=$("."+tc),$hc=$("."+hc),ftc=tc+"-first",ltc=tc+"-last",fhc=hc+"-first",lhc=hc+"-last";
+				$("._"+pluginPfx+"-t").removeClass(ftc+" "+ltc);
+				$("._"+pluginPfx+"-h").removeClass(fhc+" "+lhc);
+				if(!opt.forceSingleHighlight){
+					$tc.slice(0,1).addClass(ftc).end().slice(-1).addClass(ltc);
+					$hc.slice(0,1).addClass(fhc).end().slice(-1).addClass(lhc);
+				}else{
+					if(opt.keepHighlightUntilNext && $tc.length>1){
+						$tc.slice(0,1).removeClass(tc); $hc.slice(0,1).removeClass(hc);
+					}else{
+						$tc.slice(1).removeClass(tc); $hc.slice(1).removeClass(hc);
+					}
+				}
+			},
+			
+			/* removes plugin classes */
+			
+			_removeClasses:function(destroy){
+				$("."+opt.clickedClass).removeClass(opt.clickedClass);
+				$("."+opt.targetClass).removeClass(opt.targetClass+" "+opt.targetClass+"-first "+opt.targetClass+"-last");
+				$("."+opt.highlightClass).removeClass(opt.highlightClass+" "+opt.highlightClass+"-first "+opt.highlightClass+"-last");
+				if(destroy){
+					$("._"+pluginPfx+"-t").removeClass("_"+pluginPfx+"-t");
+					$("._"+pluginPfx+"-h").removeClass("_"+pluginPfx+"-h");
+				}
+			},
+			
+			/* checks if target element is in viewport */
+			
+			_currentTarget:function(t){
+				var o=opt["target_"+t.data(pluginPfx).i],
+					dataTarget=t.data("ps2id-target"),
+					rect=dataTarget && $(dataTarget)[0] ? $(dataTarget)[0].getBoundingClientRect() : t[0].getBoundingClientRect();
+				if(typeof o!=="undefined"){
+					var y=t.offset().top,x=t.offset().left,
+						from=(o.from) ? o.from+y : y,to=(o.to) ? o.to+y : y,
+						fromX=(o.fromX) ? o.fromX+x : x,toX=(o.toX) ? o.toX+x : x;
+					return(
+						rect.top >= to && rect.top <= from && 
+						rect.left >= toX && rect.left <= fromX
+					);
+				}else{
+					var wh=$(window).height(),ww=$(window).width(),
+						th=dataTarget ? $(dataTarget).height() : t.height(),tw=dataTarget ? $(dataTarget).width() : t.width(),
+						base=1+(th/wh),
+						top=base,bottom=(th<wh) ? base*(wh/th) : base,
+						baseX=1+(tw/ww),
+						left=baseX,right=(tw<ww) ? baseX*(ww/tw) : baseX,
+						val=[rect.top <= wh/top,rect.bottom >= wh/bottom,rect.left <= ww/left,rect.right >= ww/right];
+					if(opt.highlightByNextTarget){
+						var tn=t.data(pluginPfx).tn;
+						if(tn){
+							var rectn=tn[0].getBoundingClientRect();
+							if(opt.layout==="vertical"){
+								val=[rect.top <= wh/2,rectn.top > wh/2,1,1];
+							}else if(opt.layout==="horizontal"){
+								val=[1,1,rect.left <= ww/2,rectn.left > ww/2];
+							}
+						}
+					}
+					return(val[0] && val[1] && val[2] && val[3]);
+				}
+			},
+			
+			/* scrolls the page */
+			
+			_scrollTo:function(){
+				_speed=functions._scrollSpeed.call(null);
+				_to=(opt.pageEndSmoothScroll) ? functions._pageEndSmoothScroll.call(null) : _to;
+				var _scrollable=$("html,body"),
+					speed=(opt.autoScrollSpeed) ? functions._autoScrollSpeed.call(null) : _speed,
+					easing=(_scrollable.is(":animated")) ? opt.scrollingEasing : opt.scrollEasing,
+					_t=$(window).scrollTop(),_l=$(window).scrollLeft();
+				switch(_axis){
+					case "horizontal":
+						if(_l!=_to[1]){
+							functions._callbacks.call(null,"onStart");
+							_scrollable.stop().animate({scrollLeft:_to[1]},speed,easing).promise().then(function(){
+								functions._callbacks.call(null,"onComplete");
+							});
+						}
+						break;
+					case "auto":
+						if(_t!=_to[0] || _l!=_to[1]){
+							functions._callbacks.call(null,"onStart");
+							if(navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/)){ // mobile fix
+								var left;
+								_scrollable.stop().animate({pageYOffset:_to[0],pageXOffset:_to[1]},{
+								    duration:speed,
+								    easing:easing,
+								    step:function(now,fx){
+								        if(fx.prop=='pageXOffset'){
+								            left=now;
+								        }else if(fx.prop=='pageYOffset'){
+								            window.scrollTo(left,now);
+								        }
+								    }
+								}).promise().then(function(){
+									functions._callbacks.call(null,"onComplete");
+								});
+							}else{
+								_scrollable.stop().animate({scrollTop:_to[0],scrollLeft:_to[1]},speed,easing).promise().then(function(){
+									functions._callbacks.call(null,"onComplete");
+								});
+							}
+						}
+						break;
+					default:
+						if(_t!=_to[0]){
+							functions._callbacks.call(null,"onStart");
+							_scrollable.stop().animate({scrollTop:_to[0]},speed,easing).promise().then(function(){
+								functions._callbacks.call(null,"onComplete");
+							});
+						}
+				}
+			},
+			
+			/* sets end of page "smooth scrolling" position */
+			
+			_pageEndSmoothScroll:function(){
+				var _dh=$(document).height(),_dw=$(document).width(),
+					_wh=$(window).height(),_ww=$(window).width();
+				return [((_dh-_to[0])<_wh) ? _dh-_wh : _to[0],((_dw-_to[1])<_ww) ? _dw-_ww : _to[1]];
+			},
+			
+			/* sets animation speed (link-specific speed via ps2id-speed-VALUE class on link or link's parent) */
+			
+			_scrollSpeed:function(){
+				var speed=opt.scrollSpeed;
+				if(_clicked && _clicked.length){
+					_clicked.add(_clicked.parent()).each(function(){
+						var $this=$(this);
+						if($this.attr("class")){
+							var clickedClasses=$this.attr("class").split(" ");
+							for(var index in clickedClasses){
+								if(String(clickedClasses[index]).match(/^ps2id-speed-\d+$/)){
+									speed=clickedClasses[index].split("ps2id-speed-")[1];
+									break;
+								}
+							}
+						}
+					});
+				}
+				return parseInt(speed);
+			},
+			
+			/* sets the auto-adjusted animation speed */
+			
+			_autoScrollSpeed:function(){
+				var _t=$(window).scrollTop(),_l=$(window).scrollLeft(),
+					_h=$(document).height(),_w=$(document).width(),
+					val=[
+						_speed+((_speed*(Math.floor((Math.abs(_to[0]-_t)/_h)*100)))/100),
+						_speed+((_speed*(Math.floor((Math.abs(_to[1]-_l)/_w)*100)))/100)
+					];
+				return Math.max.apply(Math,val);
+			},
+			
+			/* user callback functions */
+			
+			_callbacks:function(c){
+				if(!opt){
+					return;
+				}
+				this[pluginPfx]={
+					trigger:_trigger,clicked:_clicked,target:_target,scrollTo:{y:_to[0],x:_to[1]}
+				};
+				switch(c){
+					case "onStart":
+						//append hash to URL/address bar
+						if(opt.appendHash && window.history && window.history.pushState && _clicked && _clicked.length){
+							var h="#"+_clicked.attr("href").split("#")[1];
+							if(h!==window.location.hash) history.pushState("","",h);
+						}
+						opt.onStart.call(null,this[pluginPfx]);
+						break;
+					case "onComplete":
+						opt.onComplete.call(null,this[pluginPfx]);
+						break;
+				}
+			},
+			
+			/* resets/clears vars and constants */
+			
+			_reset:function(){
+				_axis=_offset=_dataOffset=false;
+			},
+			
+			/* checks if plugin has initialized */
+			
+			_isInit:function(){
+				if(!_init){
+					methods.init.apply(this);
+				}
+			},
+			
+			/* live fn */
+			
+			_live:function(){
+				_liveTimer=setTimeout(function(){
+					if(opt.live){
+						if($(functions._highlightSelector()).length!==_totalInstances){
+							functions._setup.call(null);
+						}
+					}else{
+						if(_liveTimer){clearTimeout(_liveTimer);}
+					}
+					functions._live.call(null);
+				},1000);
+			},
+			
+			/* extends jquery with custom easings (as jquery ui) */
+			
+			_easing:function(){
+				$.easing.easeInQuad=$.easing.easeInQuad || function(x){
+					return x*x;
+				};
+				$.easing.easeOutQuad=$.easing.easeOutQuad || function(x){
+					return 1-(1-x)*(1-x);
+				};
+				$.easing.easeInOutQuad=$.easing.easeInOutQuad || function(x){
+					return x<0.5 ? 2*x*x : 1-Math.pow(-2*x+2,2)/2;
+				};
+				$.easing.easeInCubic=$.easing.easeInCubic || function(x){
+					return x*x*x;
+				};
+				$.easing.easeOutCubic=$.easing.easeOutCubic || function(x){
+					return 1-Math.pow(1-x,3);
+				};
+				$.easing.easeInOutCubic=$.easing.easeInOutCubic || function(x){
+					return x<0.5 ? 4*x*x*x : 1-Math.pow(-2*x+2,3)/2;
+				};
+				$.easing.easeInQuart=$.easing.easeInQuart || function(x){
+					return x*x*x*x;
+				};
+				$.easing.easeOutQuart=$.easing.easeOutQuart || function(x){
+					return 1-Math.pow(1-x,4);
+				};
+				$.easing.easeInOutQuart=$.easing.easeInOutQuart || function(x){
+					return x<0.5 ? 8*x*x*x*x : 1-Math.pow(-2*x+2,4)/2;
+				};
+				$.easing.easeInQuint=$.easing.easeInQuint || function(x){
+					return x*x*x*x*x;
+				};
+				$.easing.easeOutQuint=$.easing.easeOutQuint || function(x){
+					return 1-Math.pow(1-x,5);
+				};
+				$.easing.easeInOutQuint=$.easing.easeInOutQuint || function(x){
+					return x<0.5 ? 16*x*x*x*x*x : 1-Math.pow(-2*x+2,5)/2;
+				};
+				$.easing.easeInExpo=$.easing.easeInExpo || function(x){
+					return x===0 ? 0 : Math.pow(2,10*x-10);
+				};
+				$.easing.easeOutExpo=$.easing.easeOutExpo || function(x){
+					return x===1 ? 1 : 1-Math.pow(2,-10*x);
+				};
+				$.easing.easeInOutExpo=$.easing.easeInOutExpo || function(x){
+					return x===0 ? 0 : x===1 ? 1 : x<0.5 ? Math.pow(2,20*x-10)/2 : (2-Math.pow(2,-20*x+10))/2;
+				};
+				$.easing.easeInSine=$.easing.easeInSine || function(x){
+					return 1-Math.cos(x*Math.PI/2);
+				};
+				$.easing.easeOutSine=$.easing.easeOutSine || function(x){
+					return Math.sin(x*Math.PI/2);
+				};
+				$.easing.easeInOutSine=$.easing.easeInOutSine || function(x){
+					return -(Math.cos(Math.PI*x)-1)/2;
+				};
+				$.easing.easeInCirc=$.easing.easeInCirc || function(x){
+					return 1-Math.sqrt(1-Math.pow(x,2));
+				};
+				$.easing.easeOutCirc=$.easing.easeOutCirc || function(x){
+					return Math.sqrt(1-Math.pow(x-1,2));
+				};
+				$.easing.easeInOutCirc=$.easing.easeInOutCirc || function(x){
+					return x<0.5 ? (1-Math.sqrt(1-Math.pow(2*x,2)))/2 : (Math.sqrt(1-Math.pow(-2*x+2,2))+1)/2;
+				};
+				$.easing.easeInElastic=$.easing.easeInElastic || function(x){
+					return x===0 ? 0 : x===1 ? 1 : -Math.pow(2,10*x-10)*Math.sin((x*10-10.75)*((2*Math.PI)/3));
+				};
+				$.easing.easeOutElastic=$.easing.easeOutElastic || function(x){
+					return x===0 ? 0 : x===1 ? 1 : Math.pow(2,-10*x)*Math.sin((x*10-0.75)*((2*Math.PI)/3))+1;
+				};
+				$.easing.easeInOutElastic=$.easing.easeInOutElastic || function(x){
+					return x===0 ? 0 : x===1 ? 1 : x<0.5 ? -(Math.pow(2,20*x-10)*Math.sin((20*x-11.125)*((2*Math.PI)/4.5)))/2 : Math.pow(2,-20*x+10)*Math.sin((20*x-11.125)*((2*Math.PI)/4.5))/2+1;
+				};
+				$.easing.easeInBack=$.easing.easeInBack || function(x){
+					return (1.70158+1)*x*x*x-1.70158*x*x;
+				};
+				$.easing.easeOutBack=$.easing.easeOutBack || function(x){
+					return 1+(1.70158+1)*Math.pow(x-1,3)+1.70158*Math.pow(x-1,2);
+				};
+				$.easing.easeInOutBack=$.easing.easeInOutBack || function(x){
+					return x<0.5 ? (Math.pow(2*x,2)*(((1.70158*1.525)+1)*2*x-(1.70158*1.525)))/2 : (Math.pow(2*x-2,2)*(((1.70158*1.525)+1)*(x*2-2)+(1.70158*1.525))+2)/2;
+				};
+				$.easing.easeInBounce=$.easing.easeInBounce || function(x){
+					return 1-__bounceOut(1-x);
+				};
+				$.easing.easeOutBounce=$.easing.easeOutBounce || __bounceOut;
+				$.easing.easeInOutBounce=$.easing.easeInOutBounce || function(x){
+					return x<0.5 ? (1-__bounceOut(1-2*x))/2 : (1+__bounceOut(2*x-1))/2;
+				};
+				function __bounceOut(x){
+					var n1=7.5625,d1=2.75;
+					if(x<1/d1){
+						return n1*x*x;
+					}else if(x<2/d1){
+						return n1*(x-=(1.5/d1))*x+.75;
+					}else if(x<2.5/d1){
+						return n1*(x-=(2.25/d1))*x+.9375;
+					}else{
+						return n1*(x-=(2.625/d1))*x+.984375;
+					}
+				}
+			}
+		}
+		
+	/* 
+	---------------
+	plugin setup 
+	---------------
+	*/
+	
+	/* extend jquery with custom easings */
+	
+	functions._easing.call();
+	
+	/* plugin constructor functions */
+	
+	$.fn[pluginNS]=function(method){
+		if(methods[method]){
+			return methods[method].apply(this,Array.prototype.slice.call(arguments,1));
+		}else if(typeof method==="object" || !method){
+			return methods.init.apply(this,arguments);
+		}else{
+			$.error("Method "+method+" does not exist");
+		}
+	};
+	$[pluginNS]=function(method){
+		if(methods[method]){
+			return methods[method].apply(this,Array.prototype.slice.call(arguments,1));
+		}else if(typeof method==="object" || !method){
+			return methods.init.apply(this,arguments);
+		}else{
+			$.error("Method "+method+" does not exist");
+		}
+	};
+	
+	/* 
+	allow setting plugin default options. 
+	example: $.plugin_name.defaults.option_name="option_value"; 
+	*/
+	
+	$[pluginNS].defaults=defaults;
+	
+})(jQuery,window,document);

+ 23 - 8
user/themes/r2c/js/script.js

@@ -19,11 +19,14 @@ function map() {
     }
   });
 
+  var markers = {};
   var greenIcon = new LeafIcon({iconUrl: 'user/themes/r2c/images/handler.svg'})
 
-  for (var i = 0; i < dyn_data.mappoints.length; i++) {
-    L.marker([dyn_data.mappoints[i].lat, dyn_data.mappoints[i].long], {icon: greenIcon}).bindPopup(dyn_data.mappoints[i].title).addTo(mymap);
+  for (var i = 0; i < dyn_data.mappoints.length; i++) {;
+    var id = dyn_data.mappoints[i].id;
+    markers[id] = L.marker([dyn_data.mappoints[i].lat, dyn_data.mappoints[i].long], {icon: greenIcon}).bindPopup(dyn_data.mappoints[i].title).addTo(mymap);
     // console.log("dyn_datad2", dyn_data.mappoints[i].title);
+    markers[id]._icon.id = id;
 
   }
 
@@ -321,17 +324,29 @@ function mCustomScrollbar() {
 
 
     $('.blocs').mCustomScrollbar({
-          scrollInertia: 0
+          scrollInertia: 100,
+
     });
 
     $('.blocs').mCustomScrollbar("update");
 
     $(document).on("click","a[href^='#']",function(e){
-      var href=$(this).attr("href"),target=$(href).parents(".mCustomScrollbar");
-      if(target.length){
-        e.preventDefault();
-        target.mCustomScrollbar("scrollTo",href);
-      }
+      e.preventDefault();
+      // var id = [];
+      var href = $(this).attr("href");
+      // var letter = $.inArray('#', href);
+      // console.log('L',letter);
+      var target = $(href).parents(".mCustomScrollbar");
+
+        if(target.length){
+          e.preventDefault();
+          target.mCustomScrollbar("scrollTo",href,{
+            scrollInertia:1000,
+            // offset: 0
+          });
+        }
+      // console.log('target', target);
+      // console.log('href', href);
     });
 
 }

+ 2 - 0
user/themes/r2c/templates/partials/base.html.twig

@@ -79,6 +79,8 @@
         {% do assets.addJs('theme://js/paper_full.js', {group:'bottom'}) %}
         {% do assets.addJs('theme://js/jquery.mCustomScrollbar.concat.min.js', {group:'bottom'}) %}
         {% do assets.addJs('theme://js/jquery.ui.touch-punch.min.js', {group:'bottom'}) %}
+        {% do assets.addJs('theme://js/jquery.malihu.PageScroll2id.js', {group:'bottom'}) %}
+
 
         {# % do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) % #}
         {# do assets.addJs('theme://js/script_paperjs.js', {type:'text/paperscript', canvas:'canvas', group:'bottom'}) #}

Some files were not shown because too many files changed in this diff