Commit 9b270da2 by Orine Matsui

採用ページ一式追加

parent 42e3ab33
Showing with 598 additions and 0 deletions
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500"><defs><style>.cls-1{fill:url(#Degradado_sin_nombre_35);}.cls-2{fill:#fff;}</style><linearGradient id="Degradado_sin_nombre_35" x1="73.22" y1="426.78" x2="426.78" y2="73.22" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fbd67a"/><stop offset="0.21" stop-color="#f5923d"/><stop offset="0.4" stop-color="#f35834"/><stop offset="0.56" stop-color="#db0271"/><stop offset="0.71" stop-color="#ab0b9e"/><stop offset="0.85" stop-color="#6c1ccf"/><stop offset="0.99" stop-color="#383ded"/></linearGradient></defs><g id="BACKGROUND"><circle class="cls-1" cx="250" cy="250" r="250"/></g><g id="OBJECTS"><path class="cls-2" d="M250,116.31c43.54,0,48.7.17,65.89,1,15.9.73,24.54,3.38,30.29,5.62a53.91,53.91,0,0,1,30.94,30.94c2.24,5.75,4.89,14.39,5.62,30.28.78,17.2.95,22.36.95,65.9s-.17,48.7-.95,65.89c-.73,15.9-3.38,24.54-5.62,30.29a53.91,53.91,0,0,1-30.94,30.94c-5.75,2.24-14.39,4.89-30.29,5.62-17.19.78-22.34.95-65.89.95s-48.7-.17-65.89-.95c-15.9-.73-24.54-3.38-30.29-5.62a53.91,53.91,0,0,1-30.94-30.94c-2.24-5.75-4.89-14.39-5.62-30.28-.78-17.2-1-22.36-1-65.9s.17-48.7,1-65.89c.73-15.9,3.38-24.54,5.62-30.29a53.91,53.91,0,0,1,30.94-30.94c5.75-2.24,14.39-4.89,30.28-5.62,17.2-.78,22.36-1,65.9-1m0-29.38c-44.29,0-49.84.19-67.23,1s-29.22,3.55-39.59,7.58a83.41,83.41,0,0,0-47.69,47.69c-4,10.37-6.79,22.23-7.58,39.59s-1,22.94-1,67.23.19,49.84,1,67.23,3.55,29.22,7.58,39.59a83.41,83.41,0,0,0,47.69,47.69c10.37,4,22.23,6.79,39.59,7.58s22.94,1,67.23,1,49.84-.19,67.23-1,29.22-3.55,39.59-7.58a83.41,83.41,0,0,0,47.69-47.69c4-10.37,6.79-22.23,7.58-39.59s1-22.94,1-67.23-.19-49.84-1-67.23-3.55-29.22-7.58-39.59a83.41,83.41,0,0,0-47.69-47.69c-10.37-4-22.23-6.79-39.59-7.58s-22.94-1-67.23-1Z"/><path class="cls-2" d="M250,166.26A83.74,83.74,0,1,0,333.74,250,83.74,83.74,0,0,0,250,166.26Zm0,138.1A54.36,54.36,0,1,1,304.36,250,54.36,54.36,0,0,1,250,304.36Z"/><circle class="cls-2" cx="337.05" cy="162.95" r="19.57"/></g></svg>
\ No newline at end of file
<svg id="LINE_LOGO" data-name="LINE LOGO" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><defs><style>.cls-1{fill:#00b900;}.cls-2{fill:#fff;}</style></defs><circle class="cls-1" cx="60" cy="60" r="60"/><g id="TYPE_A" data-name="TYPE A"><path class="cls-2" d="M99.91,56.4C99.91,38.54,82,24,60,24S20.09,38.54,20.09,56.4c0,16,14.2,29.42,33.38,31.95,1.3.28,3.07.86,3.51,2a8,8,0,0,1,.13,3.61l-.57,3.41c-.17,1-.8,4,3.46,2.15S83,86,91.36,76.32h0C97.14,70,99.91,63.54,99.91,56.4" transform="translate(0 0)"/><path class="cls-1" d="M51.89,47.77h-2.8a.78.78,0,0,0-.78.77V65.93a.78.78,0,0,0,.78.78h2.8a.78.78,0,0,0,.78-.78V48.54a.78.78,0,0,0-.78-.77" transform="translate(0 0)"/><path class="cls-1" d="M71.16,47.77h-2.8a.78.78,0,0,0-.78.77V58.87l-8-10.76L59.55,48h0l0-.05h0s0,0,0,0h0l0,0h0l0,0h0l0,0H56.17a.78.78,0,0,0-.78.77V65.93a.78.78,0,0,0,.78.78H59a.77.77,0,0,0,.77-.78V55.61l8,10.77a.89.89,0,0,0,.2.19h0l0,0h0l0,0h.06l.05,0h0a.64.64,0,0,0,.2,0h2.8a.78.78,0,0,0,.78-.78V48.54a.78.78,0,0,0-.78-.77" transform="translate(0 0)"/><path class="cls-1" d="M45.14,62.35h-7.6V48.54a.78.78,0,0,0-.78-.77H34a.78.78,0,0,0-.78.77V65.93h0a.8.8,0,0,0,.22.54h0a.76.76,0,0,0,.54.22H45.14a.78.78,0,0,0,.78-.78v-2.8a.78.78,0,0,0-.78-.78" transform="translate(0 0)"/><path class="cls-1" d="M86.62,52.12a.77.77,0,0,0,.77-.78V48.55a.77.77,0,0,0-.77-.78H75.43a.73.73,0,0,0-.53.22h0l0,0a.78.78,0,0,0-.21.53h0V65.93h0a.76.76,0,0,0,.22.54h0a.75.75,0,0,0,.53.22H86.62a.77.77,0,0,0,.77-.78v-2.8a.77.77,0,0,0-.77-.78H79V59.42h7.61a.77.77,0,0,0,.77-.78v-2.8a.77.77,0,0,0-.77-.78H79V52.12Z" transform="translate(0 0)"/></g></svg>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 20.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve">
<style type="text/css">
.st0{fill:#1DA1F2;}
.st1{fill:#FFFFFF;}
</style>
<g id="Dark_Blue">
<circle class="st0" cx="200" cy="200" r="200"/>
</g>
<g id="Logo__x2014__FIXED">
<path class="st1" d="M163.4,305.5c88.7,0,137.2-73.5,137.2-137.2c0-2.1,0-4.2-0.1-6.2c9.4-6.8,17.6-15.3,24.1-25
c-8.6,3.8-17.9,6.4-27.7,7.6c10-6,17.6-15.4,21.2-26.7c-9.3,5.5-19.6,9.5-30.6,11.7c-8.8-9.4-21.3-15.2-35.2-15.2
c-26.6,0-48.2,21.6-48.2,48.2c0,3.8,0.4,7.5,1.3,11c-40.1-2-75.6-21.2-99.4-50.4c-4.1,7.1-6.5,15.4-6.5,24.2
c0,16.7,8.5,31.5,21.5,40.1c-7.9-0.2-15.3-2.4-21.8-6c0,0.2,0,0.4,0,0.6c0,23.4,16.6,42.8,38.7,47.3c-4,1.1-8.3,1.7-12.7,1.7
c-3.1,0-6.1-0.3-9.1-0.9c6.1,19.2,23.9,33.1,45,33.5c-16.5,12.9-37.3,20.6-59.9,20.6c-3.9,0-7.7-0.2-11.5-0.7
C110.8,297.5,136.2,305.5,163.4,305.5"/>
</g>
</svg>
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><defs><style>.cls-1{fill:#1877f2;}.cls-2{fill:#fff;}</style></defs><path class="cls-1" d="M1024,512C1024,229.23,794.77,0,512,0S0,229.23,0,512c0,255.55,187.23,467.37,432,505.78V660H302V512H432V399.2C432,270.88,508.44,200,625.39,200c56,0,114.61,10,114.61,10V336H675.44c-63.6,0-83.44,39.47-83.44,80v96H734L711.3,660H592v357.78C836.77,979.37,1024,767.55,1024,512Z"/><path class="cls-2" d="M711.3,660,734,512H592V416c0-40.49,19.84-80,83.44-80H740V210s-58.59-10-114.61-10C508.44,200,432,270.88,432,399.2V512H302V660H432v357.78a517.58,517.58,0,0,0,160,0V660Z"/></svg>
\ No newline at end of file
This diff could not be displayed because it is too large.
/**
* Device detector
*/
const fullNameRe = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;
const prefixRe = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
const fullNameMobileRe = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i;
const prefixMobileRe = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
function ua() {
return navigator.userAgent || navigator.vendor || window.opera || '';
}
class Detector {
phone() {
const a = ua();
return !!(fullNameRe.test(a) || prefixRe.test(a.substr(0, 4)));
}
mobile() {
const a = ua();
return !!(fullNameMobileRe.test(a) || prefixMobileRe.test(a.substr(0, 4)));
}
tablet() {
return this.mobile() && !this.phone();
}
// http://browserhacks.com/#hack-acea075d0ac6954f275a70023906050c
ie11() {
return (
'-ms-scroll-limit' in document.documentElement.style &&
'-ms-ime-align' in document.documentElement.style
);
}
}
export default new Detector();
/**
* Generate initial array with elements as objects
* This array will be extended later with elements attributes values
* like 'position'
*/
export default () => {
const elements = document.querySelectorAll('[data-aos]');
return Array.prototype.map.call(elements, node => ({ node }));
};
/**
* Get inline option with a fallback.
*
* @param {Node} el [Dom element]
* @param {String} key [Option key]
* @param {String} fallback [Default (fallback) value]
* @return {Mixed} [Option set with inline attributes or fallback value if not set]
*/
export default (el, key, fallback) => {
const attr = el.getAttribute('data-aos-' + key);
if (typeof attr !== 'undefined') {
if (attr === 'true') {
return true;
} else if (attr === 'false') {
return false;
}
}
return attr || fallback;
};
import detect from './detector';
/**
* Adds multiple classes on node
* @param {DOMNode} node
* @param {array} classes
*/
const addClasses = (node, classes) =>
classes && classes.forEach(className => node.classList.add(className));
/**
* Removes multiple classes from node
* @param {DOMNode} node
* @param {array} classes
*/
const removeClasses = (node, classes) =>
classes && classes.forEach(className => node.classList.remove(className));
const fireEvent = (eventName, data) => {
let customEvent;
if (detect.ie11()) {
customEvent = document.createEvent('CustomEvent');
customEvent.initCustomEvent(eventName, true, true, { detail: data });
} else {
customEvent = new CustomEvent(eventName, {
detail: data
});
}
return document.dispatchEvent(customEvent);
};
/**
* Set or remove aos-animate class
* @param {node} el element
* @param {int} top scrolled distance
*/
const applyClasses = (el, top) => {
const { options, position, node, data } = el;
const hide = () => {
if (!el.animated) return;
removeClasses(node, options.animatedClassNames);
fireEvent('aos:out', node);
if (el.options.id) {
fireEvent(`aos:in:${el.options.id}`, node);
}
el.animated = false;
};
const show = () => {
if (el.animated) return;
addClasses(node, options.animatedClassNames);
fireEvent('aos:in', node);
if (el.options.id) {
fireEvent(`aos:in:${el.options.id}`, node);
}
el.animated = true;
};
if (options.mirror && top >= position.out && !options.once) {
hide();
} else if (top >= position.in) {
show();
} else if (el.animated && !options.once) {
hide();
}
};
/**
* Scroll logic - add or remove 'aos-animate' class on scroll
*
* @param {array} $elements array of elements nodes
* @return {void}
*/
const handleScroll = $elements =>
$elements.forEach((el, i) => applyClasses(el, window.pageYOffset));
export default handleScroll;
/**
* Calculate offset
* basing on element's settings like:
* - anchor
* - offset
*
* @param {Node} el [Dom element]
* @return {Integer} [Final offset that will be used to trigger animation in good position]
*/
import getOffset from './../libs/offset';
import getInlineOption from './getInlineOption';
export const getPositionIn = (el, defaultOffset, defaultAnchorPlacement) => {
const windowHeight = window.innerHeight;
const anchor = getInlineOption(el, 'anchor');
const inlineAnchorPlacement = getInlineOption(el, 'anchor-placement');
const additionalOffset = Number(
getInlineOption(el, 'offset', inlineAnchorPlacement ? 0 : defaultOffset)
);
const anchorPlacement = inlineAnchorPlacement || defaultAnchorPlacement;
let finalEl = el;
if (anchor && document.querySelectorAll(anchor)) {
finalEl = document.querySelectorAll(anchor)[0];
}
let triggerPoint = getOffset(finalEl).top - windowHeight;
switch (anchorPlacement) {
case 'top-bottom':
// Default offset
break;
case 'center-bottom':
triggerPoint += finalEl.offsetHeight / 2;
break;
case 'bottom-bottom':
triggerPoint += finalEl.offsetHeight;
break;
case 'top-center':
triggerPoint += windowHeight / 2;
break;
case 'center-center':
triggerPoint += windowHeight / 2 + finalEl.offsetHeight / 2;
break;
case 'bottom-center':
triggerPoint += windowHeight / 2 + finalEl.offsetHeight;
break;
case 'top-top':
triggerPoint += windowHeight;
break;
case 'bottom-top':
triggerPoint += windowHeight + finalEl.offsetHeight;
break;
case 'center-top':
triggerPoint += windowHeight + finalEl.offsetHeight / 2;
break;
}
return triggerPoint + additionalOffset;
};
export const getPositionOut = (el, defaultOffset) => {
const windowHeight = window.innerHeight;
const anchor = getInlineOption(el, 'anchor');
const additionalOffset = getInlineOption(el, 'offset', defaultOffset);
let finalEl = el;
if (anchor && document.querySelectorAll(anchor)) {
finalEl = document.querySelectorAll(anchor)[0];
}
const elementOffsetTop = getOffset(finalEl).top;
return elementOffsetTop + finalEl.offsetHeight - additionalOffset;
};
/* Clearing variables */
import { getPositionIn, getPositionOut } from './offsetCalculator';
import getInlineOption from './getInlineOption';
const prepare = function($elements, options) {
$elements.forEach((el, i) => {
const mirror = getInlineOption(el.node, 'mirror', options.mirror);
const once = getInlineOption(el.node, 'once', options.once);
const id = getInlineOption(el.node, 'id');
const customClassNames =
options.useClassNames && el.node.getAttribute('data-aos');
const animatedClassNames = [options.animatedClassName]
.concat(customClassNames ? customClassNames.split(' ') : [])
.filter(className => typeof className === 'string');
if (options.initClassName) {
el.node.classList.add(options.initClassName);
}
el.position = {
in: getPositionIn(el.node, options.offset, options.anchorPlacement),
out: mirror && getPositionOut(el.node, options.offset)
};
el.options = {
once,
mirror,
animatedClassNames,
id
};
});
return $elements;
};
export default prepare;
/*
* Ex Flex Fixed 0.3.0 - jQuery plugin
* written by Cyokodog
*
* Copyright (c) 2012 Cyokodog (http://d.hatena.ne.jp/cyokodog/)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
*/
(function($){
$.ex = $.ex || {};
var API = function(api){
var api = $(api),api0 = api[0];
for(var name in api0)
(function(name){
if($.isFunction( api0[name] ))
api[ name ] = (/^get[^a-z]/.test(name) || /^is[^a-z]/.test(name)) ?
function(){
return api0[name].apply(api0,arguments);
} :
function(){
var arg = arguments;
api.each(function(idx){
var apix = api[idx];
apix[name].apply(apix,arg);
})
return api;
}
})(name);
return api;
}
$.ex.flexFixed = function(idx , targets , option){
var o = this,
c = o.config = $.extend({} , $.ex.flexFixed.defaults , option);
c.targets = targets;
c.target = c.targets.eq(idx);
c.index = idx;
c._win = $(window);
c._orgMarginTop = parseInt(c.target.css('margin-top'))||0;
c._orgMarginBottom = parseInt(c.target.css('margin-bottom'))||0;
c._orgMarginLeft = parseInt(c.target.css('margin-left'))||0;
c._orgMarginRight = parseInt(c.target.css('margin-right'))||0;
c.container = $(c.container);
c.fixedHeaderHeight = c.fixedHeader ? $(c.fixedHeader).outerHeight() : 0 ;
if(!(c.zIndex == null)) c.target.css('z-index',c.zIndex);
if(c.watchPosition == 'auto' && c.windowResizeAdjust == 'auto'){
c.watchPosition = false;
}
else
if(c.watchPosition == true && c.windowResizeAdjust == 'auto'){
c.windowResizeAdjust = false;
}
c.target.css({
position : 'fixed'
});
o._makeCloneBox(c.target);
o.adjustPosition();
c._win.scroll(function(){
o.adjustScrollPosition();
});
if(c.windowResizeAdjust){
c._win.resize(function(){
o.adjustPosition();
});
}
if(c.windowResizeAdjust){
c._win.resize(function(){
if(c._resizeTimer) clearTimeout(c._resizeTimer);
c._resizeTimer = setTimeout(function(){
o.adjustPosition();
},c.windowResizeDelay);
});
}
if(c.watchPosition){
var watch = function(){
setTimeout(function(){
o.adjustPosition();
c.watchCallback.call(o,o);
watch();
},c.watchDelay);
}
watch();
}
}
$.extend($.ex.flexFixed.prototype, {
_getMarginHeight : function(target){
var o = this, c = o.config;
return target.outerHeight() +
+ (parseInt(target.css('margin-top'))||0)
+ (parseInt(target.css('margin-bottom'))||0)
;
},
_adjustCloneSize : function(target){
var o = this, c = o.config;
c.cloneBox.css({
height : target.outerHeight(),
'margin-top' : parseInt(target.css('margin-top'))||0,
'margin-bottom' : parseInt(target.css('margin-bottom'))||0,
'margin-left' : parseInt(target.css('margin-left'))||0,
'margin-right' : parseInt(target.css('margin-right'))||0,
'padding-left' : (parseInt(target.css('border-left-width'))||0) + (parseInt(target.css('padding-left'))||0),
'padding-right' : (parseInt(target.css('border-right-width'))||0) + (parseInt(target.css('padding-right'))||0)
});
},
_makeCloneBox : function(target){
var o = this, c = o.config;
c.cloneBox = $('<div/>');
target.before(c.cloneBox);
o._adjustCloneSize(target);
},
adjustPosition : function(){
var o = this, c = o.config;
c.containerOffset = c.container.offset();
if(c.width != 'auto'){
if(c.cloneBox.width() != c.width){
c.cloneBox.width(c.width);
}
}
c.target.css({
width : c.cloneBox.width()
});
o._adjustCloneSize(c.target);
c._fixedOffset = c.cloneBox.offset();
o.adjustScrollPosition();
},
adjustScrollPosition : function(){
var o = this, c = o.config;
var targetTotalHeight = c.target.outerHeight() + c._orgMarginTop + c._orgMarginBottom;
var winMinuseTargetGapHeight = c._win.height() - targetTotalHeight;
var top = c._fixedOffset.top - c._orgMarginTop - c._win.scrollTop()
c._nowFixed = false;
if(top - c.fixedHeaderHeight < 0){
if(!c._fromTop) top = 0;
if(top - c.fixedHeaderHeight < winMinuseTargetGapHeight){
c._nowFixed = true;
if(winMinuseTargetGapHeight > 0){
top = c.fixedHeaderHeight;
}
else {
top = winMinuseTargetGapHeight;
}
}
}
else {
c._fromTop = true;
}
var containerBottom = c.containerOffset.top + c.container.outerHeight() - c._win.scrollTop();
var targetBottom = top + c.target.outerHeight() + c._orgMarginTop + c._orgMarginBottom;
var overBottom = targetBottom - containerBottom;
if(overBottom > 0){
c._nowFixed = false;
c._fromTop = false;
top = top - overBottom;
}
c.target.css({
top : top,
left : c._fixedOffset.left - c._win.scrollLeft() - c._orgMarginLeft
});
}
});
$.ex.flexFixed.defaults = {
api : false,
watchPosition : 'auto',
watchDelay : 500,
watchCallback : function(api){},
container : null,
fixedHeader : null,
zIndex : null,
width : 'auto',
windowResizeAdjust : 'auto',
windowResizeDelay : 100
}
$.fn.exFlexFixed = function(option){
var targets = this,api = [];
targets.each(function(idx) {
var target = targets.eq(idx);
var obj = target.data('ex-flex-fixed') || new $.ex.flexFixed( idx , targets , option);
api.push(obj);
target.data('ex-flex-fixed',obj);
});
return option && option.api ? API(api) : targets;
}
$.ex.flexFixed.version = '0.3.0';
})(jQuery);
/*
* jquery-match-height 0.7.2 by @liabru
* http://brm.io/jquery-match-height/
* License MIT
*/
$(function() {$('.matchHeightItem,.matchHeightItem2, .subContentListSection .card').matchHeight();});
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={
byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={
display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),
this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;
}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});
\ No newline at end of file
let callback = () => {};
function containsAOSNode(nodes) {
let i, currentNode, result;
for (i = 0; i < nodes.length; i += 1) {
currentNode = nodes[i];
if (currentNode.dataset && currentNode.dataset.aos) {
return true;
}
result = currentNode.children && containsAOSNode(currentNode.children);
if (result) {
return true;
}
}
return false;
}
function check(mutations) {
if (!mutations) return;
mutations.forEach(mutation => {
const addedNodes = Array.prototype.slice.call(mutation.addedNodes);
const removedNodes = Array.prototype.slice.call(mutation.removedNodes);
const allNodes = addedNodes.concat(removedNodes);
if (containsAOSNode(allNodes)) {
return callback();
}
});
}
function getMutationObserver() {
return (
window.MutationObserver ||
window.WebKitMutationObserver ||
window.MozMutationObserver
);
}
function isSupported() {
return !!getMutationObserver();
}
function ready(selector, fn) {
const doc = window.document;
const MutationObserver = getMutationObserver();
const observer = new MutationObserver(check);
callback = fn;
observer.observe(doc.documentElement, {
childList: true,
subtree: true,
removedNodes: true
});
}
export default { isSupported, ready };
/**
* Get offset of DOM element
* like there were no transforms applied on it
*
* @param {Node} el [DOM element]
* @return {Object} [top and left offset]
*/
const offset = function(el) {
let _x = 0;
let _y = 0;
while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) {
_x += el.offsetLeft - (el.tagName != 'BODY' ? el.scrollLeft : 0);
_y += el.offsetTop - (el.tagName != 'BODY' ? el.scrollTop : 0);
el = el.offsetParent;
}
return {
top: _y,
left: _x
};
};
export default offset;
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment