迁移为next项目

This commit is contained in:
砂糖
2026-04-07 15:21:54 +08:00
parent 2cf1b252e3
commit 7e76c62521
400 changed files with 4061 additions and 0 deletions

7
old/assets/js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
old/assets/js/contact.js Normal file
View File

@@ -0,0 +1 @@
function validateForm(){var c=document.forms.contactform["name"].value;var b=document.forms.contactform["email"].value;var d=document.forms.contactform["phone"].value;var a=document.forms.contactform["website"].value;var a=document.forms.contactform["message"].value;document.getElementById("error-msg").style.opacity=0;document.getElementById("error-msg").innerHTML="";if(c==""||c==null){document.getElementById("error-msg").innerHTML="<div class='alert alert-warning error_message'>*Please enter a Name*</div>";fadeIn();return false}if(b==""||b==null){document.getElementById("error-msg").innerHTML="<div class='alert alert-warning error_message'>*Please enter a Email*</div>";fadeIn();return false}if(phone==""||phone==null){document.getElementById("error-msg").innerHTML="<div class='alert alert-warning error_message'>*Please enter a Phone Number*</div>";fadeIn();return false}if(website==""||website==null){document.getElementById("error-msg").innerHTML="<div class='alert alert-warning error_message'>*Please enter a Website*</div>";fadeIn();return false}if(message==""||message==null){document.getElementById("error-msg").innerHTML="<div class='alert alert-warning error_message'>*Please enter a Message*</div>";fadeIn();return false}var e=new XMLHttpRequest();e.onreadystatechange=function(){if(this.readyState==4&&this.status==200){document.getElementById("simple-msg").innerHTML=this.responseText;document.forms.contactform["name"].value="";document.forms.contactform["email"].value="";document.forms.contactform["phone"].value="";document.forms.contactform["website"].value="";document.forms.contactform["message"].value=""}};e.open("POST","php/contact.php",true);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.send("name="+c+"&email="+b+"&phone="+phone+"&website="+website+"&message="+message);return false};

2
old/assets/js/jquery-3.5.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

8
old/assets/js/jquery.counterup.min.js vendored Normal file
View File

@@ -0,0 +1,8 @@
/*!
* jquery.counterup.js 1.0
*
* Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
* Released under the GPL v2 License
*
* Date: Nov 26, 2013
*/(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery);

7
old/assets/js/jquery.waypoints.min.js vendored Normal file

File diff suppressed because one or more lines are too long

43
old/assets/js/js.html Normal file
View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>
Google
</title>
<style>
html { background: #fff; margin: 0 1em; }
body { font: .8125em/1.5 arial, sans-serif; text-align: center; }
h1, #term { font-weight: normal; }
h1 { font-size: 1.5em; margin: 1em 0 0; }
p#footer { color: #767676; font-size: .77em; }
p#footer a { background: url(//www.google.cn/intl/zh-CN_cn/images/cn_icp.gif) top right no-repeat; padding: 5px 20px 5px 0; }
ul { margin: 2em; padding: 0; }
li { display: inline; padding: 0 2em; }
div { -moz-border-radius: 20px; -webkit-border-radius: 20px; border: 1px solid #ccc; border-radius: 20px; margin: 2em auto 1em; max-width: 650px; min-width: 544px; }
div#alt { height: 230px; padding: 70px 0 0; }
div:hover, div:hover * { cursor: pointer; }
div:hover { border-color: #999; }
div p { margin: .5em 0 1.5em; }
img { border: 0; }
#term { color: #900; }
</style>
</head>
<body>
<div id="main">
<a href="https://www.google.com.hk/maps?hl=zh-CN&amp;sourceid=cnhp">
<img src="assets/image/google-search.png" alt="Google" width="586" height="257">
</a>
<h1>
<a href="https://www.google.com.hk/maps?hl=zh-CN&amp;sourceid=cnhp"><strong id=
"target">www.google.com.hk/maps</strong></a>
</h1>
<p>
请收藏我们的网址
</p>
</div>
<p id="footer">
<span>ICP证合字B2-20070004号</span>
</p>
</body>
</html>

30
old/assets/js/main.js Normal file
View File

@@ -0,0 +1,30 @@
// 初始化公司照片轮播图
$('.company-slider').slick({
dots: true,
infinite: true,
speed: 500,
slidesToShow: 3,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 5000,
arrows: true,
prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-chevron-left"></i></button>',
nextArrow: '<button type="button" class="slick-next"><i class="fas fa-chevron-right"></i></button>',
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
arrows: false
}
}
]
});

1
old/assets/js/map.js Normal file
View File

@@ -0,0 +1 @@
function initMap(){var a=new google.maps.Map(document.getElementById("map"),{center:{lat:40.674,lng:-73.94499999999999},zoom:12,styles:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]})};

File diff suppressed because one or more lines are too long

5
old/assets/js/popper.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
old/assets/js/scripts.js Normal file
View File

@@ -0,0 +1 @@
(function(a){a(".navbar-collapse ul li a").on("click",function(){a(".navbar-toggle:visible").click()});a(window).on("load",function(){setTimeout(function(){a("#loading").fadeOut(500)},1000);setTimeout(function(){a("#loading").remove()},2000)});if(a(".wow").length){var e=new WOW({boxClass:"wow",offset:20,mobile:false,live:true,scrollContainer:null,resetAnimation:true,});e.init()}a(window).on("scroll",function(f){var g=a(window).scrollTop();if(g<60){a(".site-navigation").removeClass("menu-sticky")}else{a(".site-navigation").addClass("menu-sticky")}});a(window).on("scroll",function(){var f=a(window).scrollTop()+1;if(f>50){a(".fixed-btm-top").addClass("reveal ")}else{a(".fixed-btm-top").removeClass("reveal")}});a("a.smoth-scroll").on("click",function(g){var f=a(this);a("html, body").stop().animate({scrollTop:a(f.attr("href")).offset().top-0},2000);g.preventDefault()});a(".venobox").venobox();a(".client-testimonials").slick({dots:true,infinite:true,speed:300,slidesToShow:1,arrows:false,autoplay:true,autoplaySpeed:4000,});a(".client-testimonials2").slick({infinite:true,speed:800,slidesToShow:1,arrows:true,autoplay:true,autoplaySpeed:4000,prevArrow:'<div class="slide-arrow prev-arrow"><i class="flaticon flaticon-left-arrow"></i></div>',nextArrow:'<div class="slide-arrow next-arrow"><i class="flaticon flaticon-right-arrow"></i></div>',responsive:[{breakpoint:1024,settings:{slidesToShow:1,infinite:false,dots:false,}},{breakpoint:992,settings:{slidesToShow:1,dots:true,arrows:false,}},{breakpoint:600,settings:{slidesToShow:1,dots:true,arrows:false,}},{breakpoint:350,settings:{slidesToShow:1,arrows:false,dots:true}}]});a(".client-list").slick({dots:false,infinite:true,speed:400,slidesToShow:5,arrows:false,autoplay:true,autoplaySpeed:2000,cssEase:"ease",loop:true,responsive:[{breakpoint:1024,settings:{slidesToShow:3,infinite:false,}},{breakpoint:600,settings:{slidesToShow:2,dots:false}},{breakpoint:300,settings:{slidesToShow:1,dots:false}}]});var d;function c(){var f={zoom:13,center:new google.maps.LatLng(50.97797382271958,-114.107718560791)};d=new google.maps.Map(document.getElementById("map"),f)}var b=a("#map");if(b.length){google.maps.event.addDomListener(window,"load",c)}a(".count").counterUp({delay:10,time:1000});a(".service-item").tilt({perspective:700,maxTilt:20,glare:true,maxGlare:0});if(a("#scene").length>0){a("#scene").parallax({scalarX:10,scalarY:10,})}})(jQuery);

1
old/assets/js/slick.min.js vendored Normal file

File diff suppressed because one or more lines are too long

305
old/assets/js/tilt.js Normal file
View File

@@ -0,0 +1,305 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = function( root, jQuery ) {
if ( jQuery === undefined ) {
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if ( typeof window !== 'undefined' ) {
jQuery = require('jquery');
}
else {
jQuery = require('jquery')(root);
}
}
factory(jQuery);
return jQuery;
};
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
$.fn.tilt = function (options) {
/**
* RequestAnimationFrame
*/
const requestTick = function() {
if (this.ticking) return;
requestAnimationFrame(updateTransforms.bind(this));
this.ticking = true;
};
/**
* Bind mouse movement evens on instance
*/
const bindEvents = function() {
const _this = this;
$(this).on('mousemove', mouseMove);
$(this).on('mouseenter', mouseEnter);
if (this.settings.reset) $(this).on('mouseleave', mouseLeave);
if (this.settings.glare) $(window).on('resize', updateGlareSize.bind(_this));
};
/**
* Set transition only on mouse leave and mouse enter so it doesn't influence mouse move transforms
*/
const setTransition = function() {
if (this.timeout !== undefined) clearTimeout(this.timeout);
$(this).css({'transition': `${this.settings.speed}ms ${this.settings.easing}`});
if(this.settings.glare) this.glareElement.css({'transition': `opacity ${this.settings.speed}ms ${this.settings.easing}`});
this.timeout = setTimeout(() => {
$(this).css({'transition': ''});
if(this.settings.glare) this.glareElement.css({'transition': ''});
}, this.settings.speed);
};
/**
* When user mouse enters tilt element
*/
const mouseEnter = function(event) {
this.ticking = false;
$(this).css({'will-change': 'transform'});
setTransition.call(this);
// Trigger change event
$(this).trigger("tilt.mouseEnter");
};
/**
* Return the x,y position of the mouse on the tilt element
* @returns {{x: *, y: *}}
*/
const getMousePositions = function(event) {
if (typeof(event) === "undefined") {
event = {
pageX: $(this).offset().left + $(this).outerWidth() / 2,
pageY: $(this).offset().top + $(this).outerHeight() / 2
};
}
return {x: event.pageX, y: event.pageY};
};
/**
* When user mouse moves over the tilt element
*/
const mouseMove = function(event) {
this.mousePositions = getMousePositions(event);
requestTick.call(this);
};
/**
* When user mouse leaves tilt element
*/
const mouseLeave = function() {
setTransition.call(this);
this.reset = true;
requestTick.call(this);
// Trigger change event
$(this).trigger("tilt.mouseLeave");
};
/**
* Get tilt values
*
* @returns {{x: tilt value, y: tilt value}}
*/
const getValues = function() {
const width = $(this).outerWidth();
const height = $(this).outerHeight();
const left = $(this).offset().left;
const top = $(this).offset().top;
const percentageX = (this.mousePositions.x - left) / width;
const percentageY = (this.mousePositions.y - top) / height;
// x or y position inside instance / width of instance = percentage of position inside instance * the max tilt value
const tiltX = ((this.settings.maxTilt / 2) - ((percentageX) * this.settings.maxTilt)).toFixed(2);
const tiltY = (((percentageY) * this.settings.maxTilt) - (this.settings.maxTilt / 2)).toFixed(2);
// angle
const angle = Math.atan2(this.mousePositions.x - (left+width/2),- (this.mousePositions.y - (top+height/2)) )*(180/Math.PI);
// Return x & y tilt values
return {tiltX, tiltY, 'percentageX': percentageX * 100, 'percentageY': percentageY * 100, angle};
};
/**
* Update tilt transforms on mousemove
*/
const updateTransforms = function() {
this.transforms = getValues.call(this);
if (this.reset) {
this.reset = false;
$(this).css('transform', `perspective(${this.settings.perspective}px) rotateX(0deg) rotateY(0deg)`);
// Rotate glare if enabled
if (this.settings.glare){
this.glareElement.css('transform', `rotate(180deg) translate(-50%, -50%)`);
this.glareElement.css('opacity', `0`);
}
return;
} else {
$(this).css('transform', `perspective(${this.settings.perspective}px) rotateX(${this.settings.disableAxis === 'x' ? 0 : this.transforms.tiltY}deg) rotateY(${this.settings.disableAxis === 'y' ? 0 : this.transforms.tiltX}deg) scale3d(${this.settings.scale},${this.settings.scale},${this.settings.scale})`);
// Rotate glare if enabled
if (this.settings.glare){
this.glareElement.css('transform', `rotate(${this.transforms.angle}deg) translate(-50%, -50%)`);
this.glareElement.css('opacity', `${this.transforms.percentageY * this.settings.maxGlare / 100}`);
}
}
// Trigger change event
$(this).trigger("change", [this.transforms]);
this.ticking = false;
};
/**
* Prepare elements
*/
const prepareGlare = function () {
const glarePrerender = this.settings.glarePrerender;
// If option pre-render is enabled we assume all html/css is present for an optimal glare effect.
if (!glarePrerender)
// Create glare element
$(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>');
// Store glare selector if glare is enabled
this.glareElementWrapper = $(this).find(".js-tilt-glare");
this.glareElement = $(this).find(".js-tilt-glare-inner");
// Remember? We assume all css is already set, so just return
if (glarePrerender) return;
// Abstracted re-usable glare styles
const stretch = {
'position': 'absolute',
'top': '0',
'left': '0',
'width': '100%',
'height': '100%',
};
// Style glare wrapper
this.glareElementWrapper.css(stretch).css({
'overflow': 'hidden',
});
// Style glare element
this.glareElement.css({
'position': 'absolute',
'top': '50%',
'left': '50%',
'pointer-events': 'none',
'background-image': `linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)`,
'width': `${$(this).outerWidth()*2}`,
'height': `${$(this).outerWidth()*2}`,
'transform': 'rotate(180deg) translate(-50%, -50%)',
'transform-origin': '0% 0%',
'opacity': '0',
});
};
/**
* Update glare on resize
*/
const updateGlareSize = function () {
this.glareElement.css({
'width': `${$(this).outerWidth()*2}`,
'height': `${$(this).outerWidth()*2}`,
});
};
/**
* Public methods
*/
$.fn.tilt.destroy = function() {
$(this).each(function () {
$(this).find('.js-tilt-glare').remove();
$(this).css({'will-change': '', 'transform': ''});
$(this).off('mousemove mouseenter mouseleave');
});
};
$.fn.tilt.getValues = function() {
const results = [];
$(this).each(function () {
this.mousePositions = getMousePositions.call(this);
results.push(getValues.call(this));
});
return results;
};
$.fn.tilt.reset = function() {
$(this).each(function () {
this.mousePositions = getMousePositions.call(this);
this.settings = $(this).data('settings');
mouseLeave.call(this);
setTimeout(() => {
this.reset = false;
}, this.settings.transition);
});
};
/**
* Loop every instance
*/
return this.each(function () {
/**
* Default settings merged with user settings
* Can be set trough data attributes or as parameter.
* @type {*}
*/
this.settings = $.extend({
maxTilt: $(this).is('[data-tilt-max]') ? $(this).data('tilt-max') : 8,
perspective: $(this).is('[data-tilt-perspective]') ? $(this).data('tilt-perspective') : 300,
easing: $(this).is('[data-tilt-easing]') ? $(this).data('tilt-easing') : 'cubic-bezier(.03,.98,.52,.99)',
scale: $(this).is('[data-tilt-scale]') ? $(this).data('tilt-scale') : '1',
speed: $(this).is('[data-tilt-speed]') ? $(this).data('tilt-speed') : '400',
transition: $(this).is('[data-tilt-transition]') ? $(this).data('tilt-transition') : true,
disableAxis: $(this).is('[data-tilt-disable-axis]') ? $(this).data('tilt-disable-axis') : null,
axis: $(this).is('[data-tilt-axis]') ? $(this).data('tilt-axis') : null,
reset: $(this).is('[data-tilt-reset]') ? $(this).data('tilt-reset') : true,
glare: $(this).is('[data-tilt-glare]') ? $(this).data('tilt-glare') : false,
maxGlare: $(this).is('[data-tilt-maxglare]') ? $(this).data('tilt-maxglare') : 1,
}, options);
// Add deprecation warning & set disableAxis to deprecated axis setting
if(this.settings.axis !== null){
console.warn('Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information');
this.settings.disableAxis = this.settings.axis;
}
this.init = () => {
// Store settings
$(this).data('settings', this.settings);
// Prepare element
if(this.settings.glare) prepareGlare.call(this);
// Bind events
bindEvents.call(this);
};
// Init
this.init();
});
};
/**
* Auto load
*/
$('[data-tilt]').tilt();
return true;
}));

1
old/assets/js/venobox.js Normal file

File diff suppressed because one or more lines are too long

3
old/assets/js/wow.min.js vendored Normal file

File diff suppressed because one or more lines are too long