Simplify epubreader. Remove jquery
--HG-- extra : rebase_source : 59f678794d0aefcfc2e3a573dda05637be02e51c
This commit is contained in:
parent
c0509886fd
commit
ae900c4fb5
|
@ -23,7 +23,6 @@ $book->initSpineComponent ();
|
||||||
<meta http-equiv="imagetoolbar" content="no" />
|
<meta http-equiv="imagetoolbar" content="no" />
|
||||||
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
|
||||||
<title>COPS's Epub Reader</title>
|
<title>COPS's Epub Reader</title>
|
||||||
<script type="text/javascript" src="<?php echo getUrlWithVersion("resources/jQuery/jquery-1.10.2.min.js") ?>"></script>
|
|
||||||
<script type="text/javascript" src="<?php echo getUrlWithVersion("resources/monocle/scripts/monocore.js") ?>"></script>
|
<script type="text/javascript" src="<?php echo getUrlWithVersion("resources/monocle/scripts/monocore.js") ?>"></script>
|
||||||
<script type="text/javascript" src="<?php echo getUrlWithVersion("resources/monocle/scripts/monoctrl.js") ?>"></script>
|
<script type="text/javascript" src="<?php echo getUrlWithVersion("resources/monocle/scripts/monoctrl.js") ?>"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("resources/monocle/styles/monocore.css") ?>" media="screen" />
|
<link rel="stylesheet" type="text/css" href="<?php echo getUrlWithVersion("resources/monocle/styles/monocore.css") ?>" media="screen" />
|
||||||
|
@ -37,14 +36,8 @@ $book->initSpineComponent ();
|
||||||
getContents: function () {
|
getContents: function () {
|
||||||
<?php echo "return [" . implode (", ", array_map (function ($content) { return "{title: '" . $content["title"] . "', src: '". $content["src"] . "'}"; }, $book->contents ())) . "];"; ?>
|
<?php echo "return [" . implode (", ", array_map (function ($content) { return "{title: '" . $content["title"] . "', src: '". $content["src"] . "'}"; }, $book->contents ())) . "];"; ?>
|
||||||
},
|
},
|
||||||
getComponent: function (componentId, callback) {
|
getComponent: function (componentId) {
|
||||||
$.ajax({
|
return { url: "epubfs.php?<?php echo $add ?>comp=" + componentId };
|
||||||
url: "epubfs.php?<?php echo $add ?>comp=" + componentId,
|
|
||||||
type: 'get',
|
|
||||||
dataType: 'text',
|
|
||||||
error: function () {alert ("error");},
|
|
||||||
success: callback
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
getMetaData: function(key) {
|
getMetaData: function(key) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue