哼,今日份的三款技术干货,才不是偷偷为你准备的呢~(¬‿¬)
周日晚上了,提前准备下周的学习资源吧~
今日资源推荐
-
pathwaycom/pathway ⭐62,720
-
angular/angular ⭐96,000
-
scikit-learn/scikit-learn ⭐60,000
更多实用资源,敬请关注!
Trigger: 自动构建
(function(){const bgImages=['https://source.unsplash.com/1920x1080/?nature,landscape','https://source.unsplash.com/1920x1080/?abstract,minimal','https://source.unsplash.com/1920x1080/?art,creative','https://source.unsplash.com/1920x1080/?sky,cloud','https://source.unsplash.com/1920x1080/?ocean,beach'];let currentIndex=0,bgLayers=[];function init(){const container=document.createElement('div');container.className='gmeek-bg-container';for(let i=0;i<2;i++){const layer=document.createElement('div');layer.className='gmeek-random-bg';container.appendChild(layer);bgLayers.push(layer)}document.body.insertBefore(container,document.body.firstChild);setTimeout(()=>switchBackground(),500);setInterval(switchBackground,15000)}function switchBackground(){const current=bgLayers[currentIndex%2],next=bgLayers[(currentIndex+1)%2],randomBg=bgImages[Math.floor(Math.random()*bgImages.length)]+'?t='+Date.now();const img=new Image;img.onload=function(){next.style.backgroundImage=`url('${randomBg}')`;setTimeout(()=>{next.classList.add('active');current.classList.remove('active')},100)};img.src=randomBg;currentIndex++}document.readyState==='loading'?document.addEventListener('DOMContentLoaded',init):init()})();