mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Bundle assets
Update dependencies
This commit is contained in:
parent
f5c0d492d3
commit
986d249391
43 changed files with 126 additions and 6285 deletions
|
@ -22,3 +22,10 @@ $(document).keypress(function(e) {
|
||||||
$('.modal.is-active').removeClass('is-active');
|
$('.modal.is-active').removeClass('is-active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
{{ if .Site.Params.localTime }}
|
||||||
|
$(document).ready(function() {
|
||||||
|
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
||||||
|
$('#time').html(time);
|
||||||
|
})
|
||||||
|
{{ end }}
|
1
assets/vendor/momentjs/moment-timezone-with-data-2012-2022.min.js
vendored
Normal file
1
assets/vendor/momentjs/moment-timezone-with-data-2012-2022.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/vendor/momentjs/moment-timezone.min.js
vendored
Normal file
1
assets/vendor/momentjs/moment-timezone.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/vendor/momentjs/moment.min.js
vendored
Normal file
1
assets/vendor/momentjs/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"css/owlCarousel.min.b1f26e29c43c61fe8b5a6f225b4ee7c5f969a7b33cfe512706271e07246d93d1.css","MediaType":"text/css","Data":{"Integrity":"sha256-sfJuKcQ8Yf6LWm8iW07nxflpp7M8/lEnBiceByRtk9E="}}
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"css/owlCarousel.min.b1f26e29c43c61fe8b5a6f225b4ee7c5f969a7b33cfe512706271e07246d93d1.css","MediaType":"text/css","Data":{"Integrity":"sha256-sfJuKcQ8Yf6LWm8iW07nxflpp7M8/lEnBiceByRtk9E="}}
|
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}/**
|
||||||
|
* Owl Carousel v2.3.4
|
||||||
|
* Copyright 2013-2018 David Deutsch
|
||||||
|
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||||
|
*/
|
||||||
|
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"css/owlCarousel.min.b1f26e29c43c61fe8b5a6f225b4ee7c5f969a7b33cfe512706271e07246d93d1.css","MediaType":"text/css","Data":{"Integrity":"sha256-sfJuKcQ8Yf6LWm8iW07nxflpp7M8/lEnBiceByRtk9E="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundle.7f755d2100d3644477de868b71a7459a39f18db99d221d93d66d34e427cade7d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3VdIQDTZER33oaLcadFmjnxjbmdIh2T1m005CfK3n0="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundleMoment.7f7a4bcb42a8af7ae80dcdc33a09305caa9f980d48eae96d4c70aa7fd7d30fc1.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3pLy0Kor3roDc3DOgkwXKqfmA1I6ultTHCqf9fTD8E="}}
|
|
@ -0,0 +1,2 @@
|
||||||
|
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
|
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');}});$(document).ready(function(){var time=moment().tz("America/Los_Angeles").format("h:mm A");$('#time').html(time);})
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/index.tmp.min.css","MediaType":"application/javascript","Data":{}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"vendor/owlCarousel/owl.carousel.min.a53c43f834b32309b084ea9314df8307e9c78cee2202c6e07f216ae4ae5b704d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-pTxD+DSzIwmwhOqTFN+DB+nHjO4iAsbgfyFq5K5bcE0="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundle.7f755d2100d3644477de868b71a7459a39f18db99d221d93d66d34e427cade7d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3VdIQDTZER33oaLcadFmjnxjbmdIh2T1m005CfK3n0="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundleMoment.7f7a4bcb42a8af7ae80dcdc33a09305caa9f980d48eae96d4c70aa7fd7d30fc1.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3pLy0Kor3roDc3DOgkwXKqfmA1I6ultTHCqf9fTD8E="}}
|
|
@ -0,0 +1,2 @@
|
||||||
|
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
|
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');}});$(document).ready(function(){var time=moment().tz("America/Los_Angeles").format("h:mm A");$('#time').html(time);})
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/index.tmp.min.css","MediaType":"application/javascript","Data":{}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"vendor/owlCarousel/owl.carousel.min.a53c43f834b32309b084ea9314df8307e9c78cee2202c6e07f216ae4ae5b704d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-pTxD+DSzIwmwhOqTFN+DB+nHjO4iAsbgfyFq5K5bcE0="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundle.7f755d2100d3644477de868b71a7459a39f18db99d221d93d66d34e427cade7d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3VdIQDTZER33oaLcadFmjnxjbmdIh2T1m005CfK3n0="}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/bundleMoment.7f7a4bcb42a8af7ae80dcdc33a09305caa9f980d48eae96d4c70aa7fd7d30fc1.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-f3pLy0Kor3roDc3DOgkwXKqfmA1I6ultTHCqf9fTD8E="}}
|
|
@ -0,0 +1,2 @@
|
||||||
|
$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
|
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');}});$(document).ready(function(){var time=moment().tz("America/Los_Angeles").format("h:mm A");$('#time').html(time);})
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"js/index.tmp.min.css","MediaType":"application/javascript","Data":{}}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"vendor/owlCarousel/owl.carousel.min.a53c43f834b32309b084ea9314df8307e9c78cee2202c6e07f216ae4ae5b704d.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-pTxD+DSzIwmwhOqTFN+DB+nHjO4iAsbgfyFq5K5bcE0="}}
|
|
@ -1,21 +1,15 @@
|
||||||
<!-- jQuery -->
|
{{ $jQuery := resources.Get "vendor/jquery/jquery-3.3.1.min.js" }}
|
||||||
<script src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
|
{{ $index := resources.Get "js/index.js" | resources.ExecuteAsTemplate "js/index.tmp.css" . | minify }}
|
||||||
|
|
||||||
<!-- index.js -->
|
{{ if and .Site.Params.localTime .Page.IsHome }}
|
||||||
<script defer src="{{ "/js/index.js" | relURL }}"></script>
|
{{ $momentjs := resources.Get "vendor/momentjs/moment.min.js" }}
|
||||||
|
{{ $momentTimezone := resources.Get "vendor/momentjs/moment-timezone.min.js" }}
|
||||||
<!-- local time -->
|
{{ $momentTimezoneWithData := resources.Get "vendor/momentjs/moment-timezone-with-data-2012-2022.min.js" }}
|
||||||
{{ if .Site.Params.localTime }}
|
{{ $scripts := slice $jQuery $momentjs $momentTimezone $momentTimezoneWithData $index | resources.Concat "/js/bundleMoment.js" | fingerprint }}
|
||||||
<script defer src="{{ "/js/moment.js" | relURL }}"></script>
|
<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
|
||||||
<script defer src="{{ "/js/moment-timezone.js" | relURL }}"></script>
|
{{ else }}
|
||||||
<script defer src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
|
{{ $scripts := slice $jQuery $index | resources.Concat "/js/bundle.js" | fingerprint }}
|
||||||
<script>
|
<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
|
||||||
$(document).ready(function() {
|
|
||||||
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
|
||||||
$('#time').html(time);
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
|
||||||
{{ template "_internal/google_analytics_async.html" . }}
|
{{ template "_internal/google_analytics_async.html" . }}
|
||||||
|
|
|
@ -30,12 +30,15 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "customCSS" }}
|
{{ define "customCSS" }}
|
||||||
<link rel="stylesheet" href="{{ "css/owl.carousel.min.css" | relURL }}">
|
{{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.css" }}
|
||||||
<link rel="stylesheet" href="{{ "css/owl.theme.default.min.css" | relURL }}">
|
{{ $owlCarouselTheme := resources.Get "vendor/owlCarousel/owl.theme.default.min.css" }}
|
||||||
|
{{ $owlCarouselBundle := slice $owlCarousel $owlCarouselTheme | resources.Concat "/css/owlCarousel.min.css" | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ $owlCarouselBundle.Permalink }}" integrity="{{ $owlCarouselBundle.Data.Integrity }}" media="screen">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "customScripts" }}
|
{{ define "customScripts" }}
|
||||||
<script src="{{ "js/owl.carousel.min.js" | relURL }}"></script>
|
{{ $owlCarousel := resources.Get "vendor/owlCarousel/owl.carousel.min.js" | fingerprint }}
|
||||||
|
<script src="{{ $owlCarousel.Permalink }}" integrity="{{ $owlCarousel.Data.Integrity }}"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$(".owl-carousel").owlCarousel({
|
$(".owl-carousel").owlCarousel({
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,601 +0,0 @@
|
||||||
//! moment-timezone.js
|
|
||||||
//! version : 0.5.13
|
|
||||||
//! Copyright (c) JS Foundation and other contributors
|
|
||||||
//! license : MIT
|
|
||||||
//! github.com/moment/moment-timezone
|
|
||||||
|
|
||||||
(function (root, factory) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
/*global define*/
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
define(['moment'], factory); // AMD
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
module.exports = factory(require('moment')); // Node
|
|
||||||
} else {
|
|
||||||
factory(root.moment); // Browser
|
|
||||||
}
|
|
||||||
}(this, function (moment) {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// Do not load moment-timezone a second time.
|
|
||||||
// if (moment.tz !== undefined) {
|
|
||||||
// logError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion);
|
|
||||||
// return moment;
|
|
||||||
// }
|
|
||||||
|
|
||||||
var VERSION = "0.5.13",
|
|
||||||
zones = {},
|
|
||||||
links = {},
|
|
||||||
names = {},
|
|
||||||
guesses = {},
|
|
||||||
cachedGuess,
|
|
||||||
|
|
||||||
momentVersion = moment.version.split('.'),
|
|
||||||
major = +momentVersion[0],
|
|
||||||
minor = +momentVersion[1];
|
|
||||||
|
|
||||||
// Moment.js version check
|
|
||||||
if (major < 2 || (major === 2 && minor < 6)) {
|
|
||||||
logError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + moment.version + '. See momentjs.com');
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
Unpacking
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
function charCodeToInt(charCode) {
|
|
||||||
if (charCode > 96) {
|
|
||||||
return charCode - 87;
|
|
||||||
} else if (charCode > 64) {
|
|
||||||
return charCode - 29;
|
|
||||||
}
|
|
||||||
return charCode - 48;
|
|
||||||
}
|
|
||||||
|
|
||||||
function unpackBase60(string) {
|
|
||||||
var i = 0,
|
|
||||||
parts = string.split('.'),
|
|
||||||
whole = parts[0],
|
|
||||||
fractional = parts[1] || '',
|
|
||||||
multiplier = 1,
|
|
||||||
num,
|
|
||||||
out = 0,
|
|
||||||
sign = 1;
|
|
||||||
|
|
||||||
// handle negative numbers
|
|
||||||
if (string.charCodeAt(0) === 45) {
|
|
||||||
i = 1;
|
|
||||||
sign = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle digits before the decimal
|
|
||||||
for (i; i < whole.length; i++) {
|
|
||||||
num = charCodeToInt(whole.charCodeAt(i));
|
|
||||||
out = 60 * out + num;
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle digits after the decimal
|
|
||||||
for (i = 0; i < fractional.length; i++) {
|
|
||||||
multiplier = multiplier / 60;
|
|
||||||
num = charCodeToInt(fractional.charCodeAt(i));
|
|
||||||
out += num * multiplier;
|
|
||||||
}
|
|
||||||
|
|
||||||
return out * sign;
|
|
||||||
}
|
|
||||||
|
|
||||||
function arrayToInt (array) {
|
|
||||||
for (var i = 0; i < array.length; i++) {
|
|
||||||
array[i] = unpackBase60(array[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function intToUntil (array, length) {
|
|
||||||
for (var i = 0; i < length; i++) {
|
|
||||||
array[i] = Math.round((array[i - 1] || 0) + (array[i] * 60000)); // minutes to milliseconds
|
|
||||||
}
|
|
||||||
|
|
||||||
array[length - 1] = Infinity;
|
|
||||||
}
|
|
||||||
|
|
||||||
function mapIndices (source, indices) {
|
|
||||||
var out = [], i;
|
|
||||||
|
|
||||||
for (i = 0; i < indices.length; i++) {
|
|
||||||
out[i] = source[indices[i]];
|
|
||||||
}
|
|
||||||
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
function unpack (string) {
|
|
||||||
var data = string.split('|'),
|
|
||||||
offsets = data[2].split(' '),
|
|
||||||
indices = data[3].split(''),
|
|
||||||
untils = data[4].split(' ');
|
|
||||||
|
|
||||||
arrayToInt(offsets);
|
|
||||||
arrayToInt(indices);
|
|
||||||
arrayToInt(untils);
|
|
||||||
|
|
||||||
intToUntil(untils, indices.length);
|
|
||||||
|
|
||||||
return {
|
|
||||||
name : data[0],
|
|
||||||
abbrs : mapIndices(data[1].split(' '), indices),
|
|
||||||
offsets : mapIndices(offsets, indices),
|
|
||||||
untils : untils,
|
|
||||||
population : data[5] | 0
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
Zone object
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
function Zone (packedString) {
|
|
||||||
if (packedString) {
|
|
||||||
this._set(unpack(packedString));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Zone.prototype = {
|
|
||||||
_set : function (unpacked) {
|
|
||||||
this.name = unpacked.name;
|
|
||||||
this.abbrs = unpacked.abbrs;
|
|
||||||
this.untils = unpacked.untils;
|
|
||||||
this.offsets = unpacked.offsets;
|
|
||||||
this.population = unpacked.population;
|
|
||||||
},
|
|
||||||
|
|
||||||
_index : function (timestamp) {
|
|
||||||
var target = +timestamp,
|
|
||||||
untils = this.untils,
|
|
||||||
i;
|
|
||||||
|
|
||||||
for (i = 0; i < untils.length; i++) {
|
|
||||||
if (target < untils[i]) {
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parse : function (timestamp) {
|
|
||||||
var target = +timestamp,
|
|
||||||
offsets = this.offsets,
|
|
||||||
untils = this.untils,
|
|
||||||
max = untils.length - 1,
|
|
||||||
offset, offsetNext, offsetPrev, i;
|
|
||||||
|
|
||||||
for (i = 0; i < max; i++) {
|
|
||||||
offset = offsets[i];
|
|
||||||
offsetNext = offsets[i + 1];
|
|
||||||
offsetPrev = offsets[i ? i - 1 : i];
|
|
||||||
|
|
||||||
if (offset < offsetNext && tz.moveAmbiguousForward) {
|
|
||||||
offset = offsetNext;
|
|
||||||
} else if (offset > offsetPrev && tz.moveInvalidForward) {
|
|
||||||
offset = offsetPrev;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (target < untils[i] - (offset * 60000)) {
|
|
||||||
return offsets[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return offsets[max];
|
|
||||||
},
|
|
||||||
|
|
||||||
abbr : function (mom) {
|
|
||||||
return this.abbrs[this._index(mom)];
|
|
||||||
},
|
|
||||||
|
|
||||||
offset : function (mom) {
|
|
||||||
return this.offsets[this._index(mom)];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
Current Timezone
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
function OffsetAt(at) {
|
|
||||||
var timeString = at.toTimeString();
|
|
||||||
var abbr = timeString.match(/\([a-z ]+\)/i);
|
|
||||||
if (abbr && abbr[0]) {
|
|
||||||
// 17:56:31 GMT-0600 (CST)
|
|
||||||
// 17:56:31 GMT-0600 (Central Standard Time)
|
|
||||||
abbr = abbr[0].match(/[A-Z]/g);
|
|
||||||
abbr = abbr ? abbr.join('') : undefined;
|
|
||||||
} else {
|
|
||||||
// 17:56:31 CST
|
|
||||||
// 17:56:31 GMT+0800 (台北標準時間)
|
|
||||||
abbr = timeString.match(/[A-Z]{3,5}/g);
|
|
||||||
abbr = abbr ? abbr[0] : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (abbr === 'GMT') {
|
|
||||||
abbr = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.at = +at;
|
|
||||||
this.abbr = abbr;
|
|
||||||
this.offset = at.getTimezoneOffset();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ZoneScore(zone) {
|
|
||||||
this.zone = zone;
|
|
||||||
this.offsetScore = 0;
|
|
||||||
this.abbrScore = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ZoneScore.prototype.scoreOffsetAt = function (offsetAt) {
|
|
||||||
this.offsetScore += Math.abs(this.zone.offset(offsetAt.at) - offsetAt.offset);
|
|
||||||
if (this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g, '') !== offsetAt.abbr) {
|
|
||||||
this.abbrScore++;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
function findChange(low, high) {
|
|
||||||
var mid, diff;
|
|
||||||
|
|
||||||
while ((diff = ((high.at - low.at) / 12e4 | 0) * 6e4)) {
|
|
||||||
mid = new OffsetAt(new Date(low.at + diff));
|
|
||||||
if (mid.offset === low.offset) {
|
|
||||||
low = mid;
|
|
||||||
} else {
|
|
||||||
high = mid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return low;
|
|
||||||
}
|
|
||||||
|
|
||||||
function userOffsets() {
|
|
||||||
var startYear = new Date().getFullYear() - 2,
|
|
||||||
last = new OffsetAt(new Date(startYear, 0, 1)),
|
|
||||||
offsets = [last],
|
|
||||||
change, next, i;
|
|
||||||
|
|
||||||
for (i = 1; i < 48; i++) {
|
|
||||||
next = new OffsetAt(new Date(startYear, i, 1));
|
|
||||||
if (next.offset !== last.offset) {
|
|
||||||
change = findChange(last, next);
|
|
||||||
offsets.push(change);
|
|
||||||
offsets.push(new OffsetAt(new Date(change.at + 6e4)));
|
|
||||||
}
|
|
||||||
last = next;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
|
||||||
offsets.push(new OffsetAt(new Date(startYear + i, 0, 1)));
|
|
||||||
offsets.push(new OffsetAt(new Date(startYear + i, 6, 1)));
|
|
||||||
}
|
|
||||||
|
|
||||||
return offsets;
|
|
||||||
}
|
|
||||||
|
|
||||||
function sortZoneScores (a, b) {
|
|
||||||
if (a.offsetScore !== b.offsetScore) {
|
|
||||||
return a.offsetScore - b.offsetScore;
|
|
||||||
}
|
|
||||||
if (a.abbrScore !== b.abbrScore) {
|
|
||||||
return a.abbrScore - b.abbrScore;
|
|
||||||
}
|
|
||||||
return b.zone.population - a.zone.population;
|
|
||||||
}
|
|
||||||
|
|
||||||
function addToGuesses (name, offsets) {
|
|
||||||
var i, offset;
|
|
||||||
arrayToInt(offsets);
|
|
||||||
for (i = 0; i < offsets.length; i++) {
|
|
||||||
offset = offsets[i];
|
|
||||||
guesses[offset] = guesses[offset] || {};
|
|
||||||
guesses[offset][name] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function guessesForUserOffsets (offsets) {
|
|
||||||
var offsetsLength = offsets.length,
|
|
||||||
filteredGuesses = {},
|
|
||||||
out = [],
|
|
||||||
i, j, guessesOffset;
|
|
||||||
|
|
||||||
for (i = 0; i < offsetsLength; i++) {
|
|
||||||
guessesOffset = guesses[offsets[i].offset] || {};
|
|
||||||
for (j in guessesOffset) {
|
|
||||||
if (guessesOffset.hasOwnProperty(j)) {
|
|
||||||
filteredGuesses[j] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i in filteredGuesses) {
|
|
||||||
if (filteredGuesses.hasOwnProperty(i)) {
|
|
||||||
out.push(names[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
function rebuildGuess () {
|
|
||||||
|
|
||||||
// use Intl API when available and returning valid time zone
|
|
||||||
try {
|
|
||||||
var intlName = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
||||||
if (intlName){
|
|
||||||
var name = names[normalizeName(intlName)];
|
|
||||||
if (name) {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
logError("Moment Timezone found " + intlName + " from the Intl api, but did not have that data loaded.");
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
// Intl unavailable, fall back to manual guessing.
|
|
||||||
}
|
|
||||||
|
|
||||||
var offsets = userOffsets(),
|
|
||||||
offsetsLength = offsets.length,
|
|
||||||
guesses = guessesForUserOffsets(offsets),
|
|
||||||
zoneScores = [],
|
|
||||||
zoneScore, i, j;
|
|
||||||
|
|
||||||
for (i = 0; i < guesses.length; i++) {
|
|
||||||
zoneScore = new ZoneScore(getZone(guesses[i]), offsetsLength);
|
|
||||||
for (j = 0; j < offsetsLength; j++) {
|
|
||||||
zoneScore.scoreOffsetAt(offsets[j]);
|
|
||||||
}
|
|
||||||
zoneScores.push(zoneScore);
|
|
||||||
}
|
|
||||||
|
|
||||||
zoneScores.sort(sortZoneScores);
|
|
||||||
|
|
||||||
return zoneScores.length > 0 ? zoneScores[0].zone.name : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
function guess (ignoreCache) {
|
|
||||||
if (!cachedGuess || ignoreCache) {
|
|
||||||
cachedGuess = rebuildGuess();
|
|
||||||
}
|
|
||||||
return cachedGuess;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
Global Methods
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
function normalizeName (name) {
|
|
||||||
return (name || '').toLowerCase().replace(/\//g, '_');
|
|
||||||
}
|
|
||||||
|
|
||||||
function addZone (packed) {
|
|
||||||
var i, name, split, normalized;
|
|
||||||
|
|
||||||
if (typeof packed === "string") {
|
|
||||||
packed = [packed];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < packed.length; i++) {
|
|
||||||
split = packed[i].split('|');
|
|
||||||
name = split[0];
|
|
||||||
normalized = normalizeName(name);
|
|
||||||
zones[normalized] = packed[i];
|
|
||||||
names[normalized] = name;
|
|
||||||
if (split[5]) {
|
|
||||||
addToGuesses(normalized, split[2].split(' '));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getZone (name, caller) {
|
|
||||||
name = normalizeName(name);
|
|
||||||
|
|
||||||
var zone = zones[name];
|
|
||||||
var link;
|
|
||||||
|
|
||||||
if (zone instanceof Zone) {
|
|
||||||
return zone;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof zone === 'string') {
|
|
||||||
zone = new Zone(zone);
|
|
||||||
zones[name] = zone;
|
|
||||||
return zone;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Pass getZone to prevent recursion more than 1 level deep
|
|
||||||
if (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {
|
|
||||||
zone = zones[name] = new Zone();
|
|
||||||
zone._set(link);
|
|
||||||
zone.name = names[name];
|
|
||||||
return zone;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getNames () {
|
|
||||||
var i, out = [];
|
|
||||||
|
|
||||||
for (i in names) {
|
|
||||||
if (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {
|
|
||||||
out.push(names[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return out.sort();
|
|
||||||
}
|
|
||||||
|
|
||||||
function addLink (aliases) {
|
|
||||||
var i, alias, normal0, normal1;
|
|
||||||
|
|
||||||
if (typeof aliases === "string") {
|
|
||||||
aliases = [aliases];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < aliases.length; i++) {
|
|
||||||
alias = aliases[i].split('|');
|
|
||||||
|
|
||||||
normal0 = normalizeName(alias[0]);
|
|
||||||
normal1 = normalizeName(alias[1]);
|
|
||||||
|
|
||||||
links[normal0] = normal1;
|
|
||||||
names[normal0] = alias[0];
|
|
||||||
|
|
||||||
links[normal1] = normal0;
|
|
||||||
names[normal1] = alias[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadData (data) {
|
|
||||||
addZone(data.zones);
|
|
||||||
addLink(data.links);
|
|
||||||
tz.dataVersion = data.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
function zoneExists (name) {
|
|
||||||
if (!zoneExists.didShowError) {
|
|
||||||
zoneExists.didShowError = true;
|
|
||||||
logError("moment.tz.zoneExists('" + name + "') has been deprecated in favor of !moment.tz.zone('" + name + "')");
|
|
||||||
}
|
|
||||||
return !!getZone(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function needsOffset (m) {
|
|
||||||
return !!(m._a && (m._tzm === undefined));
|
|
||||||
}
|
|
||||||
|
|
||||||
function logError (message) {
|
|
||||||
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
||||||
console.error(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
moment.tz namespace
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
function tz (input) {
|
|
||||||
var args = Array.prototype.slice.call(arguments, 0, -1),
|
|
||||||
name = arguments[arguments.length - 1],
|
|
||||||
zone = getZone(name),
|
|
||||||
out = moment.utc.apply(null, args);
|
|
||||||
|
|
||||||
if (zone && !moment.isMoment(input) && needsOffset(out)) {
|
|
||||||
out.add(zone.parse(out), 'minutes');
|
|
||||||
}
|
|
||||||
|
|
||||||
out.tz(name);
|
|
||||||
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
tz.version = VERSION;
|
|
||||||
tz.dataVersion = '';
|
|
||||||
tz._zones = zones;
|
|
||||||
tz._links = links;
|
|
||||||
tz._names = names;
|
|
||||||
tz.add = addZone;
|
|
||||||
tz.link = addLink;
|
|
||||||
tz.load = loadData;
|
|
||||||
tz.zone = getZone;
|
|
||||||
tz.zoneExists = zoneExists; // deprecated in 0.1.0
|
|
||||||
tz.guess = guess;
|
|
||||||
tz.names = getNames;
|
|
||||||
tz.Zone = Zone;
|
|
||||||
tz.unpack = unpack;
|
|
||||||
tz.unpackBase60 = unpackBase60;
|
|
||||||
tz.needsOffset = needsOffset;
|
|
||||||
tz.moveInvalidForward = true;
|
|
||||||
tz.moveAmbiguousForward = false;
|
|
||||||
|
|
||||||
/************************************
|
|
||||||
Interface with Moment.js
|
|
||||||
************************************/
|
|
||||||
|
|
||||||
var fn = moment.fn;
|
|
||||||
|
|
||||||
moment.tz = tz;
|
|
||||||
|
|
||||||
moment.defaultZone = null;
|
|
||||||
|
|
||||||
moment.updateOffset = function (mom, keepTime) {
|
|
||||||
var zone = moment.defaultZone,
|
|
||||||
offset;
|
|
||||||
|
|
||||||
if (mom._z === undefined) {
|
|
||||||
if (zone && needsOffset(mom) && !mom._isUTC) {
|
|
||||||
mom._d = moment.utc(mom._a)._d;
|
|
||||||
mom.utc().add(zone.parse(mom), 'minutes');
|
|
||||||
}
|
|
||||||
mom._z = zone;
|
|
||||||
}
|
|
||||||
if (mom._z) {
|
|
||||||
offset = mom._z.offset(mom);
|
|
||||||
if (Math.abs(offset) < 16) {
|
|
||||||
offset = offset / 60;
|
|
||||||
}
|
|
||||||
if (mom.utcOffset !== undefined) {
|
|
||||||
mom.utcOffset(-offset, keepTime);
|
|
||||||
} else {
|
|
||||||
mom.zone(offset, keepTime);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
fn.tz = function (name) {
|
|
||||||
if (name) {
|
|
||||||
this._z = getZone(name);
|
|
||||||
if (this._z) {
|
|
||||||
moment.updateOffset(this);
|
|
||||||
} else {
|
|
||||||
logError("Moment Timezone has no data for " + name + ". See http://momentjs.com/timezone/docs/#/data-loading/.");
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
if (this._z) { return this._z.name; }
|
|
||||||
};
|
|
||||||
|
|
||||||
function abbrWrap (old) {
|
|
||||||
return function () {
|
|
||||||
if (this._z) { return this._z.abbr(this); }
|
|
||||||
return old.call(this);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function resetZoneWrap (old) {
|
|
||||||
return function () {
|
|
||||||
this._z = null;
|
|
||||||
return old.apply(this, arguments);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
fn.zoneName = abbrWrap(fn.zoneName);
|
|
||||||
fn.zoneAbbr = abbrWrap(fn.zoneAbbr);
|
|
||||||
fn.utc = resetZoneWrap(fn.utc);
|
|
||||||
|
|
||||||
moment.tz.setDefault = function(name) {
|
|
||||||
if (major < 2 || (major === 2 && minor < 9)) {
|
|
||||||
logError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + moment.version + '.');
|
|
||||||
}
|
|
||||||
moment.defaultZone = name ? getZone(name) : null;
|
|
||||||
return moment;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Cloning a moment should include the _z property.
|
|
||||||
var momentProperties = moment.momentProperties;
|
|
||||||
if (Object.prototype.toString.call(momentProperties) === '[object Array]') {
|
|
||||||
// moment 2.8.1+
|
|
||||||
momentProperties.push('_z');
|
|
||||||
momentProperties.push('_a');
|
|
||||||
} else if (momentProperties) {
|
|
||||||
// moment 2.7.0
|
|
||||||
momentProperties._z = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// INJECT DATA
|
|
||||||
|
|
||||||
return moment;
|
|
||||||
}));
|
|
4463
static/js/moment.js
4463
static/js/moment.js
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue