Commit cb67a113 authored by Lingnan Wu's avatar Lingnan Wu

The presentation works ,change the slides.js to change the Presentation page...

The presentation works ,change the slides.js to change the Presentation page body content before load the page,in slides.html and slideshow.html ,use window.parent and window.open to transfer the html content .slides.html is the page to show the presentation
parent f2dd85cd
......@@ -48,10 +48,9 @@
onclick="OfficeJS.save($('#input_file_name').attr('value'));">
<i class="icon-download-alt icon-white"></i>
Save
</button>&nbsp;
<a href=" https://www.tiolive.com/nexedi/test_page_module/46/WebPage_viewAsWeb?portal_skin=SlideShow&ignore_layout:int=1&form_id=TestPage_viewEditSlideShow&object_path=/nexedi/test_page_module/46&cancel_url=https%3A//www.tiolive.com/nexedi/test_page_module/46/TestPage_viewEditSlideShow&object_uid=1998318274&selection_name=test_page_module_view_test_page_list_selection&selection_index=12&editable_mode=1">
</button>&nbsp;
<img src="lib/presentation/test_page_module/46/slide_icon.png"
<img src="lib/presentation/images/slide_icon.png" onclick=window.open("lib/presentation/slides.html");
alt="See slideshow" title="See slideshow" />
</a>
</div>
......
......@@ -175,7 +175,6 @@
ext:'ppt',
frameid:'svg_edit_frame',
getContent: function () {
return document.getElementById("precontent").textContent;
},
......
This diff is collapsed.
......@@ -3,13 +3,22 @@ var idx = 1;
var slides;
/* main() */
setContent=function(){
document.getElementsByTagName('body')[0].Editable=true;
document.getElementsByTagName('body')[0].innerHTML=getContent();
console.log(document.getElementsByTagName("body").innerHTML);
}
ChangeStyle=function(){
slides = document.querySelectorAll("body > section");
onhashchange();
setSlide();
document.body.className = "loaded";
onresize();
}
window.onload = function() {
slides = document.querySelectorAll("body > section");
onhashchange();
setSlide();
document.body.className = "loaded";
onresize();
setContent();
ChangeStyle();
}
/* Handle keys */
......
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