$(window).on('load',function(){ var toPC_url = location.href; var newtoPC_url = toPC_url.replace('http://sp.sunny-link.jp/datsumou-pmk/','http://datsumou.pmk-j.net/'); $('.toPC').attr('href',newtoPC_url ); }); $(function(){ var target_link_img = '\ img[属性指定],\ img[src="//datsumou.pmk-j.net/images/course_epi_img01.jpg"],\ img[src="//datsumou.pmk-j.net/images/course_each_time_img01.jpg"],\ img[src="//datsumou.pmk-j.net/images/course_list_01.jpg"]\ '; $(target_link_img).each(function(){ var img_src = $(this).attr('src'); $(this).wrap('').parent().before( '' ); }); }); $(function(){ $('.main_sp img').css('max-width',''); $('#map_frame div').css('width',''); $('input[type="text"]').css('max-width',''); $('iframe').css('width',''); $('textarea').css('max-width',''); }); $(function(){ $('.course_box_bt.clearfix .alpha').before(''); $('.course_box_bt.clearfix .alpha').after(''); $('.course_box_bt.clearfix .beta').before(''); }); $(document).ready(function(){ $(".course_epi_text02").insertBefore(".course_epi_text01"); // check before() examples });