1 Components.utils.import(
"resource://mashTape/mtUtils.jsm");
5 document.addEvent(
'mousewheel',
function(
event) {
8 if (typeof(nS5) ==
"undefined")
11 if (
event.wheel > 0) {
15 else if (
event.wheel < 0) {
21 var info = $(
'info').set(
'opacity', 0.5);
23 imageItems[0].offset = 0;
24 $(
'box').getElements(
'img').each(
function(img, idx) {
27 imageItems[idx].index = idx;
28 imageItems[idx].imgEl = img;
32 Application.prefs.getValue(
"extensions.mashTape.photo.speed", 50);
44 playpause: $(
'playpause')
46 onButtons:
function(command, isPlaying) {
50 $(
'icon-playpause').src =
"chrome://mashtape/skin/pause.png";
53 $(
'icon-playpause').src =
"chrome://mashtape/skin/play.png";
56 onWalk:
function(currentItem) {
66 currentItem.link +
'">' + currentItem.title +
'</a>')
68 var
date =
new Date(parseInt(currentItem.date));
70 window.parent.mashTape.strings
71 .GetStringFromName(
"extensions.mashTape.msg.by") +
72 ' <b><a href="' + currentItem.authorUrl +
'">' +
73 currentItem.author +
'</a></b> (' +
"<span title='" +
74 date.toLocaleString() +
"'>" + date.ago() +
75 "</span>" +
")").inject(info);
90 Application.prefs.getValue(
"extensions.mashTape.photo.speed", 50);
95 nS5.playpause(nS5.interval,
'next');
96 nS5.playpause(nS5.interval,
'next');
function mashTape_updatePhotoStreamSpeed()
function _mashTape_setupPhotoStream(imageItems, paneWidth, paneHeight)
aWindow setTimeout(function(){_this.restoreHistory(aWindow, aTabs, aTabData, aIdMap);}, 0)
function mashTape_triggerPhotoStream(imageItems, paneWidth)