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

This commit is contained in:
Sébastien Lucas 2014-07-29 22:15:45 +02:00
parent 76bec03895
commit 3aebffc217
2 changed files with 6 additions and 0 deletions

View file

@ -48,11 +48,15 @@
$data = array("title" => $config['cops_title_default'], $data = array("title" => $config['cops_title_default'],
"version" => VERSION, "version" => VERSION,
"opds_url" => $config['cops_full_url'] . "feed.php", "opds_url" => $config['cops_full_url'] . "feed.php",
"customHeader" => "",
"template" => getCurrentTemplate (), "template" => getCurrentTemplate (),
"server_side_rendering" => useServerSideRendering (), "server_side_rendering" => useServerSideRendering (),
"current_css" => getCurrentCss (), "current_css" => getCurrentCss (),
"favico" => $config['cops_icon'], "favico" => $config['cops_icon'],
"getjson_url" => "getJSON.php?" . addURLParameter (getQueryString (), "complete", 1)); "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'); $headcontent = file_get_contents('templates/' . getCurrentTemplate () . '/file.html');
$template = new doT (); $template = new doT ();
$dot = $template->template ($headcontent, NULL); $dot = $template->template ($headcontent, NULL);

View file

@ -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="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" /> <link rel="stylesheet" type="text/css" href="{{=it.current_css}}?v={{=it.version}}" media="screen" />
{{=it.customHeader}}
{{? it.server_side_rendering == 0}} {{? it.server_side_rendering == 0}}
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {