// JavaScript Document $(function( ){ $("div#osusume_link").load("/ban_top_btm.html #eswsContainerInner a"); $("#eswsPaneAlphaInner").append("
") $("div#box_baner").load("/side_L_banner.html"); $("p.footerText").load("/foot_navi.html"); $("div#eswsFooterText").load("/foot_navi.html"); $("#com_snavi").load("/com_snavi.html"); $("#owner_snavi").load("/owner_snavi.html"); $("ul#eswsMenu li:first").addClass("first"); $("ul#eswsMenu li:last").addClass("last"); $("li.eswsDirectory ul:first").addClass("first"); $("li.eswsDirectory ul:last").addClass("last"); $("div#box_topics dt:first").addClass("first"); $("#eswsPageTop").remove(); $("div#eswsPaneContainer").append("
ページトップ
"); var thisYear = new Date().getFullYear(); var classYear = "year_"+thisYear $("div#eswsContainerInner").addClass(classYear); if (thisYear == '2012') { jQuery('#box_face_img').crossSlide( { fade: 1 }, [ { src: 'index_images/img_face_01.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_02.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_03.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_2012.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 8} ]); } else if (thisYear == '2013') { jQuery('#box_face_img').crossSlide( { fade: 1 }, [ { src: 'index_images/img_face_01.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_02.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_03.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_2013.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 8} ]); } else if (thisYear == '2014') { jQuery('#box_face_img').crossSlide( { fade: 1 }, [ { src: 'index_images/img_face_01.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_02.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_03.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_2014.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 8} ]); } else if (thisYear == '2015') { jQuery('#box_face_img').crossSlide( { fade: 1 }, [ { src: 'index_images/img_face_01.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_02.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_03.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 4}, { src: 'index_images/img_face_2015.jpg', from: '100% 100% 1x', to: '100% 100% 1x', time: 8} ]); } $("#eswsCopyright").text("Copyright 1972-"+thisYear+"© Takeda Fudousan Co.,Ltd. All Rights Reserved."); }); (function($) { $(function() { $.yuga.selflink(); }); //--------------------------------------------------------------------- $.yuga = { // URIを解析したオブジェクトを返すfunction Uri: function(path){ var self = this; this.originalPath = path; //絶対パスを取得 this.absolutePath = (function(){ var e = document.createElement('span'); e.innerHTML = ''; return e.firstChild.href; })(); //絶対パスを分解 var fields = {'schema' : 2, 'username' : 5, 'password' : 6, 'host' : 7, 'path' : 9, 'query' : 10, 'fragment' : 11}; var r = /^((\w+):)?(\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(this.absolutePath); for (var field in fields) { this[field] = r[fields[field]]; } this.querys = {}; if(this.query){ $.each(self.query.split('&'), function(){ var a = this.split('='); if (a.length == 2) self.querys[a[0]] = a[1]; }); } }, //現在のページと親ディレクトリへのリンク selflink: function (options) { var c = $.extend({ selfLinkAreaSelector:'body', selfLinkClass:'current', parentsLinkClass:'parentsLink', postfix: '_cr', changeImgSelf:true, changeImgParents:true }, options); $(c.selfLinkAreaSelector+((c.selfLinkAreaSelector)?' ':'')+'a[href]').each(function(){ var href = new $.yuga.Uri(this.getAttribute('href')); var setImgFlg = false; if ((href.absolutePath == location.href) && !href.fragment) { //同じ文書にリンク $(this).addClass(c.selfLinkClass); setImgFlg = c.changeImgSelf; } else if (0 <= location.href.search(href.absolutePath)) { //親ディレクトリリンク $(this).addClass(c.parentsLinkClass); setImgFlg = c.changeImgParents; } }); } }; })(jQuery); // ビフォー・アフターリスト $(function(){ $.ajax({ url:"list_before_after_wall.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("ul#list_detail.wall").append("
  • "+$("title",this).text()+"
  • ") }) } }); }); $(function(){ $.ajax({ url:"list_before_after_room.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("ul#list_detail.room").append("
  • "+$("title",this).text()+"
  • ") }) } }); }); $(function(){ $.ajax({ url:"list_before_after_outside.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("ul#list_detail.outside").append("
  • "+$("title",this).text()+"
  • ") }) } }); }); $(function(){ $.ajax({ url:"list_before_after_doboku.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("ul#list_detail.doboku").append("
  • "+$("title",this).text()+"
  • ") }) } }); }); // ビフォー・アフター詳細 $(function(){ $.ajax({ url:"list_before_after_wall.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("div#box_before_after.wall").append( "
    " + "
    " + $("title",this).text() + "
    " + "

    " + $("texts",this).text() + "

    " + "
    " + $("title_photo",this).text() + "
    " + "(" + $("building",this).text() + ")
    " + "
    " + "
    施工前
    " + "

    画像

    " + "
    " + "
    " + "
    施工後
    " + "

    画像

    " + "

    お問い合せいただくと閲覧可能になります。

    " + "

    *お問い合せいただくと閲覧可能になります。

    " + "
    " + "
    " + "
    ページトップ
    " + "

    リフォーム/改修 関連トップへ

    " ) }) } }); }); $(function(){ $.ajax({ url:"list_before_after_room.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("div#box_before_after.room").append( "
    " + "
    " + $("title",this).text() + "
    " + "

    " + $("texts",this).text() + "

    " + "
    " + $("title_photo",this).text() + "
    " + "(" + $("building",this).text() + ")
    " + "
    " + "
    施工前
    " + "

    画像

    " + "
    " + "
    " + "
    施工後
    " + "

    画像

    " + "

    お問い合せいただくと閲覧可能になります。

    " + "

    *お問い合せいただくと閲覧可能になります。

    " + "
    " + "
    " + "
    ページトップ
    " + "

    リフォーム/改修 関連トップへ

    " ) }) } }); }); $(function(){ $.ajax({ url:"list_before_after_outside.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("div#box_before_after.outside").append( "
    " + "
    " + $("title",this).text() + "
    " + "

    " + $("texts",this).text() + "

    " + "
    " + $("title_photo",this).text() + "
    " + "(" + $("building",this).text() + ")
    " + "
    " + "
    施工前
    " + "

    画像

    " + "
    " + "
    " + "
    施工後
    " + "

    画像

    " + "

    お問い合せいただくと閲覧可能になります。

    " + "

    *お問い合せいただくと閲覧可能になります。

    " + "
    " + "
    " + "
    ページトップ
    " + "

    リフォーム/改修 関連トップへ

    " ) }) } }); }); $(function(){ $.ajax({ url:"list_before_after_doboku.xml", dataType:"xml", success:function(data){ $("entry",data).each( function(number){ number = number+1; $("div#box_before_after.doboku").append( "
    " + "
    " + $("title",this).text() + "
    " + "

    " + $("texts",this).text() + "

    " + "
    " + $("title_photo",this).text() + "
    " + "(" + $("building",this).text() + ")
    " + "
    " + "
    施工前
    " + "

    画像

    " + "
    " + "
    " + "
    施工後
    " + "

    画像

    " + "

    お問い合せいただくと閲覧可能になります。

    " + "

    *お問い合せいただくと閲覧可能になります。

    " + "
    " + "
    " + "
    ページトップ
    " + "

    リフォーム/改修 関連トップへ

    " ) }) } }); });