https://www.plancton-du-monde.org/typo3conf/ext/wt_socialbookmarks/files/add2favourite.js?1244204020
1/*************************************************************** 2* Copyright notice 3* 4* (c) 2008 Alex Kellner <[email protected]> 5* All rights reserved 6* 7* This script is part of the TYPO3 project. The TYPO3 project is 8* free software; you can redistribute it and/or modify 9* it under the terms of the GNU General Public License as published by 10* the Free Software Foundation; either version 2 of the License, or 11* (at your option) any later version. 12* 13* The GNU General Public License can be found at 14* http://www.gnu.org/copyleft/gpl.html. 15* 16* This script is distributed in the hope that it will be useful, 17* but WITHOUT ANY WARRANTY; without even the implied warranty of 18* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19* GNU General Public License for more details. 20* 21* This copyright notice MUST APPEAR in all copies of the script! 22***************************************************************/ 23 24 25function wt_socialbookmarks_add2favourite(Text, URL) { 26 27 if (window.sidebar) { // firefox 28 window.sidebar.addPanel(Text, URL, ""); 29 } 30 31 else if(window.opera && window.print) { // opera 32 var elem = document.createElement('a'); 33 elem.setAttribute('href', URL); 34 elem.setAttribute('title', Text); 35 elem.setAttribute('rel', 'sidebar'); 36 elem.click(); 37 } 38 39 else if(document.all) { // ie 40 window.external.AddFavorite(URL, Text); 41 } 42}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.