Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software_development:html_css_javascript [2020/02/29 06:12] – ↷ Page moved from blog:software_development:html_css_javascript to software_development:html_css_javascript prgram | software_development:html_css_javascript [2025/07/07 14:12] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
https:// | https:// | ||
+ | |||
+ | ==== Location ==== | ||
+ | <code javascript> | ||
+ | location.hash ="# | ||
+ | $(location).attr(' | ||
+ | </ | ||
+ | ==== List, Dictionary ==== | ||
+ | <code javascript> | ||
+ | prod = { " | ||
+ | for (var key in prod) { | ||
+ | key | ||
+ | prod[key] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== CSS Style ==== | ||
+ | <code javascript> | ||
+ | $('# | ||
+ | $('# | ||
+ | $(' | ||
+ | |||
+ | $(this).attr(' | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code css> | ||
+ | @media (min-width: 768px) { | ||
+ | /* wide mode css */ | ||
+ | .classname { | ||
+ | attr : value !important; /* override */ | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ==== String ==== | ||
+ | <code javascript> | ||
+ | function comma(str) { // 숫자에 컴마 및 원 붙이기 | ||
+ | str = String(str); | ||
+ | return str.replace(/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== resize ==== | ||
+ | <code javascript> | ||
+ | $(window).on(' | ||
+ | if ($(window).width() >= 768) { | ||
+ | set_tablet_mode(); | ||
+ | status = " | ||
+ | } else { | ||
+ | status = " | ||
+ | } | ||
+ | }); | ||
+ | </ | ||
==== disable Telephone Link on Desktop ==== | ==== disable Telephone Link on Desktop ==== | ||