{"version":3,"file":"index7.js","sources":["../../src/scripts/pages/articles/index.js"],"sourcesContent":["import \"@/styles/pages/articles.scss\";\nimport Swiper from \"swiper\";\n\n$(function () {\n const swiperNews = new Swiper(\".swiper.swiper__news\", {\n slidesPerView: \"auto\",\n spaceBetween: 12,\n\n breakpoints: {\n 1180: {\n spaceBetween: 30,\n slidesPerView: \"4\",\n },\n },\n });\n\n // social share\n $(\"#share-button-fb\")\n .off()\n .click(function () {\n const forShareUrl = window.location.origin + window.location.pathname;\n const baseUrl = \"https://www.facebook.com/sharer.php?u=\";\n const completeUrl = baseUrl + encodeURIComponent(forShareUrl);\n\n window.open(completeUrl, \"_blank\");\n\n return false;\n });\n\n $(\"#share-button-line\")\n .off()\n .click(function () {\n const forShareUrl = window.location.origin + window.location.pathname;\n const title = $('.article__title').text();\n\n let baseUrl = \"http://line.naver.jp/R/msg/text/?\";\n let completeUrl;\n\n completeUrl =\n baseUrl + encodeURIComponent(title) + \"%0D%0A\"+ encodeURIComponent(forShareUrl) + encodeURIComponent(\"?openExternalBrowser=1\");\n\n window.open(completeUrl);\n\n return false;\n });\n\n $(\"#share-button-link\")\n .off()\n .click(function () {\n navigator.clipboard\n .writeText(window.location.origin + window.location.pathname)\n .then(function () {\n alert(\"複製成功\");\n })\n .catch(function (err) {\n alert(\"無法複製 URL: \" + err);\n });\n return false;\n });\n});\n"],"names":[],"mappings":";;;AAGA,EAAE,WAAY;AACO,MAAI,OAAO,wBAAwB;AAAA,IACpD,eAAe;AAAA,IACf,cAAc;AAAA,IAEd,aAAa;AAAA,MACX,MAAM;AAAA,QACJ,cAAc;AAAA,QACd,eAAe;AAAA,MAChB;AAAA,IACF;AAAA,EACL,CAAG;AAGD,IAAE,kBAAkB,EACjB,IAAI,EACJ,MAAM,WAAY;AACjB,UAAM,cAAc,OAAO,SAAS,SAAS,OAAO,SAAS;AAC7D,UAAM,UAAU;AAChB,UAAM,cAAc,UAAU,mBAAmB,WAAW;AAE5D,WAAO,KAAK,aAAa,QAAQ;AAEjC,WAAO;AAAA,EACb,CAAK;AAEH,IAAE,oBAAoB,EACnB,IAAI,EACJ,MAAM,WAAY;AACjB,UAAM,cAAc,OAAO,SAAS,SAAS,OAAO,SAAS;AAC7D,UAAM,QAAQ,EAAE,iBAAiB,EAAE,KAAI;AAEvC,QAAI,UAAU;AACd,QAAI;AAEJ,kBACE,UAAU,mBAAmB,KAAK,IAAI,WAAU,mBAAmB,WAAW,IAAI,mBAAmB,wBAAwB;AAE/H,WAAO,KAAK,WAAW;AAEvB,WAAO;AAAA,EACb,CAAK;AAEH,IAAE,oBAAoB,EACnB,IAAI,EACJ,MAAM,WAAY;AACjB,cAAU,UACP,UAAU,OAAO,SAAS,SAAS,OAAO,SAAS,QAAQ,EAC3D,KAAK,WAAY;AAChB,YAAM,MAAM;AAAA,IACtB,CAAS,EACA,MAAM,SAAU,KAAK;AACpB,YAAM,eAAe,GAAG;AAAA,IAClC,CAAS;AACH,WAAO;AAAA,EACb,CAAK;AACL,CAAC;"}