{"version":3,"sources":["webpack:///./Scripts/readmoreproject.js"],"names":["el","element","querySelector","target","document","style","maxHeight","addEventListener","e","sectionHeight","scrollHeight","height","preventDefault","classList","toggle","contains","marginTop","innerHTML"],"mappings":"0FAAA,OAAeA,cACd,IAAIC,EAAUD,EAAGE,cAAc,oBAC/B,GAAID,EAAS,CACZ,IAAIE,EAASC,SAASF,cAAc,2BACpCC,EAAOE,MAAMC,UAAY,SAEzBL,EAAQM,iBAAiB,SAAS,SAAUC,GAC3C,IAAIC,EAAgBN,EAAOO,aAC3BP,EAAOE,MAAMM,OAASF,EAAgB,KACtCD,EAAEI,iBAEFT,EAAOU,UAAUC,OAAO,YAEpBX,EAAOU,UAAUE,SAAS,aAC7BX,SAASF,cAAc,cAAcG,MAAMW,UAAY,MACvDZ,SAASF,cAAc,yBAAyBe,UAAY,eAE5Db,SAASF,cAAc,cAAcG,MAAMW,UAAY,OACvDZ,SAASF,cAAc,yBAAyBe,UAAY,oBAE3D","file":"19.26725066b2cd846f665c.js","sourcesContent":["export default el => {\r\n\tvar element = el.querySelector(\"#projectReadMore\");\r\n\tif (element) {\r\n\t\tvar target = document.querySelector('.project-content-mobile');\r\n\t\ttarget.style.maxHeight = '9999px';\r\n\r\n\t\telement.addEventListener('click', function (e) {\r\n\t\t\tvar sectionHeight = target.scrollHeight;\r\n\t\t\ttarget.style.height = sectionHeight + 'px';\r\n\t\t\te.preventDefault();\r\n\r\n\t\t\ttarget.classList.toggle('noHeight');\r\n\r\n\t\t\tif (target.classList.contains('noHeight')) {\r\n\t\t\t\tdocument.querySelector('.read-more').style.marginTop = '0px';\r\n\t\t\t\tdocument.querySelector('.read-more > a > span').innerHTML = 'Läs mer...';\r\n\t\t\t} else {\r\n\t\t\t\tdocument.querySelector('.read-more').style.marginTop = '25px';\r\n\t\t\t\tdocument.querySelector('.read-more > a > span').innerHTML = 'Läs mindre...';\r\n\t\t\t}\r\n\t\t}, false);\r\n\t}\r\n};"],"sourceRoot":""}