1$(document).ready(function() { 2 // #3588: Colorbox browser back 3 var open_hash = "#cbox-open" 4 $(document).on('cbox_open', function(){ 5 location.hash = open_hash; 6 }); 7 $(document).on('cbox_closed', function(){ 8 if(location.hash === open_hash) { 9 history.back(); 10 } 11 }); 12 $(window).on('hashchange', function(e) { 13 if(location.hash != open_hash) { 14 if('oldURL' in e.originalEvent) { 15 // ç¡é§ãªcloseå¦çãé¿ããããoldURLãå¤å® 16 if(e.originalEvent.oldURL.indexOf(open_hash) != -1) { 17 $.colorbox.close(); 18 } 19 } else { 20 // hashchangeã¤ãã³ãã«oldURLããªããã©ã¦ã¶å¯¾ç 21 $.colorbox.close(); 22 } 23 } 24 }); 25}); 26 27$(document).ready(function() { 28 // Contact Us 29 var ua = window.navigator.userAgent; 30 var absolute_mode = is_absolute_mode(ua); 31 var ios10 = is_ios10(ua); 32 var tmp_display_value = []; 33 var top; 34 var FRAME_LOAD_MESSAGE = 'cr-contactus-load'; 35 $(".contact_area a, .form_v2_area a").colorbox({ 36 iframe:true, 37 width:"90%", 38 height:"95%", 39 maxWidth:"800px", 40 fixed:!absolute_mode, 41 opacity:0.30, 42 reposition:false, 43 fastIframe:false, 44 onLoad: function() { 45 top = $(window).scrollTop(); 46 }, 47 onComplete: function() { 48 var content_default_height = $('#colorbox #cboxLoadedContent').height(); 49 $('#colorbox .cboxIframe') 50 .css('min-height', content_default_height) 51 .height($('#colorbox .cboxIframe').height()) 52 .on('load', function() { 53 // iframeå ã®ãã¼ã¸é·ç§»ãæ¤ç¥ããé«ãã¨iOSã®å ´åã¯ã¹ã¯ãã¼ã«ä½ç½®ãåè¨å® 54 $('#colorbox .cboxIframe').css('height', '100%').height( $('#colorbox .cboxIframe').height() ); 55 $(window).scrollTop(0); 56 }); 57 if(absolute_mode) absolute_mode_func(); 58 }, 59 onCleanup: function() { 60 $(window).scrollTop(top).off("message.contactus"); 61 }, 62 onClosed: function() { 63 if(absolute_mode) { 64 $('body').children(':not("#colorbox,#cboxOverlay")').css('display', ''); 65 $.each(tmp_display_value, function(idx, obj) { $(obj[0]).css('display', obj[1]); }); 66 } 67 $(window).scrollTop(top); 68 }, 69 }); 70 71 function absolute_mode_func() { 72 /* ã¢ã¼ãã«è¡¨ç¤ºå¾ãµã¤ãHTMLãé ããå¾ãã§ã¹ã¯ãã¼ã«ä¸å¯ã«ãã */ 73 $('#colorbox,#cboxWrapper').css('overflow', 'visible').css('height', 'auto'); 74 $('#cboxWrapper').css('height', '100%'); 75 $('#colorbox').css('top', '0'); 76 $(window).scrollTop(0); 77 // ã¢ã¼ãã«ä»¥å¤ã®è¦ç´ ãé表示 78 var target = $('body').children(':not("#colorbox,#cboxOverlay")'); 79 tmp_display_value = []; 80 $.each(target, function(idx, elem) { 81 if( $(elem).attr('style') && $(elem).attr('style').indexOf('display') != -1) { 82 tmp_display_value.push([elem, $(elem).css('display')]); 83 } 84 }); 85 target.css('display', 'none'); 86 if(ios10) { 87 // #3580: iOS10ã®å ´åã¯ã¢ã¼ãã«å é¨ãå ¨è¡¨ç¤º 88 $('#colorbox,#cboxWrapper,#cboxMiddleLeft,#cboxContent,#cboxLoadedContent').css('height', 'auto'); 89 } 90 } 91 function is_absolute_mode(ua) { 92 return ( ua.indexOf("iPhone") != -1 93 || ua.indexOf("iPad") != -1 94 || ua.indexOf("Android") != -1 95 ); 96 } 97 function is_ios10(ua) { 98 return ( ua.indexOf("iPhone OS 10") != -1 || ua.indexOf("iPad; CPU OS 10") != -1 ); 99 } 100});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.