Time for an update on the Digital Movie Poster. I moved away from the SSE version…
…and started working on a version that works directly of (and on) Kodi itself.
Gave me a lot more flexibility and killer response.
Now playing around with the css effects and layout. Came up with this.
For moving image check these videos
Create a kodi.html and put following code in it
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="description" content="Digital Movie Poster">
<meta name="author" content="Dennis Murray">
<!-- <link rel="search" href="provider.xml" type="application/opensearchdescription+xml" title="Kodi Library" /> -->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<!-- <link href="/images/logo.png" rel="image_src" /> -->
<meta name="robots" content="NOINDEX, NOFOLLOW">
<link href="css/base.css?1.3.57" rel="stylesheet" type="text/css">
<link href="css/ipad.css?1.0.5" rel="stylesheet" media="only screen and (max-device-width: 1024px)" type="text/css">
<title>Digital Movie Poster</title>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
var ampm = h >= 12 ? 'PM' : 'AM';
h = checkTime(h);
m = checkTime(m);
s = checkTime(s);
document.getElementById('clock').innerHTML =
h + ":" + m + " " + ampm
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
</head>
<body onload="startTime()">
<div id="nowPlayingPanel" style="display: none;>
<div id="nowPlayingContent">
<div id="videoDescription">
<div id="videoCoverArt"></div>
<div id="footerPopover">
<div id="videoTitle"></div>
<div id="videoDuration"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/xbmc.launcher.js?v=2.1.0"></script>
</body>
</html>
Then log onto your Kodi (linux based) via SSH and place kodi.html in /usr/share/kodi/addons/webinterface.default
Once you have done that you can edit the base.css and ipad.css to your liking to show the videoTitle, clock and videoDuration div’s in the font and colours you like.
Best thing you can do is create a seperate kodi.css and replace base.css with kodi.css in kodi.html not to upset the default index webpage of Kodi itself.