aggregator/ 0040755 0000000 0000000 00000000000 07550537537 011722 5 ustar root root aggregator/reader_logic.js 0100644 0000000 0000000 00000014307 07550274705 014674 0 ustar root root // *** Copyright (c)2002 Jim Massey. All rights reserved ***********
// *** massey@stlouis-shopper.com **************
// *** No Warranty - certified to work with nothing ***
// ** for the reader.xul doc reader for kiosk project **
var current_list_name = 0;
var slide_show_count = 0;
function new_Page(uri, list) {
if (uri == null) {
var site = document.getElementById(list).getAttribute("value");
document.getElementById("display1").setAttribute("src", site);
} else {
document.getElementById("display1").setAttribute("src", uri);
}
document.getElementById("display1").focus();
}
// **** Fillup the toolbar with stuff from reader-properties.js ****
function add_menu_item() {
if (default_uri != "false") document.getElementById("display1")
.setAttribute("src", default_uri);
if (add_menus == "true") {
var tempItem = document.getElementById("main-toolbar").appendChild(
document.createElement("menulist"));
tempItem.setAttribute("label", "Main Menu");
tempItem.setAttribute("flex", "0");
tempItem.setAttribute("id", "main-menu");
tempItem.setAttribute("tooltiptext", menuItems[0]);
var popupItem = document.getElementById("main-menu").
appendChild(document.createElement("menupopup"));
for (var i = 1; i < menuItems.length; i++) {
tempItem.appendItem(menuItems[i])
.setAttribute("oncommand", menuItemsValue[i]);
}
}
add_menuList();
if (SlideShow_create == "true") {
slide_show_count = 0;
if (SlideShow.length >= slide_show_count + 1) SlideShow_forward();
if (SlideShow_create_menu == "true") SlideShow_menu();
if (SlideShow_cycle_count >= 1) SlideShow_auto();
if (SlideShow_toggle_wanted == "true") SlideShow_toggleBtn();
}
add_buttons();
if (SlideShow_create_shortmsg == "true") {
var tempItem = document.getElementById("reader-window");
var tempItemA = document.createElement("text");
tempItemA.setAttribute("id", "short-msg");
tempItemA.setAttribute("value", SlideShow_short_msg);
var tempItemB = document.getElementById("main-toolbar");
tempItem.insertBefore(tempItemA, tempItemB);
}
}
function add_menuList() {
var i = 0;
if ( add_menus == "true" ) {
ArrayTemplabel = "menuListLabel";
for (i = 0; i < menuLists.length; i++) {
var tempItem = document.getElementById("main-toolbar").appendChild(
document.createElement("menulist"));
tempItem.setAttribute("label", menuLists[i]);
tempItem.setAttribute("flex", "1");
tempItem.setAttribute("id", menuLists[i]);
var popupItem = document.getElementById(menuLists[i]).
appendChild(document.createElement("menupopup"));
var Test1 = "TestMenu";
popupItem.setAttribute("oncommand", menuListsAction[i]);
tempItem.appendItem(menuListsLabel[i], "http://agnes/");
}
}
}
function new_Uri(list) {
alert(list);
var site = document.getElementById(list).getAttribute("value");
document.getElementById("display1").setAttribute("src", site);
}
function add_buttons() {
if (new_buttons == 'true') {
for ( var i = 0; i < toolbarButtonsLabel.length; i++) {
if (toolbarButtonsSRC[i]) {
var tempItem = document.getElementById("main-toolbar").appendChild(
document.createElement("image"));
tempItem.setAttribute("src", toolbarButtonsSRC[i]);
tempItem.setAttribute("onclick", toolbarButtonsAction[i]);
} else if (toolbarButtonsLabel[i]) {
var tempItem = document.getElementById("main-toolbar").appendChild(
document.createElement("button"));
tempItem.setAttribute("label", toolbarButtonsLabel[i]);
tempItem.setAttribute("oncommand", toolbarButtonsAction[i]);
}
tempItem.setAttribute("tooltiptext", toolbarButtonsLabel[i]);
}
}
}
function xpi_install(name, src)
{
var Aname=(name);
var xpi={'Mozilla Application' : src};
InstallTrigger.install(xpi);
}
// ****** Slide Show Functions ****************
function SlideShow_menu() {
var tempItem = document.getElementById("main-toolbar")
.appendChild(document.createElement("menulist"));
tempItem.setAttribute("label", SlideShow[0]);
tempItem.setAttribute("flex", "1");
tempItem.setAttribute("id", "slideshow-menu");
tempItem.setAttribute("crop", "left");
tempItem.setAttribute("tooltiptext", SlideShow[0]);
var popupItem = document.getElementById("slideshow-menu").
appendChild(document.createElement("menupopup"));
for (var i = 1; i < SlideShow.length; i++) {
//var tempUri = "new_Page('" + SlideShow[i] + "')"; // ** HACK **
var tempUri = "SlideShow_menu_choice(" + i + ");";
if (SlideShowLabel[i] != null) {
tempItem.appendItem(SlideShowLabel[i])
.setAttribute("oncommand", tempUri);
} else {
tempItem.appendItem(SlideShow[i])
.setAttribute("oncommand", tempUri);
}
}
}
function SlideShow_menu_choice(count) {
slide_show_count = count;
new_Page(SlideShow[count]);
}
function SlideShow_forward() {
if (slide_show_count >= SlideShow.length) {
slide_show_count = 1;
} else {
slide_show_count++;
if (slide_show_count >= SlideShow.length) { slide_show_count = 1;}
}
//alert("Forward Count: " + slide_show_count);
new_Page(SlideShow[slide_show_count]);
}
function SlideShow_back() {
if (slide_show_count >= 2) {
slide_show_count--;
//alert("Back Count: " + slide_show_count);
new_Page(SlideShow[slide_show_count]);
}
}
function SlideShow_auto() {
SlideShow_interval = setInterval("SlideShow_forward()",
SlideShow_cycle_count);
}
function SlideShow_toggleBtn() {
var tempItem = document.getElementById("main-toolbar").appendChild(
document.createElement("button"));
tempItem.setAttribute("label", "Stop Slide Show");
tempItem.setAttribute("id", "SlideShowToggleBtn");
tempItem.setAttribute("oncommand", "SlideShow_toggle()");
tempItem.setAttribute("tooltiptext", "Starts/Stops Slide Show");
}
function SlideShow_toggle() {
if (document.getElementById("SlideShowToggleBtn")
.getAttribute("label") == "Stop Slide Show") {
clearInterval(SlideShow_interval);
alert("Slide Show Paused");
document.getElementById("SlideShowToggleBtn")
.setAttribute("label", "Start Slide Show");
} else {
document.getElementById("SlideShowToggleBtn")
.setAttribute("label", "Stop Slide Show");
SlideShow_auto();
}
}
aggregator/reader_properties.js 0100644 0000000 0000000 00000007456 07550365065 016002 0 ustar root root // *** Copyright (c)2002 Jim Massey. All rights reserved ***********
// *** massey@stlouis-shopper.com **************
// *** No Warranty - certified to work with nothing ***
// ** for the slide_show and doc reader.xul doc reader **
// *** Generic defaults ***
var add_menus = "false";
var default_uri = "false"; //false for about:blank uri or a fully qualifide uri
// ***** SlideShow control variables *****
var SlideShow_create = "true"; // true = setup show - false = no show
var SlideShow_create_shortmsg = "true"; // a one line text msg
var SlideShow_short_msg = "Slide Show: Using mozilla mail to give example of a mozilla application";
var SlideShow_create_menu = "true"; // dropdown menu of slides in show
var SlideShow_toggle_wanted = "false"; // start/stop running show button
var SlideShow_cycle_count = "0"; // 60000 is 1 minute - 0 no cycling
var menuLists = new Array();
var menuListsAction = new Array();
var menuListsLabel = new Array();
//menuLists[0] = "TestMenu";
//menuListsAction[0] = "new_Page(null, 'TestMenu')";
//menuListsLabel[0] = "NoWhere!";
//menuLists[1] = "Another one";
//menuListsAction[1] = "new_Page('http://jim/~jtjsoftware', null)";
//menuListsLabel[1] = "JTJ Home Page";
//var menuLists0 = "http://jim";
// **** add items to the main menu dropdown ****
// ** There must be name/value array pairs for each item ***
// **** First element of array is for properties value ****
var menuItems = new Array();
var menuItemsValue = new Array();
menuItems[0] = "Main Menu";
menuItemsValue[0] = "extra value";
menuItems[1] = "Kiosk Installation";
menuItemsValue[1] = "new_Page('http://stlouis-shopper.com/~jtjsoftware/kiosk/kioskzippy.html', null)";
menuItems[2] = "Mozilla Basics";
menuItemsValue[2] = "new_Page('http://stlouis-shopper.com/~jtjsoftware/kiosk/moz-basics.html', null)";
menuItems[3] = "Window Specific";
menuItemsValue[3] = "new_Page('http://stlouis-shopper.com/~jtjsoftware/kiosk/moz-windogs.html', null)";
menuItems[4] = "Feedback";
menuItemsValue[4] = "http://stlouis-shopper.com/~jtjsoftware/kiosk/feedback-mail.html";
menuItems[5] = "Interface Customization";
menuItemsValue[5] = "http://stlouis-shopper.com/~jtjsoftware/kiosk/kiosk-chrome.html";
menuItems[6] = "Skin Customization";
menuItemsValue[6] = "http://stlouis-shopper.com/~jtjsoftware/kiosk/skin-kiosk.html";
menuItems[7] = "Read user prefs settings";
menuItemsValue[7] = "file:///home/massey/jtjsoftware/kiosk/prefs.html";
// **** define toolbar buttons as array ****
// **** buttons get added in order. There is one blank button for copying **
// **** set new_buttons = "false" for no buttons ****
// **** comment out the Array assignments if you set new_buttons = "false" **
var new_buttons = "true";
var toolbarButtonsLabel = new Array();
var toolbarButtonsAction = new Array();
var toolbarButtonsSRC = new Array();
//toolbarButtonsLabel[0] = "";
//toolbarButtonsAction[0] = "new_Page('')";
//toolbarButtonsSRC[0] = "";
toolbarButtonsLabel[0] = "Next Frame";
toolbarButtonsAction[0] = "SlideShow_forward()";
toolbarButtonsLabel[1] = "Previous Frame";
toolbarButtonsAction[1] = "SlideShow_back()";
toolbarButtonsLabel[2] = "Quit this SlideShow";
toolbarButtonsAction[2] = "location='http://stlouis-shopper.com/~jtjsoftware/kiosk/index.xul'";
toolbarButtonsSRC[2] = "xulSkin/images/kiosk-quitb1.png";
// ******** Slideshow definitions *********
// ******** The first element of array is for property data ***
// ******** SlideShow[0] is for a descriptive string *****
var SlideShow = new Array();
var SlideShowLabel = new Array();
//SlideShow[N] = "XUL Documentation";
//SlideShow[N] = "http://www.mozilla.org/mailnews/presentations/mailapp/slide1.html";
//SlideShowLabel[N] = "Introduction"
SlideShow[0] = "XUL Documentation";
SlideShow[1] = "http://www.mozilla.org/mailnews/presentations/mailapp/slide1.html";
SlideShowLabel[1] = "Introduction";
aggregator/reader.xul 0100644 0000000 0000000 00000002415 07547610046 013706 0 ustar root root
HELLO
aggregator/xulSkin/ 0040755 0000000 0000000 00000000000 07550365162 013350 5 ustar root root aggregator/xulSkin/images/ 0040755 0000000 0000000 00000000000 07547122527 014617 5 ustar root root aggregator/xulSkin/images/kiosk-quitb1.png 0100644 0000000 0000000 00000005016 07426061675 017651 0 ustar root root PNG
IHDR = Zq gAMA a bKGD pHYs ~ tIME,Qb IDATx[lgk;];;4-nJYo- @A UA#T }MxCBvECCN*m.$/\x83v&~Hovn}P