package page.com.jrsstray;

import org.wikiwebserver.core.WareHouse;
import org.wikiwebserver.handler.http.interfaces.*;

import page.config.SiteTemplatedPage;

import static org.wikiwebserver.html.HTMLHelper.*;

public class Index extends SiteTemplatedPage implements HTTPResponder {
    
    public void generate() {
        addResourceRoot("/templates/com/jrsstray/");
        addCSSLink("jrsstray.css");
        
        ProgramDetails jrsstray = new ProgramDetails();
        
        setTitle("JRSSTray - " + jrsstray.getDescription80());
        this.setKeywords(jrsstray.getKeywords());
        
        
        append(h(1, "What is <i>JRSSTray</i>?") +
               image("traymessage.gif", "RSS item tray message", "align='right' id='recentitems'") +    
               p(jrsstray.getDescription450()) +
                 getGoogleAdsenseBlock("pub-7253309958196609", "4308232035", 728, 90) +             
               h(1, "How to use JRSSTray") +
               
               image("recentitems.gif", "JRSSTray recent items", "align='left' id='recentitems'") +               
               p("JRSSTray can be installed or launched directly from the " +
                 a(Download.class, "download") + " page.") +
               p(" JRSSTray will start in the system tray area (next to the clock" +
               	 " on most operating systems). To add new RSS feeds to those being monitored" +
               	 " right click on the RSS icon in the system tray and click <i>Add RSS Feed</i>.") +
               p("Type or paste in the URL to the RSS feed and click OK, JRSSTray will" +
                 "  automatically download and begin displaying items in the feed.") +
               p("After a new RSS feed is added, all items will be displayed. To cancel" +
               	 " displaying each item individually, left click the tray icon. A list of " +
               	 " recent items will be shown. Click an item to be taken directly to the " +
               	 " Internet page containing full details about the item.") +
               p("RSSTray will continue to monitor the RSS feed(s) in the background and " +
               	 " display new items as soon as they are published.") +
                cleardiv()
        );
        
        String counterUrl = WareHouse.getUrlPathForClass(page.image.Counter.class) + "?size=11&amp;name=JRSSTray";
        append(image(counterUrl, "Page hits", "id='counterImage' align='right'"));      
    }
}


