1/* 2Plugin Name: MealPlannerPro Recipe Plugin 3Plugin URI: http://www.mealplannerpro.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: 7.6.8 7Author: MealPlannerPro.com 8Author URI: http://www.mealplannerpro.com/ 9License: Direct license by original author - http://www.808.dk/?code-javascript-print 10 11Copyright 2011, 2012, 2013, 2014 MealPlannerPro, 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 MealPlannerPro Recipe Plugin. 20 21 MealPlannerPro 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 MealPlannerPro 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 MealPlannerPro Recipe Plugin. If not, see <http://www.gnu.org/licenses/>. 33*/ 34 35var win=null; 36function zlrPrint(id, plugindir, design, noimage, headingcolor ) 37{ 38 design = design || 'mpprecipe-std' 39 40 var content = document.getElementById(id).innerHTML; 41 win = window.open(); 42 self.focus(); 43 win.document.open();
44 win.document.write('<html><head>'); 45 46 var pre = '<link charset=\'utf-8\' href=\'' + plugindir 47 var post = '\' rel=\'stylesheet\' type=\'text/css\' />' 48 49 if( noimage ) 50 var css = pre + 'mpprecipe-print-bare.css' + post 51 else 52 { 53 var css = pre + design + '.css' + post 54 css += pre + 'mpprecipe-common.css' + post 55 css += pre + 'mpprecipe-print.css' + post 56 57 if( headingcolor ) 58 win.document.write('<style>.mpprecipe .h-4, #mpprecipe-title { color:' + headingcolor + ' !important; }</style>'); 59 } 60 61 62 win.document.write('</head>') 63 win.document.write( css ) 64 win.document.write('<body onload="print();">'); 65 win.document.write('<div id=\'mpprecipe-print-container\' >'); 66 win.document.write( content ); 67 win.document.write('</div>'); 68 win.document.write('</body></html>'); 69 70 win.document.close(); 71}
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.