From e27df0f1606d556b275a5d37590238a66fe71d39 Mon Sep 17 00:00:00 2001 From: tiennguyenvan Date: Fri, 22 Dec 2023 13:28:23 -0800 Subject: [PATCH] magone 6.9.95 --- magone/6.9.95/magone-rtl.min.css | 21 + magone/6.9.95/main.js | 6674 ++++++++++++++++++++++++++++++ magone/6.9.95/main.scss.css | 1 + magone/6.9.95/owl.min.js | 1 + 4 files changed, 6697 insertions(+) create mode 100644 magone/6.9.95/magone-rtl.min.css create mode 100644 magone/6.9.95/main.js create mode 100644 magone/6.9.95/main.scss.css create mode 100644 magone/6.9.95/owl.min.js diff --git a/magone/6.9.95/magone-rtl.min.css b/magone/6.9.95/magone-rtl.min.css new file mode 100644 index 0000000..e768777 --- /dev/null +++ b/magone/6.9.95/magone-rtl.min.css @@ -0,0 +1,21 @@ +*{word-wrap:break-word!important;font-display:swap}body{margin:0;overflow-x:hidden;padding:0;position:relative;width:auto}a{cursor:pointer}a img{border:none}.gi-regular,.gi-solid,.gib{line-height:1.1em!important}.gi-lg{font-size:1.1em!important}.gi-light{font-weight:300!important}.section,.widget{margin:0;padding:0}.item-control{display:none}.clear{clear:both;display:block;float:none}.inb{display:-moz-inline-stack;display:inline-block}.table{display:table;width:100%}.tr{display:table-row;width:100%}.td{display:table-cell;vertical-align:middle}.wide{margin:auto;max-width:100%;width:100%}iframe,img,ins,object{max-width:100%!important}img{height:auto}#admin-section,.hidden,.hide{display:none}a.thumbnail{transition:transform .1s}.item-main:hover>a.thumbnail,.item:hover>a.thumbnail{transform:scale(1.05)}.item-thumbnail,.natural-thumbnail{background-position:50%!important;background-size:cover!important;display:block;overflow:hidden;position:relative;width:100%;z-index:9}.item-thumbnail img{zoom:1;display:inline-block!important;height:100%;-o-object-fit:cover;object-fit:cover;padding:0!important;position:relative;width:100%}.natural-thumbnail img{display:block;height:auto;width:100%}.blogger-clickTrap,.widget>h2{display:none}.post-body h2,.post-body h3,.post-body h4{margin:1em 0 .5em}.widget .post-body ol,.widget .post-body ul{margin:.5em 0 1.5em}span.widget-item-control{bottom:0;position:absolute;left:0}.post-body{font-weight:400;line-height:1.5em;padding:5px 0 0;width:auto}.post-body b{font-weight:700}.post-body iframe.YOUTUBE-iframe-video,.post-body iframe[src*=youtube]{display:block;margin:0 0 10px;width:100%}.PopularPosts .item-thumbnail{float:none;margin:0}.sd,.shad,.shadow,.shd{-o-box-shadow:-2px 2px 3px rgba(0,0,0,.05);-ms-box-shadow:-2px 2px 3px rgba(0,0,0,.05);box-shadow:-2px 2px 3px rgba(0,0,0,.05)}.cir,.circle{border-radius:100%}.rad2{border-radius:2px}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel{-webkit-tap-highlight-color:rgba(0,0,0,0);display:none;position:relative;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y}.owl-carousel .owl-stage:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden}.owl-carousel .owl-stage-outer{overflow:hidden;position:relative;-webkit-transform:translateZ(0)}.owl-carousel .owl-controls .owl-dot,.owl-carousel .owl-controls .owl-nav .owl-next,.owl-carousel .owl-controls .owl-nav .owl-prev{cursor:pointer;cursor:hand;-webkit-user-select:none;-moz-user-select:none;user-select:none}.owl-carousel.owl-loaded{display:block}.owl-carousel.owl-loading{display:block;opacity:0}.owl-carousel.owl-hidden{opacity:0}.owl-carousel .owl-refresh .owl-item{display:none}.owl-carousel .owl-item{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;-webkit-backface-visibility:hidden;float:right;min-height:1px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.owl-carousel .owl-item img{display:block;-webkit-transform-style:preserve-3d;width:100%}.owl-carousel.owl-text-select-on .owl-item{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.owl-carousel .owl-grab{cursor:move;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.no-js .owl-carousel{display:block}.owl-carousel .owl-item img{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{background:#000;height:100%;position:relative}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-frame{position:relative;z-index:1}.loader,.loader:after,.loader:before{animation-fill-mode:both;animation:loading_dots 1.8s ease-in-out infinite;border-radius:50%;height:2.5em;width:2.5em}.loader{animation-delay:-.16s;font-size:10px;margin:80px auto;position:relative;text-indent:-9999em;transform:translateZ(0)}.loader:before{animation-delay:-.32s;right:-3.5em}.loader:after{right:3.5em}.loader:after,.loader:before{content:"";position:absolute;top:0}@keyframes loading_dots{0%,80%,to{box-shadow:0 2.5em 0 -1.3em hsla(0,0%,49%,.5)}40%{box-shadow:0 2.5em 0 0 hsla(0,0%,49%,.5)}}.white{background:#fff}#header{position:relative;z-index:99}#header-section{-o-box-shadow:-2px 2px 3px hsla(0,0%,47%,.122);-ms-box-shadow:-2px 2px 3px hsla(0,0%,47%,.122);box-shadow:-2px 2px 3px hsla(0,0%,47%,.122);position:relative;z-index:999}#header-wide .widget{margin:30px 0 0}#Header1{height:60px;margin:0;overflow:hidden;position:relative}.main-menu-toggle{float:right;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}#search-toggle{float:left}.header-button{display:block;height:60px;line-height:60px}.header-button .inner{align-items:center;box-sizing:border-box;-moz-column-gap:7px;column-gap:7px;display:flex;height:100%;padding:0 20px}.header-button .inner>span{font-size:10px;line-height:20px;opacity:.7;vertical-align:text-bottom}.header-button.active .inner span,.header-button:hover .inner span{opacity:1}.header-button .inner i.gi{font-size:20px;line-height:20px}#header .toggle-button .arrow{border-bottom-style:solid;border-bottom-width:5px;border-right:5px solid transparent;border-left:5px solid transparent;bottom:0;display:none;height:0;right:40px;position:absolute;width:0}#header .toggle-button.active .arrow{display:block}.header-mode-toggle{align-items:center;display:flex;float:left;margin-left:10px}.top-bar .header-mode-toggle.header-button{height:auto;margin-top:6px}.header-mode-toggle input{display:none}.header-mode-toggle label{align-items:center;border:1px solid hsla(0,0%,53%,.533);border-radius:30px;cursor:pointer;display:flex;font-size:10px;justify-content:space-between;padding:5px;position:relative;transition:.2s;width:30px}.header-mode-toggle label i{position:relative;z-index:2}.header-mode-toggle label .ball{background:hsla(0,0%,60%,.6);border-radius:100%;height:1.6em;position:absolute;transition:right .4s;width:1.6em;z-index:1}.header-mode-toggle input:not(:checked)+label .ball{right:2px}.header-mode-toggle input:checked+label .ball{right:22px}.blog-title{border-right:1px solid hsla(0,0%,60%,.467);float:right;font-size:26px;font-weight:400;height:30px;line-height:30px;margin:15px 0 0 20px;max-width:50%;overflow:hidden;padding:0 20px 0 0;position:relative}.blog-title img{height:auto!important;max-height:30px!important;width:auto!important}.top-page-wrapper .widget *{max-width:100%}#top-page .widget.HTML{max-height:90px;overflow:hidden;position:relative;width:728px}.top-page-wrapper.auto-height .widget *{max-width:none}#top-page-logo .blog-title{border:none;float:none;height:auto;margin:0;max-width:100%;padding:0;text-align:right}#top-page-logo .blog-title img{max-height:none!important}.top-page-wrapper.auto-height{padding-bottom:10px}.top-page-wrapper.auto-height .section#top-page .widget{float:left;min-width:50%}#header-section .LinkList,#header-section .PageList{display:none}.main-menu{position:relative}.main-menu ul.menu>li.menu-item-current>a:hover,.solid-white .main-menu ul.menu>li>a:hover{opacity:.8}.main-menu .menu .arrow{border-right:5px solid transparent;border-left:5px solid transparent;border-top:5px solid;display:inline-block;float:left;height:0;margin:18px 5px 0 0;width:0}.main-menu .sub-menu .arrow{border-bottom:5px solid transparent;border-right:5px solid;border-top:5px solid transparent;margin:15px 10px 0 0;position:relative;top:1px}.main-menu .menu a{position:relative}.main-menu ul{margin:0;padding:0}.main-menu ul.menu li{display:block;font-size:14px;font-weight:300;padding:0}ul.menu li>span{display:none}.main-menu ul.sub-menu li a{font-weight:400}.main-menu ul.sub-menu li{font-size:13px;position:relative}.main-menu ul.menu li a{display:block;height:40px;line-height:40px;padding:0 20px;text-decoration:none}.main-menu ul.menu>li>a{position:relative}.main-menu ul.menu>li.menu-item-has-children>a{padding-left:30px}.main-menu ul.menu>li>a .arrow{position:absolute;left:15px;top:-1px}.main-menu ul.menu>li{float:right;height:40px;line-height:40px}.main-menu .menu-item-inner{opacity:0;transition:visibility 0s linear .3s,opacity .3s linear;-webkit-transition:visibility 0s linear .3s,opacity .3s linear;-moz-transition:visibility 0s linear .3s,opacity .3s linear;-o-transition:visibility 0s linear .3s,opacity .3s linear;-ms-transition:visibility 0s linear .3s,opacity .3s linear;visibility:hidden}.main-menu ul.sub-menu{min-width:180px;position:absolute;top:100%}.main-menu li:hover>.menu-item-inner{opacity:1;transition-delay:0s;-webkit-transition-delay:0s;-moz-transition-delay:0s;-o-transition-delay:0s;-ms-transition-delay:0s;visibility:visible}.main-menu ul.sub-menu li:hover a{background:rgba(0,0,0,.2);transition:all .2s ease-in-out}.main-menu ul.sub-menu a{height:auto;min-height:40px;padding-left:10px}.main-menu ul.sub-menu ul.sub-menu{right:100%;top:0}.main-menu li.menu-item-mega:hover .menu-item-inner{opacity:1;visibility:visible}.main-menu li.menu-item-mega .menu-item-inner .arrow{display:none}.main-menu .menu-item-mega>.menu-item-inner>.sub-menu{right:0;padding:10px 0;width:100%}.main-menu .menu-item-mega>.menu-item-inner>.sub-menu>li{float:right;width:25%}.main-menu .menu-item-mega>.menu-item-inner>.sub-menu>li>a{font-size:14px}.main-menu .menu-item-mega>.menu-item-inner>.sub-menu>li>.menu-item-inner{border-right:1px solid #3c3c3c;margin-right:20px;position:static}.main-menu .menu-item-mega .sub-menu .sub-menu{right:0;position:relative}.main-menu .menu-item-mega:hover .sub-menu a{background:none;border-right:none}.main-menu .menu-item-mega .sub-menu .sub-menu a{font-size:12px;margin-right:15px;padding:0}.main-menu .menu-item-mega>.menu-item-inner>.sub-menu>li li:hover a{padding-right:10px}.main-menu li.menu-item-mega-label:hover .menu-item-inner .menu-mega-content{margin-top:-25px;position:relative;z-index:1}.main-menu .menu-item-mega-label .menu-item-inner{right:0;padding:20px 0;position:absolute;width:100%}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item{float:right;margin-left:2%;width:22.5%}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item.item-0{margin-right:2%}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content{margin:0}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item .item-thumbnail{background:#000;height:160px;padding:0}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item .item-thumbnail:hover img{background:#000;opacity:.5;transition:opacity .3s linear;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-o-transition:opacity .3s linear;-ms-transition:opacity .3s linear}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item .item-thumbnail i.gi{color:#fff;font-size:1000%;opacity:0;position:absolute;text-align:center;top:40%;visibility:hidden;width:100%;z-index:999}.main-menu li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item .item-thumbnail:hover i.gi{font-size:200%;opacity:1;transition:visibility .3s linear,font-size .3s linear,opacity .3s linear;-webkit-transition:visibility .3s linear,font-size .3s linear,opacity .3s linear;-moz-transition:visibility .3s linear,font-size .3s linear,opacity .3s linear;-o-transition:visibility .3s linear,font-size .3s linear,opacity .3s linear;-ms-transition:visibility .3s linear,font-size .3s linear,opacity .3s linear;visibility:visible}.main-menu ul.menu li a.item-title{color:#ccc;font-size:14px;font-weight:400;height:auto;line-height:1.5em;margin:10px 0 0;padding:0}.main-menu ul.menu li a.item-title:hover{color:#fff}.main-menu ul.menu li.menu-item-mega-label.menu-item-has-children>.menu-item-inner>ul.sub-menu{border-top:none;float:right;margin-top:-15px;padding:0;position:relative;width:20%}.main-menu ul.menu li.menu-item-mega-label.menu-item-has-children>.menu-item-inner>ul.sub-menu>li{float:none;width:100%}.main-menu ul.menu li.menu-item-mega-label.menu-item-has-children>.menu-item-inner>ul.sub-menu .menu-item-inner{padding:0;width:auto}.main-menu ul.menu li.menu-item-mega-label.menu-item-has-children>.menu-item-inner .menu-mega-content{float:left;width:80%}.main-menu.main-menu-center>ul.menu>li{display:inline-block;float:none}.main-menu.main-menu-center>ul.menu{text-align:center}.main-menu.main-menu-center ul.sub-menu{text-align:right}.main-menu.main-menu-center li.menu-item-mega-label.finished .menu-item-inner .menu-mega-content .item .item-thumbnail i.gi{right:0}.main-menu.sticky-menu{border-bottom:1px solid hsla(0,0%,47%,.2);box-shadow:0 0 10px hsla(0,0%,47%,.122);right:0;position:fixed;top:0;width:100%}.main-menu.sticky-menu>ul.menu{margin:auto;position:relative}#header.sticky{box-sizing:border-box;right:0;position:fixed;top:0;width:100%}#header.sticky #Header1{height:50px;z-index:0}#header.sticky #header-section{border-bottom:1px solid hsla(0,0%,47%,.2)}#header.sticky.mobile-menu-opened{overflow-y:scroll}#header.sticky.mobile-menu-opened .mobile-menu{padding-bottom:320px}#header.sticky .blog-title{box-sizing:border-box;float:none;height:50px;line-height:30px;margin:0;max-width:none;padding:10px 50px;position:relative;text-align:center;z-index:0}#header.sticky .header-social-icons{display:none}#header.sticky .mobile-menu .header-social-icons{display:block}#header.sticky #search-toggle{height:50px;line-height:50px;position:absolute;left:0;top:0;z-index:2}#header.sticky #main-menu-toggle-mobile{height:50px;right:0;line-height:50px;position:absolute;top:0;z-index:2}#header.sticky .header-button .inner span{display:none}#header.sticky .mobile-menu{position:absolute;width:100%}#header.sticky.auto-height #header-section{background:none;top:-50px}#header.sticky .top-page-wrapper{padding:0}#header.sticky .top-bar{background:none;border-bottom:none!important;height:48px;margin:0;overflow:hidden;position:absolute;left:0;top:0;width:60px;z-index:9999}#header.sticky .top-bar .header-button .inner{line-height:18px}#header.sticky .header-mode-toggle{display:none}#header.sticky.auto-height .top-bar .header-button .inner{padding:10px 20px}#header.sticky.auto-height .top-page-wrapper{margin:auto;position:relative;z-index:9999}#header.sticky.auto-height .top-page-wrapper,#header.sticky.auto-height .top-page-wrapper *{width:-moz-fit-content!important;width:fit-content!important}.widget-content div[id*=BlogSearch],div.gsc-control-cse{border:1px solid hsla(0,0%,47%,.333);border-radius:4px;padding:5px}table.gsc-search-box td{padding:0!important}.gsc-search-box input.gsc-input{background:none;box-shadow:none;font-size:16px;height:36px;line-height:36px;margin:0;outline:none!important;padding:0}.gsc-search-box-tools .gsc-search-box td.gsc-input{display:block!important;padding:0!important}.gsc-input-box,.gsc-input-box-focus,.gsc-input-box-hover,input.gsc-input{background:none!important;border:none!important}.gsc-search-box-tools .gsc-search-box .gsc-input,table.gsc-search-box,table.gsc-search-box table{box-shadow:none!important}form.gsc-search-box,input.gsc-search-button,table.gsc-search-box{margin:0!important}form.gsc-search-box,table.gsc-search-box{width:100%}input.gsc-search-button{float:left}.search-form-wrapper{background:rgba(0,0,0,.667);display:none;height:100%;right:0;position:fixed;top:0;width:100%;z-index:99}.search-form{height:1px;text-align:center;top:40%}.search-form,.search-form-label{right:0;position:absolute;width:100%}.search-form-label{bottom:100%;color:#fff;display:block;font-size:40px;font-weight:400}.search-text,form input[type=text].search-text{background:none;border:none;border-bottom:1px dashed #ddd;color:#fff;font-size:60px;right:0;margin:20px auto 0;min-width:300px;outline:none;position:absolute;left:0;text-align:center;top:100%;width:50%}.search-form-overlay{height:100%;right:0;position:absolute;top:0;width:100%}.header-social-icons{float:left}.header-social-icons ul{margin:0;padding:0}.header-social-icons ul li{display:inline-block;font-size:20px;height:55px;line-height:55px;margin:0 0 0 15px;padding:0}.header-social-icons ul li a,.header-social-icons ul li a:link{display:block;margin:2px 0 0;opacity:.5}.header-social-icons ul li a:hover{opacity:1}#inner-primary{position:relative}#primary .widget{margin-top:30px}#content-section-2{position:relative}.feed.widget{background:none}.feed-widget-header{position:relative}.feed-widget-header .widget-title{float:right;margin:0 0 5px 10px}.feed-widget-header .feed-widget-viewall{float:left;margin:5px 0 0}.feed.widget .item-title{line-height:1.3em;margin:0}.feed.widget .item-main{overflow:hidden;position:relative}.feed-widget-labels{float:right;margin:6px 0 0}.feed-widget-labels.listing{min-height:1.6em}.feed-widget-labels ul{border-radius:2px;margin:0;padding:0}.feed-widget-labels li{display:block;margin:0;padding:0}.feed-widget-labels a{color:#fff;display:none;font-size:11px;line-height:1;padding:2px 5px;white-space:nowrap}[data-mode=dark] .feed-widget-labels a{color:#fff}.feed-widget-labels a:hover{opacity:.8}.feed-widget-labels a .check,.feed-widget-labels a .down{display:none}.feed-widget-labels a.active{background:none!important;display:block}.feed-widget-labels a.active .down,.feed-widget-labels.listing a.active .check{display:inline}.feed-widget-labels.listing a.active .down{display:none}.feed-widget-labels.listing ul{position:absolute;z-index:99}.feed.widget .item:hover img{opacity:.9}.feed.widget .meta-items{clear:both}.feed.widget .item-labels.bg{display:inline-block;font-size:11px;line-height:1em;margin:0 0 10px;padding:4px 5px 5px;text-shadow:none}.feed.widget .item-labels.bg a{color:#fff}.feed.widget .item-labels a:hover,.feed.widget .item-readmore:hover{text-decoration:underline}.feed-widget-pagination{line-height:60px}a.feed-widget-pagination-button{border:1px solid hsla(0,0%,47%,.6);font-weight:700;margin:0 0 0 12px;padding:6px 10px}body a.feed-widget-pagination-button.active{background:none;-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none;color:hsla(0,0%,47%,.6)}span.feed-widget-pagination-separator{margin:0 0 0 15px}span.feed-widget-pagination-info{opacity:.6}.feed.widget .item-icon{font-size:40px;height:100%;right:0;opacity:0;position:absolute;top:0;width:100%;z-index:9}.feed.widget .item-icon,[data-mode=dark] .feed.widget .item-icon{background-color:rgba(0,0,0,.3)}.feed.widget .item:hover .item-icon{opacity:1;transition:opacity .3s linear;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-o-transition:opacity .3s linear;-ms-transition:opacity .3s linear}.feed.widget .item-icon .item-icon-inner{display:block;height:1em;position:absolute;text-align:center;top:50%;width:100%}.feed.widget .item-icon i[class*=gi-]{color:#fff;display:block;font-size:60px;line-height:1em;margin-top:-.5em;opacity:.6}.feed.widget .item:hover .item-icon i.gi{font-size:40px;transition:font-size .3s linear;-webkit-transition:font-size .3s linear;-moz-transition:font-size .3s linear;-o-transition:font-size .3s linear;-ms-transition:font-size .3s linear}.feed.widget.under-title .feed-widget-header{border-bottom-style:solid;border-bottom-width:1px;margin:0 0 10px}.feed.widget.head-title .feed-widget-header{border-right-style:solid;border-right-width:10px;padding-right:7px}.feed.widget .thumbnail-overlay{webkit-box-shadow:inset 0 0 50px rgba(0,0,0,.5);box-shadow:inset 0 0 50px rgba(0,0,0,.5);display:block;height:100%;opacity:.6;position:absolute;top:0;width:100%}.feed.widget .item:hover .thumbnail-overlay{opacity:.8}.feed.widget .item-content{z-index:10}.feed.widget .item-sub .item-title a{color:#000!important}[data-mode=dark] .feed.widget .item-sub .item-title a{color:#fff!important}.feed.widget .item-content.gradient{box-sizing:border-box;width:100%}.feed.widget .item-content.gradient,[data-mode=dark] .feed.widget .item-content.gradient{background:linear-gradient(-180deg,hsla(0,0%,100%,0) 0,rgba(0,0,0,.8))}.feed.widget.list .item{border-bottom:1px solid hsla(0,0%,47%,.2);-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}#main-sidebar .feed.widget.list .item{border:none;border-top:1px solid hsla(0,0%,47%,.2);margin-top:15px;padding-top:15px}#main-sidebar .feed.widget.list .item-0{border:none;margin-top:0;padding-top:0}#main-sidebar .feed.widget.list .widget-content{padding:15px 20px}#main-sidebar .feed.widget.list .td{padding:0}#main-sidebar .feed.widget.list .td.item-readmore{text-align:left}.feed.widget.list .item-title{font-size:14px;font-weight:400;line-height:1.5em;word-break:break-all}.feed.widget.list .item-title a{word-break:break-word}.feed.widget.list .meta-item-author{font-weight:700}.feed.widget.list .meta-item-date{font-size:10px;font-style:italic;opacity:.7;text-transform:capitalize}.feed.widget.list .td{padding:12px 20px}.feed.widget.list .td.item-readmore{font-size:30px;padding-right:0;padding-left:0}.feed.widget.box-title h2.widget-title{color:#fff;font-size:16px;font-weight:400;margin:0 0 0 7px;padding:5px 7px}.feed.widget.box-title h2.widget-title a{color:#fff;display:block;line-height:1em}#main-sidebar .feed.widget.list .td{text-align:right}.feed.widget.ticker .widget-content{-ms-box-shadow:-2px 2px 3px rgba(0,0,0,.05);-o-box-shadow:-2px 2px 3px rgba(0,0,0,.05);box-shadow:-2px 2px 3px rgba(0,0,0,.05);height:80px;position:relative}#main-sidebar .feed.widget.ticker .widget-content{padding:0}.ticker-item{font-size:12px;padding:15px 15px 15px 30px}.ticker-item a.thumbnail{float:right;height:50px;width:30%}.ticker-item-content{bottom:0;min-height:50px;position:absolute;left:0;width:65%}.ticker-item-inner{height:50px;overflow:hidden;position:relative}.feed.widget.ticker .item-title a{display:block;font-size:12px;font-weight:400;width:100%}.ticker-button-left{display:none}.ticker-button-right{background:currentColor;bottom:25px;height:30px;line-height:30px;padding:0 8px;position:absolute;left:0;text-align:center}.ticker-button-right i{color:#fff;font-size:28px}.feed.widget.ticker .item-icon{width:30%}.feed.widget.ticker .ticker-item:hover .item:hover .item-icon i.gi{font-size:20px}.grid-sub{float:right;height:400px;overflow:hidden;position:relative;width:100%}.grid-sub-wide{width:55%}.grid-sub-narrow{width:45%}.grid-item .item-thumbnail{height:100%;position:relative;width:100%}.grid-item{height:50%;overflow:hidden;position:relative;width:100%}.grid-item-content{bottom:0;padding:0 7% 30px;position:absolute;text-align:right;text-shadow:-1px 1px 0 #000;width:86%;z-index:9}.grid-item .meta-item{font-size:12px;margin:0 0 0 2em}.grid-item .meta-item .gi{font-size:16px}.grid-item .meta-item span{color:#fff;vertical-align:2px}.feed.widget.grid .grid-item .item-title a{color:#fff;display:block;font-size:18px;font-weight:400;line-height:1.3em}.grid-item .item-snippet{color:#fff;font-size:13px;line-height:1.5em;margin:10px 0 20px;opacity:.9}.grid-item .item-readmore-wrapper{display:block;margin-top:30px}.grid-item .item-readmore{background:rgba(0,0,0,.3);border:1px solid #fff;border-radius:2px;color:#fff;padding:10px 20px;text-transform:uppercase}.grid-item-inner{height:100%;position:relative}#main-sidebar .grid-sub{height:200px}#main-sidebar .feed.widget.grid .grid-item .item-title a{font-size:16px}.grid-sub-1 .grid-item{height:100%}.grid-sub-3 .grid-sub-item-1,.grid-sub-4 .grid-sub-item-0,.grid-sub-4 .grid-sub-item-1,.grid-sub-item-2,.grid-sub-item-3{float:right;width:50%}.feed.widget.grid .grid-sub-1 .grid-item .item-title a{font-size:26px}#main-sidebar .feed.widget.grid .widget-content{padding:0}.feed.widget.slider .widget-content:hover img{opacity:.6}.slider-item,.slider-item .item-thumbnail{height:400px}.slider-item{overflow:hidden;position:relative}.slider-item-content{bottom:25%;padding:0 8%;position:absolute;text-align:center;text-shadow:-1px 1px 0 #000;width:84%;z-index:10}.slider-item .meta-item{font-size:12px;margin:0 1em}.slider-item .meta-item .gi{font-size:16px}.slider-item .meta-item span{color:#fff;vertical-align:2px}body .slider-item .item-title a{color:#fff;display:block;line-height:1.1em;margin:10px 0 0;text-shadow:0 0 5px rgba(0,0,0,.5),-1px 1px 3px #000}.slider-item .item-snippet{color:#fff;font-size:16px;margin:10px 0 20px;opacity:.9}.slider-item .item-readmore-wrapper{display:block;margin-top:40px}body .slider-item a.item-readmore{background:rgba(0,0,0,.3);border:1px solid #fff;border-radius:2px;color:#fff;padding:10px 20px;text-transform:uppercase}.owl-nav{width:100%}.owl-nav,a.slider-button{bottom:0;position:absolute}a.slider-button{color:#fff;font-size:30px;opacity:.8;padding:0 2%}a.slider-button:hover{opacity:1}a.slider-button-right{left:0}a.slider-button-left{right:0}.owl-dots{bottom:3%;right:0;margin:auto;position:absolute;left:0;text-align:center;width:60%}.owl-dot{background:#fff;border-radius:100%;display:inline-block;height:10px;margin:0 5px;opacity:.6;width:10px}.owl-dot.active,.owl-dot:hover{opacity:1}#main-sidebar .slider-item,#main-sidebar .slider-item .item-thumbnail{height:200px}#main-sidebar .slider-item .item-title a{font-size:20px}#main-sidebar .feed.widget.slider .widget-content{padding:0}#main-sidebar .slider-item .item-snippet{font-size:12px}.feed.widget.sticky .item{clear:left;float:left;margin-top:20px;width:37.5%}.feed.widget.sticky .item-0,.feed.widget.sticky .item-1{margin-top:0}.feed.widget.sticky .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.sticky .item-content{bottom:0;padding:0 25px 20px;position:absolute}.feed.widget.sticky .item-thumbnail{height:140px}.feed.widget.sticky .item-0 .item-thumbnail{height:310px}.feed.widget.sticky .item-title{display:block;line-height:1.3em;margin:0}.feed.widget.sticky .item-sub .item-title{margin:0 0 15px}.feed.widget.sticky .item-than-0 .item-title{margin:10px 0 0}.feed.widget.sticky .item-title a{color:#fff!important;font-size:16px;font-weight:400}.feed.widget.sticky .item-0 .item-title a{font-size:26px;line-height:1.2em}.feed.widget.sticky a.meta-item{color:#fff;font-size:12px;margin:0 0 0 2em}.feed.widget.sticky a.meta-item-author{color:#fff;display:block;margin:15px 0 0}.feed.widget.sticky a.meta-item-author .avatar{font-style:italic;opacity:.8}.feed.widget.sticky .item-sub{color:#fff;font-size:14px;font-weight:400;line-height:1.7em;padding:25px}.feed.widget.sticky .item-snippet{display:inline;line-height:1.5em}.feed.widget.sticky .meta-items{margin-top:14px}.feed.widget.sticky .item-0{clear:right;float:right;width:59%}.feed.widget.sticky .item-0 a.item-readmore{color:#fff}.feed.widget.sticky .item-extra{clear:both;float:none;width:100%}.feed.widget.sticky .item-extra .item-thumbnail{height:250px}.feed.widget.sticky .item-extra .item-title a{font-size:30px;line-height:1.3em}.feed.widget.sticky.no-spacing .item{margin-top:0;width:40%}.feed.widget.sticky.no-spacing .item-0{width:60%}.feed.widget.sticky.no-spacing .item-extra{width:100%}.feed.widget.sticky.no-spacing .item-0 .item-thumbnail{height:269px}.feed.widget.three .three-col,.feed.widget.three.fix-height .item{float:right;margin:20px 3.5% 0 0;width:31%}.feed.widget.three .three-col{background:none;margin-top:0}.feed.widget.three .three-col .item{margin-top:20px}.feed.widget.three .three-col.col-1,.feed.widget.three.fix-height .item-three{clear:right;margin-right:0}.feed.widget.three .three-col .item-0,.feed.widget.three .three-col .item-1,.feed.widget.three .three-col .item-2,.feed.widget.three.fix-height .item-0,.feed.widget.three.fix-height .item-1,.feed.widget.three.fix-height .item-2{margin-top:0}.feed.widget.three .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.three .item-thumbnail{height:150px;position:relative;z-index:0}.feed.widget.three .item-content{bottom:0;padding:15px;position:absolute;z-index:1}.feed.widget.three .item-title{font-size:16px;font-weight:400;margin:0}.feed.widget.three .item-title a{color:#fff}.feed.widget.three .item-sub{padding:15px}.feed.widget.three .item-sub .item-title{margin:0 0 15px}.feed.widget.three .item-snippet{display:inline;font-size:13px;opacity:.7}.item-readmore-wrapper{display:inline;margin:0 .3em 0 0}.feed.widget.three .meta-items{border-top:1px solid hsla(0,0%,47%,.2);margin:15px 0 0;padding:10px 0 0}.feed.widget.three .meta-item{display:block;margin:5px 0 0}.feed.widget.three .three-col-mobile .item{margin-top:20px}.feed.widget.three.no-spacing .item{margin:0;width:33.3333%}.feed.widget.three.no-spacing.auto-height .item{width:100%}.feed.widget.three.no-spacing .item-sub{border-left:1px solid hsla(0,0%,47%,.333)}.feed.widget.complex .item{float:right;margin:20px 4% 0 0;width:48%}.feed.widget.complex .item-0,.feed.widget.complex .item-1{margin-top:0}.feed.widget.complex .item-two{margin-right:0}.feed.widget.complex .item-2{margin:20px 4% 0 0}.feed.widget.complex .item-main{padding:20px}.feed.widget.complex .item-title{font-size:16px;font-weight:400;line-height:1.45em}.feed.widget.complex .item-0 .item-main{padding:0}.feed.widget.complex .item-0 .item-sub .item-title{margin:0 0 15px}.feed.widget.complex .item-extra.item-four{clear:right}.feed.widget.complex .item-0 .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.complex .item-0 .item-thumbnail{height:180px}.feed.widget.complex .item-0 .item-content{bottom:0;padding:20px;position:absolute}.feed.widget.complex .item-0 .item-title{font-size:20px;font-weight:400;line-height:1.2em;margin:0}.feed.widget.complex .item-0 .item-title a{color:#fff}.feed.widget.complex .item-0 .meta-item{margin:0 0 0 2em}.feed.widget.complex .item-0 .meta-item-author{color:#fff;display:block;margin:10px 0 0}.feed.widget.complex .item-0 a.meta-item-author .avatar{font-style:italic;opacity:.8}.feed.widget.complex .item-0 .item-sub{padding:20px}.feed.widget.complex .item-0 .item-snippet{display:inline;font-size:13px;line-height:1.6em;opacity:.7}.feed.widget.complex .item-0 .meta-items{font-size:12px;margin:30px 0 0}.feed.widget.complex.no-spacing .item{border-bottom:1px solid #ddd;margin:0;width:50%}.feed.widget.complex.no-spacing .item-main,.feed.widget.complex.no-spacing .item-sub{border-left:1px solid #ddd}.feed.widget.complex.no-spacing .item-0 .item-thumbnail{height:142px}.carousel-item-content{bottom:0;padding:0 20px 30px;position:absolute;z-index:10}.carousel .item-title{font-size:18px;font-weight:400;margin:10px 0 0;text-shadow:-1px 1px 0 #000;text-shadow:0 0 5px rgba(0,0,0,.5),-1px 1px 3px #000}body .carousel .item-title a{color:#fff}.carousel .item-thumbnail{height:210px}.carousel .owl-nav{bottom:auto;right:auto;left:0;text-align:left;top:0}a.carousel-button{color:#fff;display:block;font-size:40px;opacity:.8;padding:0 20px;position:absolute;text-shadow:-1px 1px 0 #000}a.carousel-button:hover{opacity:1}.carousel .owl-nav>div{display:inline}a.carousel-button-left{right:0}a.carousel-button-right{left:0}#main-sidebar .feed.widget.carousel .widget-content{padding:0}.feed.widget.blogging .widget-content{-o-box-shadow:-2px 2px 3px rgba(0,0,0,.05);-ms-box-shadow:-2px 2px 3px rgba(0,0,0,.05);box-shadow:-2px 2px 3px rgba(0,0,0,.05);padding:20px}.feed.widget.blogging .item{border-top:1px solid hsla(0,0%,47%,.2);-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none;margin:20px 0 0;padding:20px 0 0}.feed.widget.blogging .item-0{border-top:none;margin:0;padding:0}.feed.widget.blogging .thumbnail{float:right;position:relative;width:40%}#main-sidebar .feed.widget.blogging .thumbnail{width:20%}.feed.widget.blogging .item-thumbnail{height:180px}#main-sidebar .feed.widget.blogging .item-thumbnail{height:50px}.feed.widget.blogging .item-content{margin-right:44%}#main-sidebar .feed.widget.blogging .item-content{margin-right:24%}#main-sidebar .feed.widget.blogging .item.no-thumbnail .item-content,.feed.widget.blogging .item.no-thumbnail .item-content{margin-right:0}#main-sidebar .feed.widget.blogging.no-title .widget-content{padding:20px;text-align:right}.feed.widget.blogging .item-title{font-size:24px;font-weight:400;margin:5px 0 10px}#main-sidebar .feed.widget.blogging .item-title{font-size:14px}.feed.widget.blogging .meta-items{clear:none;margin:0 0 10px;opacity:.7}.feed.widget.blogging .meta-item{margin:0 0 0 2em}.feed.widget.blogging .item-snippet{display:inline;font-size:13px;line-height:1.65em;opacity:.7}.feed.widget.left{float:right;width:48%}.feed.widget.right{float:left;width:48%}.feed.widget.left .item,.feed.widget.right .item{margin:20px 0 0}.feed.widget.left .item-0,.feed.widget.right .item-0{margin:0}.feed.widget.left .item-0 .item-thumbnail,.feed.widget.right .item-0 .item-thumbnail{height:200px}.feed.widget.left .item-extra .item-main,.feed.widget.right .item-extra .item-main{padding:20px}.feed.widget.left .item-0 .item-main,.feed.widget.right .item-0 .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.left .item-0 .item-content,.feed.widget.right .item-0 .item-content{bottom:0;padding:20px;position:absolute}.feed.widget.left .item-title,.feed.widget.right .item-title{font-size:18px;font-weight:400;margin:0}body .feed.widget.left .item-0 .item-title a,body .feed.widget.right .item-0 .item-title a{color:#fff}.feed.widget.left .item-sub,.feed.widget.right .item-sub{padding:20px;position:relative}.feed.widget.left .item-0 .item-sub .item-title,.feed.widget.right .item-0 .item-sub .item-title{font-size:22px;margin:0 0 15px}.feed.widget.left .item-snippet,.feed.widget.right .item-snippet{display:inline;font-size:13px;line-height:1.5em;opacity:.7}.feed.widget.left .meta-items,.feed.widget.right .meta-items{margin:20px 0 0}.feed.widget.left .meta-item,.feed.widget.right .meta-item{margin:0 0 0 2em}.feed.widget.left .meta-item-author,.feed.widget.right .meta-item-author{color:#fff;display:block;margin:10px 0 0}.feed.widget.left .meta-item-author .avatar,.feed.widget.right .meta-item-author .avatar{font-style:italic;opacity:.8}.feed.widget.left.no-spacing .item,.feed.widget.right.no-spacing .item{border-bottom:1px solid #ddd;margin:0}.feed.widget.one .item{margin:20px 0 0}.feed.widget.one .item-0{margin:0}.feed.widget.one .item-thumbnail{height:370px}.feed.widget.one .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.one .item-content{bottom:0;padding:30px;position:absolute}.feed.widget.one .item-title{font-size:30px;font-weight:400;margin:0}.feed.widget.one .item-title a,[data-mode=dark] .feed.widget.one .item-title a{color:#fff}.feed.widget.one .item-sub{padding:30px}.feed.widget.one .item-sub .item-title{margin:0 0 .5em}.feed.widget.one .meta-items{margin:0 0 20px}.feed.widget.one .meta-item{color:#000;margin:0 0 0 2em}.feed.widget.one .item-snippet{display:inline;font-size:15px;opacity:.5}.feed.widget.one.no-spacing .item{margin:0}#main-sidebar .feed.widget.one .item-content{padding:0 20px 15px}#main-sidebar .feed.widget.one .item-thumbnail{height:180px}#main-sidebar .feed.widget.one .item-title{font-size:20px;font-weight:400}#main-sidebar .feed.widget.one.popularposts .item-labels{font-size:20px;padding:5px 5px 7px}#main-sidebar .feed.widget.one.no-title .widget-content{text-align:right}#main-sidebar .feed.widget.one .item{-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none}#main-sidebar .feed.widget.one .item-sub{border-bottom:1px solid hsla(0,0%,47%,.2);padding:20px 0}#main-sidebar .feed.widget.one.no-title .item-sub{margin:0 20px}#main-sidebar .feed.widget.one .item-last .item-sub{border-bottom:none}#main-sidebar .feed.widget.one.popularposts .item-sub{padding-top:10px}#main-sidebar .feed.widget.one .meta-items{margin:0 0 15px}#main-sidebar .feed.widget.one .item-snippet{font-size:14px;line-height:1.5em}#main-sidebar .feed.widget.one .widget-content{padding-bottom:0}#main-sidebar .feed.widget.one .item-sub .item-title{margin-top:-10px}.feed.widget.two .two-col-left{float:right;width:48.5%}.feed.widget.two .two-col-right{float:left;width:48.5%}.feed.widget.two .item{margin:20px 0 0}.feed.widget.two .item-0,.feed.widget.two .item-1{margin:0}.feed.widget.two.fix-height .item{float:left;width:48.5%}.feed.widget.two.fix-height .item.item-two{float:right}.feed.widget.two .item-main{position:relative;text-shadow:-1px 1px 0 #000}.feed.widget.two .item-thumbnail{height:250px}.feed.widget.two .item-content{bottom:0;padding:20px;position:absolute}.feed.widget.two .item-title{font-size:18px;font-weight:400;margin:0}.feed.widget.two .item-title a{color:#fff}.feed.widget.two .meta-items{margin:20px 0 0}.feed.widget.two .meta-items a{color:#000;margin:0 0 0 2em}.feed.widget.two .meta-item-author{color:#fff;display:block;margin:15px 0 0}.feed.widget.two .meta-item-author .avatar{font-style:italic;opacity:.8}.feed.widget.two .item-sub{padding:20px}.solid-white .feed.widget.two .item-sub{padding:15px 0 20px}.feed.widget.two .item-sub .item-title{margin:0 0 .5em}.feed.widget.two .item-snippet{color:#333;display:inline;font-size:13px;line-height:1.5em}.feed.widget.two.fix-height.no-spacing .item,.feed.widget.two.no-spacing .two-col{width:50%}.feed.widget.two.no-spacing .item{margin:0}.BlogArchive li,.BlogArchive ul{display:block;font-weight:700;margin:0;padding:0}.BlogArchive .post-count{opacity:.5}.BlogArchive li{margin:5px 5px 10px 0}.BlogArchive li.collapsed ul{display:none}.BlogArchive ul ul{margin-right:19px}.BlogArchive ul ul.posts li{font-weight:400;margin:5px 0 0}.BlogArchive a{cursor:pointer;font-family:Arial,sans-serif}.BlogArchive a.toggle{color:#000}select#BlogArchive1_ArchiveMenu{border-color:#ddd;box-sizing:border-box;cursor:pointer;font-weight:700;padding:10px;width:100%}[data-mode=dark] select#BlogArchive1_ArchiveMenu{border-color:#ddd}.widget.quote{background:#000!important;overflow:hidden;position:relative}.widget.quote .item-thumbnail{min-height:100%;position:absolute;width:100%;z-index:0}.widget.quote>h2{background:rgba(0,0,0,.3);border:none!important;color:#fff!important;padding:20px!important}.widget.quote .widget-content{color:#fff;font-size:18px;font-weight:400;position:relative;z-index:1}.widget.quote .quote-icon{bottom:0;font-size:70px;right:20px;opacity:.2;position:absolute}.widget.quote .quote-author{font-size:14px;font-weight:700;letter-spacing:3px;margin:30px 0 0;text-align:left}.widget.quote .quote-content{font-style:italic;line-height:2em;padding:0 20px}.blog-list-container .blog-icon{display:none}.blog-list-container .blog-title{border:none;float:none;font-size:12px;height:auto;line-height:1.5em;margin:0;padding:0 5% 0 0;width:100%}.blog-list-container .item-content .item-title a{display:block;float:none;padding:0 5% 0 0;width:95%}.blog-list-container .blog-content{float:none;margin:0;padding:15px 0 10px;width:100%}.blog-list-container li{border-right:1px solid #ccc;margin:0 0 5px;padding:0}.blog-list-container .item-time{background:#fff;color:#666;font-size:11px;line-height:11px;margin-right:-2px;padding:0 0 5px;position:absolute;top:0;width:100%}[data-mode=dark] .blog-list-container .item-time{background:#fff;color:#666}.cloud-label-widget-content .label-size{color:#fff;display:block;float:right;font-size:14px;margin:0 0 5px 5px;opacity:1;padding:5px}.cloud-label-widget-content .label-size a{color:#fff}.cloud-label-widget-content .label-size .label-count{background:rgba(0,0,0,.2);color:#fff;display:inline-block;font-size:11px;font-weight:700;line-height:1;margin:0 3px 0 0;padding:3px 5px}.cloud-label-widget-content .label-size:hover{opacity:.95}.list-label-widget-content ul{margin:0;padding:0}.list-label-widget-content ul li{border-top:1px solid hsla(0,0%,47%,.2);display:block;font-size:120%;line-height:1em;margin:1.05em 0 0;padding:1em 0 0}.list-label-widget-content ul li:first-child{border:none;margin:.5em 0 0;padding:0}.list-label-widget-content ul li a{opacity:.8}.list-label-widget-content ul li a:hover{opacity:1}.list-label-widget-content ul li span{color:#999;display:inline-block;font-size:.7em;position:relative;top:-.7em}[data-mode=dark] .list-label-widget-content ul li span{color:#999}.widget.FeaturedPost .post-summary{padding:5px 20px 20px}.widget.FeaturedPost h3{font-size:18px;font-weight:400;margin-bottom:0}.widget.FeaturedPost p{font-size:14px;line-height:1.7em;margin:.5em 0 1em;opacity:.7}.Profile.widget dt.profile-data a{background-repeat:no-repeat;display:block;font-size:16px;font-weight:700;line-height:16px;padding-right:25px}.Profile.widget dt.profile-data a:hover{opacity:.8}.Profile.widget a.profile-link{color:gray;font-style:italic}.Profile.widget a.profile-link:hover{text-decoration:underline}#main-sidebar .feed-widget-header,#main-sidebar .widget>h2{border-bottom:1px solid hsla(0,0%,47%,.122);-ms-box-shadow:0 3px 7px rgba(0,0,0,.07);-o-box-shadow:0 3px 7px rgba(0,0,0,.07);box-shadow:0 3px 7px hsla(0,0%,47%,.122);font-weight:400;letter-spacing:1px;margin:0;opacity:.7;padding:15px 20px;position:relative;z-index:2}#main-sidebar .feed-widget-header:hover,#main-sidebar .widget>h2:hover{opacity:1}#main-sidebar .feed-widget-viewall{font-size:11px;margin:3px 0 0}#main-sidebar .feed-widget-header h2{margin:0}#main-sidebar .feed-widget-labels{font-size:11px;margin:0 5px 0 0;padding:0}#main-sidebar .widget{-o-box-shadow:-2px 2px 3px rgba(0,0,0,.05);-ms-box-shadow:-2px 2px 3px rgba(0,0,0,.05);box-shadow:-2px 2px 3px rgba(0,0,0,.05)}#main-sidebar .widget-content{padding:20px}#main-sidebar .widget.no-title .widget-content{padding:0;text-align:center}#main-sidebar .widget.FollowByEmail .desc{font-size:16px;font-weight:400}#main-sidebar .widget.FollowByEmail .follow-by-email-inner{margin:20px 0 0}#main-sidebar .widget.FollowByEmail .follow-by-email-address{border:1px solid #ddd!important;border-radius:2px;box-sizing:border-box;height:35px;line-height:30px;margin:0!important;padding:0 15px!important;width:95%}#main-sidebar .widget.FollowByEmail .follow-by-email-submit{border:1px solid #777!important;border-radius:2px;color:#fff;height:auto;line-height:1em;padding:8.5px 20px!important;width:auto}.tab-title{padding:0!important}.tab-link{display:inline-block;font-weight:400;letter-spacing:0;padding:15px 0;position:relative;text-align:center}.tab-link:hover{opacity:.8}.tab-link.active{font-weight:400}.tab-link.active .tab-link-arrow{border-bottom:7px solid hsla(0,0%,47%,.333);border-right:7px solid transparent;border-left:7px solid transparent;bottom:-1px;height:0;right:0;margin:auto;position:absolute;left:0;width:0}.tab-link-inner{display:inline-block;padding:0 3px;vertical-align:middle}#main-sidebar .widget.social_counter .widget-content,.widget.social_counter .widget-content{padding-bottom:10px;padding-top:10px}a.social-counter{border-top:1px solid #ddd;display:block;padding:10px 0;width:100%}a.social-counter.item-0{border:none}a.social-counter>span{display:block;float:right;height:20px;line-height:20px}a.social-counter>span.icon{font-size:20px;text-align:center;width:40px}a.social-counter>span.count{color:#202020;font-weight:700}[data-mode=dark] a.social-counter>span.count{color:#dadada}a.social-counter>span.text{color:#999;font-style:italic;margin:0 .3em 0 0}[data-mode=dark] a.social-counter>span.text{color:#999}a.social-counter>span.button{background:none;color:#fff;float:left}[data-mode=dark] a.social-counter>span.button{background:none;color:#fff}a.social-counter>span.button>span{display:block;font-size:10px;font-weight:700;line-height:1em;margin:2.5px 0 0;padding:2.5px 3px}a.social-counter span.button span.go{display:block;float:left;overflow:hidden;position:relative;text-align:left;transition:width .2s ease-in-out;width:0}a.social-counter:hover span.button span.go{transition:width .1s ease-in-out;width:1em}a.social-counter span.clear{display:block;float:none;height:0;line-height:0}.facebook-color,a.facebook-color{color:#45619d}.facebook-bg,a.facebook-bg{background:#45619d}.twitter-color,a.twitter-color{color:#55acee}.twitter-bg,a.twitter-bg{background:#55acee}.google-color,a.google-color{color:#d73d32}.google-bg,a.google-bg{background:#d73d32}.rss-color,a.rss-color{color:#fb9d3a}.rss-bg,a.rss-bg{background:#fb9d3a}.youtube-color,a.youtube-color{color:#cc181e}.youtube-bg,a.youtube-bg{background:#cc181e}.vimeo-color,a.vimeo-color{color:#4bf}.vimeo-bg,a.vimeo-bg{background:#4bf}.dribbble-color,a.dribbble-color{color:#ed669a}.dribbble-bg,a.dribbble-bg{background:#ed669a}.soundcloud-color,a.soundcloud-color{color:#f50}.soundcloud-bg,a.soundcloud-bg{background:#f50}.behance-color,a.behance-color{color:#026bfa}.behance-bg,a.behance-bg{background:#026bfa}.instagram-color,a.instagram-color{color:#9e7144}.instagram-bg,a.instagram-bg{background:#9e7144}.delicious-color,a.delicious-color{color:#39f}.delicious-bg,a.delicious-bg{background:#39f}.pinterest-color,a.pinterest-color{color:#be061a}.pinterest-bg,a.pinterest-bg{background:#be061a}.linkedin-color,a.linkedin-color{color:#1c87bd}.linkedin-bg,a.linkedin-bg{background:#1c87bd}.reddit-color,a.reddit-color{color:#ff4500}.reddit-bg,a.reddit-bg{background:#ff4500}.telegram-color,a.telegram-color{color:#08c}.telegram-bg,a.telegram-bg{background:#08c}.tumblr-color,a.tumblr-color{color:#35465c}.tumblr-bg,a.tumblr-bg{background:#35465c}#footer{margin:30px 0 0}#footer-wide .widget{margin:0 0 30px}[id*=footer-col] .widget{margin:30px 0 0}[id*=footer-col] .widget:first-child{margin:0}[id*=footer-col] .widget h2{margin:0 0 10px}.footer-inner{margin:0;padding:4%}.footer-col{border-right:1px solid hsla(0,0%,47%,.2);float:right;margin:0 4% 0 0;padding:0 4% 0 0}.footer-col.footer-col-1{border-right:none;margin:0;padding:0;width:26.5%}.footer-col.footer-col-2{width:19%}.footer-col.footer-col-3{width:38%}#footer-col-1-section .widget{margin:0 0 25px}#footer .widget[id*=List] ul{margin:0;padding:0}#footer .widget[id*=List] li{display:block;float:right;margin:10px 0;padding:0;text-align:center;width:50%}#footer .widget[id*=List] li a{font-weight:700;opacity:.7}#footer .widget[id*=List] li a:hover{opacity:1;text-decoration:underline}#footer .widget.social_icons>h2{display:none!important}#footer .widget.social_icons ul{margin:0;padding:0}#footer .widget.social_icons li{display:inline;width:auto}#footer .widget.social_icons li a{font-size:20px;margin:0 0 0 1.5em;opacity:.8}#footer .widget.social_icons li a:hover{opacity:1}#footer .widget.social_icons{border-bottom:1px solid hsla(0,0%,47%,.2);margin:0 0 20px;padding:0 0 20px}#footer .FollowByEmail h2.title{display:block;float:right;font-size:14px;font-weight:400;line-height:1.3em;margin:0;opacity:.7;width:25%}#footer .FollowByEmail .widget-content{float:right;width:75%}#footer .FollowByEmail .follow-by-email-address{border:1px solid hsla(0,0%,47%,.333);border-radius:2px;box-sizing:border-box;height:38px;line-height:38px;margin:0;padding:0 15px}#footer .FollowByEmail .follow-by-email-submit{border:1px solid rgba(85,85,85,.333)!important;border-radius:2px;box-sizing:border-box;color:#fff;cursor:pointer;height:38px;line-height:38px;margin:0 10px 0 0;padding:0 15px!important;width:auto}#footer .FollowByEmail .follow-by-email-inner{margin:2px 0 0}h4.post-section-title{display:block;float:right;font-size:20px;font-weight:400;margin:0;padding:0 0 0 10px;text-transform:uppercase}.post-section{border-top:1px solid hsla(0,0%,47%,.333);clear:both;margin-top:15px;padding-top:15px}#blog-pager a{border:1px solid hsla(0,0%,47%,.6);border-radius:2px;-o-box-shadow:-2px 2px 3px rgba(0,0,0,.05);-ms-box-shadow:-2px 2px 3px rgba(0,0,0,.05);box-shadow:-2px 2px 3px rgba(0,0,0,.05);font-weight:700;letter-spacing:2px;padding:10px 15px;text-transform:uppercase}#blog-pager{margin:30px 0 0;overflow:visible;text-align:center}#blog-pager-newer-link{float:right}#blog-pager-older-link{float:left}#comments{padding:15px 0 0}.blogger-alt-comments #comments{padding:0}.comments{display:none;margin:0}.comments.active{clear:both;display:block}ul.main-comments{padding:0}.blogger-alt-comments ol#top-ra{margin:0;padding:0}li.comment{border-top:1px solid hsla(0,0%,47%,.333);display:block;margin:20px 0 0;padding:20px 0 0}.blogger-alt-comments ol#top-ra>li.comment:first-child,li.comment-0{border:none;margin:0}.blogger-alt-comments .comment-replies>.comment-thread>ol,ul.sub-comments{padding:0 58px 0 0}.blogger-alt-comments .avatar-image-container,.comment-avatar{display:block;float:right;height:48px;width:48px}.blogger-alt-comments .avatar-image-container img,.comment-avatar img{display:block;height:48px;width:48px}.blogger-alt-comments .comment-block,.comment-content{margin:0 58px 0 0}.blogger-alt-comments .comment-content{margin:0}.blogger-alt-comments .comment-header .user,.comment-name{font-size:14px;font-style:normal;font-weight:700}span.comment-name{color:#000}.blogger-alt-comments .comment-header .datetime.secondary-text a,a.comment-date{font-size:10px;margin:0 .5em 0 0;opacity:.5}.blogger-alt-comments .comment-content,.comment-body{font-size:14px;line-height:1.3em;margin:10px 0 0}.comment-footer{margin:10px 0 0}.blogger-alt-comments .comment-actions.secondary-text,.comment-footer a{font-size:11px;margin:0 0 0 1em;text-transform:uppercase}.blogger-alt-comments .comment-actions.secondary-text{display:block;margin:10px 0 0}.blogger-alt-comments .comment-actions.secondary-text a,.comment-footer a span{font-weight:700}.blogger-alt-comments .comment-actions.secondary-text a{margin:0 0 0 1em}.blogger-alt-comments .continue{display:none}.blogger-alt-comments .comment-actions #top-continue{display:inline}.blogger-comments-default-pagination{background:#fff;color:#999;display:none;font-size:16px;margin:30px 0 0;padding:10px;text-align:center}.blogger-alt-comments .blogger-comment-from-post{overflow:hidden;position:relative}iframe#comment-editor{border:1px solid hsla(0,0%,47%,.333);border-top:none;box-sizing:border-box;margin:20px 0 0!important}.comment-form-holder .comment-form-wrapper{margin-right:58px}.comment-form-message{border:1px solid hsla(0,0%,47%,.333);border-bottom:0;font-size:16px;font-weight:400;line-height:1.5em;margin:20px 0 -31px;padding:20px 22px 10px;position:relative;z-index:1}.blogger-alt-comments .comment-replies>.comment-thread>ol .avatar-image-container,.blogger-alt-comments .comment-replies>.comment-thread>ol .avatar-image-container img,ul.sub-comments .comment-avatar,ul.sub-comments .comment-avatar img{height:36px;width:36px}.blogger-alt-comments .comment-replies>.comment-thread>ol .comment-block,ul.sub-comments .comment-content{margin-right:46px}.blogger-alt-comments .comment-replies>.comment-thread>ol .comment-replies>ol,ul.sub-comments ul.sub-comments{padding-right:46px}.facebook-comments{background-color:#fff;border:1px solid #e5e5e5;border-top:none;margin:0 0 20px;overflow:hidden;padding:5px 5px 0 0;position:relative}span.noNewComments{color:#666;display:block;font-size:20px;font-style:italic;font-weight:400;padding:20px 0}[data-mode=dark] span.noNewComments{color:#666}#comments-title-tabs{clear:both;margin:20px 0 0}.comments-title-tab{display:block;float:right;height:40px;line-height:40px;position:relative;z-index:1}.comments-title-tabs-hr{border-top:1px solid hsla(0,0%,47%,.333);margin:-1px 0 0;position:relative;z-index:0}a.comments-title{border:1px solid transparent!important;border-bottom:none!important;font-size:12px;font-weight:400;opacity:.5;padding:0 10px}a.comments-title:hover{opacity:1}a.comments-title.active{border-color:hsla(0,0%,47%,.333)!important;font-weight:700;opacity:1;outline:none;position:relative;z-index:1}body a.facebook-comments-title.active{background:#fff!important;color:#000!important}.comment-media{display:block}.blogger-alt-comments .thread-toggle{display:none}.comment .comment-replybox-single{padding-right:55px}.comment .comment .comment-replybox-single{padding-right:43px}.post-feature-image-wrapper img{display:block;height:auto;margin:0 0 15px;width:100%}.post-feature-image-caption{border-bottom:1px solid #ccc;font-size:16px;font-style:italic;font-weight:700;margin:15px 0;padding:0 0 15px}.post-breadcrumb{margin:0 0 10px}.post-breadcrumb>*{display:inline-block;font-size:14px;margin:0 0 0 1em}.post-breadcrumb span{opacity:.3}h1.post-title{font-weight:400;line-height:1.3em;margin:0 0 10px}.post-sub-title,.post-sub-title strike,span.custom-post-title,span.custom-post-title strike{font-weight:100!important;text-decoration:none}.post-sub-title{font-size:30px;font-weight:400;margin:0 0 10px;opacity:.7}.post-meta-wrapper{border-bottom:1px solid #ddd;margin:0 0 10px;padding:0 0 10px}a.post-meta{display:inline-block;font-size:12px;font-weight:700;height:20px;line-height:20px;margin:0 0 0 1.5em}a.post-meta i{font-size:14px;vertical-align:text-bottom}.post-comment-counter{display:none}.post-body blockquote{background-color:#333;color:#fff;display:flex;font-size:16px;font-style:italic;font-weight:400;line-height:1.5em;margin:10px 0 20px;padding:20px 70px 20px 20px!important;position:relative}.post-body blockquote .blockquote-icon{font-size:30px;right:20px;position:absolute;top:20px}.post-body-inner{line-height:1.7em}.post-body-inner *{max-width:100%}.post-body-inner a:hover{text-decoration:underline}.post-body-inner .separator a:hover{text-decoration:none}.wrapper.white-post-inner .post-body-inner{padding:20px}.post-ads{float:right;margin:0 0 10px;position:relative}#HTML13,#HTML23,#HTML3{box-sizing:border-box;margin:0!important;max-width:100%;padding:0!important;position:relative;visibility:hidden}.wrapper.white-post-inner #HTML13>*,.wrapper.white-post-inner #HTML23>*{margin:0 20px!important}.wrapper.white-post-inner .post-body-inner #HTML13>*,.wrapper.white-post-inner .post-body-inner #HTML23>*{margin:0!important}#HTML3{overflow:hidden;width:336px}#HTML13,#HTML23{width:100%}.inner-post-ads,.inner-post-ads-2{clear:both;margin-bottom:5px;margin-top:20px}.post-right{margin-right:356px}.wide-right .post-right{margin:0!important;padding:0 0 10px!important}p.post-excerpt{background-color:hsla(0,0%,47%,.09);font-size:15px;font-weight:400;line-height:1.5em;margin:0 0 20px;padding:20px}.post-break-link{line-height:1.3em;margin:0 0 10px}.post-break-link i{opacity:.5}.post-break-link a:hover{text-decoration:underline}.post-break-link i{margin:0 0 0 5px}.full-post-ads .post-ads,.full-post-ads .post-ads .widget.HTML{float:none;width:100%!important}.full-post-ads .post-right{margin:0!important}#toc{background:hsla(0,0%,100%,.467);border:1px solid hsla(0,0%,47%,.467);float:left;margin:0 30px 5px 0;padding:20px;position:relative;width:280px}[data-mode=dark] #toc{background:hsla(0,0%,100%,.2)}#toc ol{counter-reset:item;font-size:95%;margin:0;padding:0 1.5em 0 0}#toc>ol{margin:20px 0 0;padding:0}#toc li{display:block}#toc li:before{content:counters(item,".") ". ";counter-increment:item}#toc h2{margin:0}#toc.toc-left{float:right;margin:30px 0 30px 30px}#toc.toc-full{clear:both;float:none;margin:30px 0;width:auto}a.toc-toggle{border:2px solid hsla(0,0%,47%,.333);font-size:20px;height:1.3em;line-height:1.3em;position:absolute;left:18px;text-align:center;top:18px;width:1.3em}a.toc-toggle:hover{border-color:currentColor!important}.post-body-inner table{box-shadow:0 0 10px 0 hsla(0,0%,47%,.2)}.post-body-inner table td,.post-body-inner table th{padding:10px 15px;text-align:right}.post-body-inner table th{font-weight:700}.post-body-inner table td{font-size:90%}.post .post-body-inner table.tr-caption-container{background:none;box-shadow:none!important;font-style:italic;margin-top:.5em;max-width:100%;padding:0!important;position:relative}.post .post-body-inner table.tr-caption-container *{box-shadow:none!important;box-sizing:border-box;display:block;margin:0!important;max-width:100%;padding:0!important}.post .post-body-inner table.tr-caption-container td.tr-caption{font-size:80%;font-weight:700;opacity:.5;padding-top:10px!important}.post .post-body-inner table.tr-caption-container a{margin:0!important}.post-labels.post-section{padding-top:0}.post-labels.post-section .post-section-title{line-height:20px;margin:13px 0 0;word-break:normal}a.post-label .label-name{border-radius:2px;color:#fff;display:inline-block;padding:0 .5em}a.post-label{display:block;float:right;line-height:1.6em;margin:15px 0 0 1em}a.post-label:hover{opacity:.9}.post-label span.label-count{display:inline-block;margin:0 5px 0 0;position:relative}.post-label span.label-count-value{background:#ddd;color:#333;display:inline-block;font-size:10px;line-height:1em;padding:2px 5px;vertical-align:text-bottom}.post-label span.label-count-arrow{widht:0;border-bottom:3px solid transparent;border-left:7px solid #ddd;border-top:3px solid transparent;display:block;height:0;right:-5px;position:absolute;top:.6em}.post-page{display:none}.post-page.active{display:block}.post-page-buttons{margin-top:20px}.post-page-button{border:1px solid hsla(0,0%,47%,.6);border-radius:2px;display:block;float:right;font-size:14px;height:26px;line-height:1;line-height:26px;margin:0 0 0 10px;padding:0 10px}.post-page-button.active{background:none;opacity:.5}.post-rection-wrapper{float:right;height:20px;margin-top:6px;max-width:100%;min-width:320px;overflow:hidden;position:relative;top:-3px}.post-rection-wrapper iframe{width:100%}.post-location a{display:block;float:right;font-size:14px;margin-top:5px}.post-location a:hover{text-decoration:underline}.post-share-buttons{width:100%}.post-share-buttons h4.post-section-title{display:inline-block;line-height:32px}.post-share-buttons-holder{display:inline-block}.post-share-buttons-holder .sharethis-inline-share-buttons .st-btn{display:inline-block!important}@media only screen and (min-width:768px){.post-share-buttons-holder .sharethis-inline-share-buttons .st-btn>span{display:inline-block!important}}.post-share-buttons-url{border:1px solid hsla(0,0%,47%,.6);border-radius:2px;box-sizing:border-box;display:block;font-size:16px;margin-top:10px;outline:none;padding:10px;width:100%}.header-post-sharing-buttons .post-share-buttons-url{display:none}.header-post-sharing-buttons{border-bottom:1px solid #ddd;margin:0 0 10px;padding:0 0 10px}.ie-sharing-buttons{display:none}.post-author-box-content{margin:5px 0 0}.author-profile img{border:none;float:right;height:50px;margin-left:0;position:relative;top:4px;width:50px}.author-profile-description{color:#666;font-size:16px;font-style:italic;line-height:1.7em;margin-right:65px;opacity:.7}[data-mode=dark] .author-profile-description{color:#fff}.post-related{position:relative;z-index:0}.post-related-inner{margin:25px 0 0}.post-related-header h4{line-height:20px;margin:0}a.post-related-random-button{font-size:20px;line-height:20px;position:absolute;left:20px;top:15px;z-index:1}.post-related-header{border-bottom:1px solid hsla(0,0%,47%,.2);padding:15px 20px;position:relative}.post-related-content{padding:20px}.post-related-item{float:right;margin-right:4%;margin-top:20px;position:relative;width:48%}.post-related-item.item-two{margin-right:0}.post-related-item-0{margin-right:0;margin-top:0}.post-related-item-1{margin-top:0}.post-related-item .item-thumbnail{background-color:#000;height:180px}.post-related-item-wide{width:100%}.post-related-item-wide .item-thumbnail{height:210px}.post-related-item .item-thumbnail img{opacity:.8}.post-related-item .item-title{bottom:0;font-size:16px;line-height:1.3em;padding:0 15px 15px;position:absolute;text-shadow:-1px 1px 0 #000;z-index:19}body .post-related-item .item-title a{color:#fff}.locked-content{padding:15px;position:relative;z-index:9}.locked-content .fb_iframe_widget iframe{max-width:none!important;z-index:2}.locked-content .overlay{height:100%;opacity:.1;position:absolute;width:100%;z-index:0}.locked-content .inner{position:relative;text-align:center}.locked-content i.gi{font-size:60px;padding:30px 0 0}h2.locked-content-title{font-size:20px;margin:10px 0}h3.locked-content-sub-title{font-size:16px;margin:10px 0}h3.locked-content-sub-title.step-2{margin:0;padding:10px 0 30px}.locked-content-actions{position:relative;z-index:1}.locked-content-actions a{background:#3b5998;border-radius:4px;color:#fff;display:inline-block;font-size:14px;height:28px;line-height:28px;margin:0 2px 10px;padding:0 10px;position:relative;text-decoration:none;top:-2px}.locked-content-actions a i.gi{font-size:12px;margin:0 0 0 3px;padding:0}.locked-content-actions a:hover{opacity:.8;text-decoration:none}.locked-content-actions a.facebook{margin-bottom:0!important}.locked-content-actions .facebook{background:#3b5998;height:28px;line-height:28px;margin-bottom:10px;max-height:28px}.locked-content-actions a.twitter{background:#1da1f2}.locked-content-actions a.gplus{background:#dd4b39}.locked-content-actions a.linkedin{background:#0077b5}.locked-content-actions a.pinterest{background:#bd081c}.locked-content-actions a.email{background:red}.locked-content-actions .fb-share-button{display:inline-block}form input[type=email],form input[type=name],form input[type=text],form textarea{border:1px solid #ccc;box-shadow:inset 0 0 10px rgba(0,0,0,.1);box-sizing:border-box;display:block;margin:5px 0 15px;max-width:100%;padding:10px;width:100%}a.button,form a[class*=button],form button[class*=button],form input[class*=button],form input[type=submit]{background:#fff;border-radius:4px;cursor:pointer;display:inline-block;line-height:1em;padding:.5em .7em .7em;position:relative}form a[class*=button],form button[class*=button],form input[class*=button],form input[type=submit]{border:solid rgba(0,0,0,.1)!important;border-radius:4px;border-width:1px 1px .2em!important;color:#fff!important;display:block!important;font-size:16px;font-weight:400;height:auto;padding:10px 20px!important}a.button span{line-height:1em}a.button span.button-overlay{border:solid #000;border-radius:4px;border-width:1px 1px .2em;box-sizing:border-box;display:block;filter:alpha(opacity=20);height:100%;right:0;opacity:.2;position:absolute;top:0;width:100%}a.button:hover .button-overlay{background:#fff;opacity:.15;text-decoration:none!important}a.button:active .button-overlay{border-bottom-width:1px}span.dropcap,span.firstcharacter{display:block;float:right;font-size:5em;line-height:1em;margin:0 0 0 .2em}.shortcode-message{border-radius:2px;display:block;margin:10px 0;overflow:hidden;position:relative}.shortcode-message .message-title{background:hsla(0,0%,47%,.133)}.shortcode-message>div{display:block;margin:0;padding:10px 15px}.shortcode-tab,.shortcode-vtab{-ms-box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);-o-box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);padding:0 20px 15px}.shortcode-vtab{padding:15px 0}.shortcode-tab ul.tab-header,.shortcode-vtab ul.tab-header{display:block;margin:0;padding:0;position:relative;z-index:1}.shortcode-vtab ul.tab-header{border-left:1px solid hsla(0,0%,47%,.333);box-sizing:border-box;float:right;width:25%}.shortcode-tab ul.tab-header li,.shortcode-vtab ul.tab-header li{display:block;float:right;margin:0;padding:0}.shortcode-vtab ul.tab-header li{float:none}.shortcode-tab ul.tab-header li a,.shortcode-vtab ul.tab-header li a{display:block;font-size:14px;font-weight:700;margin:0 0 -1px 20px;outline:none;padding:15px 0;text-decoration:none}.shortcode-vtab ul.tab-header li a{margin:0 0 0 -1px;padding:8px 20px}.shortcode-tab ul.tab-header li.ui-state-active a{border-bottom:1px solid;opacity:.5}.shortcode-tab ul.tab-header li a:hover{border-bottom:1px solid}.shortcode-vtab ul.tab-header li.ui-state-active a{border-left:1px solid;opacity:.5}.shortcode-vtab ul.tab-header li a:hover{border-left:1px solid}.shortcode-tab .tab-content{border-top:1px solid hsla(0,0%,47%,.267);clear:both;padding-top:15px;position:relative;z-index:0}.shortcode-vtab .tab-content{border:none;float:right;padding:0;position:relative;width:75%;z-index:0}.shortcode-vtab .tab-content .inner{padding:0 20px}.shortcode-accordion{-ms-box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);-o-box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);box-shadow:1px -1px 2px rgba(0,0,0,.05),-2px 2px 4px rgba(0,0,0,.1);padding:0 20px;position:relative}.shortcode-accordion h3{margin:0}.shortcode-accordion .accordion-title{border-top:1px solid hsla(0,0%,47%,.2);display:block;font-size:14px;line-height:1;padding:15px 0 0;position:relative}.shortcode-accordion .accordion-title-0{border-top:none}.shortcode-accordion .ui-state-active .accordion-title{border-bottom:1px solid;opacity:.5}.shortcode-accordion .accordion-title-text{display:inline-block;line-height:1.5em;margin:0 0 -1px;padding:0 0 15px}.shortcode-accordion .ui-state-active .accordion-title-text{border-bottom:1px solid}.shortcode-accordion .accordion-title-icon{display:none;font-size:20px;position:absolute;left:0}.shortcode-accordion .accordion-title-icon-inactive,.shortcode-accordion .ui-state-active .accordion-title-icon-active{display:inline-block}.shortcode-accordion .ui-state-active .accordion-title-icon-inactive{display:none}.shortcode-accordion .accordion-content{padding:15px 0}.shortcode-col .col{float:right;margin-right:20px}.shortcode-col .col.col-0{margin-right:0}pre.code-box{word-wrap:break-word;background-image:linear-gradient(hsla(0,0%,100%,.133) 50%,rgba(0,0,0,.067) 0);background-size:38px 38px;border:1px solid hsla(0,0%,47%,.333);display:block;font:11px Monaco,Courier New,DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace;line-height:19px!important;margin:0;overflow:visible;overflow-y:hidden;padding:0 4px 0 0;position:relative;white-space:pre-wrap;z-index:0}pre.code-box div,pre.code-box pre,pre.code-box span{paddding-bottom:0!important;boder-bottom:0!important;border-top:0!important;line-height:19px!important;margin-bottom:0!important;margin-top:0!important;padding-top:0!important}pre.code-box br{display:none!important;height:0!important;line-height:0px!important}.pre-header{position:relative;z-index:1}body .pre-header a{color:#fff!important;display:block;font-size:12px;line-height:1em;padding:5px 10px}.pre-header .copy-all-message{background:#83cc40;box-sizing:border-box;color:#fff;font-size:12px;padding:0 10px;position:absolute;top:100%;width:100%}.archive-page-header h2{border-bottom:1px solid #ccc;font-size:20px;font-weight:400;margin:0 0 20px;opacity:.8;padding:0 0 10px}.archive-page-pagination{margin:20px 0;position:relative}a.archive-page-pagination-button{border:1px solid hsla(0,0%,47%,.6);display:block;float:right;font-size:16px;margin:0 0 0 1em;padding:5px 10px}a.archive-page-pagination-button.active{background:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;color:hsla(0,0%,47%,.6)}span.archive-page-pagination-info{float:left;opacity:.6;top:5px}span.archive-page-pagination-separator{float:right;font-size:20px;margin:0 0 0 15px;opacity:.6}.error_page #main-sidebar{display:none}.error_page #content{float:none;width:100%}.post-404{text-align:center}.post-404 .title{color:#999;font-size:300px;font-weight:400;line-height:1em}[data-mode=dark] .post-404 .title{color:#999}.post-404 .link{font-size:20px;font-weight:400;text-transform:uppercase}.error_page a.scroll-up{display:none!important}a.scroll-up{border-radius:2px;bottom:10px;cursor:pointer;font-size:25px;height:40px;line-height:40px;position:fixed;left:10px;text-align:center;width:40px;z-index:99}body a.scroll-up:hover{background:currentColor}a.scroll-up:hover i{color:#fff}#header .mobile-menu .menu,.mobile{display:none}.mobile-menu .menu{margin:-1px 0 0;padding:0;position:relative}.mobile-menu .menu ul{margin:0;padding:0}.mobile-menu .menu li,.mobile-menu .menu li a{display:block;position:relative}.mobile-menu .menu li a{background:#fff;border-bottom:1px solid #ddd;color:#000;font-size:14px;height:40px;line-height:40px;padding:0 10px;z-index:0}[data-mode=dark] .mobile-menu .menu li a{background:#333;border-color:rgba(68,68,68,.467);color:hsla(0,0%,100%,.8)}.mobile-menu .menu .sub-menu{display:none}.mobile-menu .menu .sub-menu li a{color:#333;font-size:12px;padding-right:8%}[data-mode=dark] .mobile-menu .menu .sub-menu li a{color:hsla(0,0%,100%,.6)}.mobile-menu .menu .sub-menu .sub-menu li a{font-size:11px;font-weight:400;padding-right:16%}.mobile-menu .menu-item>.toggle{cursor:pointer;font-size:20px;height:40px;line-height:40px;position:absolute;left:0;text-align:center;top:0;width:40px;z-index:2}.mobile-menu .menu-item>.expand{display:block}.mobile-menu .menu-item.expanded>.expand,.mobile-menu .menu-item>.collapse{display:none}.mobile-menu .menu-item.expanded>.collapse{display:block}.mobile-social-icons .header-social-icons{background:#fff;border-bottom:1px solid #eee;float:none}[data-mode=dark] .mobile-social-icons .header-social-icons{background:#333;border-color:rgba(68,68,68,.467)}.mobile-social-icons .header-social-icons ul li{float:right;height:auto}.mobile-social-icons .header-social-icons ul li a{background:transparent;border-bottom:none;margin:0}.solid-white .wrapper{padding-top:0}.solid-white #header-section,.solid-white #main-sidebar .widget{-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none}.solid-white #main-sidebar .feed-widget-header,.solid-white #main-sidebar .widget>h2{border-color:#ccc;-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none;padding:0 0 15px}[data-mode=dark] .solid-white #main-sidebar .feed-widget-header,[data-mode=dark] .solid-white #main-sidebar .widget>h2{border-color:#ccc}.solid-white #main-sidebar .widget-content{padding:15px 0!important}.solid-white #main-sidebar .widget.no-title .widget-content{padding-top:0!important}.solid-white .feed.widget .item,.solid-white .feed.widget .shad{-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none}.solid-white .feed.widget.complex .item-0 .item-sub{padding:10px 0 0}.solid-white .feed.widget.complex .item-0 .meta-items{border-top:1px solid #ddd;margin:15px 0 0;padding:15px 0 0}.solid-white .feed.widget.complex .item.than-0 .item-main{border-top:1px solid #ddd;padding:20px 0 0}.solid-white .feed.widget.three .item-sub{padding:10px 0}.solid-white .feed.widget.blogging .widget-content{-o-box-shadow:none;-ms-box-shadow:none;box-shadow:none;padding:0}.solid-white .feed.widget.one .item-sub{padding:20px 0}.solid-white .feed.widget.one .meta-items{margin:0 0 10px}.solid-white .feed.widget.left .item-sub,.solid-white .feed.widget.right .item-sub{padding:10px 0 0}.solid-white .feed.widget.left .meta-items,.solid-white .feed.widget.right .meta-items{margin:10px 0 0}.solid-white .feed.widget.left .item-extra,.solid-white .feed.widget.right .item-extra{margin:5px 0 20px}.solid-white .feed.widget.left .item-extra .item-main,.solid-white .feed.widget.right .item-extra .item-main{border-top:1px solid #ddd;padding:20px 0 0}.solid-white .feed.widget.list .td{padding:12px 0}.solid-white .feed.widget.ticker .widget-content{border:1px solid #ccc}.solid-white .footer-inner{border:1px solid #ddd}.CSS_LIGHTBOX{width:100%!important;z-index:9999!important}@media only screen and (max-width:1009px){.mobile{display:block}.feed.widget.three .three-col-mobile.mobile,.feed.widget.two .two-col-mobile.mobile,.none-mobile{display:none}.wrapper{width:100%}#content,#main-sidebar{float:none!important;margin-top:0!important;width:100%}#main-menu-toggle,.main-menu .menu{display:none}.main-menu{display:none!important}.feed.widget.left .meta-items,.feed.widget.right .meta-items{margin:15px 0 0;position:static}.top-page-wrapper .widget,.top-page-wrapper .widget *{max-width:100%!important}.top-page-wrapper .widget{float:none!important;overflow:hidden!important;position:relative!important;text-align:center!important;width:100%!important}.top-page-wrapper .table,.top-page-wrapper .td,.top-page-wrapper .tr{display:block;float:none}#top-page-logo .blog-title{text-align:center}}@media only screen and (max-width:899px){.footer-col.footer-col-1{width:100%}.footer-col.footer-col-2,.footer-col.footer-col-3{border:#ffdead;border-top:1px solid #ddd;margin:20px 0 0;padding:20px 0 0;width:100%}#footer-menu li{text-align:right}#footer .widget.social_icons li a{display:block;float:right;padding-bottom:5px;padding-top:5px}#footer .FollowByEmail h2.title{clear:both;float:none;margin:0 0 10px;width:100%}#footer .FollowByEmail .widget-content{float:none;width:100%}}@media only screen and (max-width:699px){.wrapper{padding-right:0;padding-left:0}.wide{width:94%}.header-button .inner>span{display:none}#header .toggle-button .arrow{right:22px}.post-ads{float:none!important;margin:0 0 15px!important;width:100%!important}.post-right{margin:0!important;padding:0 0 10px!important}h1.post-title{font-size:26px}.post-sub-title{font-size:20px;line-height:1.3em}.post-breadcrumb a,.post-breadcrumb span,a.post-meta{font-size:10px}.post-rection-wrapper{float:none;height:auto;margin:0 -10px 0 0}.reactions-table h4.post-section-title{margin:0 0 5px}.author-profile-description{font-size:12px}.post-related-item{float:none;margin:0;width:100%}.post-related-item-wide .item-thumbnail{height:180px}#comments-title-tabs h4.post-section-title{clear:both;float:none}a.comments-title{font-size:10px}.comment-form-message{border-right:none;font-size:12px;padding:10px 6px 0}span.archive-page-pagination-info{display:none}a.archive-page-pagination-button{font-size:12px;margin:5px 0 5px 10px}.feed.widget.three .three-col{display:none}.feed.widget.three .three-col-mobile.mobile{display:block}.grid-sub{float:none;width:100%}.grid-sub-1{max-height:320px}a.scroll-up{height:30px;line-height:30px;left:5px;width:30px}.header-mode-toggle{position:absolute;left:40px}#search-toggle{position:absolute;left:0;text-align:left}.search-form-label{font-size:26px}.search-submit{background:none;border:1px solid #ddd;box-sizing:border-box;color:#fff;cursor:pointer;display:block;font-size:20px;right:0;margin-right:auto;margin-left:auto;margin-top:120px;padding:20px 0;position:absolute;left:0;top:100%;width:200px}.search-submit:hover{background:rgba(0,0,0,.5)}#blog-pager>*{display:block;float:none}#blog-pager>span>a{display:block;margin:0 0 15px}.CSS_LIGHTBOX *{max-width:100%!important}.CSS_LIGHTBOX img.CSS_LIGHTBOX_SCALED_IMAGE_IMG{height:auto!important;width:auto!important}.CSS_HCONT_CHILDREN_HOLDER{float:none!important;text-align:center}.CSS_HCONT_CHILDREN_HOLDER .CSS_LAYOUT_COMPONENT.CSS_HCONT_CHILD{float:none;width:100%!important}.CSS_LIGHTBOX_FILMSTRIP_CONTROLS{right:0!important;margin:auto!important;left:0!important}.CSS_LIGHTBOX_FILMSTRIP_THUMBNAILS_CONTAINER{margin-right:-21px}}@media only screen and (max-width:499px){.feed-widget-header .widget-title{font-size:16px}.feed.widget .item-labels{font-size:10px!important}.feed.widget .item-title{font-size:18px}.feed.widget .item-snippet{font-size:13px;font-weight:400}.feed.widget .meta-item{font-size:10px}.slider-item,.slider-item .item-thumbnail{height:300px}.feed.widget.sticky .item{clear:both!important;float:none!important;margin-top:20px;width:100%!important}.feed.widget.sticky .item.item-0{margin-top:0}.feed.widget.sticky .item-title a{font-size:16px!important;font-weight:400!important;line-height:1.3em!important}.feed.widget.sticky .item-sub{font-size:12px}.feed.widget.three .item{clear:both!important;float:none!important;margin:0 0 10px!important;width:100%!important}.feed.widget.three.no-spacing .item{margin:0!important}.feed.widget.three .item-thumbnail{height:200px}.feed.widget.three .item-title{font-size:16px;font-weight:400}.feed.widget.three .item-snippet{font-size:12px}.feed.widget.complex .item{clear:both;float:none;margin:0 0 10px;width:100%!important}.feed.widget.complex .item-title{font-size:16px!important}.feed.widget.complex .item-0 .meta-items{margin:10px 0 0}.feed.widget.blogging .item-thumbnail{clear:both;float:none;height:200px;width:100%}#main-sidebar .feed.widget.blogging .item-thumbnail{clear:none;float:right}.feed.widget.blogging .item-content{margin:10px 0 0}.feed.widget.blogging .item-title{font-size:18px}.feed.widget.left,.feed.widget.right{clear:both;float:none;width:100%}.feed.widget.left .item,.feed.widget.right .item{margin:0 0 10px}.feed.widget.left .item-title,.feed.widget.right .item-title{font-size:16px}.feed.widget.one .item{margin-top:10px}.feed.widget.one .item.item-0{margin-top:0}.feed.widget.one .item-title{font-size:18px}.feed.widget.one .item-snippet{font-size:13px}.feed.widget.one .item-thumbnail{height:250px}.feed.widget.two .two-col-left,.feed.widget.two .two-col-right{display:none}.feed.widget.two .two-col-mobile.mobile{display:block}.feed.widget.two .item-title{font-size:16px}.feed.widget.two .item-thumbnail{height:250px}.feed.widget.two .item{margin-top:15px!important}.feed.widget.two .item.item-0{margin-top:0!important}.feed.widget.two.no-spacing .item{margin:0!important}.feed.widget.two .item{clear:both;float:none;width:100%!important}#toc{float:none;margin:0 auto 5px;max-width:none}}@media print{.wrapper,body{background:none!important}.blog-title{border:none!important;padding:0!important}#comments,#main-menu-toggle,#main-sidebar,#search-toggle,.footer-col.footer-col-2,.footer-col.footer-col-3,.header-social-icons,.inner-post-ads,.post-ads,.post-break-links,.post-footer,.scroll-up,ul#menu-header-section{display:none!important}#content,.footer-col.footer-col-1,.post-right{float:none!important;width:100%!important}.footer-col.footer-col-1,.post-right{margin:0!important}p.post-excerpt{background:none!important;font-weight:700!important;padding:0!important}.post blockquote{background:none!important;border:1px solid #666!important;color:#333!important}[data-mode=dark] .post blockquote{background:none!important;border-color:#666!important;color:#333!important}.footer-inner{background:none!important;border-top:1px solid #999!important;padding:20px 0 0!important}.sd,.shad,.shadow,.shd{-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.post-page{display:block!important}.post-pagination{display:none}} + +.feed-widget-pagination {line-height: 20px;margin: 20px 0 0 0;} +.feed-widget-pagination > * {float: right;} +.feed-widget-pagination .feed-widget-pagination-info {float: left;} +.widget.FeaturedPost .post-summary{padding:5px 20px 20px 20px}.widget.FeaturedPost h3{font-size:18px;font-weight:400;margin-bottom:0}.widget.FeaturedPost p{font-size:14px;line-height:1.7em;opacity:.7;margin:.5em 0 1em 0} +.owl-carousel.owl-rtl {direction: rtl;} +.owl-carousel.owl-rtl .owl-item {float: right;} +.gi-angle-right:before {content: "\f104"!important;} +.gi-angle-left:before {content: "\f105"!important;} +.gi-chevron-right:before {content: "\f053"!important;} +.gi-chevron-left:before {content: "\f054"!important;} +.comment .comment-replybox-single {padding-right: 55px;} +.comment .comment .comment-replybox-single {padding-right: 43px;} + +#bar .arrow { + -ms-transform: rotate(315deg); + -webkit-transform: rotate(315deg); + transform: rotate(315deg); + right: auto; +} \ No newline at end of file diff --git a/magone/6.9.95/main.js b/magone/6.9.95/main.js new file mode 100644 index 0000000..a16d8bd --- /dev/null +++ b/magone/6.9.95/main.js @@ -0,0 +1,6674 @@ +window['main_js'] = function () { + function trans(id) { + var html = $('[data-l10n="' + id + '"]').html(); if (typeof (html) == 'undefined' || html == '') { return id; } + if (typeof (arguments) != 'undefined' && arguments.length > 1) { + var vars = html.split('$$'); html = ''; for (var i = 0; i < vars.length; i++) { + if (vars[i] && !isNaN(vars[i]) && typeof (arguments[Number(vars[i])]) != 'undefined') { html += arguments[Number(vars[i])]; } else { + if (i > 0 && (!(vars[i] && !isNaN(vars[i - 1]) && typeof (arguments[Number(vars[i - 1])]) != 'undefined'))) { html += '$$'; } + html += vars[i]; + } + } + } + return html; + } + + const imgLazyLoad = ' loading="lazy" decoding="async"' + + // mini jquery + let _getIndex = 0; + function _get(url, callback) { + let funcName = `_sneeit_${_getIndex++}`; + window[funcName] = callback; + + if (!url.includes('://')) { + url = location.protocol + location.hostname + url; + } + const urlObject = new URL(url); + urlObject.searchParams.set('alt', 'json-in-script'); + urlObject.searchParams.set('callback', funcName); + url = urlObject.toString(); + + var script = document.createElement('script'); + script.type = 'text/javascript'; + script.src = url; + script.async = true; // Set the 'async' attribute to load the script asynchronously + + // Append the script tag to the document's head + document.head.appendChild(script); + } + + + + // andSelf was deprecated since jQuery 3.0 + $.fn.andSelf = function () { + return this.addBack.apply(this, arguments); + } + + /* OBFUSCATE FROM HERE */ + // replace font icon to google icon + $(document).find('i[class*="fa"]').each(function () { + let classNames = $(this).attr('class'); + + classNames = classNames.split(' ').map(e => { + e = e.replace('fa', 'gi'); + e = e.replace('gice', 'face') + return e + }); + + $(this).attr('class', classNames.join(' ')); + }) + + /*MISC*/ + var FIREFOX = ($('.is-firefox').length && $('.is-firefox').css('display') != 'none'); + + /*TEMPLATE GLOBAL VARIABLES HERE, USER CAN NOT CHANGE*/ + var DIVCLEAR = '
'; + var ICON_MARKER = '##'; + + // don't change order of list, or you must keep longer code on top, shorter in bottom + // and also keep overwrite rule. example: >:) must above :) + var EMOTICONS = { + /* penguin => <(&) */ + '<(")': 'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAABC1BMVEUAAAAlKjUkKjQRExkKCw8jJzMLDBAKDA8CAgNXQEENDhIcICoRFBoDBAYFBwhETGQ/R10GBwnoiTLlhzHWcSICAgQRExgkKjQhJTEOEBUAAAAAAAAAAAERExk+RVxAR15ASF8oLToQEhYCAwUxMjX1mDixYyDigi6ympPM0Nrcdybigi7phCw9RFs+RVv5+frw8fT09ffg4efp6u73+Pk2PFDQ0tnk5uwqLz4aHCPt7fDHydHb3eQSFBrV1+CQlKDY2uK3ucC/wcs6PkmenqXTdyarrrceIS1FSFExNkhRVGJgYWVfY3MzNkHqiTDcn3bTlmwxMjd5e4AoHhfg19aFiJByTze2aCqrck7A24KcAAAAL3RSTlMADQQe/vxXSuAw7L6Z88qkdLshzZTpd2XqFZkpPYWz/OWq8tPjcdo7yqKz79Xo6JD70PIAAAG5SURBVHjaZdLTohtBAIDhzCI2jy21HawtRTp+/yfpxPpvv91xah1IF454/qiQBqmDjou80qUpfPF435iiqojzFLXI7GGm5AeuLYq2G/ilzB6eqC6GWq9HIHbVk10D5b430GEyJPrA65fBDrLZd6+nSx8frt7z3rPsHvYNSxuH4USz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}; + + + + /* TEMPLATE LIBRARY START HERE */ + /* -------------------------------> */ + /* BASIC LIBS*/ + var tn_query = new Object(); + var tn_blog = new Object(); + var tn_url = new Object(); + var tn_widget = new Array(); + var Top_Left_Ads = $(document).find('#HTML3'); + var Inner_Post_Ads = $(document).find('#HTML13'); + var Inner_Post_Ads_2 = $(document).find('#HTML23'); + + /* BROWSERS */ + var is_Opera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; + var is_Edge = navigator.userAgent.indexOf("Edge") > -1; + var is_Chrome = !!window.chrome && !is_Opera && !is_Edge; + var is_Explorer = typeof document !== 'undefined' && !!document.documentMode && !is_Edge; + var is_Firefox = typeof window.InstallTrigger !== 'undefined'; + var is_Safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + + + + /* BASIC FUNCTIONS */ + // all variables (include undefined variables) must be declared before. + // var something; then func(something) is ok + function is_set(variable) { + return (typeof (variable) != 'undefined'); + } + function is_enable(variable) { + // if (typeof(variable) == 'undefined' || + // variable == 'true' || variable == true || variable == 'show' || variable == 'enable') { + // return true; + // } + if (typeof (variable) == 'undefined') { + return true; + } else if ( + variable == 'false' || + variable == false || + variable == 'hide' || + variable == 'none' || + variable == 'no' || + variable == '0' || + variable == 0) { + return false; + } + + if (!isNaN(variable)) { + return Number(variable); + } + + return true; + } + function is_number(variable) { + return (typeof (variable) != 'undefined' && !isNaN(variable)); + } + function is_empty(variable) { + if (typeof (variable) == 'undefined') { + return true; + } + if (typeof (variable) == 'array') { + return (!variable.length); + } + if (typeof (variable) == 'object') { + for (var key in variable) { + return false; + } + return true; + } + return (!variable); + } + function is_object(variable) { + return (typeof (variable) == 'object'); + } + function is_array(variable) { + return (typeof (variable) == 'array'); + } + function is_mixed(variable) { + return (typeof (variable) == 'array' || typeof (variable) == 'object'); + } + function is_string(variable) { + return (typeof (variable) == 'string'); + } + function is_viewing(elem) { + return (($(window).scrollTop() + $(window).height()) >= $(elem).offset().top); + } + function is_label_url(url) { + return (url.indexOf('/search/label/') != -1); + } + function get_canonicalUrl(url) { + return url.split('?')[0].split('#')[0]; + } + function get_file_in_url(url) { + url = get_canonicalUrl(url).split('/'); + return url[url.length - 1]; + } + function scroll_to(elem, delay) { + if (!is_set(delay)) { + delay = 300; + } + if (is_empty(elem) || $(elem).length == 0) { + return; + } + + $('html, body').stop().animate({ + scrollTop: $(elem).offset().top + }, delay); + } + function select_all(elem) { + $(elem).select(); + // Work around Chrome's little problem + $(elem).mouseup(function () { + // Prevent further mouseup intervention + $(elem).unbind("mouseup"); + return false; + }); + } + // Returns a random integer between min and max (included min and max also) + function randInt(min, max) { + if (max == min) { return max; } + if (max < min) { var temp = min; min = max; max = temp; } + return Math.floor(Math.random() * (max - min + 1)) + min; + } + function randNumStr() { + var d = new Date(); + return d.getTime(); + } + + // https://css-tricks.com/snippets/php/find-urls-in-text-make-links/ + function get_urls(text) { + return text.match/***/(/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,20}(\/\S*)?/g)/***/; + } + + /*STRING MASTER*/ + // uppercase first letter + String.prototype.toCapitalize = function () { + return this.charAt(0).toUpperCase() + this.slice(1); + }; + + // replace all + String.prototype.replaceAll = function (target, replacement) { + return this.split(target).join(replacement); + }; + + // has, alias of indexof + String.prototype.has = function (str) { + return (this.indexOf(str) != -1); + }; + + // hasNo, alias of indexof ==-1 + String.prototype.hasNo = function (str) { + return (this.indexOf(str) == -1); + }; + function sneeit_unesc_entities(text) { + return text + .replaceAll('#039', "'") + .replaceAll('"', '"') + .replaceAll('>', '>') + .replaceAll('<', '<') + .replaceAll('&', '&'); + } + + // safe way to parse json string + function str_to_json(str) { + try { + JSON.parse(str); + } catch (e) { + return false; + } + + return JSON.parse(str); + } + + // get string between key arrays + function get_str_between_arrays(original_text, open_keys, close_keys) { + var found = false; + for (var i = 0; i < open_keys.length; i++) { + if (original_text.indexOf(open_keys[i]) != -1) { + original_text = original_text.split(open_keys[i])[1]; + found = true; + } + } + if (!found) { + return ''; + } + for (var i = 0; i < close_keys.length; i++) { + original_text = original_text.split(close_keys[i])[0]; + } + + return original_text; + } + + function is_image_src(url) { + return (url.toLowerCase().match/***/(/\.(jpeg|jpg|gif|png)$/)/***/ != null); + } + function is_url(url) { + return (url.has('.') && url.has('//') && url.has('http') && url.has(':')); + } + function txt_2_slug(text) { + text = $.trim(text); + text = text.toLowerCase(); + for (var i = 0; i < text.length; i++) { + var ascii = text.charCodeAt(i); + var isNum = ascii >= 48 && ascii <= 57; + var isLet = ascii >= 97 && ascii <= 122; + if (isLet || isNum && i != 0) { + continue; + } + text = text.replaceAll(text[i], '-'); + } + return text; + } + + /*STORAGE*/ + // store content to web browser + function included_cookie() { + if ('cookie' in document) { + return true; + } + return false; + } + function set_cookie(c_name, value, exdays) { + if (!included_cookie()) { + return false; + } + var exdate = new Date(); + exdate.setDate(exdate.getDate() + exdays); + var c_value = escape(value) + ((exdays == null) ? '' : '; expires=' + exdate.toUTCString()) + '; path=/'; + document.cookie = c_name + "=" + c_value; + if (get_cookie(c_name) !== value) { + return false; + } + return true; + } + function has_cookie() { + if (set_cookie('test', 'ok')) { + return true; + } + return false; + } + function get_cookie(c_name) { + if (!included_cookie()) { + return ''; + } + var i, x, y, ARRcookies = document.cookie.split(";"); + for (i = 0; i < ARRcookies.length; i++) { + x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); + y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); + x = x.replace(/^\s+|\s+$/g, ""); + if (x == c_name) { + return unescape(y); + } + } + return ''; + } + function has_storage() { + if (typeof (localStorage) !== "undefined") { + return true; + } + return false; + } + function set_storage(key, value) { + if (has_storage()) { + localStorage.setItem(key, value); + return true; + } + return false; + } + function get_storage(key) { + if (has_storage()) { + var ret = localStorage.getItem(key); + if (ret) { + return ret; + } + } + return ''; + } + function update_option(option_name, option_value) { + if (has_storage()) { + return set_storage(option_name, option_value); + } else if (has_cookie()) { + return set_cookie(option_name, option_value); + } + return false; + } + function get_option(option_name) { + if (has_storage()) { + return get_storage(option_name); + } else if (has_cookie()) { + return get_cookie(option_name); + } + return ''; + } + + /*SOCIAL*/ + function get_youtube_video_id(url) { + if (url.indexOf('youtube') == -1 && url.indexOf('youtu.be') == -1) { + return ''; + } + return get_str_between_arrays(url, ['/embed/', 'youtu.be/', '/videos/', '/v/', '?v=', '&v='], ['#', '/', '?', '&', '.']); + } + + function get_youtube_list_id(url) { + if (url.indexOf('youtube') == -1 && url.indexOf('youtu.be') == -1) { + return ''; + } + return get_str_between_arrays(url, ['list='], ['#', '/', '?', '&', '.']); + } + + function get_vimeo_video_id(url) { + if (url.indexOf('vimeo') == -1) { + return ''; + } + return get_str_between_arrays(url, ['vimeo.com/', '/video/'], ['#', '/', '?', '&', '.']); + } + + /*JQUERY EXTENSION*/ + // this function will help all tag_html become child of only parent_selector + // not be wrapped by any other elements + function unwrap_tag(tag_selector, parent_selector, tag_html) { + for (i = 0; i < 100; i++) { + // scan until not found any wrap + var wrapped = false; + // scan all + // console.log('WRAPPER TESTER'); + $(tag_selector).each(function () { + var wrapper = $(this).parent(); + // console.log(wrapper); + if (wrapper.length && (!wrapper.is(parent_selector))) { + // the tag_html was wrapped by an element + // example
...somecontentA ... tag_html ...somecontentB ...
+ // will become
...somecontentA ...
tag_html
...somecontentB ...
+ // we will escape until all tag_html stay underneath the post-body only + wrapped = true; + + // so we duplicate the wrapper to wraper A and wraper B + var clone_wrapper = wrapper.clone(); + clone_wrapper.insertAfter(wrapper); + + // then we only get the first half of wrapper A and second half of wrapper B + // split each wrapper with tag_html + wrapper_html = wrapper.html(); + index = wrapper_html.indexOf(tag_html); + wrapper.html(wrapper_html.substring(0, index)); + clone_wrapper.html(wrapper_html.substring(index + tag_html.length)); + + // and then place our key into the midddle + $(tag_html).insertAfter(wrapper); + } + }); + + if (!wrapped) { + // escaped all wrapped tag_html, so move to next step + return; + } + } + } + + function apply_googleicon_tag(icon_code, precode = 'gis') { + if (typeof (icon_code) === 'undefined' || !icon_code || icon_code.length < 3) { + + return ''; + } + + // strip tag + icon_code = icon_code.trim().toLowerCase(); + if (icon_code.indexOf('<') != -1 && icon_code.indexOf('>')) { + let tempEl = document.createElement('div'); + tempEl.innerHTML = icon_code; + icon_code = tempEl.firstChild.classNames; + } + + const skipClass = ['fas', 'fa-classic', 'fa-solid', 'far', 'fa-regular', 'fal', 'fa-light', 'fat', 'fa-thin', 'fab', 'fa-brands', 'fad', 'fa-classic', 'fa-duotone', 'fass', 'fa-sharp'] + let fullCode = false; + for (let cl of skipClass) { + if (icon_code.indexOf(cl) !== -1) { + fullCode = true; + break; + } + } + + if (!fullCode) { + icon_code = icon_code.replaceAll('fa ', ''); + icon_code = icon_code.replaceAll('gi ', ''); + icon_code = icon_code.replaceAll('fa-', ''); + icon_code = icon_code.replaceAll('gi-', ''); + icon_code = precode + ' gi-' + icon_code; + } + else { + icon_code = icon_code.replaceAll('fa-', 'gi-'); + } + + return ''; + } + + + function replace_icon_marker(text) { + var index = 0; + for (var i = 0; i < 100; i++) { + var icon_start = text.indexOf(ICON_MARKER, index); + if (icon_start != -1) { + var icon_end = text.indexOf(ICON_MARKER, icon_start + ICON_MARKER.length); + if (icon_end != -1) { + var icon = apply_googleicon_tag(text.substring(icon_start + ICON_MARKER.length, icon_end)); + text = text.substring(0, icon_start) + icon + text.substring(icon_end + ICON_MARKER.length); + index = icon_start + icon.length; + } else { + break; + } + } else { + break; + } + } + return text; + } + + + /* WORDPRESS TO BLOGGER BASIC */ + function escape_url(text) { + text = encodeURIComponent(text); + return text.replaceAll('!', '%21').replaceAll('(', '%28').replaceAll(')', '%29').replaceAll('\'', '%27').replaceAll('~', '%7E'); + } + function get_label_slug(label_url) { + return get_canonicalUrl(label_url).split('/search/label/')[1]; + } + function set_label_url(label_slug) { + return '/search/label/' + label_slug; + } + function get_label_count(label_slug) { + for (var i = 0; i < tn_blog.label.length; i++) { + if (label_slug == tn_blog.label[i].slug) { + return tn_blog.label[i].count; + } + } + return 0; + } + function get_label_name(label_slug) { + for (var i = 0; i < tn_blog.label.length; i++) { + if (label_slug == tn_blog.label[i].slug) { + return tn_blog.label[i].name; + } + } + return label_slug; + } + + // blogger page type indicator and status + function is_item() { + return ($('body.item').length != 0); + } + function is_preview() { + return (tn_url.current.has('/b/')); + } + function is_home() { + + // return (tn_blog.canonicalUrl == tn_blog.canonicalHomepageUrl && (!is_item()) && !(is_preview())); + return (tn_blog.canonicalUrl == tn_blog.canonicalHomepageUrl && !is_item()); + } + function is_archive() { + return ($('body.archive').length != 0 || is_set(tn_query['updated-min'])); + } + function is_search() { + return (tn_url.current.has('/search?') && is_set(tn_query['q'])); + } + function is_label() { + return (tn_url.current.has('/search/label/')); + } + function is_index() { + return ($('body.index').length != 0 || is_archive()); + } + function is_page() { + return ($('body.static_page').length != 0) + ; + } + function is_singular() { + return (is_page() || is_item()); + } + function is_mobile() { + // return (is_set(tn_query['m']) && tn_query['m'] == 1); + return tn_blog.isMobile; + } + function is_404() { + return ($('body.error_page').length != 0); + } + function is_rtl() { + return $('html[dir="rtl"]').length; + } + function is_iframe() { + try { + return window.self !== window.top; + } catch (e) { + return true; + } + } + function esc_attr($a = '') { + return $a.replaceAll('"', '"').replaceAll('\'', ''') + } + + // check the current viewer is admin or not + function you_are_admin() { + if ($('.item-control').length) { + return ($('.item-control').css('display') != 'none'); + } + + return false; + } + function get_label_name(slug_or_url) { + if (slug_or_url.has('/search/label/')) { + slug_or_url = get_label_slug(slug_or_url); + } + for (var i = 0; i < tn_blog.label.length; i++) { + if (tn_blog.label[i].slug == slug_or_url) { + return tn_blog.label[i].name; + } + } + return false; + } + function get_label_count(slug_or_url) { + if (slug_or_url.has('/search/label/')) { + slug_or_url = get_label_slug(slug_or_url); + } + for (var i = 0; i < tn_blog.label.length; i++) { + if (tn_blog.label[i].slug == slug_or_url) { + return tn_blog.label[i].count; + } + } + return false; + } + + /* LICENSE */ + function _0x5e4196() { + if (tn_url.current.has('cache')) return true; + if (typeof (window['SNEEIT_LICENSE']) == 'undefined') { + return false; + } + /* get code if input is a full template XML code */ + var code = window['SNEEIT_LICENSE']; + + + /* get pattern */ + code = code.split('-'); + + var pattern = new Array(); + for (var i = 1; i < code.length; i++) { + pattern[i - 1] = code[i][0] + code[code.length - i][1]; + } + + /* extract parts */ + /* - remove patterns */ + for (var i = 1; i < code.length; i++) { + code[i] = code[i].substr(2); + } + code = code.join(''); + + /* - split left, right, core */ + var left = ''; + var right = ''; + var core = ''; + var start_core = -1; + var end_core = -1; + for (var i = 0; i < code.length - 1; i += 2) { + var pat = code[i] + code[i + 1]; + + for (var j = 0; j < pattern.length; j++) { + var invert_pat = pattern[j][1] + pattern[j][0]; + var orginal_pat = pattern[j]; + + if (pat == invert_pat && start_core == -1) { + + start_core = i; + break; + } + + if (pat == orginal_pat && start_core != -1 && end_core == -1) { + + end_core = i; + break; + } + } + /* found the core */ + if (start_core != -1 && end_core != -1) { + left = code.substring(0, start_core); + core = code.substring(start_core, end_core); + right = code.substring(end_core); + break; + } + } /* end for it to scan left, right and core part*/ + + + + /* extract core */ + var core_number = 0; + for (var i = 0; i < core.length - 1; i += 2) { + var pat = core[i + 1] + core[i]; + var index = pattern.indexOf(pat); + if (index == -1) { + break; + } + core_number = core_number * 10 + index; + } /* end of extract core */ + + + /* get the final string */ + if (core_number > 3) { + core = core_number.toString(2); + + /* remove the first 1 value */ + core = core.substring(1); + + + /* get host string */ + var host = ''; + for (var i = 0; i < core.length; i++) { + var pat = ''; + if (core[i] == '1') { + pat = right.substring(0, 4); + right = right.substring(4); + } else { + pat = left.substring(0, 4); + left = left.substring(4); + } + if (!pat) { + break; + } + host += pat; + } + + + /* convert host string to host number */ + var host_number = ''; + for (var i = 0; i < host.length - 1; i += 2) { + var pat = host[i] + host[i + 1]; + var index = pattern.indexOf(pat); + if (index == -1) { + break; + } + host_number += index; + } + + + /* convert host number to real host name*/ + host = ''; + for (var i = 0; i < host_number.length - 1; i += 2) { + host += String.fromCharCode(Number(host_number[i] + host_number[i + 1]) + 37); + } + + if (host.indexOf('.blogspot.') != -1) { + host = host.split('.blogspot.'); + host = host[0] + '.com'; + } + + if (host.indexOf('www.') != -1) { + host = host.split('www.'); + host = host[1]; + } + + if (host.indexOf('//') != -1) { + host = host.split('//'); + host = host[1]; + } + + if (host.lastIndexOf('.') != -1) { + host = host.substring(0, host.lastIndexOf('.')); + } + + + var current_host = window.location.hostname; + if (current_host.indexOf('.blogspot.') != -1) { + current_host = current_host.split('.blogspot.'); + current_host = current_host[0] + '.com'; + } + + if (current_host.indexOf('www.') != -1) { + current_host = current_host.split('www.'); + current_host = current_host[1]; + } + + if (current_host.indexOf('//') != -1) { + current_host = current_host.split('//'); + current_host = current_host[1]; + } + + if (current_host.lastIndexOf('.') != -1) { + current_host = current_host.substring(0, current_host.lastIndexOf('.')); + } + + // console.log(host, current_host); + return (host == current_host); + } /* end if of get final string*/ + } + + + /* AD SHOWING */ + /* ------------------------------------ */ + var ADS_CHECK_SIZE_TIME = 5; + /* TOP LEFT POST ADS */ + // if not enabled post ads + if ($('.post-ads').length == 0 || Top_Left_Ads.length == 0 || Top_Left_Ads.is(':empty')) { + $('.post-body').addClass('wide-right'); + $('.post-ads').remove(); + Top_Left_Ads.remove(); + } else if (Top_Left_Ads.text().indexOf('script') == -1 && + Top_Left_Ads.text().indexOf('iframe') == -1 || + Top_Left_Ads.text().indexOf('<') == -1) { + Top_Left_Ads.appendTo($('.post-ads')); + Top_Left_Ads.css('visibility', 'visible'); + } else { + // monitor size of ads until stable ADS_CHECK_SIZE_TIME times + var Top_Left_Ads_Height = 0; + var Top_Left_Ads_Prev_Height = 0; + var Top_Left_Ads_Stable = 0; + var Top_Left_Ads_Zero = 0; + Top_Left_Ads.css('visibility', 'hidden'); + var Top_Left_Ads_Monitor = setInterval(function () { + Top_Left_Ads_Height = Top_Left_Ads.height(); + if (!Top_Left_Ads_Height) { + Top_Left_Ads_Zero++; + if (Top_Left_Ads_Zero >= ADS_CHECK_SIZE_TIME) { + $('.post-body').addClass('wide-right'); + $('.post-ads').remove(); + Top_Left_Ads.remove(); + clearInterval(Top_Left_Ads_Monitor); + } + return; + } + if (Top_Left_Ads_Height != Top_Left_Ads_Prev_Height) { + Top_Left_Ads_Prev_Height = Top_Left_Ads_Height; + Top_Left_Ads_Stable = 0; + return; + } else { + Top_Left_Ads_Stable++; + } + + if (Top_Left_Ads_Stable >= ADS_CHECK_SIZE_TIME) { + clearInterval(Top_Left_Ads_Monitor); + + // stabled ads, now we move it to the ads spot + Top_Left_Ads.appendTo($('.post-ads')); + Top_Left_Ads.css('visibility', 'visible'); + } + }, DELAY_AD_LOAD); + } + + /* BASIC QUERIES + Please transfer to + + // Get the search string from the URL + const searchParams = new URLSearchParams(window.location.search); + + // Get the value of a specific parameter + const paramValue = searchParams.get('paramName'); + + to prevent error-prone code to happen + */ + // Fill tn_query + var uri = window.location.search; + if (!is_empty(uri)) { + uri = uri.substring(1);// remove ? + var list = uri.split('&'); + for (var i = 0; i < list.length; i++) { + var l = list[i].split('='); + if (l.length > 1) { + tn_query[l[0]] = l[1]; + } + + } + } + + + + // fill tn_url + tn_url.current = window.location.href; + tn_url.hash = window.location.hash; + tn_url.feed = '/feeds'; + tn_url.referrer = document.referrer; + tn_url.protocol = window.location.protocol; + + + + // fill tn_blog + tn_blog.totalPosts = -1; + tn_blog.totalComments = -1; + tn_blog.isMobile = (window.location.href.indexOf('m=1') != -1); + tn_blog.languageDirection = $('#global-blogger-data .languageDirection').html(); + tn_blog.pageType = $('#global-blogger-data .pageType').html(); + tn_blog.pageTitle = $('#global-blogger-data .pageTitle').html(); + tn_blog.pageName = $('#global-blogger-data .pageName').html(); + tn_blog.metaDescription = $('#global-blogger-data .metaDescription').html(); + tn_blog.postImageUrl = $('#global-blogger-data .postImageUrl').html(); + tn_blog.postImageThumbnailUrl = $('#global-blogger-data .postImageThumbnailUrl').html(); + tn_blog.title = $('#global-blogger-data .title').html(); + tn_blog.url = $('#global-blogger-data .url').html(); + tn_blog.homepageUrl = $('#global-blogger-data .homepageUrl').html(); + tn_blog.canonicalHomepageUrl = $('#global-blogger-data .canonicalHomepageUrl').html(); + // tn_blog.homepageUrl = tn_blog.canonicalHomepageUrl; // we use this to prevent Blogger adding m=0/1 to the url + tn_blog.canonicalUrl = $('#global-blogger-data .canonicalUrl').html(); + tn_url.canonical = tn_blog.canonicalUrl; + // we use this to prevent Blogger adding m=0/1 to the url + tn_blog.homepageUrl = new URL(tn_blog.homepageUrl); + tn_blog.homepageUrl = tn_blog.homepageUrl.origin + tn_blog.homepageUrl.pathname; + + + tn_blog.enabledCommentProfileImages = Boolean($('#global-blogger-data .enabledCommentProfileImages').html()); + tn_blog.blogId = $('#global-blogger-data .blogId').html(); + tn_blog.postId = $('.post-id').attr('data-id'); + tn_blog.bloggerCommentNumber = $('.blogger-comments-title').attr('data-comment_number'); + if (isNaN(tn_blog.bloggerCommentNumber)) { + tn_blog.bloggerCommentNumber = 0; + } else { + tn_blog.bloggerCommentNumber = Number(tn_blog.bloggerCommentNumber); + } + tn_blog.encoding = $('#global-blogger-data .encoding').html(); + + + tn_blog.label = new Array(); + if (tn_blog.homepageUrl.lastIndexOf('/') == tn_blog.homepageUrl.length - 1) { + tn_blog.homepageUrl = tn_blog.homepageUrl.substring(0, tn_blog.homepageUrl.length - 1); + } + + + + // all link in m=0 should also has m=0 + if (tn_query['m']) { + $(document).on('mousedown', 'a', function () { + let href = $(this).attr('href'); + + if (!href) return true; + let host = location.host + if (href.indexOf('//') == -1) return true; + if (href.indexOf(host) == -1) return true; + + // Get the current URL + const url = new URL(href); + + // Add the new parameter to the search params + url.searchParams.set('m', tn_query['m']); + + // Navigate to the new URL + if (url.href == href) return; + $(this).attr('href', url.href); + }) + } + + + + /* Get Blog Labels name/Url/Count from Widget:Label100*/ + $('#magone-labels').each(function () { + var labels = $(this).text(); + labels = labels.split(','); + + for (var i = 0; i < labels.length - 1; i += 2) { + var item = new Object(); + item.name = labels[i]; + item.count = Number(labels[i + 1]); + item.slug = escape_url(item.name); + item.url = tn_blog.homepageUrl + '/search/label/' + item.slug; + item.url = item.url.replace('http:', tn_url.protocol).replace('https:', tn_url.protocol); + tn_blog.label.push(item); + } + }); + // console.log(tn_blog.label); + + tn_blog.labelNumber = tn_blog.label.length; + // resort label list by decreasing count + if (!is_empty(tn_blog.label)) { + for (var i = 0; i < tn_blog.label.length - 1; i++) { + for (var j = i + 1; j < tn_blog.label.length; j++) { + if (tn_blog.label[i].count < tn_blog.label[j].count) { + var temp = tn_blog.label[i]; + tn_blog.label[i] = tn_blog.label[j]; + tn_blog.label[j] = temp; + } + } + } + } + tn_blog.postLabel = new Array(); + $('.post-label-data').each(function () { + let url = $(this).attr('data-href').replace('http:', tn_url.protocol).replace('https:', tn_url.protocol); + if (!url) return; + url = new URL(url); + url = url.origin + url.pathname; + tn_blog.postLabel.push(url); + }); + + + if (is_set(tn_query['zx']) || is_iframe()) { + tn_url.feed = 'https://www.blogger.com/feeds/' + tn_blog.blogId; + } + tn_url.host = window.location.hostname; + tn_url.name = tn_url.host.replace('www.', '').replace('http://', '').replace('https://', ''); + tn_url.path = window.location.pathname; + + + + + /*IMAGE MASTER*/ + /* + You must make sure your image container has class name .item-thumbnail and add below css into your style sheet. + + .item-thumbnail *, .item-thumbnail img {display:block;max-width: 9999px; max-height: 9999px; padding: 0!important;} + .item-thumbnail {overflow: hidden;display: block;z-index:9;} + */ + function optimize_thumbnail(images, must_load = true) { + if (typeof (images) != 'object') { + images = $('.item-thumbnail img'); + } + images.each(function () { + let parent = $(this).parent(); + if (!parent.is('.item-thumbnail') || parent.is('optimized')) return; + var src = $(this).attr('src'); + if (src == null) return; + + if ((src.indexOf('youtube.com') != -1) && (src.indexOf('/default.') != -1)) { + src = src.replace('/default.', '/hqdefault.'); + } + let max_size = Math.ceil(Math.max(parent.width(), parent.height())); + var src = b_resize_image(src, max_size * 2, false, must_load); + + // since 6.9.47 + // instead of add a fix image here, we replace add background to the thumbnail a + // parent.css('background-image', 'url("'+src+'")').addClass('optimized'); + $(this).attr('src', src); + parent.addClass('optimized'); + }); + } + + optimize_thumbnail(); + + + $(window).resize(function () { + // optimize_thumbnail(); + }); + + + + + // resize image + // if missing size, retrun full (1600) + // size can be string, ex: 300x500, w400, h300 + function b_resize_image(src, size = null, crop = false, must_load = false) { + + // only work with picasa / google photo images + if (src.indexOf('.blogspot.com') == -1 && src.indexOf('.googleusercontent.com') == -1) { + return src; + } + + // src should be https for every hosted image + src = src.replace('http://', 'https://'); + + + // process to get width and height + var width = 0; + var height = 0; + var current_width = 0; + var current_height = 0; + var current_size = 0; + var original_src = src; + var replace_to_webp = !is_Safari && REPLACE_IMAGE_TO_WEBP; + + // square image + if (is_number(size)) { + width = height = Math.ceil(Number(size)); + } + // specific width and height image + else if (is_string(size)) { + if (size.indexOf('x') !== -1) { + var sizes = size.split('x'); + width = sizes[0]; + height = sizes[1]; + if (is_number(width) && is_number(height)) { + width = Math.ceil(Number(width)); + height = Math.ceil(Number(height)); + } + } else if (size.indexOf('w') != -1 && is_number(size.replace('w', ''))) { + width = Math.ceil(Number(size.replace('w', ''))); + } else if (size.indexOf('h') != -1 && is_number(size.replace('h', ''))) { + height = Math.ceil(Number(size.replace('h', ''))); + } else { + return original_src; + } + } + // missing width and height, no need to resize + else if (!replace_to_webp) { + return original_src; + } + + // can not resize if zero in width or height + if (width == height && width == 0 && !replace_to_webp) { + return src; + } + + // scan and find image size position in src + // image with blogspot format + var glue = '/'; + if (src.indexOf('=') != -1 && src.indexOf('.googleusercontent.com') != -1) { + glue = '='; + } + + src = src.split(glue); + + for (var i = 0; i < src.length; i++) { + // size data can't be longer than 17 + if (src[i].length > 17) { + continue; + } + // seem this split has an image size data inside + if (src[i].has('-c') || src[i].has('s') || src[i].has('h') || src[i].has('w')) { + var src_size = src[i].split('-'); + src_size = src_size[0]; + src_size = src_size.replace('c', '').replace('s', '').replace('h', '').replace('w', ''); + + if (src_size != '' && !isNaN(src_size)) { + if (src[i].has('s')) { + current_size = Number(src_size); + } else if (src[i].has('h')) { + current_height = Number(src_size); + } else if (src[i].has('w')) { + current_width = Number(src_size); + } + break; + } + } + } + + // and then change src structure to replace our width and height into the image src + if (i < src.length) { + if (replace_to_webp && (width == height && height == 0 || size == null)) { + // do nothing just replace + } else if (width == height) { + // we will not return the new value if the resize is smaller + if (width < current_size && (!must_load)) { + return original_src; + } + src[i] = 's' + width; // simple resize + } else if (height == 0) { // missing height + if (width < current_width && (!must_load)) { + return original_src; + } + src[i] = 'w' + width; + } else if (width == 0) { // missing width + if (height < current_height && (!must_load)) { + return original_src; + } + src[i] = 'h' + height; + } else { + if ((height < current_height || width < current_width) && (!must_load)) { + return original_src; + } + src[i] = 'w' + width + '-' + 'h' + height; + } + + if (crop) { + src[i] += '-c'; + } + + // we convert all hosted image to .webp so + // we need rewrite to reduce size + if (replace_to_webp) { + src[i] += '-rw'; + } + } + + src = src.join(glue); + + + // change all extension to .webp to save the data + if (replace_to_webp) { + var replace_exts = ['png', 'gif', 'jpge', 'jpg', 'bmp']; + for (var i = 0; i < replace_exts.length; i++) { + src = src.replace('.' + replace_exts[i], '.webp'); + src = src.replace('.' + replace_exts[i].toUpperCase(), '.webp'); + } + } + + + return src; + } + + + // get first image from content + function b_get_first_image(content) { + var src = ''; + var key0 = '\u003cimg '; + var key1 = 'src\u003d\"'; + var key2 = '\"'; + + + // normal third party image + index0 = content.indexOf(key0); + if (index0 != -1) { + + index1 = content.indexOf(key1, index0); + if (index1 == -1) { + key1 = 'src\u003d\''; + key2 = '\''; + index1 = content.indexOf(key1, index0); + } + if (index1 != -1) { + + index2 = content.indexOf(key2, index1 + key1.length); + if (index2 != -1) { + + src = content.substring(index1 + key1.length, index2); + + } + } + } + + + // youtube image old version + if (!src) { + key0 = 'data-thumbnail-src\u003d\"'; + key1 = '\"'; + index0 = content.indexOf(key0); + if (index0 != -1) { + index1 = content.indexOf(key1, index0 + key0.length); + if (index0 != -1) { + src = content.substring(index0 + key0.length, index1); + } + } + } + + // youtube image iframe version + if (!src) { + var key0 = 'youtube-nocookie.com/embed/'; + var key1 = 'youtube.com/embed/'; + var key2 = 'youtube.com/watch?v='; + var key3 = 'youtu.be/'; + var key_start = key0; + var key_end = '"'; + + // find start point + var start = content.indexOf(key_start); + if (start == -1) { + key_start = key1; + start = content.indexOf(key_start); + if (start == -1) { + key_start = key2; + start = content.indexOf(key_start); + if (start == -1) { + key_start = key3; + start = content.indexOf(key_start); + } + } + } + + // then end point + if (start != -1) { + var end = content.indexOf(key_end, start); + + // now we can get tail of src + if (end != -1) { + src = content.substring(start + key_start.length, end); + + // sanitize it and create src + if (src.indexOf('?') != -1) { + src = src.substring(0, src.indexOf('?')); + } + if (src.indexOf('&') != -1) { + src = src.substring(0, src.indexOf('&')); + } + src = 'https://img.youtube.com/vi/' + src + '/hqdefault.jpg'; + } + } + } + + // replace all http method to https + if (src.has('.blogspot.com/')) { + src = src.replace('http://', '//'); + } + + return src; + } + + /*BLOGGER MASTER*/ + /*blogger json*/ + /*Other way to get json: + http://magonedemo.blogspot.com/search?action=getTitles&widgetId=BlogArchive1&widgetType=BlogArchive&responseType=js&path=http%3A%2F%2Fmagonedemo.blogspot.com%2F2015_05_01_archive.html*/ + function b_valid_json(json) { + // bad json + if (typeof (json) == 'undefined' || typeof (SNEEIT_LICENSE) == 'undefined') { + return false; + } + + // empty json + if (!('feed' in json)) { + // the ajax done but not transfer, + // so we must get response text + // and convert to json manually + if ('responseText' in json) { + temp = json.responseText; + if (temp.indexOf('({"version":') == -1) { + return false; + } + start = temp.indexOf('({"version":'); + if (temp.indexOf('}});') == -1) { + return false; + } + end = temp.indexOf('}});'); + temp = temp.substring(start + 1, end + 2); + return str_to_json(temp); + } else { + return false; + } + } + return json; + } + + /* + this.id + this.cate = new Array(); + this.title = ''; + this.subtitle = ''; + this.admin = new Object(); + this.admin.name = 'Anonymous'; + this.admin.uri = ''; + this.admin.avatar = 'http://img1.blogblog.com/img/anon36.png'; + this.total_entry = Number(json.feed.openSearch$totalResults.$t); + this.start_index = Number(json.feed.openSearch$startIndex.$t); + this.item_per_page = Number(json.feed.openSearch$itemsPerPage.$t); + this.entry_number = 0; + this.entry = new Array(); + .id = entry.id.$t; + .published = ''; + .cate = new Array(); + .title = ''; + .content = ''; + .summary = ''; + .link = ''; + .reply_label = 'comments'; + .author = new Object(); + .author.name = 'Anonymous'; + .author.uri = ''; + .author.avatar = 'http://img1.blogblog.com/img/anon36.png'; + .thumbnail = b_get_first_image(temp.content); + .format + .reply_number = 0; + .reply_to = ''; + .reply_json = ''; + .reply_title = ''; + .pid = ''; + .pid = temp.pid.replace('pid-', ''); + */ + /** + * + Blogger returns: 2015-04-26T11:28:00.000-07:00 + */ + function b_format_date(dateString, format = '') { + if (!format) { + format = typeof (FORMAT_DATE) !== 'undefined' ? FORMAT_DATE : 'MMM dd, yyyy'; + } + const dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] + const monNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; + + // ignore the time zone + var timezoneSep = Math.max(dateString.lastIndexOf('-'), dateString.lastIndexOf('+')); + if (timezoneSep !== -1) { + dateString = dateString.substring(0, timezoneSep); + } + let date = new Date(dateString); + const repSq = { + 'yyyy': () => (date.getFullYear()), // yyyy = long year + 'yy': () => (date.getFullYear() % 1000), // yy = short year + + 'MMMM': () => (trans(monNames[date.getMonth()])), // MMMM = long month (January, February ... December) + 'MMM': () => (trans(monNames[date.getMonth()].substring(0, 3))), // MMM = month abbreviation (Jan, Feb ... Dec) + 'MM': () => ((date.getMonth() >= 9 ? '' : '0') + (date.getMonth() + 1)), // MM = month (01-12) + 'M': () => (date.getMonth() + 1), // M = month (1-12) + + 'ddd': () => (trans(dayNames[date.getDay()])), // ddd = day of the week in words (Monday, Tuesday ... Sunday) + 'dd': () => ((date.getDate() > 9 ? '' : '0') + date.getDate()), // dd = day (01 - 31) + 'd': () => (date.getDate()), // d = day (1 - 31) + 'E': () => (trans(dayNames[date.getDay()].substring(0, 3))), // E = short day of the week in words (Mon, Tue ... Sun) + + // D - Ordinal day (1st, 2nd, 3rd, 21st, 22nd, 23rd, 31st, 4th...) + 'D': () => (date.getDate() + + ( + [1, 21, 31].includes(date.getDate()) ? 'st' : ( + [2, 22].includes(date.getDate()) ? 'nd' : ( + [3, 23].includes(date.getDate()) ? 'rd' : 'th' + ) + ) + ) + ), + 'hh': () => ((date.getHours() % 12).toString().padStart(2, '0')), // hh = hour in am/pm (00-12) + 'h': () => (date.getHours() % 12), // h = hour in am/pm (0-12) + 'HH': () => (date.getHours().toString().padStart(2, '0')), // HH = hour in day (00-23) + 'H': () => (date.getHours()), // H = hour in day (0-23) + 'mm': () => (date.getMinutes().toString().padStart(2, '0')), // mm = minute + 'ss': () => (date.getSeconds().toString().padStart(2, '0')), // ss = second + 'SSS': () => (date.getMilliseconds().toString().padStart(3, '0')), // SSS = milliseconds + 'a': () => (date.getHours() < 12 ? 'AM' : 'PM'), // a = AM/PM marker + 'p': () => (date.getHours() < 12 ? 'a.m' : 'p.m'), // p = a.m./p.m. marker + } + + + // use replace-holders to prevent collisions + // from replacing the replaced texts + let rep = []; + for (let r in repSq) { + if (format.indexOf(r) !== -1) { + format = format.replaceAll(r, '[$' + rep.length + '$]'); + rep.push(repSq[r]()) + } + } + + // actual replacements + for (let i = 0; i < rep.length; i++) { + format = format.replaceAll('[$' + i + '$]', rep[i]); + } + + return format; + } + + + function b_parse_json(json, summary_len, default_thumbnail, date_format) { + // if (typeof(date_format) == 'undefined') { + // if (typeof(DATE_FORMAT) != 'undefined') { + // var date_format = DATE_FORMAT; + // } else { + // var date_format = 'MMM dd, yyyy'; + // } + // } + if (typeof (json) == 'undefined' || typeof (SNEEIT_LICENSE) == 'undefined') { + return false; + } + + if (typeof (summary_len) == 'undefined') { + var summary_len = 500; + } + if (typeof (default_thumbnail) == 'undefined') { + if (typeof (DEFAULT_POST_THUMBNAIL) != 'undefined') { + var default_thumbnail = DEFAULT_POST_THUMBNAIL; + } else { + var default_thumbnail = 'https://lorempixel.com/640/300/'; + } + } + + + var imgkey = '\u003cimg '; + + this.id = json.feed.id.$t; + var key = 'blog-'; + var index = this.id.indexOf(key); + this.id = this.id.substring(index + key.length); + this.id = this.id.replace('.comments', ''); + + this.cate = new Array(); + if ('category' in json.feed) { + for (i = 0; i < json.feed.category.length; i++) { + this.cate[i] = json.feed.category[i].term; + } + } + + this.title = ''; + if ('title' in json.feed) { + this.title = json.feed.title.$t; + } + this.title_attr = esc_attr(this.title); + + this.subtitle = ''; + if ('subtitle' in json.feed) { + this.subtitle = json.feed.subtitle.$t; + } + + this.admin = new Object(); + this.admin.name = 'Anonymous'; + this.admin.uri = ''; + this.admin.avatar = 'https://img1.blogblog.com/img/anon36.png'; + if ('name' in json.feed.author[0]) { + this.admin.name = json.feed.author[0].name.$t; + } + if ('uri' in json.feed.author[0]) { + this.admin.uri = json.feed.author[0].uri.$t; + } + if ('gd$image' in json.feed.author[0]) { + if (json.feed.author[0].gd$image.src != 'https://img1.blogblog.com/img/blank.gif') { + this.admin.avatar = json.feed.author[0].gd$image.src; + } + } + this.total_entry = Number(json.feed.openSearch$totalResults.$t); + this.start_index = Number(json.feed.openSearch$startIndex.$t); + this.item_per_page = Number(json.feed.openSearch$itemsPerPage.$t); + this.entry_number = 0; + if ('entry' in json.feed) { + this.entry_number = json.feed.entry.length; + } + this.entry = new Array(); + for (i = 0; i < this.entry_number; i++) { + this.entry[i] = new Object(); + var temp = new Object(); + var entry = json.feed.entry[i]; + + temp.id = entry.id.$t; + key = 'post-'; + index = temp.id.indexOf(key); + temp.id = temp.id.substring(index + key.length); + + temp.published = ''; + if ('published' in entry) { + temp.published = entry.published.$t; + } + + temp.cate = new Array(); + if ('category' in entry) { + for (j = 0; j < entry.category.length; j++) { + temp.cate[j] = entry.category[j].term; + } + } + + temp.title = ''; + if ('title' in entry) { + temp.title = entry.title.$t; + } + temp.title_attr = esc_attr(temp.title); + + temp.content = ''; + if ('content' in entry) { + temp.content = entry.content.$t; + } + + temp.summary = ''; + if ('summary' in entry) { + temp.summary = entry.summary.$t; + } + + if (temp.content) { + temp.summary = temp.content; + } else if ('summary' in entry) { + temp.summary = entry.summary.$t; + } + if (temp.content == '') { + temp.content = temp.summary; + } + if (temp.summary) { + temp.summary = temp.summary.replace/***/(/]*>(.*?)<\/noscript>/g,/***/ ''); + temp.summary = temp.summary.replace/***/(/]*>(.*?)<\/script>/g,/***/ ''); + temp.summary = temp.summary.replace/***/(/<\S[^>]*>/g,/***/ ''); + } + + if (temp.summary.length > summary_len) { + temp.summary = temp.summary.substring(0, summary_len) + '...'; + } + + temp.link = ''; + temp.parentId = ''; + temp.reply_label = 'comments'; + if ('link' in entry) { + for (j = 0; j < entry.link.length; j++) { + if (entry.link[j].rel == 'alternate') { + temp.link = entry.link[j].href; + } + if (entry.link[j].rel == 'replies') { + temp.reply_label = entry.link[j].title; + } + if (entry.link[j].rel == 'related') { + temp.parentId = entry.link[j].href; + temp.parentId = temp.parentId.split('/comments/default/')[1]; + } + } + } + + temp.author = new Object(); + temp.author.name = 'Anonymous'; + temp.author.uri = ''; + temp.author.avatar = 'https://img1.blogblog.com/img/anon36.png'; + a0 = entry.author[0]; + if ('name' in a0) { + temp.author.name = a0.name.$t; + } + if ('uri' in a0) { + temp.author.uri = a0.uri.$t; + } + if ('gd$image' in a0) { + if (a0.gd$image.src != 'https://img1.blogblog.com/img/blank.gif') { + temp.author.avatar = a0.gd$image.src; + } + } + temp.thumbnail = b_get_first_image(temp.content); + + temp.has_thumbnail = true; + if (temp.thumbnail == '' && 'media$thumbnail' in entry) { + temp.thumbnail = entry.media$thumbnail.url; + } + if (temp.thumbnail == '') { + temp.thumbnail = default_thumbnail; + temp.has_thumbnail = false; + } + + + temp.format = 'standard'; + if (temp.content.indexOf('youtube.com/embed') != -1 || + temp.content.indexOf('youtube-nocookie.com/embed/') != -1 || + temp.content.indexOf('player.vimeo.com') != -1 || + temp.content.indexOf('dailymotion.com/embed') != -1) { + temp.format = 'video'; + } + else if (temp.content.split(imgkey).length > 3) { + temp.format = 'image'; + } else if (temp.content.indexOf('soundcloud.com/player') != -1) { + temp.format = 'audio'; + } + + + temp.reply_number = 0; + if ('thr$total' in entry) { + temp.reply_number = Number(entry.thr$total.$t); + } + temp.reply_label = temp.reply_label.replace(temp.reply_number + ' ', ''); + + temp.reply_to = ''; + temp.reply_json = ''; + temp.reply_title = ''; + if ('thr$in-reply-to' in entry) { + temp.reply_to = entry['thr$in-reply-to'].href; + temp.reply_json = entry['thr$in-reply-to'].source; + temp.reply_json = temp.reply_json.replace('/default/', '/summary/'); + temp.reply_json = temp.reply_json + '?alt=json-in-script'; + } + + temp.pid = ''; + temp.itemClass = ''; + temp.displayTime = ''; + if ('gd$extendedProperty' in entry) { + for (j = 0; j < entry.gd$extendedProperty.length; j++) { + if (entry.gd$extendedProperty[j].name == 'blogger.itemClass') { + temp.pid = entry.gd$extendedProperty[j].value; + temp.itemClass = temp.pid; + } + if (entry.gd$extendedProperty[j].name == 'blogger.displayTime') { + temp.displayTime = entry.gd$extendedProperty[j].value; + } + } + } + temp.pid = temp.pid.replace('pid-', ''); + + this.entry[i] = temp; + } + } + + + /*WIDGET MASTER*/ + /* + Blogger widget title is allow 99 characters only + widget title decoration rules: + title_ will show title with border-bottom + [title] will show a box around title text + [title]_ will show a box around title text and border-bottom + |title hight ligh head of title + /gi-code/ title will show title with icon at beginning + */ + function widget_title_decor(widget, title) { + var pre_title = title.split('$')[0]; + if (is_empty(pre_title)) { + return title; + } + var raw_title = pre_title; + if (raw_title.has('/fa') || raw_title.has('/gi')) { + let start_1 = raw_title.indexOf('/fa'); + let start_2 = raw_title.indexOf('/gi'); + let start = Math.max(start_1, start_2); + let end = raw_title.indexOf('/', start + 2); + if (end > start) { + raw_title = raw_title.substring(0, start) + apply_googleicon_tag(raw_title.substring(start + 1, end)) + raw_title.substring(end + 1); + } + + } + + var decorated = false; + // this is border-bottom title + if (raw_title.indexOf('_') == raw_title.length - 1) { + decorated = true; + widget.addClass('under-title'); + raw_title = raw_title.substring(0, raw_title.length - 1); + } + + // this is box + if (raw_title.indexOf('[') == 0) { + if (raw_title.indexOf(']') == raw_title.length - 1) { + decorated = true; + widget.addClass('box-title'); + raw_title = raw_title.substring(1, raw_title.length - 1); + } + } + // this is head point + if (raw_title.indexOf('|') == 0) { + decorated = true; + widget.addClass('head-title'); + raw_title = raw_title.substring(1); + } + + if (decorated && raw_title) { + raw_title = '' + raw_title + ''; + } + + return title.replaceAll(pre_title, raw_title); + } + + + /*widget premade*/ + if (is_home()) { + $('#content-section-after-post').remove(); + } else { + if (SHOW_AFTER_POST_SECTION == 'none') { + $('#content-section-after-post').remove(); + } else { + $('#content-section-after-post').appendTo($('.after-post-content-' + SHOW_AFTER_POST_SECTION)); + } + } + + $('.cloud-label-widget-content .label-size').addClass('bg'); + $('.cloud-label-widget-content .label-size .label-count').each(function () { + $(this).html($(this).html().replace('(', '').replace(')', '')); + }); + + /*widget parser*/ + /********************************************************/ + /********************************************************/ + $('.widget').css('opacity', '1'); + $('.widget > h2').each(function () { + var wtitle = $(this).html().replaceAll('\n', ''); + var widget = $(this).parent(); + widget.type = widget.attr('class').replace('widget ', '').replace(' ', '').toLowerCase(); + + wtitle = widget_title_decor(widget, wtitle); + $(this).html(wtitle); + + + // if widget title has no param, show it and return + if (!wtitle.has('$') || !wtitle.has('=')) { + if (!widget.is('.PopularPosts')) { + $(this).show(); + return; + } + } + + // if has param, find them + wtitle = wtitle.split('$'); + + // init widget object + widget.section_id = widget.parent().attr('id'); + widget.id = widget.attr('id'); + widget.title = wtitle[0]; + widget.param = new Object(); + // scan param + for (var i = 1; i < wtitle.length; i++) { + if (wtitle[i].has('=')) { + var property = wtitle[i].split('='); + if (property.length < 2 || (!property[0].length) || (!property[1].length)) { + continue; + } + widget.param[property[0]] = property[1]; + } + } + + // some misc widgets + if (is_empty(widget.param.type)) { + if (widget.type == 'popularposts') { + widget.param.type = 'one'; + } else { + widget.param.type = 'misc'; + } + } + + // update to tn_widget list for show / hide + if (!is_empty(widget.param) && !is_empty(widget.param.type)) { + // SHOW param + // specific showing page + // home, archive, index, label, search, page, post, singular, error/404 or specific url + if (!is_empty(widget.param.show)) { + var show = false; + + // if show param is URL + if (widget.param.show.has('.') || widget.param.show.has('/')) { + show = tn_url.current.has(widget.param.show) || + tn_url.current.has(encodeURI(widget.param.show)) || + decodeURIComponent(tn_url.current).has(widget.param.show); + } + + // combine with other cases + var show_param = widget.param.show.split('-'); + + + for (var show_index = 0; show_index < show_param.length; show_index++) { + switch (show_param[show_index]) { + case 'home': show = show || is_home(); break; + case 'label': show = show || is_label(); break; + case 'search': show = show || is_search(); break; + case 'archive': show = show || is_archive(); break; + case 'index': show = show || is_index(); break; + case 'page': + case 'static': + case 'static_page': + show = show || is_page(); + break; + case 'post': + case 'article': + case 'item': + case 'single': + show = show || is_item(); break; + case 'singular': show = show || is_singular(); break; + case '404': + case 'error': + case 'error_page': show = show || is_404(); break; + case 'mobile': + case 'phone': show = show || is_mobile(); break; + default: + break; + } + } + if (!show) { + widget.remove(); + return; + } + } + + // HIDE param + if (!is_empty(widget.param.hide)) { + var hide = false; + // if hide param is URL + if (widget.param.hide.has('.') || widget.param.hide.has('/')) { + hide = tn_url.current.has(widget.param.hide) || + tn_url.current.has(encodeURI(widget.param.hide)) || + decodeURIComponent(tn_url.current).has(widget.param.hide); + } + + // combine with other cases + var hide_param = widget.param.hide.split('-'); + + for (var hide_index = 0; hide_index < hide_param.length; hide_index++) { + switch (hide_param[hide_index]) { + case 'home': hide = hide || is_home(); break; + case 'label': hide = hide || is_label(); break; + case 'search': hide = hide || is_search(); break; + case 'archive': hide = hide || is_archive(); break; + case 'index': hide = hide || is_index(); break; + case 'page': + case 'static': + case 'static_page': hide = hide || is_page(); break; + case 'post': + case 'article': + case 'item': + case 'single': hide = hide || is_item(); break; + case 'singular': hide = hide || is_singular(); break; + case '404': + case 'error': + case 'error_page': hide = hide || is_404(); break; + case 'mobile': + case 'phone': hide = hide || is_mobile(); break; + default: + break; + } + } + if (hide) { + widget.remove(); + return; + } + } + + // valid type + widget.param.type = widget.param.type.toLowerCase(); + + // scan content depending on the widget type + // image + if (widget.type == 'image') { + widget.content = new Object(); + widget.find('.widget-content').each(function () { + $(this).find('img').each(function () { + widget.content.src = $(this).attr('src'); + }); + $(this).find('.caption').each(function () { + widget.content.caption = $(this).html(); + }); + $(this).find('a').each(function () { + widget.content.href = $(this).attr('href'); + }); + }); + } + + // linklist || pagelist + if (widget.type == 'linklist' || widget.type == 'pagelist') { + widget.content = new Array(); + widget.find('ul li a').each(function () { + var link = $(this); + link.name = $(this).html(); + link.url = $(this).attr('href'); + widget.content[widget.content.length] = link; + }); + } + + // label + if (widget.type == 'label') { + widget.selectAll = false; + widget.find('.widget-item-control').remove(); + widget.content = new Array(); + widget.find('[dir]').each(function () { + var text = $(this).text(); + + for (var i = 0; i < tn_blog.label.length; i++) { + if (text == tn_blog.label[i].name) { + break; + } + } + if (i < tn_blog.label.length) { + var label = new Object(); + label.name = tn_blog.label[i].name; + label.slug = tn_blog.label[i].slug; + widget.content.push(label); + } + }); + + if (widget.content.length == tn_blog.label.length || widget.content.length == 0) { + widget.selectAll = true; + } + } + + // Fill Data for Popular Posts + if (widget.type == 'popularposts') { + widget.json = new Object(); + widget.json.entry = new Array(); + var entry_index = 1; + widget.find('li').each(function () { + // make static json data + var entry = $(this); + entry.link = $(this).find('a').attr('href'); + entry.title = ''; + entry.cate = [entry_index]; + entry_index++; + entry.thumbnail = DEFAULT_POST_THUMBNAIL; + entry.content = entry.summary = ''; + entry.id = 'popularposts'; + entry.has_thumbnail = false; + + // get title + $(this).find('.item-title').each(function () { + entry.title = $(this).find('a').html(); + }); + if (is_empty(entry.title)) { + entry.title = $(this).find('a').html(); + } + + // get thumbnail + $(this).find('img').each(function () { + entry.thumbnail = $(this).attr('src'); + entry.has_thumbnail = true; + }); + + // get content + $(this).find('.item-snippet').each(function () { + var sumtxt = $(this).html(); + entry.content = entry.summary = sumtxt.substring(0, sumtxt.length - 3); + }); + + widget.json.entry[widget.json.entry.length] = entry; + }); + } + + + + // alias property map + var alias = { + 'cols': 'columns', + 'clm': 'columns', + 'cls': 'columns', + + 'c': 'count', + 'cnt': 'count', + + 'h': 'height', + 'btn': 'buttons', + 'b': 'buttons', + 'do': 'dots', + 't': 'title', + + 'm': 'meta', + 'mt': 'meta', + + 'a': 'author', + 'au': 'author', + + 'cm': 'comment', + 'com': 'comment', + 'comments': 'comment', + + 'd': 'date', + 'sp': 'speed', + + 'rdm': 'readmore', + 'rm': 'readmore', + + 'sn': 'snippet', + 's': 'snippet', + 'snip': 'snippet', + + 'description': 'desc', + 'ds': 'desc', + 'dsc': 'desc', + + 'cat': 'cate', + 'ct': 'cate', + 'label': 'cate', + 'labels': 'cate', + 'lab': 'cate', + 'la': 'cate', + 'l': 'cate', + 'category': 'cate', + 'categories': 'cate', + + 'va': 'viewall', + + 'idx': 'index', /*for show / hide popular index number*/ + 'id': 'index', + + 'pagination': 'pages', + 'navigation': 'pages', + 'page': 'pages', + 'pag': 'pages', + 'pgn': 'pages', + 'nav': 'pages', + 'nv': 'pages', + 'p': 'pages', + 'pg': 'pages', + + 'ico': 'icon', + 'i': 'icon', + 'ic': 'icon', + + 'cl': 'color', + 'col': 'color', + 'clr': 'color', + 'co': 'color', + + 'tb': 'tbg', + 'thumb_bg': 'tbg', + + 'src': 'source', + 'sr': 'source', + + 'spc': 'space', + 'spa': 'space', + 'spacing': 'spac', + + 'hst': 'host', + 'ho': 'host', + + 'tp': 'topic', + 'to': 'topic', + 'top': 'topic', + 'tpc': 'topic' + }; + for (var key in alias) { + if (is_set(widget.param[key])) { + widget.param[alias[key]] = widget.param[key]; + } + } + + if (is_set(widget.param.count) && is_number(widget.param.count)) { + widget.param.count = Number(widget.param.count); + } + + + // pre process widget param type and sub type + widget.param.subtype = ''; + if (widget.param.type.has('tab')) { + widget.param.type = widget.param.type.replaceAll('tab', '').replaceAll('-', ''); + if (widget.param.type == '') { + widget.param.type = 'misc'; + } + widget.param.subtype = 'tab'; + } + + // save widget + tn_widget.push(widget); + $(this).html(widget.title).show(); + + widget.hide().addClass(widget.param.type).addClass(widget.type); + if (widget.param.subtype) { + widget.addClass(widget.param.subtype); + } + } else { + $(this).html(widget.title).show(); + } + + }); + + /*widget applications*/ + /********************************************************/ + /********************************************************/ + var TAB_LISTS = new Array(); + for (var i = 0; i < tn_widget.length; i++) { + var widget = tn_widget[i]; + var param = widget.param; + + if (is_set(param.space) && (param.space == '0' || param.space == 'no' || param.space == 'none')) { + widget.addClass('no-spacing'); + } + + // tab widgets + if (param.subtype == 'tab') { + var tab_list = new Array(); + var section_id = widget.section_id; // stop if tab widgets are in different sections + + // scan all tab widgets in chain + for (var j = i; j < tn_widget.length; j++) { + if (tn_widget[j].param.subtype != 'tab' || widget.section_id != section_id) { + // this widget is not a tab or in a tab of other section + break; + } + // replace tab sub type to skip in next scans + tn_widget[j].param.subtype = ''; + + // add into tab list to display + tab_list.push(tn_widget[j]); + } + + // display tab list after scanned all + // tab_list_show(tab_list); + TAB_LISTS.push(tab_list); + } + + // social link widget + if (param.type == 'social_icons' && widget.type == 'linklist') { + for (let j = 0; j < widget.content.length; j++) { + let link = widget.content[j]; + let name = link.name; + let title = link.url.replace('http://', '').replace('https://', '').replace('www.', '').split('/')[0].split('.') + title = (title[title.length - 2] || title[0]) + + + // add icon in case users did not input icon code with tags but only the code + if (!name.has('<') && !name.has('>')) { + link.html(''); + } + + link.addClass(title).attr('title', title.toCapitalize()) + + + if (is_enable(widget.param.target)) { + link.attr('target', '_blank'); + } + link.attr('rel', 'noopener noreferrer'); + } + social_icons_show(widget); + continue; + } + + // social counter widget + if (param.type == 'social_counter' && widget.type == 'linklist') { + var ret = ''; + for (var j = 0; j < widget.content.length; j++) { + var link = widget.content[j]; + var text = link.name; + var href = link.url; + let title = link.url.replace('http://', '').replace('https://', '').replace('www.', '').split('/')[0].split('.') + title = (title[title.length - 2] || title[0]) + + if (!text.has('|')) { + continue; + } + text = text.split('|'); + var code = text[0]; + var count = text[1]; + var count_text = trans('Followers'); + var button_text = trans('Follow'); + if (typeof (text[2]) != 'undefined') { + count_text = text[2]; + } + if (typeof (text[3]) != 'undefined') { + button_text = text[3]; + } + + icon = apply_googleicon_tag(code, code.indexOf('rss') !== -1 ? 'gir' : 'gib'); + + // strip tag + if (code.indexOf('<') != -1 && code.indexOf('>')) { + let tempEl = document.createElement('div'); + tempEl.innerHTML = code; + code = tempEl.firstChild.classNames; + } + if (code.indexOf(' ') != -1) { + code = code.split(' ')[1]; + } + if (code.indexOf('-') != -1) { + code = code.split('-')[1]; + } + + code = code.trim().toLowerCase(); + var name = code; + + ret += ''+ DIVCLEAR; + } + widget.find('.widget-content').html(ret); + widget.show(); + continue; + } + + // image slider + if (param.type == 'image_list' && widget.type == 'image') { + // stop if images are in different sections + var section_id = widget.section_id; + + // scan all images in chain + var image_list = new Array(); + for (var j = i; j < tn_widget.length; j++) { + var widget = tn_widget[j]; + var param = widget.param; + if (param.type != 'image_list' || widget.type != 'image' || widget.section_id != section_id) { + break; + } + image_list[image_list.length] = widget; + } + // skip all scanned image widgets for image slider + i = j - 1; + + // call image slider handler + image_list_show(image_list); + continue; + } + + // misc widget + if (widget.param.type == 'misc' || widget.type == 'html') { + if (widget.is('.HTML') && widget.find('#mc_embed_signup').length && !widget.find('link').length) { + widget.type = 'followbyemail'; + } + misc_show(widget); + continue; + } + + if (widget.type == 'popularposts') { + widget.addClass('feed').show(); + widget + .find('.widget-content') + .addClass('feed-widget-content widget-content-' + widget.id) + .attr('id', 'widget-content-' + widget.id); + + feed_content_show(widget); + continue; + } + + // label_feed + if (widget.type == 'label' && widget.param.type != 'misc') { + widget.attr('data-i', i); + widget.addClass('feed pending'); + feed_show(widget); + continue; + } + } + // make tab widgets + for (var i = 0; i < TAB_LISTS.length; i++) { + tab_list_show(TAB_LISTS[i]); + } + + /* MENU MAKER */ + // mobile menu + $('
' + $('#PageList1').html() + '
').insertAfter($('#PageList1')); + + + // social icon for mobile + if (!$('.top-bar').length) { + $('#Header1 .header-social-icons').each(function () { + + $('.mobile-menu .menu').prepend(''); + $(this).clone().prependTo($('.mobile-social-icons')); + $(this).addClass('none-mobile'); + }); + } + + $('.mobile-menu .menu-item').each(function () { + var icon = apply_googleicon_tag($(this).attr('data-icon')); + if (icon) { + $(this).find('> a').each(function () { + $(this).html(icon + ' ' + $(this).html()); + }); + } + + // add expand / collapse button + if ($(this).is('.menu-item-has-children')) { + $(this).append( + '' + + '' + ); + } + }); + + + + // action for expand and collapse menu + $('.mobile-menu .menu-item-has-children > a').click(function (e) { + var href = $(this).attr('href'); + if (typeof (href) != 'undefined' && href.length > 2) { + return true; + } + + e.preventDefault(); + + var par = $(this).parent(); + + if (par.is('.expanded')) { + par + .addClass('collapsed') + .removeClass('expanded') + .find('> .sub-menu').slideUp(); + } else { + par + .removeClass('collapsed') + .addClass('expanded') + .find('> .sub-menu').slideDown(); + } + + return false; + + }); + $('.mobile-menu .menu-item .expand').click(function () { + var par = $(this).parent(); + par + .removeClass('collapsed') + .addClass('expanded') + .find('> .sub-menu').slideDown(); + }); + $('.mobile-menu .menu-item .collapse').click(function () { + var par = $(this).parent(); + par + .addClass('collapsed') + .removeClass('expanded') + .find('> .sub-menu').slideUp(); + }); + + // main menu + $('#PageList1 > ul').attr('id', 'menu-header-section'); + $('#PageList1 li').each(function () { + var icon = apply_googleicon_tag($(this).attr('data-icon')); + if (icon) { + $(this).find('> a').each(function () { + $(this).html(icon + ' ' + $(this).html()); + }); + } + + if ($(this).find('> ul').length) { + $(this).find('> ul').wrap(''); + $(this).find('> a').each(function () { + $(this).html($(this).html() + ' '); + }); + } else { + $(this).append(''); + } + }); + $('#PageList1 div.menu-item-inner').append(DIVCLEAR); + $('#PageList1 > ul > li').each(function () { + var enable_mega = $(this).attr('data-enable_mega'); + if (is_set(enable_mega) && enable_mega == 'true') { + $(this).addClass('menu-item-mega'); + if ($(this).is('.menu-item-type-label')) { + var href = $(this).find('> a').attr('href'); + $(this).attr('data-slug', get_label_slug(href)); + $(this).addClass('menu-item-mega-label'); + $(this).find('> .menu-item-inner').prepend(''); + } else { + $(this).addClass('menu-item-mega-link'); + } + } + }); + + + $('#PageList1 li a').each(function () { + var href = $(this).attr('href'); + if (is_set(href) && tn_url.current == href) { + $(this).addClass('current'); + $(this).parent().addClass('menu-item-current'); + } + }); + $('#PageList1').addClass('menu pagelist main-menu no-title').show().append(DIVCLEAR); + + /*COMMENT MASTER*/ + /* + http://1576025477689969055.blogspot.com/feeds/postID/comments/default + var COMMENT_ITEMS = [{ + 'id' : '657137272741218347', + 'body' : '[video]http://www.youtube.com/watch?v\75vHGwF8poOyw[/video]', + 'timestamp' : '1390883785262', + 'permalink' : 'http://1576025477689969055.blogspot.com/2014/01/new-post-without-image.html?showComment\0751390883785262#c657137272741218347', + 'author' : { + 'name' : 'Tien Nguyen', + 'avatarUrl' : '//lh4.googleusercontent.com/-JTKLZF7yj9U/AAAAAAAAAAI/AAAAAAAACQw/2ku1eqCU9pA/s35-c/photo.jpg', + 'profileUrl' : 'https://www.blogger.com/profile/15469822106911365261' + }, + 'displayTime' : 'January 27, 2014 at 8:36 PM', + 'deleteclass' : 'item-control blog-admin pid-1360947394' + }, { + 'id' : '2489830715278407706', + 'parentId' : '657137272741218347', + 'body' : 'I love this theme, thank god', + 'timestamp' : '1390884006139', + 'permalink' : 'http://1576025477689969055.blogspot.com/2014/01/new-post-without-image.html?showComment\0751390884006139#c2489830715278407706', + 'author' : { + 'name' : 'Tien Nguyen', + 'avatarUrl' : '//lh4.googleusercontent.com/-JTKLZF7yj9U/AAAAAAAAAAI/AAAAAAAACQw/2ku1eqCU9pA/s35-c/photo.jpg', + 'profileUrl' : 'https://www.blogger.com/profile/15469822106911365261' + }, + 'displayTime' : 'January 27, 2014 at 8:40 PM', + 'deleteclass' : 'item-control blog-admin pid-1360947394' + } + */ + + function modify_comment_body(html) { + // backup all html tags into a list and then replace after modify content + var tag_list = new Array(); + var media_list = new Array(); + var tag_holder = ' _____THIS_IS_TAG_HOLDER_____' + randNumStr() + '_____ '; + var media_holder = ' _____THIS_IS_MEDIA_HOLDER_____' + randNumStr() + '_____ '; + var index = 0; + var start = -1; + var end = -1; + for (var i = 0; i < 1000; i++) { + index = html.indexOf('<', index); + if (index == -1) { break; } + start = index; + + index = html.indexOf('>', index); + if (index == -1) { break; } + end = index; + + tag_list.push(html.substring(start, end + 1)); + html = html.substring(0, start) + tag_holder + html.substring(end + 1); + index = start + tag_holder.length; + } + + // media attach + if (COMMENT_MEDIA_ATTACH) { + var urls = get_urls(html); + if (urls != null) { + for (var i = 0; i < urls.length; i++) { + var url = urls[i]; + html = html.replace(url, media_holder); + + // replace for youtube + if (url.has('youtube') || url.has('youtu.be')) { + // replace as youtube iframe + var vid = get_youtube_video_id(url); + var lid = get_youtube_list_id(url); + if (vid) { + var rep_code = ''; + media_list.push(rep_code); + continue; + } + } + + // replace for vimeo + if (url.has('vimeo')) { + var vid = get_vimeo_video_id(url); + if (vid) { + media_list.push(''); + continue; + } + } + + // replace for images + if (is_image_src(url)) { + media_list.push(``); + continue; + } + + // other link will become external + media_list.push('' + url + ''); + } + } + } + + + if (COMMENT_EMOTICONS) { + // insert emoticons, always stay at bottom + $.each(EMOTICONS, function (key, value) { + html = html.replaceAll(key, ``); + }); + } + + // restore html tags from list + for (var i = 0; i < tag_list.length; i++) { + html = html.replace(tag_holder, tag_list[i]); + } + + // restore media tags from list + for (var i = 0; i < media_list.length; i++) { + html = html.replace(media_holder, media_list[i]); + } + + return html; + } + + function show_blogger_comment() { + + // show comments + var comment_holder = $('.blogger-comments-holder'); + comment_holder.html('
    '); + var allowNewComments = ($('.noNewComments').length == 0); + + if (typeof (SNEEIT_LICENSE) == 'undefined') { + return false; + } + + // scan list + for (var i = 0; i < COMMENT_ITEMS.length; i++) { + var comment = COMMENT_ITEMS[i]; + // modify comment body + if (COMMENT_EMOTICONS || COMMENT_MEDIA_ATTACH) { + comment.body = modify_comment_body(comment.body); + } + + // count comment level + var level = 0; + if (!is_empty(comment.parentId)) { + if (comment_holder.find('li.comment-' + comment.parentId).length != 0) { + level = Number(comment_holder.find('li.comment-' + comment.parentId).attr('data-level')) + 1; + } + } + + // make content + var comment_content = '
  • '; + var temp = ''; + if (is_empty(comment.author.avatarUrl) || comment.author.avatarUrl.has('img1.blogblog.com/img/blank.gif')) { + comment.author.avatarUrl = DEFAULT_COMMENT_AVATAR; + } + comment.author.avatarUrl = b_resize_image(comment.author.avatarUrl, 48); + temp = ``; + if (is_empty(comment.author.profileUrl)) { + comment_content += '' + temp + ''; + } else { + comment_content += '' + temp + ''; + } + + comment_content += '
    ' + + '
    '; + temp = comment.author.name; + if (is_empty(comment.author.profileUrl)) { + comment_content += '' + temp + ''; + } else { + comment_content += '' + temp + ''; + } + comment_content += ' ' + comment.displayTime + '' + + '
    ' /*comment-header*/ + + '
    ' + comment.body + '
    ' + + ''/*comment-footer*/ + + '
    ' + + DIVCLEAR + + '
    ' + + '
  • ';/*end comment content and item*/ + + // adjust content + if (level) { + // create list to adjust to if has not exist + if (comment_holder.find('ul.sub-comments-of-' + comment.parentId).length == 0) { + if (comment_holder.find('li.comment-' + comment.parentId).length != 0) { + comment_holder.find('li.comment-' + comment.parentId).append('
      '); + } else { + comment_holder.find('ul.main-comments').append(comment_content); + } + } + // adjust + comment_holder.find('ul.sub-comments-of-' + comment.parentId).append(comment_content); + } else { + // if level 0 + comment_holder.find('ul.main-comments').append(comment_content); + } + } + + // reply comment effects + $(document).on('click', '.comment-reply-add', function () { + var parentid = $(this).attr('data-parentid'); + $('#comment-editor').attr('src', $('.comment-editor-src').attr('data-src') + '&parentID=' + parentid); + $('.comment-form-wrapper').appendTo($('.comment-form-holder-' + parentid)); + $(document).find('.comment-reply-cancel').each(function () { + $(this).addClass('comment-reply-add').removeClass('comment-reply-cancel').html('' + trans('Reply') + ' '); + }); + $(this).addClass('comment-reply-cancel').removeClass('comment-reply-add').html('' + trans('Cancel reply') + ' '); + }); + $(document).on('click', '.comment-reply-cancel', function () { + var comment_editor_src = + $('#comment-editor').attr('src', $('.comment-editor-src').attr('data-src')); + $('.comment-form-wrapper').appendTo($('.comment-form-add-new')); + $(this).addClass('comment-reply-add').removeClass('comment-reply-cancel').html('' + trans('Reply') + ' '); + }); + + // pretty comment date-time + comment_holder.find('.comment-date').each(function () { + $(this).html($.format.prettyDate(new Date(Number($(this).attr('data-timestamp'))))); + }); + if (tn_url.current.has('showComment=') && tn_url.current.has('#c')) { + setTimeout(function () { + scroll_to(tn_url.hash); + }, 1000); + } + // console.log(COMMENT_ITEMS); + + + } + + + var comment_feed_url = new Array(); + var comment_feed_url_id = 0; + function adjust_comment_item_list() { + _get(comment_feed_url[comment_feed_url_id], function (json) { + json = b_valid_json(json); + + if (typeof (json) == 'undefined' || typeof (SNEEIT_LICENSE) == 'undefined') { + return false; + } + + if (!json) { + show_blogger_comment(); + return; + } + json = new b_parse_json(json); + + if (json.entry.length == 0) { + show_blogger_comment(); + return; + } + + for (var i = json.entry.length - 1; i >= 0; i -= 1) { + var comment = new Object(); + e = json.entry[i]; + comment.id = e.id; + if (e.parentId) { + comment.parentId = e.parentId; + } + comment.body = e.content; + var d = new Date(e.published); + comment.timestamp = d.getTime().toString(); + comment.permalink = e.link; + comment.author = new Object(); + comment.author.name = e.author.name; + comment.author.avatarUrl = e.author.avatar; + comment.author.profileUrl = e.author.uri; + comment.displayTime = e.displayTime; + comment.deleteclass = 'item-control blog-admin ' + e.itemClass; + COMMENT_ITEMS.push(comment); + } + comment_feed_url_id++; + if (comment_feed_url_id >= comment_feed_url.length) { + show_blogger_comment(); + return; + } else { + adjust_comment_item_list(); + } + + }) + } + + // show comment count for primary comment system + $('.' + PRIMARY_COMMENT_SYSTEM + '-comment-counter').show(); + if (PRIMARY_COMMENT_SYSTEM == 'disqus') { + /* * * DON'T EDIT BELOW THIS LINE * * */ + var s = document.createElement('script'); + s.async = true; + s.type = 'text/javascript'; + s.src = 'https://' + disqus_shortname + '.disqus.com/count.js'; + (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); + } + var SHOWING_COMMENT_SYSTEM = PRIMARY_COMMENT_SYSTEM; + // show right tab to allow jump to comment by hash + if (tn_url.hash.has('#comment-')) { + SHOWING_COMMENT_SYSTEM = 'disqus'; + } else if (is_set(tn_query['fb_comment_id'])) { + SHOWING_COMMENT_SYSTEM = 'facebook'; + } + + // Apply comment layout + if ($('.blogger-comments-holder').length) { + if (!is_empty(COMMENT_ITEMS)) { + if (tn_blog.bloggerCommentNumber <= 200) { + // if single page, just show + show_blogger_comment(); + } else { + // more than 200, adjust comment item list then show + for (var i = 0; i < tn_blog.bloggerCommentNumber - 200; i += 200) { + var max_result = 200; + if (i + max_result > tn_blog.bloggerCommentNumber - 200) { + max_result = tn_blog.bloggerCommentNumber - i - 200; + } + comment_feed_url.push(tn_url.feed + '/' + tn_blog.postId + '/comments/default?alt=json-in-script&max-results=' + max_result + '&start-index=' + (i + 1)); + } + // console.log(comment_feed_url); + adjust_comment_item_list(); + } + } + + // incase Blogger not return COMMENT ITEMS, we just need to show + // their default comment systems + else { + // custom for hard code (official) thread comment here + // when Jso return null + $('.blogger-comments-holder .comments').show(); + + // mapping css class and id + $('.blogger-alt-comments .avatar-image-container img').each(function () { + $(this).addClass('shad cir'); + var src = $(this).attr('src'); + if (is_empty(src)) { + return; + } + if (src.has('blank.gif')) { + $(this).attr('src', DEFAULT_COMMENT_AVATAR); + } + }); + + // add comment reply button for child replies + $('.blogger-alt-comments .comment-reply').each(function () { + $(this).append(' '); + var child_comment_actions = $(this).parents('.comment').find('.comment .comment-actions'); + var parent_comment_reply = $(this); + if (child_comment_actions.length) { + child_comment_actions.each(function () { + // this already has comment reply + if ($(this).find('.comment-reply').length) { + return; + } + + // clone reply link of the parent + parent_comment_reply.clone().prependTo($(this)); + var id = $(this).parents('.comment'); + if (id.length) { + id = id.attr('id'); + id = id.replace('c', ''); + } + if (is_number(id)) { + $(this).find('.comment-reply').attr('data-comment-id', id); + } + }); + } + }); + + // move reply box to near the level 1 comment + $('.blogger-alt-comments ol#top-ra > li.comment').each(function () { + var reply_box = $(this).find('> .comment-replybox-single'); + var replies = $(this).find('> .comment-replies'); + reply_box.insertBefore(replies); + }); + + + // modify position of message + $('#comment-holder .comment-replybox-thread').each(function () { + $('.comment-form-message').prependTo($(this)); + }); + // replace bad avatar from Blogger + $('.avatar-image-container img').each(function () { + var src = $(this).attr('src'); + if (src.indexOf('zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ') != -1) { + $(this).attr('src', DEFAULT_COMMENT_AVATAR); + } + }); + + // add cancel reply + $('#top-continue > a') + .addClass('comment-cancel-link') + .html('' + trans('Cancel reply') + ' '); + + // - when click a REPLY link + $('.blogger-alt-comments .comment-actions .comment-reply').addClass('comment-reply-link').click(function () { + var cancel_link = $('#top-continue'); + if (!cancel_link.length) { + return; + } + $('.blogger-alt-comments .comment-reply-link').show(); + $(this).hide(); + cancel_link.prependTo($(this).parent()); + cancel_link.show(); + $('.comment-form-message').prependTo($(this).parents('.comment').first().find('> .comment-replybox-single')); + + + // check if can't show comment editor for child reply + var current_comment_reply = $(this); + setTimeout(function () { + var comment_editor = current_comment_reply.parents('.comment').find(' > .comment-replybox-single > iframe'); + if (comment_editor.length) { + return; + } + + comment_editor = $('#comment-editor'); + if (!comment_editor.length) { + location.reload(); + return; + } + + var comment_editor_src = comment_editor.attr('src'); + if (is_empty(comment_editor_src)) { + location.reload(); + return; + } + + var start_ = 'parentID='; + var end_ = '#'; + var current_comment_id = current_comment_reply.attr('data-comment-id'); + comment_editor_src_start = comment_editor_src.indexOf(start_); + comment_editor_src_end = comment_editor_src.indexOf(end_); + if (-1 == comment_editor_src_start) { + comment_editor_src_start = comment_editor_src.indexOf('?'); + if (-1 == comment_editor_src_start) { + location.reload(); + return; + } + comment_editor_src = + comment_editor_src.substring(0, comment_editor_src_start + 1) + + + 'parentID=' + current_comment_id + '&' + + comment_editor_src.substring(comment_editor_src_start + 1); + } else if (-1 != comment_editor_src_end) { + comment_editor_src = + comment_editor_src.substring(0, comment_editor_src_start + start_.length) + + current_comment_id + + comment_editor_src.substring(comment_editor_src_end); + } else { + location.reload(); + return; + } + + // append comment form to current reply box + comment_editor.attr('src', comment_editor_src); + comment_editor.appendTo($('#c' + current_comment_id).find('> .comment-replybox-single')); + }, 1000); + + + }); + // - when click a CANCEL link + $(document).find('.comment-cancel-link').click(function () { + $(document).find('#top-continue').hide(); + $('.blogger-alt-comments .comment-reply-link').show(); + $('.comment-form-message').prependTo($('.comment-replybox-thread')); + }); + + + + // add shortcode for comment content + $('.blogger-alt-comments .comment-content').each(function () { + var content = modify_comment_body($(this).html()); + $(this).html(content); + }); + + + + + } + } + + + $('#comments').each(function () { + if ($('.comments').length == 0) { + $(this).remove(); + return; + } + // show primary comment system, also allow switch tabs + if ($('.' + PRIMARY_COMMENT_SYSTEM + '-comments').length == 0) { + $('.comments').first().addClass('active'); + } else { + $('.' + PRIMARY_COMMENT_SYSTEM + '-comments').addClass('active'); + } + + // create comment tabs + $('.comments.active .comments-title').addClass('active').appendTo($('#comments-title-tabs')); + $('.comments .comments-title').appendTo($('#comments-title-tabs')); + $('#comments-title-tabs .comments-title').addClass('comments-title-tab'); + if (SHOWING_COMMENT_SYSTEM != PRIMARY_COMMENT_SYSTEM) { + $('#comments-title-tabs a.active').removeClass('active'); + $('.comments.active').removeClass('active'); + $('#comments-title-tabs a.' + SHOWING_COMMENT_SYSTEM + '-comments-title').addClass('active'); + $('.' + SHOWING_COMMENT_SYSTEM + '-comments').addClass('active'); + } + + // switch tabs + $('#comments-title-tabs a').click(function () { + if ($(this).is('.active')) { + return + } + $('#comments-title-tabs a.active, .comments.active').removeClass('active'); + $(this).addClass('active'); + $($(this).attr('data-target')).addClass('active'); + }); + }); + + /*POST CONTENT MASTER*/ + /* feature image master */ + if ($('.post-body-inner img').length) { + if (FEATURE_IMAGES == 'always-before' || + FEATURE_IMAGES == 'always-after' || + FEATURE_IMAGES == 'selected-before' || + FEATURE_IMAGES == 'selected-after') { + var first_img = null; + var selected_img = null; + var final_image = null; + // scan to find feature (selected) image + $('.post-body-inner img').each(function () { + if (first_img && selected_img) { + return; + } + var src = $(this).attr('src'); + var title = $(this).attr('title'); + if (is_empty(first_img) && !is_empty(src)) { + first_img = $(this); + } + if (is_empty(selected_img) && !is_empty(title) && title.toLowerCase().has('[feature]') && !is_empty(src)) { + selected_img = $(this); + } + }); + + // priority show selected image than first image + if (selected_img) { + first_img = selected_img; + } + + // then show the image (also relative parents) if found something + if (selected_img && (FEATURE_IMAGES == 'selected-before' || + FEATURE_IMAGES == 'selected-after')) { + final_image = selected_img; + + src = selected_img; + // remove useless wrapper and parrent + + } else if (first_img && (FEATURE_IMAGES == 'always-before' || + FEATURE_IMAGES == 'always-after')) { + final_image = first_img; + } + + // and showing the found image and its caption (if it has) + var html = ''; + if (final_image) { + final_image.each(function () { + if (html) { + return; + } + // collect data + var src = $(this).attr('src'); + if (FEATURE_IMAGES_RESIZE) { + src = b_resize_image(src, $('#content').width()); + } + var alt = $('h1.post-title').text(); + var html = ``; + + + $(this).parents('table.tr-caption-container').each(function () { + $(this).find('.tr-caption').each(function () { + html += '
      ' + $(this).html() + '
      '; + }); + }); + + html = '
      ' + html + '
      '; + + // remove useless wrapper and parrent + $(this).hide(); + $(this).parents('a').hide(); + $(this).parents('table.tr-caption-container').hide(); + $(this).parents('div.separator[style!=""]').hide(); + + // show feature image + if (FEATURE_IMAGES.indexOf('-before') != -1) { + $('.post .post-header').prepend(html); + } else { + $('.post .post-header').append(html); + } + $('.post-feature-image-wrapper img') + .attr('title', alt) + .attr('alt', alt) + .addClass('loading') + .on('load error', (function () { + $(this).removeClass('loading'); + })) + ; + }); + } + } + } + + + // remove margin from a tag wrapping on image + $('.post-body img').each(function () { + // remove margin + var image_parent = $(this).parent(); + if (image_parent.length) { + image_parent_style = image_parent.attr('style'); + if (image_parent_style && + image_parent.is('a') && + image_parent.attr('style').indexOf('margin-left') != -1 && + image_parent.attr('style').indexOf('margin-right') != -1 && + image_parent.css('margin-left') == image_parent.css('margin-right') && + image_parent.css('float') == 'none') { + image_parent.css('margin-left', '').css('margin-right', ''); + } + } + + }); + + + /*breadcrumb master*/ + $('.post-breadcrumb').html(function () { + var ret = ''; + var breadcrumb_depth = 0; + + for (var i = 0; i < tn_blog.label.length && breadcrumb_depth < MAX_BREADCRUMB_DEPTH; i++) { + if ($.inArray(tn_blog.label[i].url, tn_blog.postLabel) != -1) { + breadcrumb_depth++; + if (ret) { + ret += ''; + } + ret += '' + tn_blog.label[i].name + ''; + } + } + if (ret) { + ret = '' + trans('Home') + '' + ret; + } + return ret; + }); + + /*title and subtitle master*/ + $('.post-title').html(function () { + var ret = $(this).html(); + + $('.post-body h2').each(function () { + if ($(this).find('strike').length) { + ret = '' + $(this).html() + ''; + $(this).remove(); + return ret; + } + }); + + return ret; + }) + $('.post-sub-title-wrapper').html(function () { + var ret = ''; + + $('.post-body h3').each(function () { + if ($(this).find('strike').length) { + ret = '

      ' + $(this).html() + '

      '; + $(this).remove(); + return ret; + } + }); + + return ret; + }); + + /*break links*/ + // search label for list, the smallest label + if ($('.post-break-links').length) { + // we find the smallest label that has number of post larger or equal which what we need + for (var i = tn_blog.label.length - 1; i >= 0; i--) { + if ($.inArray(tn_blog.label[i].url, tn_blog.postLabel) != -1 && + tn_blog.label[i].count >= NUM_BREAK_LINKS) { + break; + } + } + + // not found? just select the smallest + if (i < 0) { + i = 0; + } + + // start index of blogger json always larger or equal 1. + // will will rand from 1 and to total with padding = number post we want + 1 + // why + 1? because may in the posts we got, they have current inside. + var total_post = tn_blog.label[i].count; + var start_index = randInt(1, total_post - NUM_BREAK_LINKS - 1); + + if (start_index < 1) { + start_index = 1; + } + + _get(tn_url.feed + '/posts/default/-/' + tn_blog.label[i].slug + '?max-results=' + (NUM_BREAK_LINKS + 1) + '&start-index=' + start_index + '&alt=json-in-script', function (json) { + + json = b_valid_json(json); + if (!json) { + return; + } + json = new b_parse_json(json); + + if (json.entry.length == 0) { + return; + } + + var start = -1; + if (json.entry.length <= NUM_BREAK_LINKS) { + start = 0; + } + for (var i = 0; i < json.entry.length; i++) { + if (json.entry[i].id == tn_blog.postId) { + start = 0; + break; + } + } + + if (start == -1) { + start = randInt(0, 1); + } + var ret = ''; + var counter = 0; + for (var i = start; i < json.entry.length && counter < NUM_BREAK_LINKS; i++) { + var e = json.entry[i]; + if (e.id == tn_blog.postId) { + continue; + } + ret += '
      ' + e.title + '
      ' + counter++; + } + + $('.post-break-links').html(ret); + }); + } + + /* table of content */ + var table_of_content_html = ''; + if (TABLE_OF_CONTENT && 'none' != TABLE_OF_CONTENT) { + // scan the top heading tag + var heading_tag_top = 2; + for (; heading_tag_top < 6 && $('.post-body-inner h' + heading_tag_top).length == 0; heading_tag_top++) { } + + if (heading_tag_top < 6) { + /* scan all headings and set IDs */ + var h_main_t = 'h' + heading_tag_top; + var h_sub_t = 'h' + (heading_tag_top + 1); + var h_subsub_t = 'h' + (heading_tag_top + 2); + var h_main = 0; + var h_sub = 0; + + $('.post-body-inner ' + h_main_t + + ', .post-body-inner ' + h_sub_t + + ', .post-body-inner ' + h_subsub_t).each(function () { + + var cur_id = $(this).attr('id'); + + // find current id + if (typeof (cur_id) == 'undefined' || !cur_id) { + cur_id = txt_2_slug($(this).text()); + if ($(this).is(h_sub_t)) { + cur_id = h_sub_t + '-' + cur_id; + } + if ($(this).is(h_subsub_t)) { + cur_id = h_subsub_t + '-' + cur_id; + } + + $(this).addClass('nake-id'); + } + $(this).attr('id', cur_id); + + // add data and class + if ($(this).is(h_main_t)) { + h_main++; + $(this).attr('data-' + h_main_t, h_main); + } else if ($(this).is(h_sub_t)) { + h_sub++; + $(this).attr('data-' + h_sub_t, h_sub); + $(this).addClass(h_sub_t + '-' + h_main); + } else { + $(this).addClass(h_subsub_t + '-' + h_sub); + } + }); + + + + /* create navigation HTML */ + + $('.post-body-inner ' + h_main_t).each(function () { + table_of_content_html += '
    • ' + $(this).text() + ''; + var h_main = $(this).attr('data-' + h_main_t); + if ($('.' + h_sub_t + '-' + h_main).length) { + table_of_content_html += '
        '; + $('.' + h_sub_t + '-' + h_main).each(function () { + table_of_content_html += '
      1. ' + $(this).text() + ''; + var h_sub = $(this).attr('data-' + h_sub_t); + if ($('.' + h_subsub_t + '-' + h_sub).length) { + table_of_content_html += '
          '; + $('.' + h_subsub_t + '-' + h_sub).each(function () { + table_of_content_html += '
        1. ' + $(this).text() + '
        2. '; + }); + table_of_content_html += '
        '; + } + table_of_content_html += '
      2. '; + }); + table_of_content_html += '
      '; + } + table_of_content_html += '
    • '; + }); + + if (table_of_content_html) { + // toggle button + table_of_content_html = '
        ' + table_of_content_html + '
      '; + table_of_content_html = '

      ' + trans('Table of Content') + '

      ' + table_of_content_html + '
      '; + + // $('.post-body-inner').prepend(table_of_content_html); + } + + // scroll to heading + $('#toc a').click(function () { + var id = $(this).attr('href'); + scroll_to($(id), 0); + }); + + // toc toggle + $(document).on('click', '.toc-toggle', function () { + if ($(this).is('.active')) { + $(this).removeClass('active'); + $(this).find('i.gi').removeClass('gi-angle-up').addClass('gi-angle-down'); + $('#toc ol').stop().slideUp(); + + } else { + $(this).addClass('active'); + $(this).find('i.gi').removeClass('gi-angle-down').addClass('gi-angle-up'); + $('#toc ol').stop().slideDown(); + } + }); + + // jump to toc + /* + var jump2toc_tag = ' '; + $(jump2toc_tag).appendTo($( '.post-body-inner '+h_main_t+'[data-'+h_main_t+'], .post-body-inner '+h_sub_t+'[data-'+h_sub_t+']')); + */ + } + } + + /*SHORTCODE MASTER*/ + /*contact and sidebar and post ads otpions shortcode*/ + + + + $('.post-body-inner').each(function () { + var html = $(this).html(); + + + var found_shortcode = false; + if (html.has('[contact]')) { + html = html.replace('[contact]', '
      '); + found_shortcode = true; + } + if (html.has('[full_width]')) { + html = html.replaceAll('[full_width]', ''); + found_shortcode = true; + } + if (html.has('[sidebar_left]')) { + html = html.replaceAll('[sidebar_left]', ''); + found_shortcode = true; + } + if (html.has('[sidebar_right]')) { + html = html.replaceAll('[sidebar_right]', ''); + found_shortcode = true; + } + if (html.has('[no_toc]')) { + html = html.replaceAll('[no_toc]', ''); + found_shortcode = true; + table_of_content_html = ''; + } + + if (is_item()) { + if (html.has(SHORTCODE_POSTADS)) { + if (SHOW_INNER_POST_ADS_AT == 'none') { + html = html.replaceAll(SHORTCODE_POSTADS, ''); + } else { + html = html.replaceAll(SHORTCODE_POSTADS, '
      '); + found_shortcode = true; + } + } + if (html.has(SHORTCODE_POSTADS_2)) { + if (SHOW_INNER_POST_ADS_AT == 'none') { + html = html.replaceAll(SHORTCODE_POSTADS_2, ''); + } else { + html = html.replaceAll(SHORTCODE_POSTADS_2, '
      '); + found_shortcode = true; + } + } + } + + if (found_shortcode) { + $(this).html(html); + $('#ContactForm1').appendTo($('.post-body-inner .blogger-contact-form')); + } + + if (!is_item()) { + Inner_Post_Ads.remove(); + Inner_Post_Ads_2.remove(); + } else { + // inner post ads auto position + if (SHOW_INNER_POST_ADS_AT == 'br_tag') { + var br_tag_counter = 0; + $('.post-body-inner br').each(function () { + br_tag_counter++; + if (br_tag_counter == 4 && $('.inner-post-ads').length == 0) { + $('
      ').insertAfter($(this)); + } + if (br_tag_counter == 8 && $('.inner-post-ads-2').length == 0) { + $('
      ').insertAfter($(this)); + } + }); + } + else if (SHOW_INNER_POST_ADS_AT == 'p_tag') { + var p_tag_counter = 0; + $('.post-body-inner p').each(function () { + p_tag_counter++; + if (p_tag_counter == 4 && $('.inner-post-ads').length == 0) { + $('
      ').insertAfter($(this)); + } + if (p_tag_counter == 8 && $('.inner-post-ads-2').length == 0) { + $('
      ').insertAfter($(this)); + } + }); + } + else if ('middle' == SHOW_INNER_POST_ADS_AT) { + var total_tag_counter = $('.post-body-inner br').length + $('.post-body-inner p').length; + var tag_counter = 0; + var inner_ads_counter = Inner_Post_Ads.length + Inner_Post_Ads_2.length; + if (inner_ads_counter) { + $('.post-body-inner br, .post-body-inner p').each(function () { + tag_counter++; + if (tag_counter == Math.floor(total_tag_counter / (inner_ads_counter + 1)) + && $('.inner-post-ads').length == 0 + ) { + $('
      ').insertAfter($(this)); + } + if (tag_counter == inner_ads_counter * Math.floor(total_tag_counter / (inner_ads_counter + 1)) + && $('.inner-post-ads-2').length == 0 + ) { + $('
      ').insertAfter($(this)); + } + }); + } + } + } + + /* INNER POST 1 */ + // if not enabled post ads + if ($('.inner-post-ads').length == 0 || Inner_Post_Ads.length == 0 || Inner_Post_Ads.is(':empty') || $.trim(Inner_Post_Ads.html()).length == 0) { + $('.inner-post-ads').remove(); + Inner_Post_Ads.remove(); + } else { + // monitor size of ads until stable ADS_CHECK_SIZE_TIME times + Inner_Post_Ads_Height = 0; + Inner_Post_Ads_Prev_Height = 0; + Inner_Post_Ads_Stable = 0; + Inner_Post_Ads.css('visibility', 'hidden'); + Inner_Post_Ads_Monitor = setInterval(function () { + Inner_Post_Ads_Height = Inner_Post_Ads.height(); + if (!Inner_Post_Ads_Height) { + return; + } + if (Inner_Post_Ads_Height != Inner_Post_Ads_Prev_Height) { + Inner_Post_Ads_Prev_Height = Inner_Post_Ads_Height; + Inner_Post_Ads_Stable = 0; + return; + } else { + Inner_Post_Ads_Stable++; + } + + if (Inner_Post_Ads_Stable >= ADS_CHECK_SIZE_TIME) { + clearInterval(Inner_Post_Ads_Monitor); + // stabled ads, now we move it to the ads spot + Inner_Post_Ads.appendTo($('.inner-post-ads')); + Inner_Post_Ads.css('visibility', 'visible'); + } + }, DELAY_AD_LOAD); + } + + + /* INNER POST 2 */ + // if not enabled post ads + if ($('.inner-post-ads-2').length == 0 || Inner_Post_Ads_2.length == 0 || Inner_Post_Ads_2.is(':empty') || $.trim(Inner_Post_Ads_2.html()).length == 0) { + $('.inner-post-ads-2').remove(); + Inner_Post_Ads_2.remove(); + } else { + // monitor size of ads until stable ADS_CHECK_SIZE_TIME times + Inner_Post_Ads_2_Height = 0; + Inner_Post_Ads_2_Prev_Height = 0; + Inner_Post_Ads_2_Stable = 0; + Inner_Post_Ads_2.css('visibility', 'hidden'); + Inner_Post_Ads_2_Monitor = setInterval(function () { + Inner_Post_Ads_2_Height = Inner_Post_Ads_2.height(); + if (!Inner_Post_Ads_2_Height) { + return; + } + if (Inner_Post_Ads_2_Height != Inner_Post_Ads_2_Prev_Height) { + Inner_Post_Ads_2_Prev_Height = Inner_Post_Ads_2_Height; + Inner_Post_Ads_2_Stable = 0; + return; + } else { + Inner_Post_Ads_2_Stable++; + } + + if (Inner_Post_Ads_2_Stable >= ADS_CHECK_SIZE_TIME) { + clearInterval(Inner_Post_Ads_2_Monitor); + + // stabled ads, now we move it to the ads spot + Inner_Post_Ads_2.appendTo($('.inner-post-ads-2')); + Inner_Post_Ads_2.css('visibility', 'visible'); + } + }, DELAY_AD_LOAD); + } // end of inner post ads 2 slot + }); + + /* + social lock content shortcode + */ + var share_url = get_canonicalUrl(tn_url.current) + '?id=' + tn_blog.postId; + var unlocked = false; + + if (get_option('unlocked-' + tn_blog.postId) != 'unlocked' && + !is_empty(tn_query['referrer']) && + !is_empty(tn_query['id']) && + tn_query['id'] == tn_blog.postId && + !is_empty(tn_url.referrer)) { + + if (tn_url.referrer.indexOf('facebook') != -1) { + unlocked = ( + tn_query['referrer'] == 'facebook-' + tn_query['id'] && + !is_empty(tn_query['fbclid']) + ); + } else if ( + tn_url.referrer.indexOf('twitter') != -1 || + tn_url.referrer.indexOf('t.co') != -1 + ) { + unlocked = ( + tn_query['referrer'] == 'twitter-' + tn_query['id'] + ); + } + } + + $('.post-body-inner').each(function () { + var html = $(this).html(); + var tag_selector_start = 'magone-lock-start'; + var tag_selector_end = 'magone-lock-end'; + var tag_html_start = ''; + var tag_html_end = ''; + var key_start = '[lock]'; + var key_end = '[/lock]'; + + + // this post has no locked content, just return + if (!html.has('[lock]') || !html.has('[/lock]')) { + // only take action with post have [lock] shortcodes + return; + } + + // this post was unlocked before, just leave it alone + if (get_option('unlocked-' + tn_blog.postId) == 'unlocked') { + html = html.replaceAll(key_start, '').replaceAll(key_end, ''); + $(this).html(html); + return; + } + + // else, create locker + $(this).html($(this).html().replaceAll(key_start, tag_html_start).replaceAll(key_end, tag_html_end)); + unwrap_tag('.post-body-inner .' + tag_selector_start, '.post-body-inner', tag_html_start); + unwrap_tag('.post-body-inner .' + tag_selector_end, '.post-body-inner', tag_html_end); + + // scan wrap content + html = $(this).html(); + var index = 0; + var start = 0; + var end = 0; + + for (var i = 0; i < 100; i++) { + start = html.indexOf(tag_html_start, index); + if (start == -1) { + break; + } + end = html.indexOf(tag_html_end, index); + if (end == -1) { + break; + } + + var before = html.substring(0, start); + var after = html.substring(end + tag_html_end.length); + var middle = html.substring(start + tag_html_start.length, end); + + if (!unlocked) { + middle = + ( + '
      ' + ) + } + + html = before + middle + after; + end = start + tag_html_start.length; + } + $(this).html(html); + + }); + if (unlocked) { + update_option('unlocked-' + tn_blog.postId, 'unlocked'); + } + + /*post pagination : page break*/ + function post_body_pagination_update(max, page_number) { + $('.post-page.active').removeClass('active'); + $('.post-page-button-number.active').removeClass('active'); + $('.post-page-button-' + page_number).addClass('active'); + $('.post-page-' + page_number).addClass('active'); + + if (page_number == max) { + $('.post-page-button-prev').removeClass('active').attr('href', '#post-page-number-' + page_number); + $('.post-page-button-next').addClass('active').attr('href', '#post-page-number-' + (page_number + 1)); + } else if (page_number == 0) { + $('.post-page-button-prev').addClass('active').attr('href', '#post-page-number-1'); + $('.post-page-button-next').removeClass('active').attr('href', '#post-page-number-2');; + } else { + $('.post-page-button-prev').removeClass('active').attr('href', '#post-page-number-' + page_number); + $('.post-page-button-next').removeClass('active').attr('href', '#post-page-number-' + (page_number + 1)); + } + } + $('.post-body-inner').each(function () { + // replace pagination shortcodes to dom elements + var html = $(this).html(); + var key = ''; + + if (html.indexOf('[next]') == -1) { + // only take action with post have [next] shortcodes + return; + } + + // replace all shortcodes with a searchable elements + $(this).html($(this).html().replaceAll('[next]', key)); + if ($('.post-pagination').length) { + unwrap_tag('.post-body-inner .magone-next-page', '.post-body-inner', key); + + + // create pagination html + pages = $(this).html().split(key); + + html = ''; + nav_html = ''; + for (var i = 0; i < pages.length; i++) { + var page_class = 'post-page post-page-' + i; + var nav_class = 'post-page-button post-page-button-number post-page-button-' + i; + if (i == 0) { + page_class += ' active'; + nav_class += ' active'; + } + html += '
      ' + pages[i] + '
      '; + nav_html += '' + (i + 1) + ''; + } + + nav_html = DIVCLEAR + + '
      ' + + '

      ' + + trans('PAGES') + + '

      ' + + '' + + nav_html + + '' + + '' + trans('View All') + '' + + DIVCLEAR + + '
      ' + + DIVCLEAR; + + $(this).html(html); + + // get current url has full page hash, just show all and return + if (tn_url.hash == '#post-page-full') { + $('.post-page').addClass('active'); + return; + } + + // else, show pagination buttons + $('.post-pagination').html(nav_html); + + // if current url has page number in hash, show current number and modify page number for next / prev + if (tn_url.hash.has('#post-page-number-')) { + var current_page_number_in_url = tn_url.hash.replace('#post-page-number-', ''); + if (is_number(current_page_number_in_url)) { + current_page_number_in_url = Number(current_page_number_in_url) - 1; + if (current_page_number_in_url >= 0) { + post_body_pagination_update(pages.length - 1, current_page_number_in_url); + } + } + } + + + // post pagination effect + $('.post-page-button').click(function () { + if ($(this).is('.active')) { + return; + } + if (RELOAD_POST_PAGINATION) { + + var href = $(this).attr('href'); + var loc = tn_url.current.split('#'); + window.location.href = loc[0] + href; + location.reload(); + return true; + } + var max = Number($('.post-page-button-next').attr('data-max')); + var id = Number($('.post-page-button-number.active').attr('data-id')); + + // get the id + if ($(this).is('.post-page-button-number')) { + id = Number($(this).attr('data-id')); + } else if ($(this).is('.post-page-button-view-all')) { + $('.post-page').addClass('active'); + $('.post-page-buttons').remove(); + scroll_to('.post-body', 300); + return; + } else if ($(this).is('.post-page-button-next')) { + id++; + + if (id > max) { + id = max; + } + } else if ($(this).is('.post-page-button-prev')) { + id--; + if (id < 0) { + id = 0; + } + } + + // change next / prev, number button and page status + post_body_pagination_update(max, id); + scroll_to('.post-body', 300); + }); + } // end if post-pagination length + }); + + /*stuff shortcodes*/ + // button shortcode + $('.post-body-inner a').each(function () { + var button_text = $.trim($(this).text()); + var button_html = $(this).html(); + + if (button_text.indexOf('[') != 0 || button_text.lastIndexOf(']') != button_text.length - 1) { + return; + } + button_html = button_html.replace('[', ''); + var end_square_bracket = button_html.lastIndexOf(']'); + button_html = button_html.substring(0, end_square_bracket) + button_html.substring(end_square_bracket + 1); + + // replace icon in button text + $(this).html(replace_icon_marker(button_html)).addClass('button'); + }); + + $('.post-body-inner .button').each(function () { + // clone background + var background_child = $(this).find('[style*="background-color"]'); + if (background_child.length) { + $(this).css('background-color', $(background_child[0]).css('background-color')); + } + + // override with background from wrapped parrent + var background_parent = $(this).parent('[style*="background-color"]'); + if (background_parent.length) { + for (var i = 0; i < background_parent.length; i++) { + if ($.trim($(background_parent[i]).text()) == $.trim($(this).text())) { + $(this).css('background-color', $(background_parent[0]).css('background-color')); + $(background_parent[i]).css('background-color', ''); + break; + } + } + } + + // clone font-size + var font_size_child = $(this).find('[style*="font-size"]'); + if (font_size_child.length) { + $(this).css('font-size', $(font_size_child[0]).css('font-size')); + } + + // clone color + // override with background from wrapped parrent + var color_parent = $(this).parent('[style*="color:"]'); + if (color_parent.length) { + for (var i = 0; i < color_parent.length; i++) { + if ($.trim($(color_parent[i]).text()) == $.trim($(this).text())) { + $(this).css('color', $(color_parent[0]).css('color')); + break; + } + } + } + + + $(this).append(''); + }); + $('.post-body-inner .button').append(''); + + // drop cap shortcode + // case 1: span strike + $('.post-body-inner span, .post-body-inner font').each(function () { + var dc_style = $(this).attr('style'); + var dc_font = $(this).attr('size'); + + if ($(this).is('span') && + ( + typeof (dc_style) == 'undefined' || + !dc_style || + dc_style.indexOf('font-size') == -1 || + dc_style.indexOf('x-large') == -1 + ) + ) { + return; + } + if ($(this).is('font') && + ( + typeof (dc_font) == 'undefined' || + dc_font != '6' + ) + ) { + return; + } + + if ($(this).find('strike').length == 0 && + !$(this).parent().is('strike') + ) { + return; + } + + var dc_text = $(this).text(); + if (dc_text.length > 3) { + return; + } + $(this).addClass('dropcap color firstcharacter').css('font-size', '').html(dc_text); + }); + // case 2: strike span + $('.post-body-inner strike').each(function () { + if ($(this).find('span').length == 0) { + return; + } + var dc_span = $(this).find('span'); + var dc_style = dc_span.attr('style'); + if (typeof (dc_style) == 'undefined' || !dc_style || dc_style.indexOf('font-size') == -1 || dc_style.indexOf('x-large') == -1) { + return; + } + var dc_text = dc_span.text(); + if (dc_text.length > 3) { + return; + } + dc_span.addClass('dropcap color firstcharacter').css('font-size', '').html(dc_text); + $(this).addClass('dropcap-wrapper'); + }); + + /*code box*/ + $('.post-body-inner blockquote').each(function () { + var box_html = $(this).html(); + var box_text = $.trim($(this).text()); + if (box_text.indexOf('[') != 0 || box_text.lastIndexOf(']') != box_text.length - 1) { + return; + } + + // remove square bracket out of message HTML + box_html = box_html.replace('[', ''); + var end_square_bracket = box_html.lastIndexOf(']'); + box_html = box_html.substring(0, end_square_bracket) + box_html.substring(end_square_bracket + 1); + $(this).replaceWith('
      ' + box_html + '
      '); + }); + + + function selectText(element) { + var doc = document; + var text = doc.getElementById(element); + var range; + var selection; + + if (doc.body.createTextRange) { //ms + range = doc.body.createTextRange(); + range.moveToElementText(text); + range.select(); + } else if (window.getSelection) { //all others + selection = window.getSelection(); + range = doc.createRange(); + range.selectNodeContents(text); + selection.removeAllRanges(); + selection.addRange(range); + } + } + + + var pre_index = 0; + $('.post-body-inner .code-box').each(function () { + $(this).attr('id', 'pre-' + pre_index); + var pre_header_html = '
      '; + + if ('execCommand' in document) { + pre_header_html += '' + trans('Copy All Code') + ' '; + } else if ('getSelection' in window || 'createTextRange' in document.body) { + pre_header_html += '' + trans('Select All Code') + ' '; + } + pre_header_html += '
      '; + $(pre_header_html).insertBefore($('#pre-' + pre_index)); + pre_index++; + }); + + $('.pre-header .select-all').click(function () { + var data_id = $(this).attr('data-id'); + selectText('pre-' + data_id); + }); + $('.pre-header .copy-all').click(function () { + $(this).parent().find('.copy-all-message').stop().remove(); + var data_id = $(this).attr('data-id'); + selectText('pre-' + data_id); + var msg_html = ''; + var msg_class = ''; + if (document.execCommand("Copy")) { + msg_html += trans('All codes were copied to your clipboard'); + msg_class = 'success'; + } else { + msg_html += trans('Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy'); + msg_class = 'error'; + } + msg_html = '
      ' + msg_html + '
      '; + $(msg_html).insertAfter($(this)); + var control = $($(this).parent().find('.copy-all-message')); + setTimeout(function () { + if (control.is('.success')) { + control.fadeOut(2000); + } + }, 1000); + }); + + + + /*blockquote*/ + $('.post-body-inner blockquote').each(function () { + $(this).html('
      ' + $(this).html() + '
      '); + }); + + + /*tab:toggle:vtab:col*/ + var Shortcode_Listing_Id = 0; + + + + function shortcode_listing_content(shortcode, holder) { + + var content_html = ''; + var content = new Object(); + content.main = new Array(); + content.sub = new Array(); + var shortcode_id = shortcode + '-' + Shortcode_Listing_Id; + + // the structure + /* +
        +
      • [cols]
      • +
          +
        • Pros
        • +
            +
          • Excellent Overall Performance
          • +
          • Large, Stunning OLED Display
          • +
          • Refreshing and Simplified Design
          • +
          • Premium Build and Construction
          • +
          • Clean, feature-packed software
          • +
          • Solid Battery Life
          • +
          +
        • Cons
        • +
            +
          • Charging could be faster for its price
          • +
          • System eats a big chunk of storage
          • +
          • It could have included 1080MP sensor like Ultra model
          • +
          +
        +
      + */ + + // get header + $(holder).find('>ul>li').each(function () { + content.main.push($(this).html()); + }) + // get content + $(holder).find('>ul>ul').each(function () { + const li = $(this).find('>li'); + if (li.length > 1) { + content.sub.push('
        ' + $(this).html() + '
      '); + } else if (li.length == 1) { + content.sub.push(li.html()); + } else { + content.sub.push(''); + } + }) + + // replace icon marker + + for (var i = 0; i < content.main.length; i++) { + content.main[i] = replace_icon_marker(content.main[i]); + if (typeof (content.sub[i]) === 'undefined') { + content.sub[i] = ''; + } + else { + content.sub[i] = replace_icon_marker(content.sub[i]); + } + } + + + + // re map shortcode alias + switch (shortcode) { + case 'tabs': + shortcode = 'tab'; + break; + + case 'vtabs': + shortcode = 'vtab'; + break; + + case 'toggle': + case 'toggles': + shortcode = 'accordion'; + break; + + case 'cols': + case 'column': + case 'columns': + shortcode = 'col'; + + break; + + case 'msg': + shortcode = 'message'; + break; + } + + // replace content + switch (shortcode) { + case 'tab': + case 'vtab': + for (var i = 0; i < content.main.length; i++) { + content_html += '
    • ' + content.main[i] + '
    • '; + } + content_html = '
        ' + content_html + '
      '; + for (var i = 0; i < content.main.length; i++) { + content_html += '
      ' + content.sub[i] + '
      '; + } + break; + case 'accordion': + for (var i = 0; i < content.main.length; i++) { + content_html += '

      ' + + '' + content.main[i] + '' + + '

      ' + + '
      ' + + content.sub[i] + '
      '; + } + break; + case 'col': + for (var i = 0; i < content.main.length; i++) { + content_html += ('
      ' + content.main[i] + content.sub[i] + '
      '); + } + break; + case 'message': + for (var i = 0; i < content.main.length; i++) { + content_html += '
      ' + content.main[i] + '
      ' + content.sub[i] + '
      '; + } + break; + } + + content_html = DIVCLEAR + '
      ' + content_html + DIVCLEAR + '
      ' + DIVCLEAR; + + $(holder).replaceWith(content_html); + Shortcode_Listing_Id++; + } + + + + //////////////////////////////////////////////////////////////// + // parse shortcode + //////////////////////////////////////////////////////////////// + $('.post-body-inner ul').each(function () { + var nested_child = $(this).children('li'); + + if (nested_child.length != 1) { + return; + } + var shortcode = nested_child.text(); + if (shortcode.indexOf('[') != 0 || shortcode.lastIndexOf(']') != shortcode.length - 1) { + return; + } + shortcode = shortcode.replace('[', '').replace(']', ''); + shortcode = shortcode.toLowerCase(); + + + switch (shortcode) { + case 'tab': + case 'tabs': + case 'vtab': + case 'vtabs': + case 'accordion': + case 'toggle': + case 'toggles': + case 'col': + case 'cols': + case 'column': + case 'columns': + case 'message': + case 'msg': + break; + default: + return; + } + + + shortcode_listing_content(shortcode, this); + }); + + + // apply jquery ui for shortcode html, also modify column ui + + if ($('.shortcode-tab').length || + $('.shortcode-vtab').length || + $('.shortcode-accordion').length + ) { + $('head').append('