728x90 ๐ฅ๏ธํ๋ก ํธ์๋67 ์๋ฐ์คํฌ๋ฆฝํธ - XPATH ๋ฌธ๋ฒ์ผ๋ก DOM ELEMENT ๊ฐ์ ธ์ค๊ธฐ XPATH ๋ฌธ๋ฒ์ผ๋ก ๋จ์ผ ์์ ๊ฐ์ ธ์ค๊ธฐ function getElementByXpath(path){ return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } console.log( getElementByXpath("//html[1]/body[1]/div[1]")); XPATH ๋ฌธ๋ฒ์ผ๋ก ๋ค์ค ์์ ๊ฐ์ ธ์ค๊ธฐ function getElementsByXPath(xpath, parent) { let results = []; let query = document.evaluate(xpath, parent || document, null, XPathResult.ORDERED_NODE.. 2023. 11. 12. ์๋ฐ์คํฌ๋ฆฝํธ - GET ํ๋ผ๋ฏธํฐ ์ถ์ถํ๊ธฐ let url = new URL("https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8&q=mdn%20query%20string") let params = new URLSearchParams(url.search); let sourceid = params.get('sourceid') // 'chrome-instant' let q = params.get('q') // 'mdn query string' let ie = params.has('ie') // true params.append('ping','pong') console.log(sourceid) console.log(q) console.log(ie) console.log(p.. 2023. 10. 26. ๋ฆฌ์กํธ - ์ฐํด๋ฆญ ๋ฉ๋ด ๊ตฌํํ๊ธฐ(context menu) https://blog.logrocket.com/creating-react-context-menu/ Creating a React context menu - LogRocket Blog Explore how to create a React context menu, the shortcuts to activate right-click menus, and how to create a custom context menu Hook. blog.logrocket.com // context menu const [clicked, setClicked] = useState(false); const [points, setPoints] = useState({ x: 0, y: 0 }); const [selectedTr, setSe.. 2023. 10. 13. HTML - ํฐ์คํ ๋ฆฌ ๋คํฌ๋ชจ๋ ํ ๊ธ ๋ฒํผ HTML ๐ CSS /* ๋คํฌ๋ชจ๋ */ .dark body{ background-color: #161618 !important; color: rgb(255, 255, 255) !important; font-weight: 700 !important; } 2023. 9. 30. Jekyll - Github Pages์ jekyll theme deployํ๊ธฐ 1. ์ํ๋ ํ ๋ง๋ฅผ ํฌํฌ ํ๋ค. 2. ๋ ํฌ์งํ ๋ฆฌ ์ด๋ฆ์ {๋ด ๊นํ๋ธ์์ด๋}.github.io๋ก ์ง์ ํ๋ค. 3. ํฌํฌ๋ ๋ ํฌ์งํ ๋ฆฌ์ Settings๋ก ๊ฐ๋ค. 4. Pages์์ "Build and deployment" ํญ๋ชฉ์ Source๋ฅผ "GitHub Actions"๋ก ๋ฐ๊พผ๋ค. 5. ์ค์ ํ์ผ์ ๋ง๋๋ ์ ํ์ด ๋์ค๋ฏ๋ก ๋๋ฌ์ jekyll.yml ์ค์ ํ์ผ์ ๋ง๋ ๋ค. 6. ๋ ํฌ์งํ ๋ฆฌ์ Actions๋ก ๊ฐ์ Deploying ์งํ ๊ณผ์ ์ ๊ธฐ๋ค๋ฆฐ๋ค. 7. ์์ฑ์ด ์๋ฃ๋์๋ค๋ฉด {๋ด ๊นํ๋ธ์์ด๋}.github.io๋ก ์ ์ํ๋ค. ์ฐธ๊ณ : https://www.youtube.com/shorts/Kq28yBigDYw 2023. 9. 25. ์๋ฐ์คํฌ๋ฆฝํธ - ์๋ฐ์คํฌ๋ฆฝํธ ๋๋ ํ ์ฌ์ดํธ(obfuscator.io) ์ฌ์ดํธ ์ฃผ์ https://obfuscator.io/ JavaScript Obfuscator Tool JavaScript Obfuscator Tool A free and efficient obfuscator for JavaScript (including support of ES2022). Make your code harder to copy and prevent people from stealing your work. This tool is a Web UI to the excellent (and open source) javascript-obfuscato obfuscator.io // Paste your JavaScript code here function hi() { console.log("Hello .. 2023. 9. 5. Jekyll - ๊นํ๋ธ ํ์ด์ง Jekyll ---layout: home # Index page--- ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ .github/workflows/pages-deploy.yml ruby-version: 3.1 ruby-version์ 3์์ 3.1๋ก ๋ณ๊ฒฝํ๊ณ branches๋ฅผ master๋ก ์์ ํ๋ ํด๊ฒฐ์ด ๋ ๊ฒ ๊ฐ๋ค. ๋ ์๋๋ฉด 3.1์์ 3์ผ๋ก ์์ ํ๋๊น ์ ๋๋ก ์๋์ด ๋๋ค(?????????????) ์ถ์ฒ: https://velog.io/@hashnsalt/Github-Blog-%EB%A7%8C%EB%93%A4%EA%B8%B0-2 ๐Github Blog ๋ง๋ค๊ธฐ-2 22/08/01 7์ 31์ผ์ ๊ฒช์ ์ ๋ง์ ์ค๋ฅ๊ฐ ์๋ง์ด์์์ ๊ทธ๋ ๊นจ๋ซ์ง ๋ชปํ์ต๋๋ค ๋ด ๋ชฉํ๋ github๋ก ๊ธฐ์ ๋ธ๋ก๊ทธ๋ฅผ ๊ฐ์คํ๋ ๊ฒ. ์ ํํ ํ ๋ง๋ Chirpy theme. velog.io 2023. 8. 31. CSS - ์ธ๊ธฐ ์๋ ๋์์ธ ํ๋ ์์ํฌ(Tailwind CSS) https://tailwindcss.com/ Tailwind CSS - Rapidly build modern websites without ever leaving your HTML. Tailwind CSS is a utility-first CSS framework for rapidly building modern websites without ever leaving your HTML. tailwindcss.com https://flowbite.com/ https://flowbite.com/ flowbite.com 2023. 8. 28. CSS - ๋ฏธ๋์ด์ฟผ๋ฆฌ ํ์ธ ์ฌ์ดํธ(mediaqueriestest.com) https://mediaqueriestest.com/CSS3 Media Queries Test on your browserCSS3 Media Queries is the heart of Responsive Design. This website will test all the features on your own browser, including screen dimensions, resolution and available extensions.mediaqueriestest.com 2023. 8. 28. Expo - ์น๋ทฐ ERR_CLEARTEXT_NOT_PERMITTED ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ app.json "plugins": [ [ "expo-build-properties", { "android": { "usesCleartextTraffic": true } } ] ]"usesCleartextTraffic": true๋ฅผ ์ถ๊ฐํ๋ค. ์ถ์ฒ: https://docs.expo.dev/versions/latest/sdk/build-properties/ BuildPropertiesA config plugin that allows customizing native build properties during prebuild.docs.expo.dev 2023. 8. 15. ์๋ฐ์คํฌ๋ฆฝํธ - XPath ๋ค๋ฃจ๊ธฐ, ๋ฐ์์๋ ํ ์คํธ ์ฌ์ดํธ ํต ๋ง๋ค๊ธฐ XPath ์ ํ์์ธ $x๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ๋ ์์ง๋ง, setInterval ํจ์ ๋ด์ $x ์ ํ์๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ๋ฉด VM3146:2 Uncaught ReferenceError: $x is not defined at :2:12 ์ด๋ผ๋ ์ค๋ฅ ๋ฉ์์ง๊ฐ ๋์จ๋ค. ๊ทธ๋์ evaluate ๋ฉ์๋๋ฅผ ์ด์ฉํด XPath ํํ์์ผ๋ก ํน์ ์์๋ฅผ ์ฐพ๋ ๋ฐฉ๋ฒ์ ๋์ ํ ์ ์๋ค. evaluate ํจ์ ๊ตฌ๋ฌธ evaluate(xpathExpression, contextNode, namespaceResolver, resultType, result) ๋งค๊ฐ ๋ณ์ xpathExpression - XPath ํํ์์ด ์จ๋ค. contextNode - document ๊ฐ์ context ๋ ธ๋๊ฐ ์ ๋ ฅ๋๋ค. resultType - ๊ฒฐ๊ณผ ์ ํ์ ๋ง๋.. 2023. 6. 23. ์๋ฐ์คํฌ๋ฆฝํธ - http๋ฅผ https๋ก ๋ฆฌ๋ค์ด๋ ํธ if (window.location.protocol != "https:") { window.location.href = "https:" + window.location.href.substring(window.location.protocol.length); } if (document.location.protocol == 'http:') { document.location.href = document.location.href.replace('http:', 'https:'); } ์ถ์ฒ: https://greendreamtrre.tistory.com/672 Javascript (์๋ฐ์คํฌ๋ฆฝํธ) HTTP ์ ์ ์ HTTPS๋ก ๋ฆฌ๋ค์ด๋ ํธ ๋ณดํต์ ํฐ์บฃ ์๋ฒ ์ค์ ๋ฑ์์ ์๋์ผ๋ก ๋ฆฌ๋ค์ด๋ ํธ ์ํค๋๋ก ํ์ง๋ง ๊ฐ ํ์ด์ง๋ง๋ค.. 2023. 5. 18. ์ด์ 1 2 3 4 ยทยทยท 6 ๋ค์ 728x90