{"version":3,"sources":["scroll-to-top.js"],"names":["$","Drupal","behaviors","scrollToTop","attach","context","settings","document","length","prepend","append","window","scroll","this","scrollTop","fadeIn","fadeOut","click","animate","jQuery"],"mappings":"CAAC,SAAUA,GACT,aAEAC,OAAOC,UAAUC,YAAc,CAC7BC,OAAQ,SAAUC,EAASC,GACrBD,IAAYE,WACkB,GAA5BP,EAAE,gBAAgBQ,QACpBR,EAAE,QAAQS,QAAQT,EAAE,8CAA8CU,OAAOV,EAAE,kCAG7EA,EAAEW,QAAQC,OAAO,WACY,IAAvBZ,EAAEa,MAAMC,YACVd,EAAE,gBAAgBe,OAAO,KAEzBf,EAAE,gBAAgBgB,QAAQ,OAI9BhB,EAAE,gBAAgBiB,MAAM,WACtBjB,EAAE,aAAakB,QAAQ,CACrBJ,UAAW,GACV,UArBb,CA0BEK","file":"../scroll-to-top.js","sourcesContent":["(function ($) {\n 'use strict';\n\n Drupal.behaviors.scrollToTop = {\n attach: function (context, settings) {\n if (context === document) {\n if ($('.ScrollToTop').length == 0) {\n $('body').prepend($('<a href=\"javascript:\" class=\"ScrollToTop\">').append($('<i class=\"fa fa-chevron-up\">')));\n }\n\n $(window).scroll(function () {\n if ($(this).scrollTop() >= 80) {\n $('.ScrollToTop').fadeIn(200);\n } else {\n $('.ScrollToTop').fadeOut(200);\n }\n });\n\n $('.ScrollToTop').click(function () {\n $('body,html').animate({\n scrollTop: 0\n }, 500);\n });\n }\n }\n };\n}(jQuery));\n"]}