Файл: forsoc.ru/cache/twig/e3/e3d77133a90645bcc4793bebd743389b085529f44c02ff666a06efbed31b3fdc.php
Строк: 82
<?php
/* @vse_scrolltotop/event/overall_footer_after.html */
class __TwigTemplate_478d842b8a771fee0dcdb086d003fd9993b8508bd0e6156a4045833ebfdc630f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class="scroll-btn"><div class="scroll-btn-arrow"></div></div>
<script>
(function($) { // Avoid conflicts with other libraries
'use strict';
$(function() {
tvar settings = {
tttmin: 200,
tttscrollSpeed: 400
tt},
tttoTop = $('.scroll-btn'),
tttoTopHidden = true;
t$(window).scroll(function() {
ttvar pos = $(this).scrollTop();
ttif (pos > settings.min && toTopHidden) {
ttttoTop.stop().fadeIn();
ttttoTopHidden = false;
tt} else if(pos <= settings.min && !toTopHidden) {
ttttoTop.stop().fadeOut();
ttttoTopHidden = true;
tt}
t});
ttoTop.bind('click touchstart', function() {
tt$('html, body').animate({
tttscrollTop: 0
tt}, settings.scrollSpeed);
t});
});
})(jQuery);
</script>
";
}
public function getTemplateName()
{
return "@vse_scrolltotop/event/overall_footer_after.html";
}
public function getDebugInfo()
{
return array ( 19 => 1,);
}
}
/* <div class="scroll-btn"><div class="scroll-btn-arrow"></div></div>*/
/* */
/* <script>*/
/* */
/* (function($) { // Avoid conflicts with other libraries*/
/* */
/* 'use strict';*/
/* */
/* $(function() {*/
/* var settings = {*/
/* min: 200,*/
/* scrollSpeed: 400*/
/* },*/
/* toTop = $('.scroll-btn'),*/
/* toTopHidden = true;*/
/* */
/* $(window).scroll(function() {*/
/* var pos = $(this).scrollTop();*/
/* if (pos > settings.min && toTopHidden) {*/
/* toTop.stop().fadeIn();*/
/* toTopHidden = false;*/
/* } else if(pos <= settings.min && !toTopHidden) {*/
/* toTop.stop().fadeOut();*/
/* toTopHidden = true;*/
/* }*/
/* });*/
/* */
/* toTop.bind('click touchstart', function() {*/
/* $('html, body').animate({*/
/* scrollTop: 0*/
/* }, settings.scrollSpeed);*/
/* });*/
/* });*/
/* */
/* })(jQuery);*/
/* */
/* </script>*/
/* */