1/** 2 * ãã¬ãã¢ã ãã¤ã¢ãã°ã®æ±ç¨æ©è½ 3 * ã©ã®ãã¼ã¸ããã§ãå¼ã³åºããããã«ãã 4 */ 5(function() { 6 'use strict'; 7 8 var PremiumDialog = { 9 /** 10 * ãã¤ã¢ãã°ã表示ãã 11 */ 12 show: function() { 13 var $dialog = $('#premium-dialog'); 14 if (!$dialog.length) { 15 return; 16 } 17 18 // bodyã«ç§»åï¼ã¾ã ç§»åãã¦ããªãå ´åï¼ 19 var parent = $dialog.parent()[0]; 20 if (parent !== document.body) { 21 $dialog.appendTo('body'); 22 } 23 24 // display: flex ãæç¤ºçã«è¨å®ãã¦ãããã§ã¼ãã¤ã³ 25 $dialog.css({ 26 'display': 'flex', 27 'opacity': 0, 28 'visibility': 'visible' 29 }); 30 31 // 次ã®ãã¬ã¼ã ã§ã¢ãã¡ã¼ã·ã§ã³éå§ï¼display: flexã確å®ã«é©ç¨ãããããã«ï¼ 32 setTimeout(function() { 33 $dialog.animate({opacity: 1}, 300); 34 }, 10); 35 }, 36 37 /** 38 * ãã¤ã¢ãã°ãé表示ã«ãã 39 */ 40 hide: function() { 41 $('#premium-dialog').fadeOut(); 42 }, 43 44 /** 45 * åæåå¦ç 46 * ã¤ãã³ããã³ãã©ãè¨å®ãã 47 */ 48 init: function() { 49 // ãã¤ã¢ãã°ãbodyã®ç´æ¥ã®åè¦ç´ ã¨ãã¦ç§»åï¼ã¹ã¿ããã³ã°ã³ã³ããã¹ãã®å½±é¿ãé¿ããããï¼ 50 var $dialog = $('#premium-dialog'); 51 if ($dialog.length && $dialog.parent()[0] !== document.body) { 52 $dialog.appendTo('body'); 53 } 54 55 // éãããã¿ã³ã¨èæ¯ã¯ãªãã¯ã§ãã¤ã¢ãã°ãéãã 56 $(document).on('click', '.premium-dialog-close, .premium-dialog-background', function(evt) { 57 evt.preventDefault(); 58 PremiumDialog.hide(); 59 }); 60 } 61 }; 62 63 // ã°ãã¼ãã«ã«å ¬é 64 if (typeof window.Booklog === 'undefined') { 65 window.Booklog = {}; 66 } 67 window.Booklog.PremiumDialog = PremiumDialog; 68 69 // DOMèªã¿è¾¼ã¿å¾ã«åæå 70 jQuery(document).ready(function($) { 71 PremiumDialog.init(); 72 }); 73 74})(); 75
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.