diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-01 21:10:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-01 21:10:04 -0700 |
commit | e332d1074f1b663ec66d37b0f575df2e41d5535c (patch) | |
tree | 6309a232348eb70ed4db5fbb7ed898f98c5beee8 /view/tpl/cover_photo_widget.tpl | |
parent | 42ed73ed4ac55ac62214301097f7d72cbcb37238 (diff) | |
download | volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.tar.gz volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.tar.bz2 volse-hubzilla-e332d1074f1b663ec66d37b0f575df2e41d5535c.zip |
move theme specific files to theme dir
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl deleted file mode 100755 index a9c384d2f..000000000 --- a/view/tpl/cover_photo_widget.tpl +++ /dev/null @@ -1,76 +0,0 @@ -<script> - var aside_padding_top; - var section_padding_top; - var coverSlid = false; - - $(document).ready(function() { - - aside_padding_top = parseInt($('aside').css('padding-top')); - section_padding_top = parseInt($('section').css('padding-top')); - - $(document).on('click', slideUpCover); - - if($('#cover-photo').length && $(window).width() > 755) { - if($(window).scrollTop() < $('#cover-photo').height()) { - $('.navbar').removeClass('fixed-top'); - $('main').css('margin-top', - $('nav').outerHeight(true) + 'px'); - $('main').css('opacity', 0); - } - } - else { - $('#cover-photo').remove(); - coverSlid = true; - } - }); - - $(window).scroll(function () { - if($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() >= $('#cover-photo').height()) { - $('.navbar').addClass('fixed-top'); - $('main').css('margin-top', ''); - $('main').css('opacity', 1); - coverSlid = true; - } - else if ($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() < $('#cover-photo').height()){ - if(coverSlid) { - $(window).scrollTop(Math.ceil($('#cover-photo').height())); - setTimeout(function(){ coverSlid = false; }, 1000); - } - else { - if($(window).scrollTop() < $('#cover-photo').height()) { - $('.navbar').removeClass('fixed-top'); - $('main').css('margin-top', - $('nav').outerHeight(true) + 'px'); - $('main').css('opacity', 0); - } - } - } - if($('#cover-photo').length && $('main').css('opacity') < 1) { - $('main').css('opacity', ($(window).scrollTop()/$('#cover-photo').height()).toFixed(1)); - } - }); - - $(window).resize(function () { - if($('#cover-photo').length && $(window).width() < 755) { - $('#cover-photo').remove(); - $('.navbar').addClass('fixed-top'); - $('main').css('opacity', 1); - coverSlid = true; - } - - }); - - function slideUpCover() { - if(coverSlid) { - return; - } - $('html, body').animate({scrollTop: Math.ceil($('#cover-photo').height()) + 'px' }); - return; - } -</script> - -<div id="cover-photo" title="{{$hovertitle}}"> - {{$photo_html}} - <div id="cover-photo-caption"> - <h1>{{$title}}</h1> - <h3>{{$subtitle}}</h3> - </div> -</div> |