続きはxで
';
}else{
var data = '';
}
$('#main_box').html(data);
}
/*=================================
Wiki切り替え
=================================*/
function WikiContents(src){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
var data = '';
$('#main_box').html(data);
}
/*=================================
作品データに戻す
=================================*/
function DG_List(no){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
var b_title ="";
if( no == 0 ){
$(".vdlist").show();
$(".vrlist").hide();
$(".bklist").hide();
$(".cdlist").hide();
$(".gdlist").hide();
b_title ="映像作品
";
}else if( no == 1 ){
$(".vdlist").hide();
$(".vrlist").hide();
$(".bklist").show();
$(".cdlist").hide();
$(".gdlist").hide();
b_title ="書籍作品
";
}else if( no == 2 ){
$(".vdlist").hide();
$(".vrlist").hide();
$(".bklist").hide();
$(".cdlist").show();
$(".gdlist").hide();
b_title ="音楽作品
";
}else if( no == 3 ){
$(".vdlist").hide();
$(".vrlist").show();
$(".bklist").hide();
$(".cdlist").hide();
$(".gdlist").hide();
b_title ="VR作品
";
}else if( no == 4 ){
$(".vdlist").hide();
$(".vrlist").hide();
$(".bklist").hide();
$(".cdlist").hide();
$(".gdlist").show();
b_title ="グッズ
";
}
$(".dglist").hide();
$(".lplist").hide();
$('.vdata').show();
$('#main_box').html(b_title + $("#hidearea").html());
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
}
function ReFilm(){
$('.vdata').show();
$('#main_box').html($("#hidearea").html());
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
}
/*=================================
推し女優
=================================*/
function RecomActress(){
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/recom.php",
cache : false,
data: "&actress_id="+ 1078010,
success: function(evt){
alert(evt);
}
});
}
/*=================================
YOUTUBE切り替え
=================================*/
function YOUTUBEContents(){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
var data = '';
$('#main_box').html(data);
}
/*=================================
お気に入り登録
=================================*/
function FavoriteSave(flg){
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/favorite.php",
cache : false,
data: "&actress_id=" + 1078010 + "&members_id=" + "&flg=" + flg,
success: function(ev){
alert(ev);
document.location.reload();
}
});
}
/*=================================
管理人が見つけた順
=================================*/
function AidSort(){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/aidsort.php",
cache : false,
data: "&actress_id="+ 1078010,
success: function(evt){
$('#main_box').html(evt);
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
}
});
}
function AccItem(serial){
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/accitem.php",
cache : false,
data: "&serial="+ serial,
success: function(evt){
}
});
}
/*=================================
戦闘力順
=================================*/
function RecomWk(){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/recom_wrk.php",
cache : false,
data: "&actress_id="+ 1078010,
success: function(evt){
$('#main_box').html(evt);
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
}
});
}
/*=================================
タイトルサーチ
=================================*/
function keydown_enter(){
if(window.event.keyCode == 13){
TitleSearch();
// return false;
}
}
function TitleSearch(){
if($('#title_search').val().length > 1){
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/search.php",
cache : false,
data: "&search="+ $('#title_search').val() + "&actress_id=1078010",
success: function(evt){
$('#main_box').html(evt);
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
$(window).scrollTop(0);
}
});
}else{
alert("2文字以上で検索してください!");
}
}
function Discography(){
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/works.php",
cache : false,
data: "&actress_id=1078010",
success: function(evt){
$('#discography').html(evt[1]);
$('#hidearea').html(evt[1]);
$('#works_cnt').html("作品数:" + evt[0]);
$('#menu_button').html(evt[2] + '');
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
observer.observe();
$(window).scrollTop(0);
}
});
}
/*=================================
リンクリスト
=================================*/
function LinkList(){
// スクロール値を戻す
$('html,body').animate({ scrollTop: 0 }, 1);
$.ajax({
type: "POST",
url: "https://avfan.mixh.jp/archives/actress/linklist.php",
cache : false,
data: "&actress_id="+ 1078010,
success: function(evt){
$('#main_box').html(evt);
}
});
}
function URL_JUMP(url){
document.location.href = url;
}
/*=================================
誕生日の風船
=================================*/
function createBalloon() {
const balloon = document.createElement('div');
balloon.className = 'balloon';
// 1. ランダムな色を設定
const colors = ['#ff4d4d', '#4da6ff', '#4dff4d', '#ffdb4d', '#ff4dff', '#ffffff'];
const randomColor = colors[Math.floor(Math.random() * colors.length)];
balloon.style.backgroundColor = randomColor;
balloon.style.color = randomColor; // 結び目の色用
// 2. ランダムな開始位置(横幅)
const startX = Math.random() * window.innerWidth;
balloon.style.left = startX + 'px';
// 3. ランダムな大きさ
const scale = 0.5 + Math.random();
balloon.style.transform = `scale(${scale})`;
document.body.appendChild(balloon);
// 4. アニメーションの設定
const duration = 4000 + Math.random() * 3000; // 4〜7秒かけて上昇
const animation = balloon.animate([
{ bottom: '-100px', transform: `translate(0, 0) scale(${scale})` },
{ bottom: '110vh', transform: `translate(${Math.random() * 100 - 50}px, -100px) scale(${scale})` }
], {
duration: duration,
easing: 'ease-in'
});
// 終わったら要素を削除
animation.onfinish = () => balloon.remove();
}
/*=================================
右クリック禁止
=================================*/
document.oncontextmenu = function () {return false;}
-->