1$(function(){ 2 3 // ã.modal_openããã¯ãªãã¯ãããã¢ã¼ãã«ã¨é»ãèæ¯ã表示ãã 4 $('.modal_open').click(function(){ 5 6 // é»ãèæ¯ãbodyå ã«è¿½å 7 $('body').append('<div class="modal_bg"></div>'); 8 $('.modal_bg').fadeIn(); 9 10 // data-targetã®å 容ãIDã«ãã¦modalã«ä»£å ¥ 11 var modal = '#' + $(this).attr('data-target'); 12 13 // ã¢ã¼ãã«ãã¦ã£ã³ãã¦ã®ä¸å¤®ã«é ç½®ãã 14 function modalResize(){ 15 var w = $(window).width(); 16 var h = $(window).height(); 17 18 var x = (w - $(modal).outerWidth(true)) / 2; 19 var y = (h - $(modal).outerHeight(true)) / 2; 20 21 $(modal).css({'left': x + 'px','top': y + 'px'}); 22 } 23 24 // modalResizeãå®è¡ 25 modalResize(); 26 27 // modalããã§ã¼ãã¤ã³ã§è¡¨ç¤º 28 $(modal).fadeIn(); 29 30 // .modal_bgã.modal_closeãã¯ãªãã¯ãããã¢ã¼ãã«ã¨èæ¯ããã§ã¼ãã¢ã¦ãããã 31 $('.modal_bg, .modal_close').off().click(function(){ 32 $('.modal_box').fadeOut(); 33 $('.modal_bg').fadeOut('slow',function(){ 34 $('.modal_bg').remove(); 35 }); 36 }); 37 38 // ã¦ã£ã³ãã¦ããªãµã¤ãºããããã¢ã¼ãã«ã®ä½ç½®ãåè¨ç®ãã 39 $(window).on('resize', function(){ 40 modalResize(); 41 }); 42 43 // .modal_switchãæ¼ãã¨ã¢ã¼ãã«ãåãæ¿ãã 44 $('.modal_switch').click(function(){ 45 46 // æ¼ããã.modal_switchã®è¦ªè¦ç´ ã®.modal_boxããã§ã¼ãã¢ã¦ãããã 47 $(this).parents('.modal_box').fadeOut(); 48 49 // æ¼ããã.modal_switchã®data-targetã®å 容ãIDã«ãã¦modalã«ä»£å ¥ 50 var modal = '#' + $(this).attr('data-target'); 51 52 // ã¢ã¼ãã«ãã¦ã£ã³ãã¦ã®ä¸å¤®ã«é ç½®ãã 53 function modalResize(){ 54 var w = $(window).width(); 55 var h = $(window).height(); 56 57 var x = (w - $(modal).outerWidth(true)) / 2; 58 var y = (h - $(modal).outerHeight(true)) / 2; 59 60 $(modal).css({'left': x + 'px','top': y + 'px'}); 61 } 62 63 // modalResizeãå®è¡ 64 modalResize(); 65 66 $(modal).fadeIn(); 67 68 // ã¦ã£ã³ãã¦ããªãµã¤ãºããããã¢ã¼ãã«ã®ä½ç½®ãåè¨ç®ãã 69 $(window).on('resize', function(){ 70 modalResize(); 71 }); 72 }); 73 }); 74});
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.