{"generator":"Code Snippets v3.5.0","date_created":"2023-09-30 18:24","snippets":[{"id":33,"name":"_______jQuery Prevent Mouse Right Click (\uad00\ub9ac\uc790 \uc678 \uc218\uc815\uae08\uc9c0)","desc":"

\uc0ac\uc6a9\ubc29\ubc95 (\uc544\ub798 \ub9c1\ud06c \ud074\ub9ad)<\/strong><\/a><\/p>\n

https:\/\/snippets.stofarm.com\/jquery_blog_prevent<\/strong><\/a><\/p>","code":"\/\/ \uc544\ub798 \ub9c1\ud06c\ub97c \ud1b5\ud574 \uc0ac\uc6a9\ubc29\ubc95\uc744 \uaf2d \ud655\uc778\ud558\uace0 \uc0ac\uc6a9\ud558\uc138\uc694!! - \ud504\ub85c\uadf8\ub798\uba38 \ubb38\ud638\uc601\n\/\/ https:\/\/snippets.stofarm.com\/jquery_blog_prevent\n\n\/\/ \uc124\uc815 \ubd80\ubd84\n$apply_for_admin = false; \/\/ \uad00\ub9ac\uc790\uc5d0\uac8c\ub3c4 \uc2a4\ud06c\ub9bd\ud2b8 \uc801\uc6a9 \uc5ec\ubd80 (true: \uc801\uc6a9, false: \uc801\uc6a9 \uc548\ud568)\n$blockRightClick = true; \/\/ \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ud074\ub9ad \uc81c\ud55c (true: \uc81c\ud55c, false: \ud5c8\uc6a9)\n$blockTextSelect = true; \/\/ \ub9c8\uc6b0\uc2a4 \ub4dc\ub798\uadf8\ub85c \ud14d\uc2a4\ud2b8 \uc120\ud0dd \uc81c\ud55c (true: \uc81c\ud55c, false: \ud5c8\uc6a9)\n$blockCopy = true; \/\/ Ctrl + C \ubcf5\uc0ac \uae30\ub2a5 \uc81c\ud55c (true: \uc81c\ud55c, false: \ud5c8\uc6a9)\n$blockSelectAll = true; \/\/ Ctrl + A \uc804\uccb4 \uc120\ud0dd \uae30\ub2a5 \uc81c\ud55c (true: \uc81c\ud55c, false: \ud5c8\uc6a9)\n$sourceCreditEnabled = true; \/\/ \ubcf5\uc0ac \uc2dc \ucd9c\ucc98 \ucd94\uac00 \uae30\ub2a5 \ud65c\uc131\ud654 (true: \ud65c\uc131\ud654, false: \ube44\ud65c\uc131\ud654)\n$sourceText = '\ucd9c\ucc98: ' . get_bloginfo('url'); \/\/ \ucd9c\ucc98\ub85c \ud45c\uae30\ud560 \ud14d\uc2a4\ud2b8. \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc0ac\uc774\ud2b8 \uc8fc\uc18c \uc0ac\uc6a9\n\nfunction generate_prevent_script($apply_for_admin, $blockRightClick, $blockTextSelect, $blockCopy, $blockSelectAll, $sourceCreditEnabled, $sourceText) {\n ob_start(); \/\/ \ubc84\ud37c\ub9c1 \uc2dc\uc791\n\n if ($apply_for_admin || !current_user_can('manage_options')) {\n echo '';\n if (!wp_script_is('jquery', 'done')) {\n echo '