diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/README.md b/README.md index a40b2d0..8736803 100644 --- a/README.md +++ b/README.md @@ -150,8 +150,20 @@ player in code. The theme function has the following variables: ), )); +## Videojs Player Textfield Formatter + +- This Version Supports Videojs Player Textfield Formatter +- Youtube Format only support when Enable Annotation Checkbox in Field Formatter + settings. +- Select "Videojs Textfield Formatter" under Manage Display page along with + Videojs Textfield +- Using Videojs Player Textfield Formatter Currently mp4,youtube,webm,ogg Url's + are supported. +- Annotation Store Supported by using the below mentioned Drupal 8 module. + https://www.drupal.org/project/annotation_store + ## Support - Report bugs for this *Drupal module* at . -- Report bugs for the *player* at . \ No newline at end of file +- Report bugs for the *player* at . diff --git a/config/install/videojs.settings.yml b/config/install/videojs.settings.yml index c2b833c..1e7de8d 100644 --- a/config/install/videojs.settings.yml +++ b/config/install/videojs.settings.yml @@ -1,3 +1,3 @@ videojs_location: 'cdn' videojs_directory: '//vjs.zencdn.net/5.0' -langcode: 'en' \ No newline at end of file +langcode: 'en' diff --git a/config/schema/videojs.schema.yml b/config/schema/videojs.schema.yml index 2251dc6..f23a144 100644 --- a/config/schema/videojs.schema.yml +++ b/config/schema/videojs.schema.yml @@ -6,4 +6,4 @@ videojs.settings: label: 'Video.js location' videojs_directory: type: string - label: 'Specify the path that contains the Video.js library. The video.js file should be in the root of this directory.' \ No newline at end of file + label: 'Specify the path that contains the Video.js library. The video.js file should be in the root of this directory.' diff --git a/css/ova.min.css b/css/ova.min.css new file mode 100644 index 0000000..01942f7 --- /dev/null +++ b/css/ova.min.css @@ -0,0 +1 @@ +.vjs-default-skin .vjs-big-new-annotation{float:left;cursor:pointer;line-height:1.6em;margin:3% 3% 3% 4%;top:41%;width:6em;height:6em;background-color:rgba(7,40,50,.7);border-radius:6px;border:.25em solid #ccc}.vjs-default-skin .vjs-big-new-annotation div{width:100%;height:100%;top:0;font-weight:bold;font-size:600%;padding-top:.32em}.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation{top:68%;width:8em;height:8em}.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation div{font-size:750%;padding-top:42%}.vjs-default-skin .vjs-big-new-annotation div:hover{-webkit-box-shadow:0 0 1em rgba(255,255,255,1);-moz-box-shadow:0 0 1em rgba(255,255,255,1);box-shadow:0 0 1em rgba(255,255,255,1)}div.video-js>div.vjs-big-new-annotation{visibility:hidden;opacity:0;-webkit-transition:visibility 0s linear 1s,opacity 1s linear;-moz-transition:visibility 0s linear 1s,opacity 1s linear;-o-transition:visibility 0s linear 1s,opacity 1s linear;transition:visibility 0s linear 1s,opacity 1s linear}div.video-js:hover>div.vjs-big-new-annotation{visibility:visible;opacity:1;transition-delay:0s}.vjs-default-skin .vjs-big-new-annotation.ul{top:0}.vjs-default-skin .vjs-big-new-annotation.ur{top:0;float:right}.vjs-default-skin .vjs-big-new-annotation.br{float:right}.vjs-default-skin .vjs-big-new-annotation.c{top:24%;left:40%}div.video-js:hover>div.vjs-big-new-annotation.none{visibility:hidden}.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation.c{top:35%}.vjs-default-skin .vjs-container-button-annotation{width:101px}.vjs-default-skin .vjs-statistics-annotation,.vjs-default-skin .vjs-showannotations-annotation,.vjs-default-skin .vjs-new-annotation{float:right;cursor:pointer;line-height:1.6em;background-position:left top;margin:4px;width:23px;height:21px;background-repeat:no-repeat}.vjs-default-skin .vjs-statistics-annotation.active,.vjs-default-skin .vjs-showannotations-annotation.active,.vjs-default-skin .vjs-statistics-annotation:hover,.vjs-default-skin .vjs-showannotations-annotation:hover,.vjs-default-skin .vjs-new-annotation:hover{background-position:center top}.vjs-default-skin .vjs-statistics-annotation:active,.vjs-default-skin .vjs-showannotations-annotation:active,.vjs-default-skin .vjs-new-annotation:active{background-position:center right}.vjs-default-skin .vjs-new-annotation{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAg4VAK182QAACfBJREFUWMOtmHtwVNUdxz/n3LubF4tAMAYEIYC8UiGOaAvYlwUqSqO042MQZgRsZ5R2pr5QW6d2FGEc6VhqLdQiDHQKRpniFBUd0JHUimSAmFB5CAQkD8mDJLvZ5733nNM/drMPgmgNZ+Y32fnt/r4553t+zyMAXlyzZuTw4cPXBwKBOVJKvukyxhCJRo81NzUteGnt2rrDhw+r6ZUvjLy8ZPj6/ILAbIEQ3xgbg5OIHmtrbV5Qv2ddXbj7iLo3f+bIsitGrx9cPGS2FPKbYQswRhMKho6dbD25YEe0vk48t2rV5ZMmT66fNXt2qVYKbQz9Wfn5eR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aRHRXA+G3PiO8qwEr5mL1VjFj8BIOQghsL0OQJZP4tlIaKUUqFDId6ZgxY3i16jXuuPMObMsiFOqhpqamzyiw+73dlJeXY4xJY0gpMUZjLtD0WRLOBQ2LZkfY/m4zsbhGacWYy85rDrXh5huu4lijQApzXlugMBJsV2K7mX1rY+G1Rcj7RQX1VdWoaAKlNEwUQKasG62ZNH8C7n87sI2FSGHYyN7qoxBSkv2OEovF2LhxA3Pm/JiqqqqLvp/MnTuXFc88TSgUSmNIKdHaoE1fUooK4L7nFNtXjmDhvBEXbcdrjhiWr3UpyDv//yZ7EEsJ7Kz8Q0EerZWvMf7jxYy/73sXxY59eIb2xW/i8/voLW22FMnwiUSjEWNM2vVN6lAYw8kTx3NyzYWfCnr4oqUFy7LAJMcrIQWRaNRTTiTik31np+Z2Q/kih696urEt+hBiWx6eE/biyoloabC988pDQw+NBau/+n3GlliFNplZwCB8goSXwG5v73jl4MHaFeXl16CUyqk+JxsavtbILS0rKzwE4XCYUCj0djzSXtPTuH2Fb/BPcT2TM+kOKPj/R3spBXnqc7xE8O0uFa7ZrQ6tmCMnYFydm3WK8r8eYHY+kpKW/AiRiPsvq7a29vDIkSMnWpIJJVeU9vtN4vSpBvbsqT6+Zs2LS8821lUXBQZNLLTCE1RB+QXe0r6+WNKiILKL9pOvHz/ynz8v/TTcVF1cEJjoFDJhXHxov/e9b3ATOxIHjq9t2blUAMVA0W2VlUumTZv2VH/BT5w4sXnbtn+ujETDnYAGikZc/f0lV46/td/YXqLtaO3u1bdrSGP/6PIpS8blD3tSC21JIdDGIIxAyOSkntYhMOR+l9YhTLsb/PsbHftWGpfO/wH+lr/CdYGcQQAAAABJRU5ErkJggg==')}.vjs-default-skin .vjs-showannotations-annotation{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAgcPLA0+6gA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4jQQHyqWHkUpmq2blUOsiQuAuowhVV+J4P3/MmjGakoIwwVIrlM5gGUmmtmj1YYMRigDKDDPDgah8eDWWqZj+81hcEJeZChOEKSzGdaawmof2nI+P2j77jMc0iIqjIyNIZutuc+1ZfGWefUc8SrD6GAeLxtfVk/bYwnR3zW/D/Ig4ALjMDZECFg+DatesiO3qs/SgoZIkQYYjYksn0HJwdmR0WMAUgagEDGB8whfVh1eD2yOzT07aN67ehIFKuCMMQwYxSv6gCZUIOvYYAZoEojzkXR2VPdDAcyUBHAKeC3bITos1OsCLDZRYYQ6AKTvVhNsYYqAp0ghWtmibCUAO4voHrl+93mI0LM7L6MMgYjP6OElWgwr69BEuyQpQrFr+Jv9sIQIDDBJepbPZom5J+Q0H5ZLLZjKoWS+HXE8crd7YoKYRMNmvZy2RixqtIWEMn5FhYL21z7GXEKFwbCEG38zEib2ntGKkFoKAYIW/zMP39A/vOneuEG4+DHKeqyzgO3JiLdDqNoaGho7lM/77h24cQc+mplI0xhEl8CzafOvqA0/tO8HnEjAu3kDEumyc8h40TYurgfiKDDPwfnc7OzotNTU0LHIOW+pkNVTv+980bOHny1LVdu3ZvuXu761RNcuqCKU66hScvHkcyo1+OcTA5cxz917+7dun3z7dcSPeeqpucXOBNQcvcXPUl+VdtLw7nz17bc6d9CwGoA1CzccOGzcuWLfukWnhPT8/+traD2zPZ9CAAAVDz3LxXN8+ev75qts3fv9x54tM3BCiyX5vx4ua5iVkfCYljiCCqICWQCU7qxT4QFKVjxT6Q9vupb74f+Gu7+hj8D6dPKX8nggZiAAAAAElFTkSuQmCC')}.vjs-default-skin .vjs-statistics-annotation{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAhEHPk4DDwAABcNJREFUWMOtV21oHOcRfmb2vfPZyoWoimVFjhKFfMh1oC7EUGo3hDRRCA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0A4LIOMINTMwR+gMD344MSgzfFTOvlM1UECsX40WoqBm+GZTKAiYAYuPrdBK5PzwelJ6Jz7dRESxgAuIyDqsCpaD1tKWG8jsPsJvuICKY61zoTp01bImZa6z4sAEmCjzF4HMY3kDgAOBEBiEFJF8E4nHmhI9F9xFAVqIa3YrpfECC1EGCAA4AT+kAcHodRBGOqna5TFTAROOECG4c3w5gAEYWapLgXJ18M5zLQU8BL4NM4vBnm1ToynIiCmUAJ3sfhzTBmhpnCUo7giR1DBcaACxguiPc7Dm+GOfBc9xEQM5gZz0c6zNx6cfOvW8L2DL0925INavNBOfqv7AKdVrGf/NafbdkKEOAJwQnh3onfL9C5//wfWsL+t3oQjqlWPqVyuWRmYCK8s2eoYehLktGEOIkJpXI5FL9UyrDf8ENpl/NChH4xrIhfUja4kDCxakcTj28caReOuA4EyhCqYRU8OXll9/HjI3DZLMjzwJ4Hmn2S5KSHPQ8u41AsFjE9Pb2/UprcPXPhfWTcrSEWZsIyOY+wWth/VYq7P5OvkGEHN5sxTriJnPQmZMzD5VwJJQR7vZGRkRM9PT1rPEZf56qu1I7/99xZHDp0+NTg4I6tFy+MHm7L37FmhVfsk+UPx1Dm4h+PPSwvfYrJM/8+9c0Xr2/9ujh+uGN5fo2/An0PVO5M7ffR9nHsqx47tfP7A1sJQAeAtucGBrasX79+W1rjp0+fHhoefm97qVycAqAA2u5+8LEtqx96NrXtsHr525HP/v4LBeq2n1j5oy0P5O76k5J6TAQ1AxmBuHZTr2MgGBq/1TGQTQaFPR9cObrdAkz9Hw14UPPRoMvjAAAAAElFTkSuQmCC')}.vjs-default-skin .vjs-back-anpanel-annotation{float:left;left:0;right:0;position:absolute;background-color:rgba(0,0,0,0.3);width:auto;font-size:.9em;-webkit-transition:top .4s,height .4s,font-size .4s,-webkit-transform .4s;-moz-transition:top .4s,height .4s,font-size .4s,-moz-transform .4s;-o-transition:top .4s,height .4s,font-size .4s,-o-transform .4s;transition:top .4s,height .4s,font-size .4s,transform .4s;opacity:1;visibility:visible;transition-delay:0s}.vjs-default-skin .vjs-rangeselector-anpanel-annotation{height:100%;width:100%;position:absolute;top:-1em}.vjs-default-skin .vjs-back-anpanel-annotation.statistics .vjs-rangeselector-anpanel-annotation{z-index:2}.vjs-default-skin .vjs-leftselector-anpanel-annotation{height:100%;margin-top:1em;width:0;float:left;position:absolute;left:0}.vjs-default-skin .vjs-leftselector-anpanel-annotation .vjs-selector-arrow{z-index:10;border-left:1em solid #ffe800;cursor:e-resize}.vjs-default-skin .vjs-leftselector-anpanel-annotation .vjs-leftselector-back{right:100%;border-right:1px dashed #ffe800}.vjs-default-skin .vjs-leftselector-anpanel-annotation.include .vjs-leftselector-back{border-right:1px dashed #ffa300}.vjs-default-skin .vjs-leftselector-anpanel-annotation.include .vjs-selector-arrow{border-left:1em solid #ffa300}.vjs-default-skin .vjs-rightselector-anpanel-annotation{height:100%;margin-top:1em;width:100%;float:right;position:absolute}.vjs-default-skin .vjs-rightselector-anpanel-annotation .vjs-selector-arrow{z-index:20;border-right:1em solid #ffe800;margin-left:-1em;cursor:w-resize}.vjs-default-skin .vjs-rightselector-anpanel-annotation .vjs-rightselector-back{border-left:1px dashed #ffe800}.vjs-default-skin .vjs-rightselector-anpanel-annotation.include .vjs-rightselector-back{border-left:1px dashed #ffa300}.vjs-default-skin .vjs-rightselector-anpanel-annotation.include .vjs-selector-arrow{border-right:1em solid #ffa300}.vjs-default-skin .vjs-leftselector-back,.vjs-default-skin .vjs-rightselector-back{height:100%;width:100%;position:absolute;background-color:rgba(0,0,0,0.6)}.vjs-default-skin .vjs-selector-arrow{width:0;height:0;border-top:1em solid transparent;border-bottom:1em solid transparent;opacity:.8;position:absolute;top:-2em}.vjs-default-skin .vjs-barselector-anpanel-annotation{height:2em;margin-top:-1em;background-color:rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.6);position:absolute;float:left;visibility:visible;transition-delay:0s}.vjs-default-skin .vjs-barselector-anpanel-annotation.disable{visibility:hidden;opacity:0;-webkit-transition:visibility .5s linear .5s,opacity .5s linear;-moz-transition:visibility .5s linear .5s,opacity .5s linear;-o-transition:visibility .5s linear .5s,opacity .5s linear;transition:visibility .5s linear .5s,opacity .5s linear}.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-left{float:left;left:1em}.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-right{right:1em;float:right}.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-right,.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-left{height:2em;font-size:1.3em;position:absolute}.vjs-default-skin .vjs-rangeselector-anpanel-annotation.active .vjs-barselector-anpanel-annotation{z-index:1}.vjs-default-skin .vjs-anpanel-annotation{float:left;width:100%;height:100%;left:0;right:0;position:absolute;opacity:.8;overflow:hidden}.vjs-default-skin .vjs-anpanel-annotation .annotation{height:1em;float:left;width:100%;left:0;right:0;cursor:pointer;position:absolute;background-color:#ffe800;background:#ffe800;background:-moz-linear-gradient(top,#ffe800,#a69700);background:-webkit-gradient(linear,0% 0,0% 100%,from(#ffe800),to(#a69700));background:-webkit-linear-gradient(top,#ffe800,#a69700);background:-o-linear-gradient(top,#ffe800,#a69700);background:-ms-linear-gradient(top,#ffe800,#a69700);background:linear-gradient(top,#ffe800,#a69700);opacity:.8}.vjs-default-skin .vjs-anpanel-annotation .annotation.active{background-color:#2dcf02;background:#2dcf02;background:-moz-linear-gradient(top,#2dcf02,#114f01);background:-webkit-gradient(linear,0% 0,0% 100%,from(#2dcf02),to(#114f01));background:-webkit-linear-gradient(top,#2dcf02,#114f01);background:-o-linear-gradient(top,#2dcf02,#114f01);background:-ms-linear-gradient(top,#2dcf02,#114f01);background:linear-gradient(top,#2dcf02,#114f01);z-index:1}.vjs-default-skin .vjs-anpanel-annotation .annotation.point{border-radius:50%;width:1em;height:1em;margin-left:-0.4em}.vjs-default-skin .vjs-back-anpanel-annotation.statistics .vjs-anpanel-annotation{visibility:hidden}.vjs-default-skin .vjs-anstat-annotation{float:left;width:100%;height:100%;left:0;right:0;position:absolute;opacity:.8;visibility:visible;transition-delay:0s;font-size:1.2em}.vjs-default-skin .vjs-anstat-annotation.disable{visibility:hidden;opacity:0}.vjs-default-skin .vjs-totan-anstat-annotation,.vjs-default-skin .vjs-maxcon-anstat-annotation{position:absolute;top:.3em;background-color:rgba(0,0,0,0.5);border-radius:.5em;padding:.1em;color:#ffa300}.vjs-default-skin .vjs-totan-anstat-annotation{float:right;right:1em}.vjs-default-skin .vjs-maxcon-anstat-annotation{float:left;left:1em}.vjs-default-skin .dashed-line{float:left;right:0;position:absolute;color:#2dcf02;border-left:.23em dashed #2dcf02;border-right:.23em dashed #2dcf02;opacity:.8}.vjs-default-skin .dashed-line.point{border-right:0}.vjs-default-skin .box-dashed-line{height:1em;float:left;right:0;color:#2dcf02;position:absolute;background-color:#2dcf02;opacity:.8}.vjs-default-skin .boxup-dashed-line{height:1em;float:left;right:0;color:#2dcf02;position:absolute;opacity:.8;background-color:#2dcf02;background:#2dcf02;background:-moz-linear-gradient(top,#2dcf02,#114f01);background:-webkit-gradient(linear,0% 0,0% 100%,from(#2dcf02),to(#114f01));background:-webkit-linear-gradient(top,#2dcf02,#114f01);background:-o-linear-gradient(top,#2dcf02,#114f01);background:-ms-linear-gradient(top,#2dcf02,#114f01);background:linear-gradient(top,#2dcf02,#114f01);z-index:4;-webkit-transition:top 1s,-webkit-transform .4s;-moz-transition:top 1s,-moz-transform .4s;-o-transition:top 1s,-o-transform .4s;transition:top 1s,transform .4s}.vjs-default-skin .boxup-dashed-line.point{border-radius:50%;width:1em;height:1em;margin-left:-0.4em}.vjs-default-skin .vjs-down-scroll-annotation,.vjs-default-skin .vjs-up-scroll-annotation{width:2em;height:2em;float:left;right:0;position:absolute;cursor:pointer;border-left:1em solid transparent;border-right:1em solid transparent;font-size:.9em;-webkit-transition:top .4s,height .4s,font-size .4s,-webkit-transform .4s;-moz-transition:top .4s,height .4s,font-size .4s,-moz-transform .4s;-o-transition:top .4s,height .4s,font-size .4s,-o-transform .4s;transition:top .4s,height .4s,font-size .4s,transform .4s;opacity:.8;transition-delay:0s}.vjs-default-skin .vjs-up-scroll-annotation{border-bottom:1em solid black}.vjs-default-skin .vjs-down-scroll-annotation{top:-3em;border-top:1em solid black}.vjs-default-skin .vjs-scroll-anpanel-annotation.disable,.vjs-default-skin .vjs-back-anpanel-annotation.disable{visibility:hidden;opacity:0}.vjs-default-skin:hover .vjs-back-anpanel-annotation,.vjs-default-skin:hover .vjs-down-scroll-annotation,.vjs-default-skin:hover .vjs-up-scroll-annotation{font-size:.9em;-webkit-transition:top .2s,height .2s,font-size .2s,-webkit-transform .2s;-moz-transition:top .2s,height .2s,font-size .2s,-moz-transform .2s;-o-transition:top .2s,height .2s,font-size .2s,-o-transform .2s;transition:top .2s,height .2s,font-size .2s,transform .2s}.vjs-default-skin .vjs-scrollbar-anpanel-annotation{float:left;position:absolute;cursor:pointer;right:.5em;width:1em;font-size:.9em;background-color:black;opacity:.8;visibility:visible;transition-delay:0s;-webkit-transition:top .4s,height .4s,font-size .4s,-webkit-transform .4s;-moz-transition:top .4s,height .4s,font-size .4s,-moz-transform .4s;-o-transition:top .4s,height .4s,font-size .4s,-o-transform .4s;transition:top .4s,height .4s,font-size .4s,transform .4s}.vjs-default-skin .vjs-scrollbar-anpanel-annotation.disable{visibility:hidden;opacity:0;-webkit-transition:visibility 1s linear 1s,opacity 1s linear;-moz-transition:visibility 1s linear 1s,opacity 1s linear;-o-transition:visibility 1s linear 1s,opacity 1s linear;transition:visibility 1s linear 1s,opacity 1s linear}.vjs-default-skin .vjs-scrollbar-anpanel-annotation:hover{opacity:.8;visibility:visible;transition-delay:0s}.vjs-default-skin:hover .vjs-scrollbar-anpanel-annotation{font-size:.9em}.vjs-default-skin .vjs-scrollbar-selector{width:1em;background-color:gray;border:1px solid black;position:absolute;height:3em;border-radius:.4em}.vjs-default-skin .vjs-down-scrolltime-annotation,.vjs-default-skin .vjs-up-scrolltime-annotation{width:100%;height:1em;float:left;position:absolute;font-size:.9em;opacity:.8;transition-delay:0s;right:3em;text-align:right;margin-top:.2em}.vjs-default-skin .vjs-down-scrolltime-annotation{top:-2.6em;margin-top:-0.2em}.vjs-default-skin .vjs-scrolltime-anpanel-annotation span{font-size:1.3em;background-color:rgba(0,0,0,1);border-radius:.5em;padding:.1em;border:.1em solid white;padding-left:.4em;padding-right:.4em}.annotator-wrapper.vjs-fullscreen .annotator-adder,.annotator-wrapper.vjs-fullscreen .annotator-outer,.annotator-wrapper.vjs-fullscreen .annotator-widget,.annotator-wrapper.vjs-fullscreen .annotator-notice{z-index:3000000000}.vjs-default-skin *,.vjs-default-skin *:before,.vjs-default-skin *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.vjs-default-skin .vjs-rangeslider-holder.locked span.annotator-hl>div.vjs-selectionbar-RS{background-color:#2dcf02;background:#2dcf02;background:-moz-linear-gradient(top,#2dcf02,#114f01);background:-webkit-gradient(linear,0% 0,0% 100%,from(#2dcf02),to(#114f01));background:-webkit-linear-gradient(top,#2dcf02,#114f01);background:-o-linear-gradient(top,#2dcf02,#114f01);background:-ms-linear-gradient(top,#2dcf02,#114f01);background:linear-gradient(top,#2dcf02,#114f01)}.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle>div.vjs-selectionbar-line-RS{background-color:#2dcf02}.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle>div.vjs-selectionbar-arrow-RS{border-top-color:#2dcf02} \ No newline at end of file diff --git a/css/rangeslider.min.css b/css/rangeslider.min.css new file mode 100644 index 0000000..58b244c --- /dev/null +++ b/css/rangeslider.min.css @@ -0,0 +1 @@ +.vjs-default-skin .vjs-timebar-RS{color:red;top:-1em;height:100%;position:relative;background:rgba(100,100,100,.5)}.vjs-default-skin .vjs-rangeslider-holder{height:100%}.vjs-default-skin .vjs-selectionbar-RS{height:100%;float:left;width:100%;left:0;right:0;position:absolute;background-color:#ffe800;background:#ffe800;background:-moz-linear-gradient(top,#ffe800,#a69700);background:-webkit-gradient(linear,0% 0,0% 100%,from(#ffe800),to(#a69700));background:-webkit-linear-gradient(top,#ffe800,#a69700);background:-o-linear-gradient(top,#ffe800,#a69700);background:-ms-linear-gradient(top,#ffe800,#a69700);background:linear-gradient(top,#ffe800,#a69700);opacity:.8}.vjs-default-skin div.vjs-rangeslider-holder.locked>div.vjs-selectionbar-RS{background-color:#ff6565;background:#ff6565;background:-moz-linear-gradient(top,#ff6565,#300000);background:-webkit-gradient(linear,0% 0,0% 100%,from(#ff6565),to(#300000));background:-webkit-linear-gradient(top,#ff6565,#300000);background:-o-linear-gradient(top,#ff6565,#300000);background:-ms-linear-gradient(top,#ff6565,#300000);background:linear-gradient(top,#ff6565,#300000)}.vjs-default-skin div.vjs-rangeslider-handle{position:absolute;margin-top:0;cursor:pointer!important;background-color:transparent}.vjs-default-skin .vjs-selectionbar-left-RS{height:100%;left:0;z-index:10}.vjs-default-skin .vjs-selectionbar-right-RS{height:100%;left:100%;z-index:20}.vjs-default-skin div.vjs-selectionbar-left-RS,.vjs-default-skin div.vjs-selectionbar-right-RS{top:0;position:absolute;width:0}.vjs-default-skin div.vjs-selectionbar-arrow-RS{width:0;height:0;border-left:1em solid transparent;border-right:1em solid transparent;border-top:1em solid #fff273;margin-left:-1em;opacity:.8;position:absolute;top:-1em}.vjs-default-skin div.vjs-rangeslider-handle.active>div.vjs-selectionbar-arrow-RS{border-top-color:#5f5fb3}.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle>div.vjs-selectionbar-arrow-RS{border-top-color:#ff6565}.vjs-default-skin div.vjs-selectionbar-line-RS{width:1px;height:1em;background-color:#fff273;position:absolute;top:0}.vjs-default-skin div.vjs-rangeslider-handle.active>div.vjs-selectionbar-line-RS{background-color:#5f5fb3}.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle>div.vjs-selectionbar-line-RS{background-color:#ff6565}.vjs-default-skin .vjs-timepanel-RS{width:100%;height:1em;font-weight:bold;font-size:15px;top:-2em;position:absolute;visibility:visible;opacity:1;transition-delay:0s}.vjs-default-skin .vjs-timepanel-RS.disable{visibility:hidden;opacity:0;-webkit-transition:visibility 1s linear 1s,opacity 1s linear;-moz-transition:visibility 1s linear 1s,opacity 1s linear;-o-transition:visibility 1s linear 1s,opacity 1s linear;transition:visibility 1s linear 1s,opacity 1s linear}.vjs-default-skin .vjs-timepanel-left-RS,.vjs-default-skin .vjs-timepanel-right-RS{font-weight:normal;font-size:1em;color:#666;border:1px solid #666;background-color:white;border-radius:5px;position:absolute;height:116%;padding-right:.3em;padding-left:.3em}.vjs-default-skin .vjs-timepanel-left-RS{left:.5%}.vjs-default-skin .vjs-timepanel-right-RS{left:92%}.vjs-default-skin .vjs-controltimepanel-RS{width:18em;font-size:1em;line-height:3em}.vjs-default-skin .vjs-controltimepanel-RS input{width:1.5em;background:rgba(102,168,204,0.16);border:1px solid transparent;color:black;font-size:1em;margin-left:2px;text-align:center;color:white}.vjs-default-skin .vjs-controltimepanel-left-RS{width:50%;float:left}.vjs-default-skin .vjs-controltimepanel-right-RS{float:right;width:48%}.vjs-default-skin .vjs-controltimepanel-RS input{margin:0;padding:0;display:table-cell}.vjs-default-skin *,.vjs-default-skin *:before,.vjs-default-skin *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0} \ No newline at end of file diff --git a/css/richText-annotator.min.css b/css/richText-annotator.min.css new file mode 100644 index 0000000..274f575 --- /dev/null +++ b/css/richText-annotator.min.css @@ -0,0 +1 @@ +.annotator-viewer div:first-of-type.richText-annotation *,.annotator-viewer div:first-of-type.richText-annotation{font-style:normal;font-weight:inherit;text-align:inherit}.annotator-viewer div:first-of-type.richText-annotation{padding-top:22px}.annotator-viewer div:first-of-type.richText-annotation strong{font-weight:bold}.annotator-viewer div:first-of-type.richText-annotation em{font-style:italic}.mce-container{z-index:3000000000!important}.annotator-editor .annotator-widget{min-width:400px}.mce-ico.mce-i-rubric{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QkBBB07nraNoQAAAhZJREFUKM+NkstrE1EUxr+5c08ykztpJtVoazHBF8FgQQzonyBKEZS6FrQKLl0EXBRT0ZULJSs3oii4TyHgu90IlTaL6qouWlv7Ck1N0BSnmZk714WbPHz07M4534+Pw3eAHdTY8A9+Nd9/bshU1DpnO4HXjh2ZY2J9/OSTxHTrnP8PvJYf+BDQ6qEDaQBB43jrTusUFy4oPjsYWYzF+VS91nxLYfdhKgONaQT3W/KMxr1XY5e+qj86f8zsKYYsZ6AvjWFzA8ORHkAnwN8So7evzL/8pzMAXL/Hq8mMv1up371T7Z+/c3n9cKeuDS6Xy6dN07zLuZ56Onk2Ed2/ANJsnE/PQMpgyffle+kYzwazB1+3waVS6X48Hr9BRPB9H57nYXplFKeSt8D1Hriug9XKF0x+Lmw+ys8m2m42DOOn4zhQSsGyLOi6jqONm9isbmFVFlDbaGKx8QaB1rvdlbNhGLAsC0IIGIYBIQSy2ROQ0oOp7wOPraHXEugRvDtnzjmi0SiICEIIEBGklAB9B6cmbG0AUnrY5m73h+m6DsYYTNMEYwxEBMY0hGNVhHkcZigBO9qHlDHS7cwYg23bAIBQKAQigud7IH0XwtxDoHwEIQ9SLKx0wa7rPiaivYyxESklXNeFBg0mjyNQTQSuATMSm6ipuYt//eVcLhdeXl5+UKlUlur1upqamVAv3j3/VCyOD3VqfwF6uLp3q+vMcgAAAABJRU5ErkJggg==');background-repeat:no-repeat} \ No newline at end of file diff --git a/css/share-annotator.min.css b/css/share-annotator.min.css new file mode 100644 index 0000000..b993e70 --- /dev/null +++ b/css/share-annotator.min.css @@ -0,0 +1 @@ +.share-container-annotator{display:block;min-width:100%;border:0;margin:0;color:#3c3c3c;background:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;resize:none;padding-left:.6em;padding-right:1em;height:3.1em}.share-container-annotator .share-text-annotator{float:left;padding-top:1em}.annotator-editor .share-container-annotator .share-text-annotator{height:2.1em}.share-container-annotator .share-button{top:.3em;outline:0;float:left;position:relative;text-align:center;margin:0;padding:0;margin-left:.3em;height:2.5em;width:2.5em;background-repeat:no-repeat;background-size:2.5em}.share-container-annotator .share-button:hover{opacity:.6;cursor:pointer}.share-container-annotator .share-popup-overlay-bg{display:none;position:fixed;top:0;left:0;height:100%;width:100%;cursor:pointer;background:#000;background:rgba(0,0,0,0.75);padding:0}.share-container-annotator .share-popup-overlay-bg .share-popup{background:#fff;padding:1%!important;width:30%;position:relative;top:15%;left:50%;margin:0 0 0 -17%!important;cursor:default;border-radius:4px;box-shadow:0 0 5px rgba(0,0,0,0.9)}.share-container-annotator .share-popup-overlay-bg .share-popup-copy,.share-container-annotator .share-popup-overlay-bg .share-popup-title{font-style:normal;font-weight:bold;font-size:21px;padding-top:0;padding-bottom:20px;color:#222}.share-container-annotator .share-popup-overlay-bg .share-popup-uri{width:100%;border:1px solid #909090;height:24px;margin-bottom:10px}.share-container-annotator .share-popup-overlay-bg .share-popup-copy{font-size:15px;float:left;width:100%;padding:0;margin:1.0em 0 .5em 0!important}.share-container-annotator .share-popup-overlay-bg .share-popup .share-button{width:50%;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;border:1px solid;margin:0;text-align:center;alignment-baseline:central;background-position:.5em;height:4em;padding-top:1.3em!important}.share-container-annotator .share-popup-overlay-bg .close-btn{cursor:pointer;position:relative;display:inline-block;padding:0 12px 0 12px;color:#363636;text-shadow:0 1px 0 rgba(255,255,255,0.75);text-decoration:none;line-height:24px;font-size:12px;font-weight:bold;border:1px solid #a2a2a2;background-color:#d4d4d4;background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),color-stop(0.5,#d2d2d2),color-stop(0.5,#bebebe),to(#d2d2d2));background-image:-moz-linear-gradient(to bottom,#f5f5f5,#d2d2d2 50%,#bebebe 50%,#d2d2d2);background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#d2d2d2 50%,#bebebe 50%,#d2d2d2);background-image:linear-gradient(to bottom,#f5f5f5,#d2d2d2 50%,#bebebe 50%,#d2d2d2);-webkit-box-shadow:inset 0 0 5px rgba(255,255,255,0.2),inset 0 0 1px rgba(255,255,255,0.8);-moz-box-shadow:inset 0 0 5px rgba(255,255,255,0.2),inset 0 0 1px rgba(255,255,255,0.8);-o-box-shadow:inset 0 0 5px rgba(255,255,255,0.2),inset 0 0 1px rgba(255,255,255,0.8);box-shadow:inset 0 0 5px rgba(255,255,255,0.2),inset 0 0 1px rgba(255,255,255,0.8);-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;border-radius:5px}.share-container-annotator .share-popup-overlay-bg .close-btn:hover{outline:0;border-color:#435aa0;background-color:#3865f9;background-image:-webkit-gradient(linear,left top,left bottom,from(#7691fb),color-stop(0.5,#5075fb),color-stop(0.5,#3865f9),to(#3665fa));background-image:-moz-linear-gradient(to bottom,#7691fb,#5075fb 50%,#3865f9 50%,#3665fa);background-image:-webkit-linear-gradient(to bottom,#7691fb,#5075fb 50%,#3865f9 50%,#3665fa);background-image:linear-gradient(to bottom,#7691fb,#5075fb 50%,#3865f9 50%,#3665fa);color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.42)}.share-container-annotator .share-popup-overlay-bg .close-btn:active{border-color:#700c49;background-color:#d12e8e;background-image:-webkit-gradient(linear,left top,left bottom,from(#fc7cca),color-stop(0.5,#e85db2),color-stop(0.5,#d12e8e),to(#ff009c));background-image:-moz-linear-gradient(to bottom,#fc7cca,#e85db2 50%,#d12e8e 50%,#ff009c);background-image:-webkit-linear-gradient(to bottom,#fc7cca,#e85db2 50%,#d12e8e 50%,#ff009c);background-image:linear-gradient(to bottom,#fc7cca,#e85db2 50%,#d12e8e 50%,#ff009c)}.annotator-viewer .share-viewer-annotator div.share-text-annotator,.annotator-viewer .share-viewer-annotator div.share-button{border-top:0;padding:0;background-size:2em;margin-top:-0.2em;top:-0.5em;font-style:normal}.share-container-annotator .share-facebook-annotator{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wDDBEyHq7FE8kAAAo8SURBVFjDtZhZjF1XlYa/tfY559atcs0uDxnsJN0iGAGJcIgYgkAgoEULCYH6oZtIIPGAExwgQYQExAsSCgmJEcIMfkCAQOEhQjSIILUYlAi6W93CYkg6jSUnHmJXYlelXNOtutPei4e9z1DBDlO40tW955x99vn3Wv//r7WPkD53f+0o9xzYH/8fedypyKggowgIgvHifgSwOGuwENaD+e49B66zu488xj0ffMWWcdz5pf/mvtteC8BdR373MhX3rpHC3ZQ7udo5yf5eAIMZPthGf+D/rzcMPw8h/ODeA69cuOurv+Vzt1wXx93+ue/yhbv+NYL76u/emzn36dmp4trpbQVFLiBCCAH+DgBFFDNjs+dZWOkPVzv9R4P3H7r31uuPfeLwUe49uB95oGd8rCXc+aWj79A8/8ZVO7ft2D6V2/qm5/yFHqsbA7FgLzpAA/JcmR4vbG6yIHfCyXObsrjcfUwGm2++9yOvWfz4oZ/GFH/0/kdnstb4t6/YOfZPV8y19dxS154+vyFDj6nEMS8C4S768cHYNpLZ1ZeNMVJk/P70il/t9O479OEbPgWgN+YQjFe2W7p/x1Qhz6307NSzHekPvIFJMOOv/foQ6PY9FowiE8bHcmYnc7ZPFWyfLJgez2nlYiudvjw1v44PQ9k103ICb7zt849cDpC96pMPagjh2onRbML7wNnFDbr9IU5VvP/ruRfMGA49r943y7V7J5gebzFSOPJM0FJ0Ag//51k5euyCBTN55rmu7Z4dkTyTKzc7g13A2UxCEMJwKs+02Oh5ubDSwzk1M5O/DVzg5rdfzQ37ZnAqiMQ8i2jKd5y+VSgD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JqfkVm9MQPrmn970MfuP/MAMB9/Lb3cvsDR3nnayeeHm11n+l0s6tPPZftWFwe6MCbFFlmzjlxTsmcok5QdWSqqNO4cXKKU0WzyEOXuXisghNJv6DOyITEX2zQ98wvdjl2asWWlpY6O90T/76n+NVnHzj84DGAz9xyfUzxHQffz6HD3+TTB2/KO/zDqxcGe/75wmDnDV7a0yIuvv55XvNqUvYwjY5bU7skZRtgkN4UYLH3CxgSQowsZhaGwxYrZ2eypx+dcScfvu/wQ08B3HnwPdx3+Hu1H9x+8Ga+cPg7HLntSk5y42QvtHcGdMIHXKphYFX/0XzZljyNurczq984WP32oX4Zb2CCqpgKvUyHSy1WFj57+MebAHfc+m8c+sqDjbY1fe740Ps49OVvAXDngTfj3ax4b5hPXGpugSykM89/v9sc98clTxtl1amSuYFN9/6DT359AMCtH7yZrxz5TjX+DwV2mkY3fbDAAAAAAElFTkSuQmCC')}.share-container-annotator .share-twitter-annotator{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wDDBEyN+x3i6UAAAriSURBVFjDnZhrjF3XVcd/a53HvXfuzNieiY2d2q6dh0NJQkPACTVEhArlQwlIcflQoxZoSEIDLaqqCpCKQAgJhNRviEQkadqUNK4ixVTCFREWqRSJtrHSpqQJips0cZz4lbHH877nnsdefNj7nHvueJJSjrU955577t5r/9f6/9daW2hd9x+f48FbtvLp4/ORs6pvqrG1vpcwxp4oEF4SBRxY/VL7x2bNT+pbE8HK0kWq2QO3XJEB/PG3T/PAgfeNrcmf/OfblNMp/7x/G/cfnztQVfZbvUgOdmLdHYmIKIj5t6W1riAYIONWt63CEMT83bqvqEDKqlocVDxbVO6pK4bzX/+72z9g9z3zGg99+JqRgfc89w6P3LqNTz13/q+qyv50Vz+enUkjJiJFFUrzM8roJyCGrMMTWw/x6I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w83n2/7w0+zTaoxpWuIKkJ9jC7vVU237tS1PpvRm5zkmRdf5uy3/r15a3p6mqWlpebz/wJ5Ut7CxANClQAAAABJRU5ErkJggg==')}.share-container-annotator .share-google-annotator{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3AsJEzYNSj34jgAACUBJREFUWMO9mF1sHNUVx3/3zuxs1t7EEEOcDxJBGycCFBMaRzFSw1v5KN9BSA1QaEQfEBVtpJYWUKMQwUMlmhdo+oZQRVNCQoooaqAEAX0oUqkKIQ2IKNAmNiixieP4c2d3557Th70zmV2veaAVK408M75z7v98/c8519D8M/7S3PPX+RPAzO8smMnpurQCCIAQkJduumXDgsAurjvXtGakcxkHVt5JoElb6UYNrjjG5CX7MRLOiWKJUTZHddIVCtgAjaKCvHLwk0OP7/rbCY+nHubART+8+BvLf7ay9/fRxMR6bYBr+oUsZbq4loLU2u+slvq8zznVM4F1xTkBnh841nTOEM0WwKV3d3Pv9dfvvHrLW786+UU8GXoTFRSiB3p6ngrPjK53om2dW48qTMVKwUl7CwJV6pyeGsXKvDkBjgUJLphG2gaQcmFn+NPf/HzVB5seOvynEDAKEbB0QWXmWjdTAYO2i78kmmE6ViKnc1hQqZJwpnL2SwFOhAlSmkSNtkdoMJcuL94FvB56IPN6S6UlOjmJVmMwpq1uUqpQrSk6F0CUSiBMVCexLpkT4HSUQH1irhQ0GEXrHQuBcgqwEIuUqgbEWjAGVW/IHNbEKKGpEprqHFtbCqZO0RWwUpgTYOgsNSlhTM5RqlmcGAOTcSEASlmSnBQJ7iiXCcOQwFqstdggaNwbg7GWwEzS9f4tGGPntGAHlqv/vmJOcKqKAHdqD6KKikNEERXEOUSVJHFUKtMGCFMLGgO2ZC1REGCDAGstQRBgjWmAtRZjDNYW/2eyU1VC1QZYMagqTgQRiziHc6DOmoZP2nysIuAFZF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NJ8PLAZ6wyDoK5fLA9baC77mQ3Q1IHG1eqwSx++KyIfAf1IARWCBB7kM6AbKQOFrOu1P60QVGAdGgM+A0yZXUQpApwfW6UEHc4XU//ln/MSRADEwBUwC8X8BTYvqIryh+pIAAAAASUVORK5CYII=')}.share-container-annotator .share-email-annotator{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABIUExURf///7KysrKyss/Pz9DQ0NHR0dLS0u7u7vDw8PHx8fLy8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///37mbPQAAAACdFJOUwCWb//7SQAAAQNJREFUSMft1M2SgyAQRtHkC0RtbP6V93/TWZikFDuQ2c7krrCKU1gKXC7f/lNX9LvuAVB6AUdw78y/V2CEXltpjEcwmabQMNMR0GwbQsPOVAF2AXqR0wiOK2DYh/RGaKTg2VTA+pgXUWgsOXorghUq1ymsDVBOQqE0QYFK+xRKBxyFQumCvVAoH4ACFbe2+f0VnkKhfLICnmsoPJ46X2l7q1u4PUYdgNdxeY2aQDp4b/40+5AyxM2NLGw+YhcisrhbM+J5e9NsPWLKUinCnw7QZBg+hCgVggfXR3QksHVezlkGVZfAADIzs5Ving1hqO6lYZyIjBzRNA7He+nXV+W3v98P7gg+L5LCf08AAAAASUVORK5CYII=')}.share-container-annotator .share-button-annotator{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAMAAABE+WOeAAAAA3NCSVQICAjb4U/gAAAATlBMVEXMzMzZ2dn////r6+vPz8/n5+f5+fnl5eXT09P19fXz8/Pg4ODX19f7+/vR0dHp6enu7u7d3d339/fj4+PV1dX////b29vt7e3h4eHx8fHJkyUPAAAAGnRSTlP//wD//////////////////////////////zDtagYAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAedEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzUuMasfSOsAAAAVdEVYdENyZWF0aW9uIFRpbWUAOC8xNi8xM7KZeroAAAFnSURBVEiJrZaNbsMgDIS9jpCQ0dBoVaW9/4vOQHD4OVIh9aRKLf0UG9scoduYqF7Qs1UUpeys3/Buo1Kbu+BnQpo7/KogznmtiMcPr0MIv1/gRHvNLy0zcXH0dPxYSh483cR/TBmBerlPKYMUYT75FWQsndJpZRUeFTIr4SGVeFjJlg8ZUb5wnU94Bn8cwr/u9X5ZLvD1iHn9SjYmW908r1t6+eM0bNGvlCSB3e4MfqOovGO62XqRO6U702SZl+LH+E9uiwHTFKSYT9+NbNH1DgJXVHiZl/urS+c86s8VD/r/UX40H9mvgZ06+VQ8qWfXV2L9pb+xX767TcuTLJifn/44hPlp9mdNMfS5NJz/p/HzCcZ5652vBzwux/kCDVKnYeYRLvxBjm+2veQPyH/AeIj/IH8D/OlvIKN2nDL/BP7c2G3hz8D/Kzuv/B9FyPvV3C/D99fw/dgN0bt/vcbud6+x94e3+gd13Qxqz2VnfwAAAABJRU5ErkJggg==')}.annotator-wrapper .annotator-hl.api{background:rgba(0,190,99,0.3)} \ No newline at end of file diff --git a/js/addannotatebutton.js b/js/addannotatebutton.js new file mode 100644 index 0000000..02a8743 --- /dev/null +++ b/js/addannotatebutton.js @@ -0,0 +1,48 @@ +//Options to load in Open Video Annotation, for all the plugins +(function($){ +var options = { + optionsAnnotator: { + permissions: {}, + //auth: {tokenUrl:'http://catch.aws.af.cm/annotator/token'}, + store: { + // The endpoint of the store on your server. + //prefix: 'http://afstore.aws.af.cm/annotator', + prefix: window.location.protocol + "//" + window.location.host + '/annotations/apis', + + annotationData: { + uri: 'http://danielcebrian.com/annotations/demo.html' + }, + loadFromSearch: { + limit: 10000, + uri: 'http://danielcebrian.com/annotations/demo.html' + } + }, + richText: { + tinymce: { + selector: "li.annotator-item textarea", + plugins: "media image insertdatetime link code", + menubar: false, + toolbar_items_size: 'small', + extended_valid_elements: "iframe[src|frameborder|style|scrolling|class|width|height|name|align|id]", + toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media rubric | code " + } + }, + share: {}, //Share plugin + annotator: {} //Annotator core + }, + optionsVideoJS: { + techOrder: ["html5", "flash", "youtube"] + }, + optionsRS: {}, + optionsOVA: { + posBigNew: 'none' /*,NumAnnotations:20*/ + } +} + //Load the plugin Open Video Annotation +var ova = new OpenVideoAnnotation.Annotator($('#airlock'), options); +//change the user (Experimental) +ova.setCurrentUser($('#username').val()); +$('#username').change(function() { + ova.setCurrentUser($(this).val()); +}); +})(jQuery); \ No newline at end of file diff --git a/js/annotator-full.js b/js/annotator-full.js new file mode 100644 index 0000000..a577283 --- /dev/null +++ b/js/annotator-full.js @@ -0,0 +1,1360 @@ +/* + ** Annotator v1.2.7 + ** https://github.com/okfn/annotator/ + ** + ** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning. + ** Dual licensed under the MIT and GPLv3 licenses. + ** https://github.com/okfn/annotator/blob/master/LICENSE + ** + ** Built at: 2013-06-27 21:49:35Z + */ +(function(){ +((function() { + var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F = [].slice, + G = {}.hasOwnProperty, + H = function(a, b) { + function d() { + this.constructor = a + } + for (var c in b) G.call(b, c) && (a[c] = b[c]); + return d.prototype = b.prototype, a.prototype = new d, a.__super__ = b.prototype, a + }, + I = function(a, b) { + return function() { + return a.apply(b, arguments) + } + }, + J = [].indexOf || function(a) { + for (var b = 0, c = this.length; b < c; b++) + if (b in this && this[b] === a) return b; + return -1 + }; + r = function(b) { + var c; + return c = this.map(function() { + var c, d, e, f; + e = "", c = this; + while ((c != null ? c.nodeType : void 0) === Node.ELEMENT_NODE && c !== b) f = c.tagName.replace(":", "\\:"), d = a(c.parentNode).children(f).index(c) + 1, d = "[" + d + "]", e = "/" + c.tagName.toLowerCase() + d + e, c = c.parentNode; + return e + }), c.get() + }, s = function(a) { + var b, c, d, e; + return b = function(a) { + var b, c; + return b = n(a), c = o(a), "" + b + "[" + c + "]" + }, e = a, c = function(a) { + var c; + c = ""; + while (a !== e) { + if (a == null) throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. " + e); + c = b(a) + "/" + c, a = a.parentNode + } + return c = "/" + c, c = c.replace(/\/$/, ""), c + }, d = this.map(function() { + var a; + return a = c(this), a + }), d.get() + }, j = function(a, b, c) { + var d, e, f, g, h, i; + if (!a.hasChildNodes()) throw new Error("XPath error: node has no children!"); + e = a.childNodes, f = 0; + for (h = 0, i = e.length; h < i; h++) { + d = e[h], g = n(d); + if (g === b) { + f += 1; + if (f === c) return d + } + } + throw new Error("XPath error: wanted child not found.") + }, n = function(a) { + var b; + b = a.nodeName.toLowerCase(); + switch (b) { + case "#text": + return "text()"; + case "#comment": + return "comment()"; + case "#cdata-section": + return "cdata-section()"; + default: + return b + } + }, o = function(a) { + var b, c; + b = 0, c = a; + while (c) c.nodeName === a.nodeName && b++, c = c.previousSibling; + return b + }, p = null, typeof Gettext != "undefined" && Gettext !== null ? (u = new Gettext({ + domain: "annotator" + }), p = function(a) { + return u.gettext(a) + }) : p = function(a) { + return a + }, E = function(a) { + return p(a) + }, (typeof jQuery != "undefined" && jQuery !== null ? (z = jQuery.fn) != null ? z.jquery : void 0 : void 0) || console.error(E("Annotator requires jQuery: have you included lib/vendor/jquery.js?")), JSON && JSON.parse && JSON.stringify || console.error(E("Annotator requires a JSON implementation: have you included lib/vendor/json2.js?")), a = jQuery, f = {}, f.flatten = function(b) { + var c; + return c = function(b) { + var d, e, f, g; + e = []; + for (f = 0, g = b.length; f < g; f++) d = b[f], e = e.concat(d && a.isArray(d) ? c(d) : d); + return e + }, c(b) + }, f.getTextNodes = function(a) { + var b; + return b = function(a) { + var c; + if (a && a.nodeType !== Node.TEXT_NODE) { + c = []; + if (a.nodeType !== Node.COMMENT_NODE) { + a = a.lastChild; + while (a) c.push(b(a)), a = a.previousSibling + } + return c.reverse() + } + return a + }, a.map(function() { + return f.flatten(b(this)) + }) + }, f.xpathFromNode = function(a, b) { + var c, d; + try { + d = r.call(a, b) + } catch (e) { + c = e, console.log("jQuery-based XPath construction failed! Falling back to manual."), d = s.call(a, b) + } + return d + }, f.nodeFromXPath = function(a, b) { + var c, d, e, f, g, h, i, k; + g = a.substring(1).split("/"), e = b; + for (h = 0, i = g.length; h < i; h++) f = g[h], k = f.split("["), d = k[0], c = k[1], c = c != null ? parseInt((c != null ? c.split("]") : void 0)[0]) : 1, e = j(e, d.toLowerCase(), c); + return e + }, f.escape = function(a) { + return a.replace(/&(?!\w+;)/g, "&").replace(//g, ">").replace(/"/g, """) + }, f.uuid = function() { + var a; + return a = 0, + function() { + return a++ + } + }(), f.getGlobal = function() { + return function() { + return this + }() + }, f.maxZIndex = function(b) { + var c, d; + return c = function() { + var c, e, f; + f = []; + for (c = 0, e = b.length; c < e; c++) d = b[c], a(d).css("position") === "static" ? f.push(-1) : f.push(parseInt(a(d).css("z-index"), 10) || -1); + return f + }(), Math.max.apply(Math, c) + }, f.mousePosition = function(b, c) { + var d; + return d = a(c).position(), { + top: b.pageY - d.top, + left: b.pageX - d.left + } + }, f.preventEventDefault = function(a) { + return a != null ? typeof a.preventDefault == "function" ? a.preventDefault() : void 0 : void 0 + }, l = ["log", "debug", "info", "warn", "exception", "assert", "dir", "dirxml", "trace", "group", "groupEnd", "groupCollapsed", "time", "timeEnd", "profile", "profileEnd", "count", "clear", "table", "error", "notifyFirebug", "firebug", "userObjects"]; + if (typeof console != "undefined" && console !== null) { + console.group == null && (console.group = function(a) { + return console.log("GROUP: ", a) + }), console.groupCollapsed == null && (console.groupCollapsed = console.group); + for (v = 0, x = l.length; v < x; v++) k = l[v], console[k] == null && (console[k] = function() { + return console.log(E("Not implemented:") + (" console." + name)) + }) + } else { + this.console = {}; + for (w = 0, y = l.length; w < y; w++) k = l[w], this.console[k] = function() {}; + this.console.error = function() { + var a; + return a = 1 <= arguments.length ? F.call(arguments, 0) : [], alert("ERROR: " + a.join(", ")) + }, this.console.warn = function() { + var a; + return a = 1 <= arguments.length ? F.call(arguments, 0) : [], alert("WARNING: " + a.join(", ")) + } + } + c = function() { + function b(b, c) { + this.options = a.extend(!0, {}, this.options, c), this.element = a(b), this.on = this.subscribe, this.addEvents() + } + return b.prototype.events = {}, b.prototype.options = {}, b.prototype.element = null, b.prototype.addEvents = function() { + var a, b, c, d, e, f, g, h; + f = this.events, h = []; + for (c in f) b = f[c], g = c.split(" "), d = 2 <= g.length ? F.call(g, 0, e = g.length - 1) : (e = 0, []), a = g[e++], h.push(this.addEvent(d.join(" "), a, b)); + return h + }, b.prototype.addEvent = function(b, c, d) { + var e, f, g = this; + return e = function() { + return g[d].apply(g, arguments) + }, f = typeof b == "string" && b.replace(/\s+/g, "") === "", f && (b = this.element), typeof b == "string" ? this.element.delegate(b, c, e) : this.isCustomEvent(c) ? this.subscribe(c, e) : a(b).bind(c, e), this + }, b.prototype.isCustomEvent = function(c) { + return c = c.split(".")[0], a.inArray(c, b.natives) === -1 + }, b.prototype.publish = function() { + return this.element.triggerHandler.apply(this.element, arguments), this + }, b.prototype.subscribe = function(b, c) { + var d; + return d = function() { + return c.apply(this, [].slice.call(arguments, 1)) + }, d.guid = c.guid = a.guid += 1, this.element.bind(b, d), this + }, b.prototype.unsubscribe = function() { + return this.element.unbind.apply(this.element, arguments), this + }, b + }(), c.natives = function() { + var a, b, c; + return b = function() { + var b, d; + b = jQuery.event.special, d = []; + for (a in b) { + if (!G.call(b, a)) continue; + c = b[a], d.push(a) + } + return d + }(), "blur focus focusin focusout load resize scroll unload click dblclick\nmousedown mouseup mousemove mouseover mouseout mouseenter mouseleave\nchange select submit keydown keypress keyup error".split(/[^a-z]+/).concat(b) + }(), e = {}, e.sniff = function(a) { + return a.commonAncestorContainer != null ? new e.BrowserRange(a) : typeof a.start == "string" ? new e.SerializedRange(a) : a.start && typeof a.start == "object" ? new e.NormalizedRange(a) : (console.error(E("Could not sniff range type")), !1) + }, e.nodeFromXPath = function(b, c) { + var d, e, g, h, i; + return c == null && (c = document), e = function(a, b) { + var d; + b == null && (b = null); + try { + return document.evaluate("." + a, c, b, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue + } catch (e) { + return d = e, console.log("XPath evaluation failed."), console.log("Trying fallback..."), f.nodeFromXPath(a, c) + } + }, a.isXMLDoc(document.documentElement) ? (d = document.createNSResolver(document.ownerDocument === null ? document.documentElement : document.ownerDocument.documentElement), h = e(b, d), h || (b = function() { + var a, c, d, e; + d = b.split("/"), e = []; + for (a = 0, c = d.length; a < c; a++) i = d[a], i && i.indexOf(":") === -1 ? e.push(i.replace(/^([a-z]+)/, "xhtml:$1")) : e.push(i); + return e + }().join("/"), g = document.lookupNamespaceURI(null), d = function(a) { + return a === "xhtml" ? g : document.documentElement.getAttribute("xmlns:" + a) + }, h = e(b, d)), h) : e(b) + }, e.RangeError = function(a) { + function b(a, c, d) { + this.type = a, this.message = c, this.parent = d != null ? d : null, b.__super__.constructor.call(this, this.message) + } + return H(b, a), b + }(Error), e.BrowserRange = function() { + function a(a) { + this.commonAncestorContainer = a.commonAncestorContainer, this.startContainer = a.startContainer, this.startOffset = a.startOffset, this.endContainer = a.endContainer, this.endOffset = a.endOffset + } + return a.prototype.normalize = function(a) { + var b, c, d, f, g, h, i, j, k; + if (this.tainted) return console.error(E("You may only call normalize() once on a BrowserRange!")), !1; + this.tainted = !0, h = {}, d = {}, k = ["start", "end"]; + for (i = 0, j = k.length; i < j; i++) { + g = k[i], c = this[g + "Container"], f = this[g + "Offset"]; + if (c.nodeType === Node.ELEMENT_NODE) { + b = c.childNodes[f], c = b || c.childNodes[f - 1], c.nodeType === Node.ELEMENT_NODE && !c.firstChild && (b = null, c = c.previousSibling); + while (c.nodeType !== Node.TEXT_NODE) c = c.firstChild; + f = b ? 0 : c.nodeValue.length + } + h[g] = c, h[g + "Offset"] = f + } + d.start = h.startOffset > 0 ? h.start.splitText(h.startOffset) : h.start, h.start === h.end ? (h.endOffset - h.startOffset < d.start.nodeValue.length && d.start.splitText(h.endOffset - h.startOffset), d.end = d.start) : (h.endOffset < h.end.nodeValue.length && h.end.splitText(h.endOffset), d.end = h.end), d.commonAncestor = this.commonAncestorContainer; + while (d.commonAncestor.nodeType !== Node.ELEMENT_NODE) d.commonAncestor = d.commonAncestor.parentNode; + return new e.NormalizedRange(d) + }, a.prototype.serialize = function(a, b) { + return this.normalize(a).serialize(a, b) + }, a + }(), e.NormalizedRange = function() { + function b(a) { + this.commonAncestor = a.commonAncestor, this.start = a.start, this.end = a.end + } + return b.prototype.normalize = function(a) { + return this + }, b.prototype.limit = function(b) { + var c, d, e, f, g, h; + c = a.grep(this.textNodes(), function(c) { + return c.parentNode === b || a.contains(b, c.parentNode) + }); + if (!c.length) return null; + this.start = c[0], this.end = c[c.length - 1], e = a(this.start).parents(), h = a(this.end).parents(); + for (f = 0, g = h.length; f < g; f++) { + d = h[f]; + if (e.index(d) !== -1) { + this.commonAncestor = d; + break + } + } + return this + }, b.prototype.serialize = function(b, c) { + var d, g, h; + return g = function(d, e) { + var g, h, i, j, k, l, m, n; + c ? j = a(d).parents(":not(" + c + ")").eq(0) : j = a(d).parent(), l = f.xpathFromNode(j, b)[0], k = f.getTextNodes(j), h = k.slice(0, k.index(d)), i = 0; + for (m = 0, n = h.length; m < n; m++) g = h[m], i += g.nodeValue.length; + return e ? [l, i + d.nodeValue.length] : [l, i] + }, h = g(this.start), d = g(this.end, !0), new e.SerializedRange({ + start: h[0], + end: d[0], + startOffset: h[1], + endOffset: d[1] + }) + }, b.prototype.text = function() { + var a; + return function() { + var b, c, d, e; + d = this.textNodes(), e = []; + for (b = 0, c = d.length; b < c; b++) a = d[b], e.push(a.nodeValue); + return e + }.call(this).join("") + },b.prototype.textNodes = function() { + var b, c, d, e; + return d = f.getTextNodes(a(this.commonAncestor)), e = [d.index(this.start), d.index(this.end)], c = e[0], b = e[1], a.makeArray(d.slice(c, +b + 1 || 9e9)) + }, b.prototype.toRange = function() { + var a; + return a = document.createRange(), a.setStartBefore(this.start), a.setEndAfter(this.end), a + }, b + }(), e.SerializedRange = function() { + function b(a) { + this.start = a.start, this.startOffset = a.startOffset, this.end = a.end, this.endOffset = a.endOffset + } + return b.prototype.normalize = function(b) { + var c, d, g, h, i, j, k, l, m, n, o, p, q; + j = {}, p = ["start", "end"]; + for (l = 0, n = p.length; l < n; l++) { + i = p[l]; + try { + h = e.nodeFromXPath(this[i], b) + } catch (r) { + throw d = r, new e.RangeError(i, "Error while finding " + i + " node: " + this[i] + ": " + d, d) + } + if (!h) throw new e.RangeError(i, "Couldn't find " + i + " node: " + this[i]); + g = 0, q = f.getTextNodes(a(h)); + for (m = 0, o = q.length; m < o; m++) { + k = q[m]; + if (g + k.nodeValue.length >= this[i + "Offset"]) { + j[i + "Container"] = k, j[i + "Offset"] = this[i + "Offset"] - g; + break + } + g += k.nodeValue.length + } + if (j[i + "Offset"] == null) throw new e.RangeError("" + i + "offset", "Couldn't find offset " + this[i + "Offset"] + " in element " + this[i]) + } + return c = document.compareDocumentPosition == null ? function(a, b) { + return a.contains(b) + } : function(a, b) { + return a.compareDocumentPosition(b) & 16 + }, a(j.startContainer).parents().each(function() { + if (c(this, j.endContainer)) return j.commonAncestorContainer = this, !1 + }), (new e.BrowserRange(j)).normalize(b) + }, b.prototype.serialize = function(a, b) { + return this.normalize(a).serialize(a, b) + }, b.prototype.toObject = function() { + return { + start: this.start, + startOffset: this.startOffset, + end: this.end, + endOffset: this.endOffset + } + }, b + }(), t = this.Annotator, b = function(b) { + function c(b, d) { + this.onDeleteAnnotation = I(this.onDeleteAnnotation, this), this.onEditAnnotation = I(this.onEditAnnotation, this), this.onAdderClick = I(this.onAdderClick, this), this.onAdderMousedown = I(this.onAdderMousedown, this), this.onHighlightMouseover = I(this.onHighlightMouseover, this), this.checkForEndSelection = I(this.checkForEndSelection, this), this.checkForStartSelection = I(this.checkForStartSelection, this), this.clearViewerHideTimer = I(this.clearViewerHideTimer, this), this.startViewerHideTimer = I(this.startViewerHideTimer, this), this.showViewer = I(this.showViewer, this), this.onEditorSubmit = I(this.onEditorSubmit, this), this.onEditorHide = I(this.onEditorHide, this), this.showEditor = I(this.showEditor, this), c.__super__.constructor.apply(this, arguments), this.plugins = {}; + if (!c.supported()) return this; + this.options.readOnly || this._setupDocumentEvents(), this._setupWrapper()._setupViewer()._setupEditor(), this._setupDynamicStyle(), this.adder = a(this.html.adder).appendTo(this.wrapper).hide() + } + return H(c, b), c.prototype.events = { + ".annotator-adder button click": "onAdderClick", + ".annotator-adder button mousedown": "onAdderMousedown", + ".annotator-hl mouseover": "onHighlightMouseover", + ".annotator-hl mouseout": "startViewerHideTimer" + }, c.prototype.html = { + adder: '
", + wrapper: '
' + }, c.prototype.options = { + readOnly: !1 + }, c.prototype.plugins = {}, c.prototype.editor = null, c.prototype.viewer = null, c.prototype.selectedRanges = null, c.prototype.mouseIsDown = !1, c.prototype.ignoreMouseup = !1, c.prototype.viewerHideTimer = null, c.prototype._setupWrapper = function() { + return this.wrapper = a(this.html.wrapper), this.element.find("script").remove(), this.element.wrapInner(this.wrapper), this.wrapper = this.element.find(".annotator-wrapper"), this + }, c.prototype._setupViewer = function() { + var b = this; + return this.viewer = new c.Viewer({ + readOnly: this.options.readOnly + }), this.viewer.hide().on("edit", this.onEditAnnotation).on("delete", this.onDeleteAnnotation).addField({ + load: function(c, d) { + return d.text ? a(c).html(f.escape(d.text)) : a(c).html("" + E("No Comment") + ""), b.publish("annotationViewerTextField", [c, d]) + } + }).element.appendTo(this.wrapper).bind({ + mouseover: this.clearViewerHideTimer, + mouseout: this.startViewerHideTimer + }), this + }, c.prototype._setupEditor = function() { + return this.editor = new c.Editor, this.editor.hide().on("hide", this.onEditorHide).on("save", this.onEditorSubmit).addField({ + type: "textarea", + label: E("Comments") + "…", + load: function(b, c) { + return a(b).find("textarea").val(c.text || "") + }, + submit: function(b, c) { + // c.text returns user entered comment value + return c.text = a(b).find("textarea").val() + + } + }), this.editor.element.appendTo(this.wrapper), this + }, c.prototype._setupDocumentEvents = function() { + return a(document).bind({ + mouseup: this.checkForEndSelection, + mousedown: this.checkForStartSelection + }), this + }, c.prototype._setupDynamicStyle = function() { + var b, c, d, e; + return d = a("#annotator-dynamic-style"), d.length || (d = a('').appendTo(document.head)), c = "*" + function() { + var a, b, c, d; + c = ["adder", "outer", "notice", "filter"], d = []; + for (a = 0, b = c.length; a < b; a++) e = c[a], d.push(":not(.annotator-" + e + ")"); + return d + }().join(""), b = f.maxZIndex(a(document.body).find(c)), b = Math.max(b, 1e3), d.text([".annotator-adder, .annotator-outer, .annotator-notice {", " z-index: " + (b + 20) + ";", "}", ".annotator-filter {", " z-index: " + (b + 10) + ";", "}"].join("\n")), this + }, c.prototype.getSelectedRanges = function() { + var b, c, d, g, h, i, j, k, l; + j = f.getGlobal().getSelection(), h = [], i = [], j.isCollapsed || (h = function() { + var a, f, h; + h = []; + for (c = a = 0, f = j.rangeCount; 0 <= f ? a < f : a > f; c = 0 <= f ? ++a : --a) g = j.getRangeAt(c), b = new e.BrowserRange(g), d = b.normalize().limit(this.wrapper[0]), d === null && i.push(g), h.push(d); + return h + }.call(this), j.removeAllRanges()); + for (k = 0, l = i.length; k < l; k++) g = i[k], j.addRange(g); + return a.grep(h, function(a) { + return a && j.addRange(a.toRange()), a + }) + }, c.prototype.createAnnotation = function() { + var a; + return a = {}, this.publish("beforeAnnotationCreated", [a]), a + }, c.prototype.setupAnnotation = function(b) { + var c, d, f, g, h, i, j, k, l, m; + h = this.wrapper[0], b.ranges || (b.ranges = this.selectedRanges), f = [], m = b.ranges; + for (i = 0, k = m.length; i < k; i++) { + g = m[i]; + try { + f.push(e.sniff(g).normalize(h)) + } catch (n) { + c = n; + if (!(c instanceof e.RangeError)) throw c; + this.publish("rangeNormalizeFail", [b, g, c]) + } + } + b.quote = [], b.ranges = [], b.highlights = []; + for (j = 0, l = f.length; j < l; j++) d = f[j], b.quote.push(a.trim(d.text())), b.ranges.push(d.serialize(this.wrapper[0], ".annotator-hl")), a.merge(b.highlights, this.highlightRange(d)); + return b.quote = b.quote.join(" / "), a(b.highlights).data("annotation", b), b + }, c.prototype.updateAnnotation = function(a) { + return this.publish("beforeAnnotationUpdated", [a]), this.publish("annotationUpdated", [a]), a + }, c.prototype.deleteAnnotation = function(b) { + var c, d, e, f, g; + if (b.highlights != null) { + g = b.highlights; + for (e = 0, f = g.length; e < f; e++) { + d = g[e]; + if (d.parentNode == null) continue; + c = d.childNodes[0], a(d).replaceWith(d.childNodes) + } + } + return this.publish("annotationDeleted", [b]), b + }, c.prototype.loadAnnotations = function(a) { + var b, c, d = this; + return a == null && (a = []), c = function(a) { + var e, f, g, h; + a == null && (a = []), f = a.splice(0, 10); + for (g = 0, h = f.length; g < h; g++) e = f[g], d.setupAnnotation(e); + return a.length > 0 ? setTimeout(function() { + return c(a) + }, 10) : d.publish("annotationsLoaded", [b]) + }, b = a.slice(), a.length && c(a), this + }, c.prototype.dumpAnnotations = function() { + return this.plugins.Store ? this.plugins.Store.dumpAnnotations() : (console.warn(E("Can't dump annotations without Store plugin.")), !1) + }, c.prototype.highlightRange = function(b, c) { + var d, e, f, g, h, i, j; + c == null && (c = "annotator-hl"), f = /^\s*$/, d = a(""), i = b.textNodes(), j = []; + for (g = 0, h = i.length; g < h; g++) e = i[g], f.test(e.nodeValue) || j.push(a(e).wrapAll(d).parent().show()[0]); + return j + }, c.prototype.highlightRanges = function(b, c) { + var d, e, f, g; + c == null && (c = "annotator-hl"), d = []; + for (f = 0, g = b.length; f < g; f++) e = b[f], a.merge(d, this.highlightRange(e, c)); + return d + }, c.prototype.addPlugin = function(a, b) { + var d, e; + return this.plugins[a] ? console.error(E("You cannot have more than one instance of any plugin.")) : (d = c.Plugin[a], typeof d == "function" ? (this.plugins[a] = new d(this.element[0], b), this.plugins[a].annotator = this, typeof(e = this.plugins[a]).pluginInit == "function" && e.pluginInit()) : console.error(E("Could not load ") + a + E(" plugin. Have you included the appropriate