由 蘋果仁 · 已發表 十月 15, 2017 · 已更新 十月 12, 2017
Pixabay是一個免費提供各種圖片的圖庫平台,許多預算有限的小公司或是學校作業,都可以在上面取得可合法使用的圖片;本篇文章由友站轉載,分享投稿至Pixabay的心得與原因。
本篇原文刊登於 Medium,INSIDE 經授權轉載,作者陳映竹(YingChu Chen),參與過 Open Data 倡議社群。從開放(政府)資料、智慧城市、物聯網應用相關議題的收集,最近沉迷在網路治理與區塊鏈議題上。偶爾將整理的資訊放在 部落格 ,草稿放在 Medium。 有些朋友知道我這幾天都在上傳以前拍的照片到 Pixaba…
', enableHover: false, enableTracking: true, buttons: { twitter: {via: ''}}, click: function(api, options){ api.simulateClick(); api.openPopup('twitter'); } }); $('#facebook').sharrre({ share: { facebook: true }, template: '
{total}', enableHover: false, enableTracking: true, buttons:{layout: 'box_count'}, click: function(api, options){ api.simulateClick(); api.openPopup('facebook'); } }); $('#googleplus').sharrre({ share: { googlePlus: true }, template: '
{total}', enableHover: false, enableTracking: true, buttons:{size: 'tall'}, urlCurl: 'http://ift.tt/2fYUMTU', click: function(api, options){ api.simulateClick(); api.openPopup('googlePlus'); } }); // Scrollable sharrre bar, contributed by Erik Frye. Awesome! var $_shareContainer = $(".sharrre-container"), $_header = $('#header'), $_postEntry = $('.entry'), $window = $(window), startSharePosition = $_shareContainer.offset(),//object contentBottom = $_postEntry.offset().top + $_postEntry.outerHeight(), topOfTemplate = $_header.offset().top, topSpacing = _setTopSpacing(); //triggered on scroll shareScroll = function(){ var scrollTop = $window.scrollTop() + topOfTemplate, stopLocation = contentBottom - ($_shareContainer.outerHeight() + topSpacing); $_shareContainer.css({position : 'fixed'}); if( scrollTop > stopLocation ){ $_shareContainer.css( { position:'relative' } ); $_shareContainer.offset( { top: contentBottom - $_shareContainer.outerHeight(), left: startSharePosition.left, } ); } else if (scrollTop >= $_postEntry.offset().top - topSpacing){ $_shareContainer.css( { position:'fixed',top: '100px' } ); $_shareContainer.offset( { //top: scrollTop + topSpacing, left: startSharePosition.left, } ); } else if (scrollTop 1024 ) { topSpacing = distanceFromTop + $('.nav-wrap').outerHeight(); } else { topSpacing = distanceFromTop; } return topSpacing; } //setup event listeners $window.scroll( _.throttle( function() { if ( $window.width() > 719 ) { shareScroll(); } else { $_shareContainer.css({ top:'', left:'', position:'' }) } }, 50 ) ); $window.resize( _.debounce( function() { if ( $window.width() > 719 ) { shareMove(); } else { $_shareContainer.css({ top:'', left:'', position:'' }) } }, 50 ) ); });
from 蘋果仁 – 你的科技媒體 http://ift.tt/2znW6rJ
沒有留言:
張貼留言