Plugin Directory

Changeset 2191453


Ignore:
Timestamp:
11/13/2019 09:50:51 AM (6 years ago)
Author:
sach3932
Message:

JS File Updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • copy-code-to-clipboard/tags/1.1/js/copy_code_script.js

    r2191446 r2191453  
    77    var copy_button_background = copyScript.copy_button_background;
    88    var copy_button_text_color = copyScript.copy_button_text_color;
     9   
     10    if (copy_text_label == '') {
     11      var copy_text_label = 'Copy';
     12    }
     13    if (copied_text_label == '') {
     14      var copied_text_label = 'Copied';
     15    }
     16    if (copy_text_label_safari == '') {
     17      var copy_text_label_safari = 'Press "⌘ + C" to copy';
     18    }
     19    if (copy_text_label_other_browser == '') {
     20      var copy_text_label_other_browser = 'Press "Ctrl + C" to copy';
     21    }
     22    if (copy_button_text_color == '') {
     23      var copy_button_text_color = '#000000';
     24    }
     25    if (copy_button_text_color == '') {
     26      var copy_text_label = '#ffffff';
     27    }
    928   
    1029    var copyButton = '<div class="btn-clipboard" style="color:'+copy_button_text_color+'; background-color:'+copy_button_background+';" title="" data-original-title="Copy to clipboard">'+copy_text_label+'</div>';
Note: See TracChangeset for help on using the changeset viewer.