{"version":3,"file":"js/resources_src_js_share_components__fontSize_js.min.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL,CAAC","sources":["webpack://laravel/./resources/src/js/share/components/_fontSize.js"],"sourcesContent":["$(function() {\r\n if ($('.font_size_ori').length == 0) return;\r\n\r\n const winW = $(window).width();\r\n const fontsize = $('.fontsize');\r\n const plus = $('.font_size_plus');\r\n const minus = $('.font_size_minus');\r\n const ori = $('.font_size_ori');\r\n let _this, fz, _fz;\r\n let num = 0;\r\n // let ori_fz = 16;\r\n // if (winW <= 950) ori_fz = 10;\r\n // if (winW <= 480) ori_fz = 12.65;\r\n fontsize.each(function(ind, obj) {\r\n _this = $(obj);\r\n fz = _this.css('font-size');\r\n // _fz = Math.round(parseFloat(fz)) / ori_fz + 'rem';\r\n _this.attr('ori', fz);\r\n });\r\n plus.click(function() {\r\n fontsize.each(function(ind, obj) {\r\n _this = $(obj);\r\n fz = _this.css('font-size');\r\n // _fz = (Math.round(parseFloat(fz)) + 1) / ori_fz + 'rem';\r\n _fz = (Math.round(parseFloat(fz)) + 1) + 'px';\r\n _this.css('font-size', _fz);\r\n });\r\n if (num < 3) {\r\n num++;\r\n minus.attr('disabled', false);\r\n } else {\r\n num++;\r\n $(this).attr('disabled', true);\r\n }\r\n });\r\n minus.click(function() {\r\n fontsize.each(function(ind, obj) {\r\n _this = $(obj);\r\n fz = _this.css('font-size');\r\n // _fz = (Math.round(parseFloat(fz)) - 1) / ori_fz + 'rem';\r\n _fz = (Math.round(parseFloat(fz)) - 1) + 'px';\r\n _this.css('font-size', _fz);\r\n });\r\n if (num > -3) {\r\n num--;\r\n plus.attr('disabled', false);\r\n } else {\r\n num--;\r\n $(this).attr('disabled', true);\r\n }\r\n });\r\n ori.click(function() {\r\n fontsize.each(function(ind, obj) {\r\n _this = $(obj);\r\n _fz = _this.attr('ori');\r\n _this.css('font-size', _fz);\r\n });\r\n num = 0;\r\n minus.attr('disabled', false);\r\n plus.attr('disabled', false);\r\n });\r\n});"],"names":[],"sourceRoot":""}