mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
breaking changes: CDN 配置了 version 為 true, 本地鏈接也會加上版本號 closed #1218
breaking changes: CDN option 部分參數名字修改 feat: 升級 fancybox 到 v5 feat: 更新 facebook js 版本 feat: 移除 gitter 聊天插件 closed #1212 improvement: 社交圖標 hover 旋轉180度 closed #1195 improvement: 代碼優化 fix: 開啟 archor 後, pace.js 會隨着 archor 添加而觸發的問題 fix: 修復設置圖片時,圖片後綴大寫而導致識別錯誤的 bug closed #1205
This commit is contained in:
@@ -81,7 +81,7 @@ npm i hexo-theme-butterfly
|
|||||||
- [x] Share (AddThis/Sharejs/Addtoany)
|
- [x] Share (AddThis/Sharejs/Addtoany)
|
||||||
- [X] Comment (Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
|
- [X] Comment (Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
|
||||||
- [x] Multiple Comment System Support
|
- [x] Multiple Comment System Support
|
||||||
- [x] Online Chats (Chatra/Tidio/Daovoice/Gitter/Crisp/messenger)
|
- [x] Online Chats (Chatra/Tidio/Daovoice/Crisp/messenger)
|
||||||
- [x] Web analytics
|
- [x] Web analytics
|
||||||
- [x] Google AdSense
|
- [x] Google AdSense
|
||||||
- [x] Webmaster Verification
|
- [x] Webmaster Verification
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ theme: butterfly
|
|||||||
- [x] 多種分享系統(AddThis/Sharejs/Addtoany)
|
- [x] 多種分享系統(AddThis/Sharejs/Addtoany)
|
||||||
- [X] 多種評論系統(Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
|
- [X] 多種評論系統(Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/artalk)
|
||||||
- [x] 支持雙評論部署
|
- [x] 支持雙評論部署
|
||||||
- [x] 多種在線聊天(Chatra/Tidio/Daovoice/Gitter/Crisp/messenger)
|
- [x] 多種在線聊天(Chatra/Tidio/Daovoice/Crisp/messenger)
|
||||||
- [x] 多種分析系統
|
- [x] 多種分析系統
|
||||||
- [x] 谷歌廣告/手動廣告位置
|
- [x] 谷歌廣告/手動廣告位置
|
||||||
- [x] 各種站長驗證(Google/Bing/Baidu/360/Yandex)
|
- [x] 各種站長驗證(Google/Bing/Baidu/360/Yandex)
|
||||||
|
|||||||
18
_config.yml
18
_config.yml
@@ -416,12 +416,6 @@ daovoice:
|
|||||||
enable: false
|
enable: false
|
||||||
app_id:
|
app_id:
|
||||||
|
|
||||||
# gitter
|
|
||||||
# https://gitter.im/
|
|
||||||
gitter:
|
|
||||||
enable: false
|
|
||||||
room:
|
|
||||||
|
|
||||||
# crisp
|
# crisp
|
||||||
# https://crisp.chat/en/
|
# https://crisp.chat/en/
|
||||||
crisp:
|
crisp:
|
||||||
@@ -907,7 +901,7 @@ CDN:
|
|||||||
# when set it to local, you need to install hexo-butterfly-extjs
|
# when set it to local, you need to install hexo-butterfly-extjs
|
||||||
third_party_provider: jsdelivr
|
third_party_provider: jsdelivr
|
||||||
|
|
||||||
# Add version number to CDN, true or false
|
# Add version number to url, true or false
|
||||||
version: false
|
version: false
|
||||||
|
|
||||||
# Custom format
|
# Custom format
|
||||||
@@ -921,8 +915,8 @@ CDN:
|
|||||||
# translate:
|
# translate:
|
||||||
# local_search:
|
# local_search:
|
||||||
# algolia_js:
|
# algolia_js:
|
||||||
# algolia_search_v4:
|
# algolia_search:
|
||||||
# instantsearch_v4:
|
# instantsearch:
|
||||||
# docsearch_js:
|
# docsearch_js:
|
||||||
# docsearch_css:
|
# docsearch_css:
|
||||||
# pjax:
|
# pjax:
|
||||||
@@ -948,8 +942,8 @@ CDN:
|
|||||||
# instantpage:
|
# instantpage:
|
||||||
# typed:
|
# typed:
|
||||||
# pangu:
|
# pangu:
|
||||||
# fancybox_css_v4:
|
# fancybox_css:
|
||||||
# fancybox_v4:
|
# fancybox:
|
||||||
# medium_zoom:
|
# medium_zoom:
|
||||||
# snackbar_css:
|
# snackbar_css:
|
||||||
# snackbar:
|
# snackbar:
|
||||||
@@ -957,7 +951,7 @@ CDN:
|
|||||||
# fireworks:
|
# fireworks:
|
||||||
# click_heart:
|
# click_heart:
|
||||||
# ClickShowText:
|
# ClickShowText:
|
||||||
# fontawesomeV6:
|
# fontawesome:
|
||||||
# flickr_justified_gallery_js:
|
# flickr_justified_gallery_js:
|
||||||
# flickr_justified_gallery_css:
|
# flickr_justified_gallery_css:
|
||||||
# aplayer_css:
|
# aplayer_css:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ div
|
|||||||
if theme.medium_zoom
|
if theme.medium_zoom
|
||||||
script(src=url_for(theme.asset.medium_zoom))
|
script(src=url_for(theme.asset.medium_zoom))
|
||||||
else if theme.fancybox
|
else if theme.fancybox
|
||||||
script(src=url_for(theme.asset.fancybox_v4))
|
script(src=url_for(theme.asset.fancybox))
|
||||||
|
|
||||||
if theme.instantpage
|
if theme.instantpage
|
||||||
script(src=url_for(theme.asset.instantpage), type='module')
|
script(src=url_for(theme.asset.instantpage), type='module')
|
||||||
|
|||||||
@@ -40,13 +40,13 @@ if (theme.pwa && theme.pwa.enable)
|
|||||||
|
|
||||||
//- main css
|
//- main css
|
||||||
link(rel='stylesheet', href=url_for(theme.asset.main_css))
|
link(rel='stylesheet', href=url_for(theme.asset.main_css))
|
||||||
link(rel='stylesheet', href=url_for(theme.asset.fontawesomeV6) media="print" onload="this.media='all'")
|
link(rel='stylesheet', href=url_for(theme.asset.fontawesome) media="print" onload="this.media='all'")
|
||||||
|
|
||||||
if (theme.snackbar && theme.snackbar.enable)
|
if (theme.snackbar && theme.snackbar.enable)
|
||||||
link(rel='stylesheet', href=url_for(theme.asset.snackbar_css) media="print" onload="this.media='all'")
|
link(rel='stylesheet', href=url_for(theme.asset.snackbar_css) media="print" onload="this.media='all'")
|
||||||
|
|
||||||
if theme.fancybox
|
if theme.fancybox
|
||||||
link(rel='stylesheet' href=url_for(theme.asset.fancybox_css_v4) media="print" onload="this.media='all'")
|
link(rel='stylesheet' href=url_for(theme.asset.fancybox_css) media="print" onload="this.media='all'")
|
||||||
|
|
||||||
//- google_adsense
|
//- google_adsense
|
||||||
!=partial('includes/head/google_adsense', {}, {cache: true})
|
!=partial('includes/head/google_adsense', {}, {cache: true})
|
||||||
|
|||||||
@@ -1,2 +1,11 @@
|
|||||||
|
script.
|
||||||
|
window.paceOptions = {
|
||||||
|
restartOnPushState: false
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('pjax:send', () => {
|
||||||
|
Pace.restart()
|
||||||
|
})
|
||||||
|
|
||||||
link(rel="stylesheet", href=url_for(theme.preloader.pace_css_url || theme.asset.pace_default_css))
|
link(rel="stylesheet", href=url_for(theme.preloader.pace_css_url || theme.asset.pace_default_css))
|
||||||
script(src=url_for(theme.asset.pace_js))
|
script(src=url_for(theme.asset.pace_js))
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
- const fbSDKVer = 'v15.0'
|
- const fbSDKVer = 'v16.0'
|
||||||
- const fbSDK = theme.messenger.enable ? `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk/xfbml.customerchat.js#xfbml=1&version=${fbSDKVer}` : `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk.js#xfbml=1&version=${fbSDKVer}`
|
- const fbSDK = theme.messenger.enable ? `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk/xfbml.customerchat.js#xfbml=1&version=${fbSDKVer}` : `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk.js#xfbml=1&version=${fbSDKVer}`
|
||||||
|
|
||||||
script.
|
script.
|
||||||
|
|||||||
43
layout/includes/third-party/chat/gitter.pug
vendored
43
layout/includes/third-party/chat/gitter.pug
vendored
@@ -1,43 +0,0 @@
|
|||||||
if theme.chat_btn
|
|
||||||
script.
|
|
||||||
((window.gitter = {}).chat = {}).options = {
|
|
||||||
disableDefaultChat: true,
|
|
||||||
};
|
|
||||||
document.addEventListener('gitter-sidecar-ready', (e) => {
|
|
||||||
const GitterChat = e.detail.Chat
|
|
||||||
let chat
|
|
||||||
|
|
||||||
function initGitter () {
|
|
||||||
chat = new GitterChat({
|
|
||||||
room: '#{theme.gitter.room}',
|
|
||||||
activationElement: '#chat_btn'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
initGitter()
|
|
||||||
|
|
||||||
if (!{theme.pjax.enable}) {
|
|
||||||
document.addEventListener('pjax:complete', () => {
|
|
||||||
chat.destroy()
|
|
||||||
initGitter()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
else
|
|
||||||
script.
|
|
||||||
((window.gitter = {}).chat = {}).options = {
|
|
||||||
room: '#{theme.gitter.room}',
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!{theme.chat_hide_show}) {
|
|
||||||
function chatBtnHide () {
|
|
||||||
document.getElementsByClassName('gitter-open-chat-button')[0].style.display= 'none'
|
|
||||||
}
|
|
||||||
|
|
||||||
function chatBtnShow () {
|
|
||||||
document.getElementsByClassName('gitter-open-chat-button')[0].style.display= 'block'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
script(src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer)
|
|
||||||
2
layout/includes/third-party/chat/index.pug
vendored
2
layout/includes/third-party/chat/index.pug
vendored
@@ -4,8 +4,6 @@ else if theme.tidio && theme.tidio.enable
|
|||||||
include ./tidio.pug
|
include ./tidio.pug
|
||||||
else if theme.daovoice && theme.daovoice.enable
|
else if theme.daovoice && theme.daovoice.enable
|
||||||
include ./daovoice.pug
|
include ./daovoice.pug
|
||||||
else if theme.gitter && theme.gitter.enable
|
|
||||||
include ./gitter.pug
|
|
||||||
else if theme.crisp && theme.crisp.enable
|
else if theme.crisp && theme.crisp.enable
|
||||||
include ./crisp.pug
|
include ./crisp.pug
|
||||||
else if theme.messenger && theme.messenger.enable
|
else if theme.messenger && theme.messenger.enable
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ script.
|
|||||||
window.fbAsyncInit = function() {
|
window.fbAsyncInit = function() {
|
||||||
FB.init({
|
FB.init({
|
||||||
xfbml: true,
|
xfbml: true,
|
||||||
version: 'v15.0'
|
version: 'v16.0'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- const fbSDKVer = 'v15.0'
|
- const fbSDKVer = 'v16.0'
|
||||||
- const fbSDK = theme.messenger.enable ? `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk/xfbml.customerchat.js#xfbml=1&version=${fbSDKVer}` : `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk.js#xfbml=1&version=${fbSDKVer}`
|
- const fbSDK = theme.messenger.enable ? `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk/xfbml.customerchat.js#xfbml=1&version=${fbSDKVer}` : `https://connect.facebook.net/${theme.facebook_comments.lang}/sdk.js#xfbml=1&version=${fbSDKVer}`
|
||||||
|
|
||||||
script.
|
script.
|
||||||
|
|||||||
@@ -17,6 +17,6 @@
|
|||||||
|
|
||||||
#search-mask
|
#search-mask
|
||||||
|
|
||||||
script(src=url_for(theme.asset.algolia_search_v4))
|
script(src=url_for(theme.asset.algolia_search))
|
||||||
script(src=url_for(theme.asset.instantsearch_v4))
|
script(src=url_for(theme.asset.instantsearch))
|
||||||
script(src=url_for(theme.asset.algolia_js))
|
script(src=url_for(theme.asset.algolia_js))
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "4.7.0",
|
"version": "4.8.0-b1",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
20
plugins.yml
20
plugins.yml
@@ -1,11 +1,11 @@
|
|||||||
algolia_search_v4:
|
algolia_search:
|
||||||
name: algoliasearch
|
name: algoliasearch
|
||||||
file: dist/algoliasearch-lite.umd.js
|
file: dist/algoliasearch-lite.umd.js
|
||||||
version: 4.14.3
|
version: 4.14.3
|
||||||
instantsearch_v4:
|
instantsearch:
|
||||||
name: instantsearch.js
|
name: instantsearch.js
|
||||||
file: dist/instantsearch.production.min.js
|
file: dist/instantsearch.production.min.js
|
||||||
version: 4.51.0
|
version: 4.51.1
|
||||||
pjax:
|
pjax:
|
||||||
name: pjax
|
name: pjax
|
||||||
file: pjax.min.js
|
file: pjax.min.js
|
||||||
@@ -118,15 +118,15 @@ pangu:
|
|||||||
name: pangu
|
name: pangu
|
||||||
file: dist/browser/pangu.min.js
|
file: dist/browser/pangu.min.js
|
||||||
version: 4.0.7
|
version: 4.0.7
|
||||||
fancybox_css_v4:
|
fancybox_css:
|
||||||
name: '@fancyapps/ui'
|
name: '@fancyapps/ui'
|
||||||
file: dist/fancybox.css
|
file: dist/fancybox/fancybox.css
|
||||||
version: 4.0.31
|
version: 5.0.3
|
||||||
other_name: fancyapps-ui
|
other_name: fancyapps-ui
|
||||||
fancybox_v4:
|
fancybox:
|
||||||
name: '@fancyapps/ui'
|
name: '@fancyapps/ui'
|
||||||
file: dist/fancybox.umd.js
|
file: dist/fancybox/fancybox.umd.js
|
||||||
version: 4.0.31
|
version: 5.0.3
|
||||||
other_name: fancyapps-ui
|
other_name: fancyapps-ui
|
||||||
medium_zoom:
|
medium_zoom:
|
||||||
name: medium-zoom
|
name: medium-zoom
|
||||||
@@ -140,7 +140,7 @@ snackbar:
|
|||||||
name: node-snackbar
|
name: node-snackbar
|
||||||
file: dist/snackbar.min.js
|
file: dist/snackbar.min.js
|
||||||
version: 0.1.16
|
version: 0.1.16
|
||||||
fontawesomeV6:
|
fontawesome:
|
||||||
name: '@fortawesome/fontawesome-free'
|
name: '@fortawesome/fontawesome-free'
|
||||||
file: css/all.min.css
|
file: css/all.min.css
|
||||||
other_name: font-awesome
|
other_name: font-awesome
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const minFile = (file) => {
|
const minFile = file => {
|
||||||
return file.replace(/(?<!\.min)\.(js|css)$/g, ext => '.min' + ext)
|
return file.replace(/(?<!\.min)\.(js|css)$/g, ext => '.min' + ext)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
const cdnjs_file = file.replace(/^[lib|dist]*\/|browser\//g, '')
|
const cdnjs_file = file.replace(/^[lib|dist]*\/|browser\//g, '')
|
||||||
const min_cdnjs_file = minFile(cdnjs_file)
|
const min_cdnjs_file = minFile(cdnjs_file)
|
||||||
if (cond === 'internal') file = `source/${file}`
|
if (cond === 'internal') file = `source/${file}`
|
||||||
const verType = CDN.version ? `@${version}` : ''
|
const verType = CDN.version ? (type === 'local' ? `?v=${version}` : `@${version}`) : ''
|
||||||
|
|
||||||
const value = {
|
const value = {
|
||||||
version,
|
version,
|
||||||
@@ -67,7 +67,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cdnSource = {
|
const cdnSource = {
|
||||||
local: cond === 'internal' ? cdnjs_file : `/pluginsSrc/${name}/${file}`,
|
local: cond === 'internal' ? `${cdnjs_file + verType}` : `/pluginsSrc/${name}/${file + verType}`,
|
||||||
jsdelivr: `https://cdn.jsdelivr.net/npm/${name}${verType}/${min_file}`,
|
jsdelivr: `https://cdn.jsdelivr.net/npm/${name}${verType}/${min_file}`,
|
||||||
unpkg: `https://unpkg.com/${name}${verType}/${file}`,
|
unpkg: `https://unpkg.com/${name}${verType}/${file}`,
|
||||||
cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
|
cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
|
||||||
@@ -77,7 +77,7 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
data[key] = cdnSource[type]
|
data[key] = cdnSource[type]
|
||||||
})
|
})
|
||||||
|
|
||||||
if (cond === 'internal') data.main_css = 'css/index.css'
|
if (cond === 'internal') data.main_css = 'css/index.css' + (CDN.version ? `?v=${version}` : '')
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,6 +90,9 @@ hexo.extend.filter.register('before_generate', () => {
|
|||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
||||||
themeConfig.asset = Object.assign(createCDNLink(internalSrc, CDN.internal_provider, 'internal'),
|
themeConfig.asset = Object.assign(
|
||||||
createCDNLink(thirdPartySrc, CDN.third_party_provider), deleteNullValue(CDN.option))
|
createCDNLink(internalSrc, CDN.internal_provider, 'internal'),
|
||||||
|
createCDNLink(thirdPartySrc, CDN.third_party_provider),
|
||||||
|
deleteNullValue(CDN.option)
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
hexo.extend.filter.register('before_post_render', function (data) {
|
hexo.extend.filter.register('before_post_render', function (data) {
|
||||||
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/
|
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
|
||||||
let randomCover
|
let randomCover
|
||||||
let coverVal = data.cover
|
let coverVal = data.cover
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ hexo.extend.helper.register('findArchivesTitle', function (page, menu, date) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
hexo.extend.helper.register('isImgOrUrl', function (path) {
|
hexo.extend.helper.register('isImgOrUrl', function (path) {
|
||||||
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/
|
const imgTestReg = /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i
|
||||||
if (path.indexOf('//') !== -1 || imgTestReg.test(path)) {
|
if (path.indexOf('//') !== -1 || imgTestReg.test(path)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,18 +15,10 @@ function gallery (args, content) {
|
|||||||
args = args.join(' ').split(',')
|
args = args.join(' ').split(',')
|
||||||
let rowHeight, limit, lazyload, type, dataStr
|
let rowHeight, limit, lazyload, type, dataStr
|
||||||
|
|
||||||
// url,[link],[lazyload],[rowHeight],[limit]
|
|
||||||
if (args[0] === 'url') {
|
if (args[0] === 'url') {
|
||||||
dataStr = args[1]
|
[type, dataStr, lazyload, rowHeight = 220, limit = 10] = args // url,[link],[lazyload],[rowHeight],[limit]
|
||||||
lazyload = args[2] === 'true'
|
|
||||||
rowHeight = args[3] || 220
|
|
||||||
limit = args[4] || 10
|
|
||||||
type = ' url'
|
|
||||||
} else {
|
} else {
|
||||||
rowHeight = args[1] || 220
|
[lazyload, rowHeight = 220, limit = 10] = args // [lazyload],[rowHeight],[limit]
|
||||||
limit = args[2] || 10
|
|
||||||
lazyload = args[0] === 'true'
|
|
||||||
type = ' data'
|
|
||||||
const regex = /!\[(.*?)\]\(([^\s]*)\s*(?:["'](.*?)["']?)?\s*\)/g
|
const regex = /!\[(.*?)\]\(([^\s]*)\s*(?:["'](.*?)["']?)?\s*\)/g
|
||||||
let m
|
let m
|
||||||
const arr = []
|
const arr = []
|
||||||
@@ -44,7 +36,8 @@ function gallery (args, content) {
|
|||||||
dataStr = JSON.stringify(arr)
|
dataStr = JSON.stringify(arr)
|
||||||
}
|
}
|
||||||
|
|
||||||
const lazyloadClass = lazyload ? 'lazyload' : ''
|
type = type ? ' url' : ' data'
|
||||||
|
const lazyloadClass = lazyload === 'true' ? 'lazyload' : ''
|
||||||
|
|
||||||
return `<div class="gallery">
|
return `<div class="gallery">
|
||||||
<div class="fj-gallery ${lazyloadClass + type}" data-rowHeight="${rowHeight}" data-limit="${limit}">
|
<div class="fj-gallery ${lazyloadClass + type}" data-rowHeight="${rowHeight}" data-limit="${limit}">
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
transition: all .3s
|
transition: all .3s
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
transform: rotate(540deg)
|
transform: rotate(360deg)
|
||||||
|
|
||||||
#card-info-btn
|
#card-info-btn
|
||||||
display: block
|
display: block
|
||||||
|
|||||||
@@ -243,7 +243,30 @@ const btf = {
|
|||||||
Fancybox.bind('[data-fancybox]', {
|
Fancybox.bind('[data-fancybox]', {
|
||||||
Hash: false,
|
Hash: false,
|
||||||
Thumbs: {
|
Thumbs: {
|
||||||
autoStart: false
|
showOnStart: false
|
||||||
|
},
|
||||||
|
Images: {
|
||||||
|
Panzoom: {
|
||||||
|
maxScale: 4
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Carousel: {
|
||||||
|
transition: 'slide'
|
||||||
|
},
|
||||||
|
Toolbar: {
|
||||||
|
display: {
|
||||||
|
left: ['infobar'],
|
||||||
|
middle: [
|
||||||
|
'zoomIn',
|
||||||
|
'zoomOut',
|
||||||
|
'toggle1to1',
|
||||||
|
'rotateCCW',
|
||||||
|
'rotateCW',
|
||||||
|
'flipX',
|
||||||
|
'flipY'
|
||||||
|
],
|
||||||
|
right: ['slideshow', 'thumbs', 'close']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.fancyboxRun = true
|
window.fancyboxRun = true
|
||||||
|
|||||||
Reference in New Issue
Block a user