// JavaScript Document
$(function() {
$('.slider-pro,.op-about').hide()
$('.slider-pro,.op-about').fadeIn(400);
$('.sp-footer img').each(function(){
$(this).attr("src",$(this).attr("src").replace('/images/',"//i.stworld.jp/images/"));
});
// $(".sp-footer img").attr("src",$(".sp-footer img").attr("src").replace('/images/',"test"))
// $(".sp-footer img").attr("src",$(".sp-footer img").attr("src").replace('/images/',"http://i.stworld.jp/images/"))
});
$(document).ready(function(){
$( '#slider1' ).sliderPro({
width: '100%',
height: 630,
fade: true,
shuffle: true,
buttons: false,
autoplay: true,
autoplayDelay: 4000,
slideDistance: 0,
fadeDuration: 1500,
breakpoints: {
640: {//表示方法を変えるサイズ
height: 320,
}
}
});
});
$(document).ready(function(){
$( '#slider-wo' ).sliderPro({
width: '190px',
height: '210px',
fade: true,
shuffle: true,
buttons: false,
touchSwipe: false,
autoplay: true,
autoplayDelay: 4000,
slideDistance: 0,
fadeDuration: 1500,
breakpoints: {
640: {//表示方法を変えるサイズ
height: 110,
}
}
});
});
$(document).ready(function(){
var homenG = null;
var homen = null;
var city = null;
$.chgArea = function(pushed){
var homenG_val = $('#homenG').val().split("-");
homenG = homenG_val[1];
var homen_val = $('#homen').val().split("-");
homen = homen_val[1];
var city_val = $('#city').val().split("-");
city = city_val[1];
if ( pushed == "homenG" ){
homen = null;
city = null;
}
if ( pushed == "homen" ){
city = null;
}
$.ajax({
type:'GET',
url:'/op/areaSearch.php',
data: {
homenG: homenG,
homen: homen
},
dataType:'json',
error:function() {
},
success:function(json){
if ( !homenG ){
$("#homenG").children().remove();
$("#homen").children().remove();
$("#city").children().remove();
$('.easy-select-0').remove();
$('.easy-select-1').remove();
$('.easy-select-2').remove();
for ( var i = 0; i < json.length; i++ ){
$('#homenG').append($("