Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

experimented with imagefit.js

  • Loading branch information...
commit f4fe15bef17833755fc58c56697a5f8ef77b57b1 1 parent 2b4f056
@cyclingzealot authored
Showing with 18 additions and 6 deletions.
  1. +5 −5 README
  2. +12 −1 www/index.php
  3. +1 −0  www/js/jquery.imagefit.js
View
10 README
@@ -1,11 +1,11 @@
shows-binoosh is a very small program to remotely control a slide show presentation made up of png, jpgs or gifs.
-*Audience goes to URL and is presented to first slide.
-*AUdience listens to presenter via sepeate channel
-*Slide show controller clicks on php generated page to go to the next slide.
-*Audience client checks to see if server has updated current slide. Logs in.
+1. Audience goes to URL and is presented to first slide.
+2. Audience listens to presenter via sepeate channel
+3. Slide show controller clicks on php generated page to go to the next slide.
+4. Audience client checks to see if server has updated current slide.
-The audio or video is suppose to be listen via a seperate channel not supported by shows-binoosh.
+The audio or video is suppose to be listened via a seperate channel not supported by shows-binoosh.
View
13 www/index.php
@@ -1,12 +1,21 @@
<html>
<head>
+<style>
+html, body {
+height: 100%;
+}
+</style>
<script type="text/javascript" src="js/jquery.js"></script>
+<script type="text/javascript" src="js/jquery.imagefit.js"></script>
<script type="text/javascript">
var displayedUrl = '';
$(document).ready(function() {
refresh();
window.setInterval(refresh, 500);
});
+$(window).load(function(){
+ $('#entier').imagefit();
+});
function refresh() {
$.get("http://localhost/shows-binoosh/fetchThis.txt", function(data){
var currentUrl = data;
@@ -31,10 +40,12 @@ function output(string) {
tstr = d.getHours() +':'+ d.getMinutes() +':'+ d.getSeconds();
$('body').append("<p>"+ tstr + ": " +string+"</p>");
}
+
+
</script>
</head>
<body>
-<div id="entier">
+<div id="entier" width="100%" height="100%">
<?php
$imagePath = file_get_contents('fetchThis.txt');
echo "<img src=\"$imagePath\" id=\"main\">";
View
1  www/js/jquery.imagefit.js
Please sign in to comment.
Something went wrong with that request. Please try again.