1- < script src ="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=sunburst&autoload=true&lang=java "> </ script >
1+ < script src ="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js "> </ script >
22
33< meta http-equiv ="Content-Security-Policy " content ="upgrade-insecure-requests ">
44
4242 iframe . src = versionPath ;
4343 } ;
4444
45- asyncc . newIFrame = ( ) => {
45+ asyncc . newIFrame = ( v ) => {
4646 const el = document . getElementById ( 'foox' ) ;
47- el . innerHTML = ' <iframe id="main-iframe" src="v/0.1.0 " width="100%" height="100%"></iframe>;' ;
47+ el . innerHTML = ` <iframe id="main-iframe" src="${ v } " width="100%" height="100%"></iframe>;` ;
4848 } ;
4949
5050 asyncc . getFrame = ( ) => {
5555 console . log ( 'here is the text:' , v ) ;
5656 // var div = document.createElement("div");
5757 el . innerHTML = v ;
58+ // el.textContent = v;
5859 // el.appendChild(div);
5960 } ) ;
6061 } ) ;
6667
6768 < div class ="version-selection-scroll-panel ">
6869 < div class ="flex-vertical-container ">
69- < button onclick ="asyncc.changeIframe ('v/0.1.0') "> version 0.1.1</ button >
70- < button onclick ="asyncc.changeIframe ('v/0.1.2') "> version 0.1.2</ button >
71- < button onclick ="asyncc.changeIframe ('v/0.1.3') "> version 0.1.3</ button >
70+ < button onclick ="asyncc.newIFrame ('v/0.1.0') "> version 0.1.1</ button >
71+ < button onclick ="asyncc.newIFrame ('v/0.1.2') "> version 0.1.2</ button >
72+ < button onclick ="asyncc.newIFrame ('v/0.1.3') "> version 0.1.3</ button >
7273 < button onclick ="asyncc.getFrame('v/0.1.3') "> get markdown</ button >
73- < button onclick ="asyncc.newIFrame() "> new iframe</ button >
74+ < button onclick ="asyncc.newIFrame('v/0.1.0' ) "> new iframe</ button >
7475 </ div >
7576 </ div >
7677 < div id ="foox " style ="display: flex; flex-grow: 1 ">
8081
8182< script >
8283 asyncc . changeIframe ( 'v/0.1.2' ) ;
83- </ script >
84+ </ script >
85+
86+ < script src ="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?autoload=true "> </ script >
0 commit comments