Plugin Directory

Changeset 2698218


Ignore:
Timestamp:
03/23/2022 10:11:41 AM (4 years ago)
Author:
plugindeveloper
Message:

issue fixed of chrome

Location:
easy-content-protector/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • easy-content-protector/trunk/assets/js/main.js

    r2696224 r2698218  
    3535            },
    3636
    37             drag_start: function( e ){
     37            selection_change: function( e ){
    3838               
    39                 Easy_Content_Protector.Snipits.show_alert( 'selection' );
    40 
     39                var get_selection = window.getSelection();
     40                if(get_selection.toString() !== '' ){
     41                    get_selection.empty();
     42                    Easy_Content_Protector.Snipits.show_alert( 'selection' );
     43                }
    4144                return false;
    4245            },
     
    100103
    101104            if(config.disable_selection == "1" ){
    102                 $(document).on( 'selectstart', snipits.drag_start );
    103             }           
     105                $(document).on( 'selectionchange', snipits.selection_change );
     106            }
    104107           
    105108            if(config.disable_cut == "1" ){
  • easy-content-protector/trunk/assets/js/main.min.js

    r2696224 r2698218  
    1 !function(c){"use strict";var s={Snipits:{close_alert:function(e){c(this).removeClass("open")},show_alert:function(e){c(".ecp-wrapper .ecp-alert").removeClass("open"),c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').addClass("open"),setTimeout(function(){c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').removeClass("open")},1500)},context_menu:function(e){return s.Snipits.show_alert("right-click"),!1},drag_start:function(e){return s.Snipits.show_alert("selection"),!1},disable_cut:function(e){s.Snipits.show_alert("cut"),e.preventDefault()},disable_copy:function(e){s.Snipits.show_alert("copy"),e.preventDefault()},disable_paste:function(e){s.Snipits.show_alert("paste"),e.preventDefault()},inspect_element:function(e){(e.ctrlKey&&e.shiftKey&&73==e.which||123==e.which)&&(s.Snipits.show_alert("inspect-element"),e.preventDefault())},view_source:function(e){e.ctrlKey&&85==e.which&&(s.Snipits.show_alert("view-source"),e.preventDefault())}},Events:function(){var e=s.Snipits,t=content_protector_config;"1"==t.disable_right_click&&c(document).on("contextmenu",e.context_menu),"1"==t.disable_selection&&c(document).on("selectstart",e.drag_start),"1"==t.disable_cut&&c(document).on("cut",e.disable_cut),"1"==t.disable_copy&&c(document).on("copy",e.disable_copy),"1"==t.disable_paste&&c(document).on("paste",e.disable_paste),"1"==t.disable_inspect_element&&c(document).on("keydown",e.inspect_element),"1"==t.disable_view_source&&c(document).on("keydown",e.view_source),c(document).on("click",".ecp-alert",e.close_alert)},Ready:function(){var e=s;e.Snipits;e.Events()},Load:function(){},Resize:function(){},Scroll:function(){},Init:function(){var e=s,t=e.Ready,n=e.Load,i=e.Resize,o=e.Scroll;c(document).ready(t),c(window).load(n),c(window).scroll(o),c(window).resize(i)}};s.Init()}(jQuery);
     1!function(c){"use strict";var s={Snipits:{close_alert:function(e){c(this).removeClass("open")},show_alert:function(e){c(".ecp-wrapper .ecp-alert").removeClass("open"),c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').addClass("open"),setTimeout(function(){c('.ecp-wrapper .ecp-alert[data-event="'+e+'"]').removeClass("open")},1500)},context_menu:function(e){return s.Snipits.show_alert("right-click"),!1},selection_change:function(e){var t=window.getSelection();return""!==t.toString()&&(t.empty(),s.Snipits.show_alert("selection")),!1},disable_cut:function(e){s.Snipits.show_alert("cut"),e.preventDefault()},disable_copy:function(e){s.Snipits.show_alert("copy"),e.preventDefault()},disable_paste:function(e){s.Snipits.show_alert("paste"),e.preventDefault()},inspect_element:function(e){(e.ctrlKey&&e.shiftKey&&73==e.which||123==e.which)&&(s.Snipits.show_alert("inspect-element"),e.preventDefault())},view_source:function(e){e.ctrlKey&&85==e.which&&(s.Snipits.show_alert("view-source"),e.preventDefault())}},Events:function(){var e=s.Snipits,t=content_protector_config;"1"==t.disable_right_click&&c(document).on("contextmenu",e.context_menu),"1"==t.disable_selection&&c(document).on("selectionchange",e.selection_change),"1"==t.disable_cut&&c(document).on("cut",e.disable_cut),"1"==t.disable_copy&&c(document).on("copy",e.disable_copy),"1"==t.disable_paste&&c(document).on("paste",e.disable_paste),"1"==t.disable_inspect_element&&c(document).on("keydown",e.inspect_element),"1"==t.disable_view_source&&c(document).on("keydown",e.view_source),c(document).on("click",".ecp-alert",e.close_alert)},Ready:function(){var e=s;e.Snipits;e.Events()},Load:function(){},Resize:function(){},Scroll:function(){},Init:function(){var e=s,t=e.Ready,n=e.Load,i=e.Resize,o=e.Scroll;c(document).ready(t),c(window).load(n),c(window).scroll(o),c(window).resize(i)}};s.Init()}(jQuery);
  • easy-content-protector/trunk/easy-content-protector.php

    r2696224 r2698218  
    44Plugin URI: https://wordpress.org/plugins/easy-content-protector/
    55Description: Simple way to protect your content
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: plugindeveloper
    88Author URI: https://profiles.wordpress.org/plugindeveloper/
     
    2727
    2828            if(!defined('EASY_CONTENT_PROTECTOR_VERSION')){
    29                 define( 'EASY_CONTENT_PROTECTOR_VERSION', '1.0.0' );
     29                define( 'EASY_CONTENT_PROTECTOR_VERSION', '1.0.1' );
    3030            }
    3131
  • easy-content-protector/trunk/inc/hooks/enqueue.php

    r2696224 r2698218  
    3838        );
    3939
    40         wp_enqueue_style( 'easy-content-protector-main-css', easy_content_protector_assets_url('css/main'.$prefix.'.css'), array(), '1.0.0' );
     40        wp_enqueue_style( 'easy-content-protector-main-css', easy_content_protector_assets_url('css/main'.$prefix.'.css'), array(), '1.0.1' );       
    4141       
    42        
    43         wp_enqueue_script( 'easy-content-protector-main-js', easy_content_protector_assets_url('js/main'.$prefix.'.js'), array('jquery'), '1.0.0', true );
     42        wp_enqueue_script( 'easy-content-protector-main-js', easy_content_protector_assets_url('js/main'.$prefix.'.js'), array('jquery'), '1.0.1', true );
    4443
    4544        wp_localize_script( 'easy-content-protector-main-js', 'content_protector_config', $data );
     
    5251
    5352        if(isset($_GET['page']) && $_GET['page'] == 'easy-content-protector' ){
    54             wp_enqueue_style( 'easy-content-protector-admin', easy_content_protector_assets_url('css/admin'.$prefix.'.css'), array(), '1.0.0' );
     53            wp_enqueue_style( 'easy-content-protector-admin', easy_content_protector_assets_url('css/admin'.$prefix.'.css'), array(), '1.0.1' );
    5554        }
    5655
  • easy-content-protector/trunk/lang/easy-content-protector.pot

    r2696224 r2698218  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Easy Content Protector 1.0.0\n"
     5"Project-Id-Version: Easy Content Protector 1.0.1\n"
    66"Report-Msgid-Bugs-To: plugindeveloperofficial@gmail.com\n"
    7 "POT-Creation-Date: 2022-03-18 19:37:07+00:00\n"
     7"POT-Creation-Date: 2022-03-23 10:08:22+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    1414"X-Generator: grunt-wp-i18n 1.0.3\n"
    1515
    16 #: inc/classes/setting.php:28
     16#: inc/classes/setting.php:28 uploads/tags/1.0.0/inc/classes/setting.php:28
    1717msgid "Page Heading"
    1818msgstr ""
    1919
    20 #: inc/classes/setting.php:29
     20#: inc/classes/setting.php:29 uploads/tags/1.0.0/inc/classes/setting.php:29
    2121msgid "Section Title"
    2222msgstr ""
    2323
    24 #: inc/classes/setting.php:30
     24#: inc/classes/setting.php:30 uploads/tags/1.0.0/inc/classes/setting.php:30
    2525msgid "Menu Name"
    2626msgstr ""
    2727
    28 #: inc/classes/setting.php:36
     28#: inc/classes/setting.php:36 uploads/tags/1.0.0/inc/classes/setting.php:36
    2929msgid "Title"
    3030msgstr ""
    3131
    32 #: inc/classes/setting.php:37
     32#: inc/classes/setting.php:37 uploads/tags/1.0.0/inc/classes/setting.php:37
    3333msgid "Description"
    3434msgstr ""
    3535
    36 #: inc/classes/setting.php:41
     36#: inc/classes/setting.php:41 uploads/tags/1.0.0/inc/classes/setting.php:41
    3737msgid "Default Value."
    3838msgstr ""
    3939
    40 #: inc/classes/setting.php:42
     40#: inc/classes/setting.php:42 uploads/tags/1.0.0/inc/classes/setting.php:42
    4141msgid "Field Name"
    4242msgstr ""
    4343
    44 #: inc/core/default.php:17
     44#: inc/core/default.php:17 uploads/tags/1.0.0/inc/core/default.php:17
    4545msgid "Sorry this site disable right click"
    4646msgstr ""
    4747
    48 #: inc/core/default.php:19
     48#: inc/core/default.php:19 uploads/tags/1.0.0/inc/core/default.php:19
    4949msgid "Sorry this site disable selection"
    5050msgstr ""
    5151
    52 #: inc/core/default.php:21
     52#: inc/core/default.php:21 uploads/tags/1.0.0/inc/core/default.php:21
    5353msgid "Sorry this site is not allow cut."
    5454msgstr ""
    5555
    5656#: inc/core/default.php:23 inc/options/settings.php:60
     57#: uploads/tags/1.0.0/inc/core/default.php:23
     58#: uploads/tags/1.0.0/inc/options/settings.php:60
    5759msgid "Sorry this site is not allow copy."
    5860msgstr ""
    5961
    60 #: inc/core/default.php:25
     62#: inc/core/default.php:25 uploads/tags/1.0.0/inc/core/default.php:25
    6163msgid "Sorry this site is not allow paste."
    6264msgstr ""
    6365
    64 #: inc/core/default.php:27
     66#: inc/core/default.php:27 uploads/tags/1.0.0/inc/core/default.php:27
    6567msgid "Sorry this site is not allow to inspect element."
    6668msgstr ""
    6769
    68 #: inc/core/default.php:29
     70#: inc/core/default.php:29 uploads/tags/1.0.0/inc/core/default.php:29
    6971msgid "Sorry this site is not allow to view source."
    7072msgstr ""
    7173
    72 #: inc/hooks/notices.php:29
     74#: inc/hooks/notices.php:29 uploads/tags/1.0.0/inc/hooks/notices.php:29
    7375msgid ""
    7476"You are successfully installed the Copy Protection plugin. You can "
     
    7678msgstr ""
    7779
    78 #: inc/options/settings.php:17
     80#: inc/options/settings.php:17 uploads/tags/1.0.0/inc/options/settings.php:17
    7981msgid "Content Protector Settings"
    8082msgstr ""
    8183
    82 #: inc/options/settings.php:18
     84#: inc/options/settings.php:18 uploads/tags/1.0.0/inc/options/settings.php:18
    8385msgid "Content Protector Options"
    8486msgstr ""
    8587
    86 #: inc/options/settings.php:19
     88#: inc/options/settings.php:19 uploads/tags/1.0.0/inc/options/settings.php:19
    8789msgid "Content Protector"
    8890msgstr ""
    8991
    90 #: inc/options/settings.php:25
     92#: inc/options/settings.php:25 uploads/tags/1.0.0/inc/options/settings.php:25
    9193msgid "General Settings"
    9294msgstr ""
    9395
    94 #: inc/options/settings.php:26
     96#: inc/options/settings.php:26 uploads/tags/1.0.0/inc/options/settings.php:26
    9597msgid "Hello Description"
    9698msgstr ""
    9799
    98 #: inc/options/settings.php:31
     100#: inc/options/settings.php:31 uploads/tags/1.0.0/inc/options/settings.php:31
    99101msgid "Disable right click"
    100102msgstr ""
    101103
    102 #: inc/options/settings.php:37
     104#: inc/options/settings.php:37 uploads/tags/1.0.0/inc/options/settings.php:37
    103105msgid "Message on right click"
    104106msgstr ""
    105107
    106 #: inc/options/settings.php:43
     108#: inc/options/settings.php:43 uploads/tags/1.0.0/inc/options/settings.php:43
    107109msgid "Disable selection"
    108110msgstr ""
    109111
    110 #: inc/options/settings.php:49
     112#: inc/options/settings.php:49 uploads/tags/1.0.0/inc/options/settings.php:49
    111113msgid "Message on selection"
    112114msgstr ""
    113115
    114 #: inc/options/settings.php:55
     116#: inc/options/settings.php:55 uploads/tags/1.0.0/inc/options/settings.php:55
    115117msgid "Disable Copy"
    116118msgstr ""
    117119
    118 #: inc/options/settings.php:61
     120#: inc/options/settings.php:61 uploads/tags/1.0.0/inc/options/settings.php:61
    119121msgid "Message on copy"
    120122msgstr ""
    121123
    122 #: inc/options/settings.php:67
     124#: inc/options/settings.php:67 uploads/tags/1.0.0/inc/options/settings.php:67
    123125msgid "Disable Paste"
    124126msgstr ""
    125127
    126 #: inc/options/settings.php:73
     128#: inc/options/settings.php:73 uploads/tags/1.0.0/inc/options/settings.php:73
    127129msgid "Message on paste"
    128130msgstr ""
    129131
    130 #: inc/options/settings.php:79
     132#: inc/options/settings.php:79 uploads/tags/1.0.0/inc/options/settings.php:79
    131133msgid "Disable Cut"
    132134msgstr ""
    133135
    134 #: inc/options/settings.php:85
     136#: inc/options/settings.php:85 uploads/tags/1.0.0/inc/options/settings.php:85
    135137msgid "Message on cut"
    136138msgstr ""
    137139
    138 #: inc/options/settings.php:91
     140#: inc/options/settings.php:91 uploads/tags/1.0.0/inc/options/settings.php:91
    139141msgid "Disable Inspect Element"
    140142msgstr ""
    141143
    142 #: inc/options/settings.php:97
     144#: inc/options/settings.php:97 uploads/tags/1.0.0/inc/options/settings.php:97
    143145msgid "Message on inspect element"
    144146msgstr ""
    145147
    146 #: inc/options/settings.php:103
     148#: inc/options/settings.php:103 uploads/tags/1.0.0/inc/options/settings.php:103
    147149msgid "Disable View Source"
    148150msgstr ""
    149151
    150 #: inc/options/settings.php:109
     152#: inc/options/settings.php:109 uploads/tags/1.0.0/inc/options/settings.php:109
    151153msgid "Message on view source"
    152154msgstr ""
    153155
    154 #: inc/options/settings.php:115
     156#: inc/options/settings.php:115 uploads/tags/1.0.0/inc/options/settings.php:115
    155157msgid "Remove data on uninstall plugin"
    156158msgstr ""
  • easy-content-protector/trunk/readme.txt

    r2696261 r2698218  
    55Requires PHP: 5.4
    66Tested up to: 5.9.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPL V3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5353
    5454== Changelog ==
     55= 1.0.1 - 23/03/2022 =
     56<ul>
     57<li>Chrome Issue fixed on selection</li>
     58</ul>
     59
    5560= 1.0.0 - 19/03/2022 =
    5661<ul>
Note: See TracChangeset for help on using the changeset viewer.