https://github.com/ddssingsong/resume
模版
https://github.com/ddssingsong/resume
Last synced: 3 months ago
JSON representation
模版
- Host: GitHub
- URL: https://github.com/ddssingsong/resume
- Owner: ddssingsong
- Created: 2019-10-27T08:22:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T08:32:18.000Z (over 5 years ago)
- Last Synced: 2025-01-17T15:22:07.975Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.html
Awesome Lists containing this project
README
简历标题Vue.config.productionTip=!1,window.PAGE_TYPE="resume"
本站总访问量为 次
document.addEventListener("DOMContentLoaded",function(){FastClick.attach(document.body)},!1)let LAZY_LOAD_IMAGE = "[object Object]";
$("body").find("fancybox").find("img").each(function () {
var element = document.createElement("a");
$(element).attr("data-fancybox", "gallery");
$(element).attr("href", $(this).attr("src"));
/* 图片采用懒加载处理时,
* 一般图片标签内会有个属性名来存放图片的真实地址,比如 data-original,
* 那么此处将原本的属性名src替换为对应属性名data-original,
* 修改如下
*/
if (LAZY_LOAD_IMAGE) {
$(element).attr("href", $(this).attr("data-original"));
}
$(this).wrap(element);
});!function(e){var r=Array.prototype.slice.call(document.querySelectorAll("img[data-original]"));function t(){for(var c=0;c<r.length;c++)t=r[c],void 0,0<=(n=t.getBoundingClientRect()).top&&0<=n.left&&n.top<=(e.innerHeight||document.documentElement.clientHeight)&&function(){var t,n,e,i,o=r[c];t=o,n=function(){r=r.filter(function(t){return o!==t})},e=new Image,i=t.getAttribute("data-original"),e.onload=function(){t.src=i,n&&n()},e.src=i}();var t,n}t(),e.addEventListener("scroll",function(){!function(t,n){clearTimeout(t.tId),t.tId=setTimeout(function(){t.call(n)},500)}(t,e)})}(this);