annotate iframe-resizer/example/frame.content.html @ 16:3c697a0bc415 draft default tip

Uploaded
author saskia-hiltemann
date Wed, 06 Sep 2017 05:24:32 -0400
parents 3c160414da2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1 <!DOCTYPE html>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2 <html>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3 <head>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4 <meta charset="utf-8">
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 <title>iFrame message passing test</title>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 <meta name="description" content="iFrame message passing test">
3c160414da2e initial upload
shiltemann
parents:
diff changeset
7 <meta http-equiv="X-UA-Compatible" content="IE=edge">
3c160414da2e initial upload
shiltemann
parents:
diff changeset
8 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
9 <style>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
10 *, *:before, *:after {box-model: border-box;}
3c160414da2e initial upload
shiltemann
parents:
diff changeset
11 a { float:right; margin-left:10px;}
3c160414da2e initial upload
shiltemann
parents:
diff changeset
12 </style>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
13 </head>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
14 <body>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
15
3c160414da2e initial upload
shiltemann
parents:
diff changeset
16 <b>iFrame</b>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
17 <a href='#' onclick="$('p:eq(0)').toggle();return false;">Toggle content</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
18 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
19 <a href='#' onclick="if ('parentIFrame' in window) window.parentIFrame.size(250);return false;">Size(250)</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
20 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
21 <a id="nested" href="frame.nested.html">Nested</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
22 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
23 <a href="frame.hover.html">:Hover</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
24 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
25 <a href="frame.absolute.html">Absolute Position</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
26 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
27 <a href='#' onclick="if ('parentIFrame' in window) window.parentIFrame.sendMessage('Hello from the iFrame');return false;">Send Message</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
28 &nbsp;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
29 <a href='#' onclick="if ('parentIFrame' in window) window.parentIFrame.close();return false;">Close</a>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
30
3c160414da2e initial upload
shiltemann
parents:
diff changeset
31 <p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
32 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
33 </p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
34 <p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
35 But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?
3c160414da2e initial upload
shiltemann
parents:
diff changeset
36 </p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
37 <p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
38 On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
39 </p>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
40
3c160414da2e initial upload
shiltemann
parents:
diff changeset
41 <script>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
42
3c160414da2e initial upload
shiltemann
parents:
diff changeset
43 var level = document.location.search.replace(/\?/,'') || 0;
3c160414da2e initial upload
shiltemann
parents:
diff changeset
44
3c160414da2e initial upload
shiltemann
parents:
diff changeset
45 $('#nested').attr('href','frame.nested.html?'+(++level));
3c160414da2e initial upload
shiltemann
parents:
diff changeset
46
3c160414da2e initial upload
shiltemann
parents:
diff changeset
47 </script>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
48
3c160414da2e initial upload
shiltemann
parents:
diff changeset
49
3c160414da2e initial upload
shiltemann
parents:
diff changeset
50 <script type="text/javascript" src="../js/iframeResizer.contentWindow.min.js"></script>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
51 </body>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
52 </html>