Simplify epubreader. Remove jquery

--HG--
extra : rebase_source : 59f678794d0aefcfc2e3a573dda05637be02e51c
This commit is contained in:
Sébastien Lucas 2013-09-11 10:55:18 +02:00
parent c0509886fd
commit ae900c4fb5

View file

@ -23,7 +23,6 @@ $book->initSpineComponent ();
<meta http-equiv="imagetoolbar" content="no" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
<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/monoctrl.js") ?>"></script>
<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 () {
<?php echo "return [" . implode (", ", array_map (function ($content) { return "{title: '" . $content["title"] . "', src: '". $content["src"] . "'}"; }, $book->contents ())) . "];"; ?>
},
getComponent: function (componentId, callback) {
$.ajax({
url: "epubfs.php?<?php echo $add ?>comp=" + componentId,
type: 'get',
dataType: 'text',
error: function () {alert ("error");},
success: callback
});
getComponent: function (componentId) {
return { url: "epubfs.php?<?php echo $add ?>comp=" + componentId };
},
getMetaData: function(key) {
return {