Commit 4cd19f08 authored by Rafael Monnerat's avatar Rafael Monnerat

use cannonical url for CSS and Javascripts.

parent dcab2e34
...@@ -39,25 +39,28 @@ ...@@ -39,25 +39,28 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
<html xmlns="http://www.w3.org/1999/xhtml">\n <html xmlns="http://www.w3.org/1999/xhtml">\n
<head>\n <head>\n
<link rel="stylesheet" type="text/css" href="boom.css">\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n
<script type="text/javascript" src="jquery/core/jquery.js"></script>\n <tal:block tal:define="site_root python: here.getWebSiteValue() or here.getPortalObject();\n
<script type="text/javascript" src="jquery/ui/js/jquery-ui.js"></script>\n portal_url python: site_root.absolute_url();">\n
<script type="text/javascript" src="book_converter.js"></script>\n <link rel="stylesheet" type="text/css" tal:attributes="href string:${portal_url}/boom.css">\n
<script type="text/javascript" src="chapter_converter.js"></script>\n <script type="text/javascript" tal:attributes="src string:${portal_url}/jquery/core/jquery.js"></script>\n
<script type="text/javascript" tal:attributes="src string:${portal_url}/jquery/ui/js/jquery-ui.js"></script>\n
<script type="text/javascript" tal:attributes="src string:${portal_url}/book_converter.js"></script>\n
<script type="text/javascript" tal:attributes="src string:${portal_url}/chapter_converter.js"></script>\n
</tal:block>\n
<script type="text/javascript">\n <script type="text/javascript">\n
$(document).ready(function(){\n $(document).ready(function(){\n
$(\'input[name=clean_button]\', window.top.document).click(function(){\n $(\'input[name=clean_button]\', window.top.document).click(function(){\n
cleanForPrince();\n console.log(window.top.document)\n
return false;\n cleanForPrince();\n
});\n return false;\n
convertBook(\'getTextContent\', $(\'body\'));\n });\n
});\n convertBook(\'getTextContent\', $(\'body\'));\n
</script>\n });\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n </script>\n
<title>View as Book</title>\n <title>View as Book</title>\n
</head>\n </head>\n
<body>\n <body></body>\n
</body>\n
</html> </html>
]]></unicode> </value> ]]></unicode> </value>
......
...@@ -40,10 +40,13 @@ ...@@ -40,10 +40,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">\n <html xmlns="http://www.w3.org/1999/xhtml">\n
<head>\n <head>\n
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n
<link rel="stylesheet" type="text/css" href="boom.css">\n <tal:block tal:define="site_root python: here.getWebSiteValue() or here.getPortalObject();\n
<script type="text/javascript" src="jquery/core/jquery.js"></script>\n portal_url python: site_root.absolute_url();">\n
<script type="text/javascript" src="jquery/ui/js/jquery-ui.js"></script>\n <link rel="stylesheet" type="text/css" tal:attributes="href string:${portal_url}/boom.css">\n
<script type="text/javascript" src="chapter_converter.js"></script>\n <script type="text/javascript" tal:attributes="src string:${portal_url}/jquery/core/jquery.js"></script>\n
<script type="text/javascript" tal:attributes="src string:${portal_url}/jquery/ui/js/jquery-ui.js"></script>\n
<script type="text/javascript" tal:attributes="src string:${portal_url}/chapter_converter.js"></script>\n
</tal:block>\n
<script type="text/javascript">\n <script type="text/javascript">\n
$(document).ready(function(){\n $(document).ready(function(){\n
$(\'input[name=clean_button]\', window.top.document).click(function(){\n $(\'input[name=clean_button]\', window.top.document).click(function(){\n
......
13 14
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment