Skip to content

Commit

Permalink
experimented with imagefit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclingzealot committed Mar 27, 2012
1 parent 2b4f056 commit f4fe15b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README
Original file line number Diff line number Diff line change
@@ -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.


13 changes: 12 additions & 1 deletion www/index.php
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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\">";
Expand Down
1 change: 1 addition & 0 deletions www/js/jquery.imagefit.js

0 comments on commit f4fe15b

Please sign in to comment.