Esempio n. 1
0
function fr_show_page()
{
    global $fr_contentdir;
    $temp_avail = fr_available_pages();
    if (empty($temp_avail)) {
        echo '<div class="theList">This chapter has no pages available.</div>';
        return;
    }
    echo '<div id="theManga"><div id="thePic"><a href="';
    if (fr_selected_page() != count($temp_avail)) {
        echo fr_get_href(fr_selected_comic(), fr_selected_chapter(), fr_selected_page() + 1);
    } else {
        $temp = fr_available_chapters();
        sort($temp);
        $key = array_search(fr_selected_chapter(), $temp);
        $key++;
        echo fr_get_href(fr_selected_comic(), $temp[$key], "1");
        if ($temp[$key] == null) {
            echo "&last";
        }
    }
    echo '" id="thePicLink"><img alt="' . fr_selected_manga_title() . '" src="' . fr_get_image_href(fr_selected_comic(), fr_selected_chapter(), $temp_avail[fr_selected_page() - 1]) . '"/></a></div></div>';
}
Esempio n. 2
0
function fr_get_pages()
{
    global $fr_available_pages, $fr_next_page;
    $fr_next_page = 0;
    return $fr_available_pages = fr_fetch_pages(fr_selected_comic(), fr_selected_chapter());
}
Esempio n. 3
0
?>
		

function loadImage(num){
	if (num < 1) return;
	if (num > imageArray.length) {<?php 
foreach (fr_available_chapters() as $key => $value) {
    if ($value == fr_selected_chapter()) {
        $thekey = $key;
    }
}
if ($thekey > 0) {
    $fr_available_chapters_temp = fr_available_chapters();
    echo "location.href = \"" . $fr_baseurl . fr_get_href(fr_selected_comic(), $fr_available_chapters_temp[$thekey - 1]) . "\"";
} else {
    echo 'location.href = "' . fr_get_href(fr_selected_comic()) . '&last"';
}
?>
};
	if (num <= imageArray.length) current = num;
	if (widthArray[num-1] > 900 && widthArray[num-1]/heightArray[num-1] > 1.2) {
			jQuery("#thePic").css("width", widthArray[num-1]);
			jQuery("#theManga").css("width",widthArray[num-1]);
			isSpread = true;
			}
		else{
			  jQuery("#thePic").attr('style', '');
			  jQuery("#theManga").attr('style','');
			  isSpread = false;
		}
	var pageState = {};