framework
,abisu
,css
$(window).on('load scroll', function () {
$(".fead-mv, .fead-up, .fead-left, .fead-right").each(function () {
var ele = $(this);
var pos = ele.offset().top;
var scroll = $(window).scrollTop();
if (scroll > pos) {
ele.addClass("mv");
} else if (scroll > pos - window.innerHeight) {
setTimeout(function () {
ele.addClass("mv");
}, 400);
}
});
});
$(window).load(function () {
$(".altlist").each(function () {
var alt = $(this).find(".alt").text();
$(this).find("img").attr("alt", alt);
});
});
// altの引用元は非表示にする場合
$(window).load(function () {
$(".altlist01").each(function () {
var alt = $(this).find(".alt01").text();
$(this).find("img").attr("alt", alt);
$(".alt01").hide();
});
});
$(function () {
$('.tel').each(function () {
var tel = $(this);
var html = tel.html();
var teltext = tel.text();
var telnum = teltext.replace(/[^0-9]/g, '');
tel.html($('<a>').attr('href', 'tel:' + telnum).append(html));
});
});
$(window).on('load resize', function () {
if ($('.gnav').length) {
var w = window.innerWidth;
var obj = $('.gnav').offset().top;
var h = $('.gnav').outerHeight();
$(window).on('load scroll resize', function () {
if ($(this).scrollTop() > obj && (w > 1024)) {
$(".gnav").addClass("fixed");
$("#wrapper").css('padding-top', h);
} else {
$(".gnav").removeClass("fixed");
$("#wrapper").css('padding-top', 0);
}
});
}
});
$(function () {
$('.toggle').click(function () {
$(this).toggleClass('active');
$(".gnav").toggleClass('action');
$("body").toggleClass('overlay');
});
$('.gnav a').click(function () {
$(this).toggleClass('active');
$(".gnav").toggleClass('action');
$("body").toggleClass('overlay');
});
});
$(function () {
var topBtn = $('.totop');
topBtn.hide();
//スクロールが100に達したらボタン表示
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
topBtn.fadeIn();
} else {
topBtn.fadeOut();
}
});
//スクロールしてトップ
topBtn.click(function () {
$('body,html').animate({
scrollTop: 0
}, 500);
return false;
});
});
$(function () {
if (!($('[data-element-id]').length)) {
$(".js-contp").each(function () {
var contC = $('.js-contc', this);
var cont = contC.html();
var src = $("img", contC).attr("src");
if (cont == false) {
$(this).remove();
} else if ($('img', contC).length && !src) {
$(this).remove();
}
});
}
});
$(function () {
$('.js-thumb img').mouseover(function () {
var selectedSrc = $(this).attr('src').replace(/^(.+)_thumb(\.gif|\.jpg|\.png+)$/, "$1" + "$2");
$('.js-mainimg img').stop().fadeOut(200,
function () {
$('.js-mainimg img').attr('src', selectedSrc);
$('.js-mainimg img').stop().fadeIn(200);
}
);
});
});
$(function () {
$('.js-split-tag').html(function () {
return $(this).html().replace(/\n/g, '').split(",").filter(function (x) {
return x.match(/\S/);
}).map(function (x) {
return "<span>" + x + "</span>";
}).join("");
});
$('.js-split-tag span').each(function () {
var tagtext = $(this).text();
$(this).addClass(tagtext);
});
});
$(function () {
$(".js-toggle").on("click", function () {
$(this).next().slideToggle();
$(this).toggleClass("is-parent");
$(this).next().toggleClass("is-active");
});
});
$(window).load(function () {
$('.up-reader3').each(function () {
var $target = $(this);
var html = $target.html();
var $clone = $target.clone();
var fs = $target.css('font-size');
var lh = $target.css('line-height');
var lines = '3'; //表示したい行数
var lhp = Math.round((parseInt(lh) / parseInt(fs)) * 10) / 10;
var calc = parseInt(fs) * lhp * parseInt(lines);
$target.css('height', calc);
$clone
.css({
display: 'none',
position: 'absolute',
overflow: 'visible'
})
.width($target.width())
.height('auto');
$target.after($clone);
while ((html.length > 0) && ($clone.height() > $target.height())) {
html = html.substr(0, html.length - 1);
$clone.html(html + '…');
}
$target.html($clone.html());
$clone.remove();
});
$('.up-reader2').each(function () {
var $target = $(this);
var html = $target.html();
var $clone = $target.clone();
var fs = $target.css('font-size');
var lh = $target.css('line-height');
var lines = '2'; //表示したい行数
var lhp = Math.round((parseInt(lh) / parseInt(fs)) * 10) / 10;
var calc = parseInt(fs) * lhp * parseInt(lines);
$target.css('height', calc);
$clone
.css({
display: 'none',
position: 'absolute',
overflow: 'visible'
})
.width($target.width())
.height('auto');
$target.after($clone);
while ((html.length > 0) && ($clone.height() > $target.height())) {
html = html.substr(0, html.length - 1);
$clone.html(html + '…');
}
$target.html($clone.html());
$clone.remove();
});
});
$(function () {
$(".uk-dotnav a").attr("href", "");
var urlHash = location.hash;
if (urlHash) {
$('body,html').css('opacity', '0');
setTimeout(function () {
scrollToAnker(urlHash);
}, 200);
}
$('a[href*="#"]').on('click', function () {
var href = $(this).attr("href");
if (href.indexOf("#") === 0) { //ただのハッシュ
var hash = href == "#" || href == "" ? 'html' : href;
scrollToAnker(hash);
return false;
} else if (href.indexOf("/") == 0 && href.indexOf("#") !== 1) { //ページ内ハッシュ
var hrefsplit = href.split("#");
var hash = "#" + hrefsplit[1];
scrollToAnker(hash);
return false;
} else { //トップハッシュ
var hrefsplit = href.split("/");
var hash = hrefsplit[1];
scrollToAnker(hash);
return false;
}
});
function scrollToAnker(hash) {
var target = $(hash);
if (!(target.length)) {
$('body,html').css('opacity', '1');
scrollToAnker(hash);
} else if (target.length) {
var position = target.offset().top;
var w = window.innerWidth;
var gnav = $('.gnav').outerHeight();
var header = $('#header').outerHeight();
if (w > 1024) {
$('body,html').animate({
scrollTop: position - gnav - 10,
opacity: 1
}, 600);
} else if (w < 1025) {
$('body,html').animate({
scrollTop: position - 10,
opacity: 1
}, 600);
} else {
$('body,html').animate({
scrollTop: position - 10,
opacity: 1
}, 600);
}
}
};
});
レイアウト display (d) Class Properties .up-d-block display: block; .up-d-iblock
Mar 31, 2021注意事項 A-BiSUフレームワーク バグ情報 新機能のお知らせ 求人機能について
Dec 28, 2020はじめに A-BiSUに作った求人ページの情報をgoogleしごと検索、indeedへ登録・掲載するための機能です。 googleしごと検索 求人ページ内にある求人内容をheadタグ内に「構造化データ」として追加すると、googleのクローラーが読み取って掲載されます。 indeed 別途クライアントごとにindeedのアカウントを開設するなどの手続きをおこない、 求人ページに必要な情報、応募ページへのリンクボタンなどを掲載すると、indeedのクローラーが読み取って掲載されます。
Dec 28, 2020ダウンロード https://github.com/up-codes/abisu-css/archive/master.zip 各ファイル説明 太字は必須ファイルです。 html ┣ css ┃ ┣ abisu.css  編集画面でのみ機能するクラス群 ┃ ┣ base.css  リセット+「up-」で始まるcssフレームワーク
Nov 17, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up