1 $(document).ready(function () { 2 $('.open-popup').magnificPopup({ 3 type: 'inline', 4 midClick: true, 5 mainClass: 'mfp-fade', 6 removalDelay: 500, 7 callbacks: { 8 open: function () { 9 // ãããã¢ããå ã®ãªã³ã¯ã«ã¯ãªãã¯ã¤ãã³ããè¨å® 10 $('.mfp-content a[href^="#"]').on('click', function (e) { 11 e.preventDefault(); // ããã©ã«ãåä½ãé²ã 12 13 var target = $(this).attr('href'); // ã¢ã³ã«ã¼ãªã³ã¯ã®ã¿ã¼ã²ããåå¾ 14 var targetOffset = $(target).offset().top; // ã¿ã¼ã²ããã®ä½ç½®ãåå¾ 15 16 // ãããã¢ãããéãã 17 $.magnificPopup.close(); 18 19 // ãããã¢ãããéããå¾ã«ã¹ã¯ãã¼ã«ä½ç½®ãè¨å® 20 setTimeout(function () { 21 $('html, body').animate({ scrollTop: targetOffset }, 500); 22 }, 500); // removalDelay ã¨åãæéãè¨å® 23 }); 24 }, 25 close: function () { 26 $('.mfp-content a[href^="#"]').off('click'); // ã¤ãã³ããè§£é¤ 27 } 28 } 29 }); 30 });
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.