Ticket #5653: layout.html.pop

File layout.html.pop, 965 bytes (added by mpatel, 12 years ago)

Please see the comment

Line 
1<!--
2For window.open() options, see http://www.w3schools.com/HTMLDOM/met_win_open.asp
3-->
4
5<div class="docstring">
6  <a href="#" onclick="win = window.open('','','width=600, height=600, scrollbars=1, resizable=1');
7    doc = win.document;
8    doc.write('<html><head>');
9    doc.write('<title>Foo!</title>');
10    doc.write('<link rel=stylesheet href=&quot;/css/main.css&quot; type=&quot;text/css&quot;>');
11    doc.write('<script type=&quot;text/javascript&quot; src=&quot;/javascript_local/jsmath/easy/load.js&quot;></script>');
12    doc.write('</head><body>');
13    doc.write('<div class=&quot;docstring&quot;>');
14    doc.write($(this).parent().children('.the_block').attr('innerHTML'));
15    doc.write('</div>');
16    doc.write('</body></html>');
17    doc.close();
18    $(this).parent().remove();">
19     pop out
20  </a>
21  |
22  <a href="#" onclick="$(this).parent().remove();">
23    close
24  </a>
25  <div class="the_block">
26    {% block body %} {% endblock %}
27  </div>
28</div>