With Kindle browser reduce a little the text-size, seems to help. re #165

这个提交包含在:
Sébastien Lucas 2014-07-29 22:15:45 +02:00
父节点 76bec03895
当前提交 3aebffc217
共有 2 个文件被更改,包括 6 次插入0 次删除

查看文件

@ -48,11 +48,15 @@
$data = array("title" => $config['cops_title_default'],
"version" => VERSION,
"opds_url" => $config['cops_full_url'] . "feed.php",
"customHeader" => "",
"template" => getCurrentTemplate (),
"server_side_rendering" => useServerSideRendering (),
"current_css" => getCurrentCss (),
"favico" => $config['cops_icon'],
"getjson_url" => "getJSON.php?" . addURLParameter (getQueryString (), "complete", 1));
if (preg_match("/Kindle/", $_SERVER['HTTP_USER_AGENT'])) {
$data ["customHeader"] = '<style media="screen" type="text/css"> html { font-size: 75%; -webkit-text-size-adjust: 75%; -ms-text-size-adjust: 75%; }</style>';
}
$headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html');
$template = new doT ();
$dot = $template->template ($headcontent, NULL);

查看文件

@ -32,6 +32,8 @@
<link rel="stylesheet" type="text/css" href="templates/default/styles/font-awesome.css?v={{=it.version}}" media="screen" />
<link rel="stylesheet" type="text/css" href="{{=it.current_css}}?v={{=it.version}}" media="screen" />
{{=it.customHeader}}
{{? it.server_side_rendering == 0}}
<script type="text/javascript">
$(document).ready(function() {