1/* 2Plugin Name: ZipList Recipe Plugin 3Plugin URI: http://www.ziplist.com/recipe_plugin 4Plugin GitHub: https://github.com/Ziplist/recipe_plugin 5Description: A plugin that adds all the necessary microdata to your recipes, so they will show up in Google's Recipe Search 6Version: 3.1 7Author: ZipList.com 8Author URI: http://www.ziplist.com/ 9License: Direct license by original author - http://www.808.dk/?code-javascript-print 10 11Copyright 2011, 2012, 2013, 2014 ZipList, Inc. 12This code is derived from an example provided by Ulrik D. Hansen and licensed under the Creative Commons Attribution License. 13You can see the original post at http://www.808.dk/?code-javascript-print 14*/ 15 16/* 17 This section refers to any extensions made to the original work. 18 19 This file is part of ZipList Recipe Plugin. 20 21 ZipList Recipe Plugin is free software: you can redistribute it and/or modify 22 it under the terms of the GNU General Public License as published by 23 the Free Software Foundation, either version 3 of the License, or 24 (at your option) any later version. 25 26 ZipList Recipe Plugin is distributed in the hope that it will be useful, 27 but WITHOUT ANY WARRANTY; without even the implied warranty of 28 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29 GNU General Public License for more details. 30 31 You should have received a copy of the GNU General Public License 32 along with ZipList Recipe Plugin. If not, see <http://www.gnu.org/licenses/>. 33*/ 34 35var win=null; 36function zlrPrint(id, plugindir) 37{ 38 var content = document.getElementById(id).innerHTML; 39 win = window.open(); 40 self.focus(); 41 win.document.open();
42 win.document.write('<html><head>'); 43 win.document.write('<link charset=\'utf-8\' href=\'' + plugindir + 'zlrecipe-print.css\' rel=\'stylesheet\' type=\'text/css\' />'); 44 win.document.write('</head><body onload="print();">'); 45 win.document.write('<div id=\'zlrecipe-print-container\' >'); 46 win.document.write(content); 47 win.document.write('</div>'); 48 win.document.write('</body></html>'); 49 win.document.close(); 50}
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.