@ouitoulia/skenografia
Advanced tools
Comparing version 2.18.2 to 2.19.0
@@ -1,1 +0,1 @@ | ||
!function(t){"use strict";Drupal.behaviors.skenografia_toc_js={attach:function(a,o){var s={};function i(){t(".toc-js.sticky",a).each((function(){var a=t(this),o=t(this).data("sticky-stop")||"",s=t(this).data("sticky-stop-padding")||0,i=t(window).scrollTop(),e=t("#sticky-anchor").offset().top,c=a.height(),r=t(this).data("sticky-offset")||0;if(t(o).length)var n=t(o).offset().top;else n=0;n>0&&i+c+r>n-s?a.css({top:-1*(i+c-n+s)}):i+r>e?(a.addClass("is-sticked"),a.css({top:r})):a.removeClass("is-sticked").css({top:"initial"})}))}t(".toc-js",a).each((function(){var a=t(this).find("nav"),o={listType:"ol"==t(this).data("list-type")?"<ol/>":'<ul data-element="page-index"/>',selectors:t(this).data("selectors")||"h2, h3",container:t(this).data("container")||"body",scrollToOffset:t(this).data("scroll-to-offset")||0,prefix:t(this).data("prefix")||"",backToTop:!!t(this).data("back-to-top"),backToTopLabel:t(this).data("back-to-top-label")||"Back to top",letterCase:t(this).data("letter-case")||"lowercase",highlightOnScroll:!!t(this).data("highlight-on-scroll"),highlightOffset:t(this).data("highlight-offset")||100,itemClass:function(t,a,o,s){return s?s+"-"+o[0].tagName.toLowerCase():o[0].tagName.toLowerCase()}};t(this).data("smooth-scrolling")||(o.smoothScrolling=!1),o.anchorName=function(a,o,i){if(o.id.length)return o.id;var e=t(o).text().replace(/[^a-z0-9]/gi," ").replace(/\s+/g,"-").toLowerCase();if(s[e]){for(var c=2;s[e+"-"+c];)c++;e=e+"-"+c}return s[e]=!0,i?i+"-"+e:e},a.toc(o);var i=t.extend({},a.toc.defaults,o);i.backToTop&&a.find("a").each((function(){var o=t(i.container),s=t(this).attr("href").replace(/^#/,""),e=s+"-to-top";t(this).attr("id",e);var c=o.find('span[id="'+s+'"]');t("<a/>").attr("href","#"+e).addClass("back-to-top").text(i.backToTopLabel).insertAfter(c).bind("click",(function(o){!function(a,o){if(i.smoothScrolling&&"function"==typeof i.smoothScrolling){a.preventDefault();var s=t(a.target).attr("href");i.smoothScrolling(s,i,(function(){}))}t("li",self).removeClass(i.activeClass),t(a.target).parent().addClass(i.activeClass)}(o),a.trigger("selected",t(this).attr("href"))}))}))})),t(".toc-js",a).each((function(){var a=t(this).find("li").length,o=t(this).data("selectors-minimum")||0,s=t(this).data("container")||"body";a>=o&&(t(this).show(),t(s).find("a.back-to-top").show())})),t(window).scroll(i),i()}}}(jQuery); | ||
!function(t){"use strict";Drupal.behaviors.skenografia_toc_js={attach:function(a,o){var s={};function i(){t(".toc-js.sticky",a).each((function(){var a=t(this),o=t(this).data("sticky-stop")||"",s=t(this).data("sticky-stop-padding")||0,i=t(window).scrollTop(),e=t("#sticky-anchor").offset().top,c=a.height(),r=t(this).data("sticky-offset")||0;if(t(o).length)var n=t(o).offset().top;else n=0;n>0&&i+c+r>n-s?a.css({top:-1*(i+c-n+s)}):i+r>e?(a.addClass("is-sticked"),a.css({top:r})):a.removeClass("is-sticked").css({top:"initial"})}))}t(".toc-js",a).each((function(){var a=t(this).find("nav"),o={listType:"ol"==t(this).data("list-type")?"<ol/>":'<ul data-element="page-index"/>',selectors:t(this).data("selectors")||"h2, h3",container:t(this).data("container")||"body",scrollToOffset:t(this).data("scroll-to-offset")||0,prefix:t(this).data("prefix")||"",backToTop:!!t(this).data("back-to-top"),backToTopLabel:t(this).data("back-to-top-label")||"Back to top",letterCase:t(this).data("letter-case")||"lowercase",highlightOnScroll:!!t(this).data("highlight-on-scroll"),highlightOffset:t(this).data("highlight-offset")||100,itemClass:function(t,a,o,s){return s?s+"-"+o[0].tagName.toLowerCase():o[0].tagName.toLowerCase()}};t(this).data("smooth-scrolling")||(o.smoothScrolling=!1),o.anchorName=function(a,o,i){if(o.id.length)return o.id;var e=t(o).text().replace(/[^a-z0-9]/gi," ").replace(/\s+/g,"-").toLowerCase();if(s[e]){for(var c=2;s[e+"-"+c];)c++;e=e+"-"+c}return s[e]=!0,i?i+"-"+e:e},a.toc(o);var i=t.extend({},a.toc.defaults,o);i.backToTop&&a.find("a").each((function(){var o=t(i.container),s=t(this).attr("href").replace(/^#/,""),e=s+"-to-top";t(this).attr("id",e);var c=o.find('span[id="'+s+'"]');t("<a/>").attr("href","#"+e).addClass("back-to-top").text(i.backToTopLabel).insertAfter(c).bind("click",(function(o){!function(a){if(i.smoothScrolling&&"function"==typeof i.smoothScrolling){a.preventDefault();var o=t(a.target).attr("href");i.smoothScrolling(o,i,(function(){}))}t("li",self).removeClass(i.activeClass),t(a.target).parent().addClass(i.activeClass)}(o),a.trigger("selected",t(this).attr("href"))}))}))})),t(".toc-js",a).each((function(){var a=t(this).find("li").length,o=t(this).data("selectors-minimum")||0,s=t(this).data("container")||"body";a>=o&&(t(this).show(),t(s).find("a.back-to-top").show())})),t(window).scroll(i),i()}}}(jQuery); |
{ | ||
"name": "@ouitoulia/skenografia", | ||
"version": "2.18.2", | ||
"version": "2.19.0", | ||
"description": "Skenografia è un sub-theme drupal, basato su bootstrap_italia, che implementa il design delle scuole.", | ||
@@ -5,0 +5,0 @@ "engineStrict": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
7008637
4582