Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
terry950201 committed Sep 18, 2023
1 parent 61f669f commit 6cf1d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ <h4>Form</h4>
</div>
</article>
<footer id="footer">
<p class="copyright">© Untitled</p>
<p class="copyright">2023TERRY</p>
</footer>
</div>
<script>(function ($) { var $window = $(window), $document = $(document), $body = $('body'), $wrapper = $('#wrapper'), $footer = $('#footer'), $panels = $wrapper.children('.panel'), $animatedLinks = $('.actions.animated a'), $animatedLink = null; breakpoints({ xlarge: ['1281px', '1680px'], large: ['981px', '1280px'], medium: ['737px', '980px'], small: ['481px', '736px'], xsmall: ['361px', '480px'], xxsmall: [null, '360px'] }); $window.on('load', function () { window.setTimeout(function () { $body.removeClass('is-preload-0'); window.setTimeout(function () { $body.removeClass('is-preload-1'); }, 1500); }, 100); }); $animatedLinks.on('click', function (event) { var href = $(this).attr('href'); if (href.charAt(0) != '#' || (href.length > 1 && $panels.filter(href).length == 0)) return; event.preventDefault(); event.stopPropagation(); window.location.hash = ''; window.location.hash = href; $animatedLink = $(this); }); var locked = true; $panels.each(function () { var $this = $(this), $image = $this.children('.image'), $img = $image.find('img'), position = $img.data('position'); $image.css('background-image', 'url(' + $img.attr('src') + ')'); if (position) $image.css('background-position', position); $img.hide(); }); window.setTimeout(function () { locked = false; }, 1250); $window.on('hashchange', function (event) { var $ul, delay = 0, $panel; if (window.location.hash && window.location.hash != '#') $panel = $(window.location.hash); else $panel = $panels.first(); event.preventDefault(); event.stopPropagation(); if (locked) return; locked = true; if ($animatedLink) { $ul = $animatedLink.parents('ul'); $animatedLink.addClass('active'); delay = 250; } window.setTimeout(function () { $panels.addClass('inactive'); $footer.addClass('inactive'); window.setTimeout(function () { $panels.hide(); $panel.show(); $document.scrollTop(0); window.setTimeout(function () { $panel.removeClass('inactive'); if ($animatedLink) { $animatedLink.removeClass('active'); $animatedLink = null; } locked = false; $window.triggerHandler('--refresh'); window.setTimeout(function () { $footer.removeClass('inactive'); }, 250); }, 100); }, 350); }, delay); }); (function () { var $panel; if (window.location.hash && window.location.hash != '#') $panel = $(window.location.hash); else $panel = $panels.first(); $panels.not($panel).addClass('inactive').hide(); })(); if (browser.name == 'ie') { $window.on('--refresh', function () { $wrapper.css('height', 'auto'); window.setTimeout(function () { var h = $wrapper.height(), wh = $window.height(); if (h < wh) $wrapper.css('height', '100vh'); }, 0); }); $window.on('load', function () { $window.triggerHandler('--refresh'); }); $('.actions.animated').removeClass('animated'); } })(jQuery);</script>
Expand Down

0 comments on commit 6cf1d15

Please sign in to comment.