Initial commit: 12个专业个人简历作品集项目
This commit is contained in:
1
个人简历_机械智能制造/reference/JS/aos.js
Normal file
1
个人简历_机械智能制造/reference/JS/aos.js
Normal file
File diff suppressed because one or more lines are too long
133
个人简历_机械智能制造/reference/JS/app.js
Normal file
133
个人简历_机械智能制造/reference/JS/app.js
Normal file
@@ -0,0 +1,133 @@
|
||||
/* -----------------------------------------------
|
||||
/* How to use? : Check the GitHub README
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
/* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */
|
||||
/*
|
||||
particlesJS.load('particles-js', 'particles.json', function() {
|
||||
console.log('particles.js loaded - callback');
|
||||
});
|
||||
*/
|
||||
|
||||
/* Otherwise just put the config content (json): */
|
||||
|
||||
particlesJS('particles-js',
|
||||
|
||||
{
|
||||
"particles": {
|
||||
"number": {
|
||||
"value": 80,
|
||||
"density": {
|
||||
"enable": true,
|
||||
"value_area": 800
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"value": "#ddd"
|
||||
},
|
||||
"shape": {
|
||||
"type": "circle",
|
||||
"stroke": {
|
||||
"width": 0,
|
||||
"color": "#888888"
|
||||
},
|
||||
"polygon": {
|
||||
"nb_sides": 5
|
||||
},
|
||||
"image": {
|
||||
"src": "img/github.svg",
|
||||
"width": 100,
|
||||
"height": 100
|
||||
}
|
||||
},
|
||||
"opacity": {
|
||||
"value": 0.5,
|
||||
"random": false,
|
||||
"anim": {
|
||||
"enable": false,
|
||||
"speed": 1,
|
||||
"opacity_min": 0.1,
|
||||
"sync": false
|
||||
}
|
||||
},
|
||||
"size": {
|
||||
"value": 5,
|
||||
"random": true,
|
||||
"anim": {
|
||||
"enable": false,
|
||||
"speed": 40,
|
||||
"size_min": 0.1,
|
||||
"sync": false
|
||||
}
|
||||
},
|
||||
"line_linked": {
|
||||
"enable": true,
|
||||
"distance": 150,
|
||||
"color": "#777",
|
||||
"opacity": 0.4,
|
||||
"width": 1
|
||||
},
|
||||
"move": {
|
||||
"enable": true,
|
||||
"speed": 6,
|
||||
"direction": "none",
|
||||
"random": false,
|
||||
"straight": false,
|
||||
"out_mode": "out",
|
||||
"attract": {
|
||||
"enable": false,
|
||||
"rotateX": 600,
|
||||
"rotateY": 1200
|
||||
}
|
||||
}
|
||||
},
|
||||
"interactivity": {
|
||||
"detect_on": "canvas",
|
||||
"events": {
|
||||
"onhover": {
|
||||
"enable": true,
|
||||
"mode": "repulse"
|
||||
},
|
||||
"onclick": {
|
||||
"enable": true,
|
||||
"mode": "push"
|
||||
},
|
||||
"resize": true
|
||||
},
|
||||
"modes": {
|
||||
"grab": {
|
||||
"distance": 400,
|
||||
"line_linked": {
|
||||
"opacity": 1
|
||||
}
|
||||
},
|
||||
"bubble": {
|
||||
"distance": 400,
|
||||
"size": 40,
|
||||
"duration": 2,
|
||||
"opacity": 8,
|
||||
"speed": 3
|
||||
},
|
||||
"repulse": {
|
||||
"distance": 200
|
||||
},
|
||||
"push": {
|
||||
"particles_nb": 4
|
||||
},
|
||||
"remove": {
|
||||
"particles_nb": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
"retina_detect": true,
|
||||
"config_demo": {
|
||||
"hide_card": false,
|
||||
"background_color": "#b61924",
|
||||
"background_image": "",
|
||||
"background_position": "50% 50%",
|
||||
"background_repeat": "no-repeat",
|
||||
"background_size": "cover"
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
2377
个人简历_机械智能制造/reference/JS/bootstrap.js
vendored
Normal file
2377
个人简历_机械智能制造/reference/JS/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
个人简历_机械智能制造/reference/JS/bootstrap.min.js
vendored
Normal file
7
个人简历_机械智能制造/reference/JS/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10972
个人简历_机械智能制造/reference/JS/jquery-3.6.0.js
vendored
Normal file
10972
个人简历_机械智能制造/reference/JS/jquery-3.6.0.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9
个人简历_机械智能制造/reference/JS/particles.min.js
vendored
Normal file
9
个人简历_机械智能制造/reference/JS/particles.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
271
个人简历_机械智能制造/reference/JS/personal-info-main.js
Normal file
271
个人简历_机械智能制造/reference/JS/personal-info-main.js
Normal file
@@ -0,0 +1,271 @@
|
||||
function addScript(url) {
|
||||
document.write("<script language=javascript src=./config/config.js></script>");
|
||||
}
|
||||
addScript();
|
||||
//不使用配置文件请注释点上面代码
|
||||
|
||||
//星光依旧灿烂,激情仍然燃烧。因为有梦想,所以我存在。你在你的领域里不惜青春,我在我的道路上不知疲倦。
|
||||
$(function () {
|
||||
if (config) {
|
||||
$(".name").html(config.name);
|
||||
$(".sex").html(config.sex);
|
||||
$(".age").html(config.age);
|
||||
$(".phone").html(config.phone);
|
||||
$(".email").html(config.email);
|
||||
$(".address").html(config.address);
|
||||
$(".qq").html(config.qq);
|
||||
$(".log").html(config.log);
|
||||
$(".self-intro").html(config.welcome);
|
||||
$(".me").html(config.about);
|
||||
$(".for-work").html(config.excpect_work);
|
||||
$(".profile-page .page-header").css("background-image", "url(" + config.url[0] + ")");
|
||||
$(".myphoto").attr("src", config.url[1]);
|
||||
$(".portfolio-section").css({
|
||||
"background": "url(" + config.url[2] + ") no-repeat center top",
|
||||
"margin-top": "30px",
|
||||
"padding-top": "50px",
|
||||
"text-align": "center !important",
|
||||
"background-attachment": "relative !important",
|
||||
"background-position": "center center !important",
|
||||
"min-height": "800px",
|
||||
"width": "100%",
|
||||
"background-size": "100%",
|
||||
"background-size": "cover",
|
||||
"position": "relative !important"
|
||||
});
|
||||
$(".others-section").css("background", "url(" + config.url[3] + ")");
|
||||
$(".desc").html(config.skills_description);
|
||||
//------E-------
|
||||
|
||||
|
||||
if (config.skills) {
|
||||
for (let i = 0; i < config.skills.length; i++) {
|
||||
let skill_name = config.skills[i][0];
|
||||
let num = config.skills[i][1];
|
||||
let color = config.skills[i][2];
|
||||
let s = "<div class=\"progress_bar\">\n" +
|
||||
" <div class=\"pro-bar\">\n" +
|
||||
" <small class=\"progress_bar_title\">\n" +
|
||||
skill_name +
|
||||
" <span class=\"progress_number\">%</span>\n" +
|
||||
" </small>\n" +
|
||||
" <span class=\"progress-bar-inner p-a\"\n" +
|
||||
" style=\"background-color:" + color + "; width:" + num + "%;\" data-value=\"" + num + "\"\n" +
|
||||
" data-percentage-value=\"" + num + "\"></span>\n" +
|
||||
" </div>\n" +
|
||||
"</div>";
|
||||
$(".skill-body").append(s)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let row_i = 0;
|
||||
if (config.portfolio) {
|
||||
for (let i = 0; i < config.portfolio.length; i++) {
|
||||
if (i % 3 == 0) {
|
||||
$(".portfolio-section-main-container").append("<div class=\"row\"></div>");
|
||||
row_i++;
|
||||
}
|
||||
let e = $(".portfolio-section-main-container .row").eq(row_i - 1);
|
||||
let img = config.portfolio[i][0];
|
||||
let url = config.portfolio[i][1];
|
||||
let projectName = config.portfolio[i][2];
|
||||
let brief = config.portfolio[i][3];
|
||||
e.append("<div class=\"col-md-4\">\n" +
|
||||
" <div class=\"porfolio-image img-raised\" data-aos=\"fade-up\"\n" +
|
||||
" data-aos-anchor-placement=\"top-bottom\">\n" +
|
||||
" <a href=\"" + url + "\" title=\"点击查看详细信息\">\n" +
|
||||
" <figure class=\"portfolio-section-main\">\n" +
|
||||
" <img src=\"" + img + "\" alt=\"Image\" />\n" +
|
||||
" <figcaption>\n" +
|
||||
" <div class=\"h4\">" + projectName + "</div>\n" +
|
||||
" <p>" + brief + "</p>\n" +
|
||||
" </figcaption>\n" +
|
||||
" </figure>\n" +
|
||||
" </a>\n" +
|
||||
" </div>\n" +
|
||||
"</div>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (config.work) {
|
||||
for (let i = 0; i < config.work.length; i++) {
|
||||
|
||||
let time = config.work[i][0];
|
||||
let what = config.work[i][1];
|
||||
let desc = config.work[i][2];
|
||||
|
||||
|
||||
$(".experience-section .container").append(
|
||||
"<div class=\"card\">\n" +
|
||||
" <div class=\"row\">\n" +
|
||||
" <div class=\"col-md-3 bg-primary\" data-aos=\"fade-right\" data-aos-offset=\"50\"\n" +
|
||||
" data-aos-duration=\"500\">\n" +
|
||||
" <div class=\"card-body\">\n" +
|
||||
" <p class=\"time\">\n" +
|
||||
" " + time + "\n" +
|
||||
" </p>\n" +
|
||||
" <strong class=\"work\">" + what + "</strong>\n" +
|
||||
" </div>\n" +
|
||||
" </div>\n" +
|
||||
" <div class=\"col-md-9\" data-aos=\"fade-left\" data-aos-offset=\"50\" data-aos-duration=\"500\">\n" +
|
||||
" <div class=\"card-body\">\n" +
|
||||
desc +
|
||||
" </div>\n" +
|
||||
" </div>\n" +
|
||||
" </div>\n" +
|
||||
"</div>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (config.others) {
|
||||
for (let i = 0; i < config.others.length; i++) {
|
||||
var e;
|
||||
if (i % 2 == 0) {
|
||||
e = $(".timeline-left .timeul");
|
||||
} else {
|
||||
e = $(".timeline-right .timeul");
|
||||
}
|
||||
let time = config.others[i][0];
|
||||
let what = config.others[i][1];
|
||||
let desc = config.others[i][2];
|
||||
e.append(
|
||||
"<li>\n" +
|
||||
" <div class=\"time-title\">" + time + "</div>\n" +
|
||||
" <span></span>\n" +
|
||||
" <div class=\"time-content\">\n" +
|
||||
" <h5>" + what + "</h5>\n" +
|
||||
" <p>" + desc + "</p>\n" +
|
||||
" </div>\n" +
|
||||
"\n" +
|
||||
"</li>"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (config.icon) {
|
||||
for (let i = 0; i < config.icon.length; i++) {
|
||||
let img = config.icon[i][0];
|
||||
let url = config.icon[i][1];
|
||||
let desc = config.icon[i][2];
|
||||
$(".icon-insert").append(
|
||||
"<a class=\"my-tooltip\" href=\"" + url + "\" title=\"访问我的社交平台\">\n" +
|
||||
" <img src=\"" + img + "\" alt=\"\">\n" +
|
||||
" <span class=\"my-tooltiptext\">" + desc + "</span>\n" +
|
||||
"</a>"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
var h;
|
||||
|
||||
$(window).resize(function () {
|
||||
h = $(".page-header").height() - $(".page-header .bg-primary").height();
|
||||
})
|
||||
|
||||
progress();
|
||||
if ($(window).scrollTop() >= $(".page-header").height() - $(".page-header .bg-primary").height()) {
|
||||
$(".page-header .bg-primary").css("cssText", "background-color:rgb(55 65 178)!important");
|
||||
}
|
||||
$(window).scroll(function () {
|
||||
h = $(".page-header").height() - $(".page-header .bg-primary").height();
|
||||
if ($(window).scrollTop() >= h) {
|
||||
$(".page-header .bg-primary").css("cssText", "background-color:rgb(55 65 178)!important");
|
||||
} else {
|
||||
$(".page-header .bg-primary").css("cssText", "background-color:rgba(0,0,0,0.20)!important");
|
||||
}
|
||||
|
||||
|
||||
if ($(".skill-section .card").hasClass("aos-animate")) {
|
||||
$(".progress-bar-inner").addClass("p-a");
|
||||
progress();
|
||||
} else {
|
||||
$(".progress-bar-inner").removeClass("p-a");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function progress() {
|
||||
var progress = $(".progress-bar-inner");
|
||||
progress.each(function (i) {
|
||||
var data = $(this).attr('data-value');
|
||||
$(this).prev().find("span").html(data + "%");
|
||||
});
|
||||
}
|
||||
|
||||
$(".send-btn").on("click", mailsend);
|
||||
|
||||
function mailsend() {
|
||||
var subject = $(".subject").val();
|
||||
var content = $(".message").val();
|
||||
content = content.replace(new RegExp(' ', 'g'), '%20');
|
||||
|
||||
content = content.replace(new RegExp('\n', 'g'), '%0d%0a');
|
||||
|
||||
// if (confirm("你确定要向" + who + "放送邮件吗?") == true) {
|
||||
// location="mailto:sample@fly63.com?subject=test&cc=sample@hotmail.com&subject=主题&body=内容";
|
||||
// }
|
||||
location = "mailto:" + config.email + "?subject=" + subject + "&body=" + content;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ---- 座右铭字缓出效果 -----
|
||||
var text = "衣带渐宽终不悔,为伊消得人憔悴";
|
||||
var length = text.length;
|
||||
let index = 0;
|
||||
var mottoArrs = config.motto;
|
||||
// $.ajaxSettings.async = false;
|
||||
// $.getJSON("./motto.json", function (data) {
|
||||
// mottoArrs = data;
|
||||
// })
|
||||
var e1 = setInterval(insWords, 150);
|
||||
var e2 = 0;
|
||||
|
||||
function insWords() {
|
||||
if (index <= length + 1 && index >= 0) {
|
||||
$(".page-header .motto").append(text[index]);
|
||||
}
|
||||
index++;
|
||||
if (index > length) {
|
||||
index += 50;
|
||||
e2 = setInterval(delWords, 50);
|
||||
clearInterval(e1);
|
||||
}
|
||||
}
|
||||
|
||||
function delWords() {
|
||||
if (index <= length && index >= 0) {
|
||||
let shower = text.substr(0, index);
|
||||
$(".page-header .motto").html(shower);
|
||||
}
|
||||
index--;
|
||||
if (index < 0) {
|
||||
index = -5;
|
||||
let i = Math.floor(mottoArrs.length * Math.random());
|
||||
text = mottoArrs[i];
|
||||
length = text.length;
|
||||
e1 = setInterval(insWords, 150);
|
||||
clearInterval(e2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ----- END ------
|
||||
|
||||
|
||||
|
||||
//--- 绑定按钮特效和文字淡入淡出 ---
|
||||
$(".self-intro").fadeIn(3000);
|
||||
$(".hvr-bounce-to-right").fadeIn(3000);
|
||||
|
||||
//----END---
|
||||
|
||||
|
||||
});
|
||||
5
个人简历_机械智能制造/reference/JS/popper.min.js
vendored
Normal file
5
个人简历_机械智能制造/reference/JS/popper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user