The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
@:remove | |
@:autoBuild(SkipSerializeMacro.build()) | |
interface ISkipSerialize {} |
The day was overcast and humid. Alice was in the dining room. Alice saw the golden falcon. Bob was in Bob's bedroom. Alice picked up the golden falcon. Bob went to the upstairs hall. Alice hid the golden falcon in the cabinet. Alice went to the kitchen. Bob went to the front hall. Alice examined the cupboards carefully. Alice went to the front hall. Alice saw Bob. 'Hello, Bob,' said Alice. 'Hello, Alice,' replied Bob. Alice went to the kitchen. Bob went to the kitchen. Bob saw Alice. 'Hello, Alice,' said Bob. 'Hello, Bob,' replied Alice. 'Lovely weather we're having, isn't it?' asked Alice. 'Perhaps, Alice,' replied Bob.
'Oh, I know, I know,' said Alice. Bob nodded. Alice went to the front hall. It was so nice being in the front hall again! Bob examined the cupboards carefully. Bob went to the dining room. Alice went to the living room. Bob went to the kitchen. Alice went to the front hall. Bob went to the d
Alice went to the dining room. Alice saw the golden falcon. Bob went to the dining room. Bob saw the golden falcon. Bob saw Alice. Alice picked up the golden falcon. Alice went to the living room. Bob went to the kitchen. Alice went to the dining room. Bob went to the dining room. Bob saw Alice. Bob saw Alice was carrying something. Alice went to the living room. Bob went to the kitchen. Alice went to the dining room. Bob went to the dining room. Bob saw Alice. Bob saw Alice was carrying something. Alice went to the living room. Bob went to the kitchen.
Alice went to the dining room. Bob went to the dining room. Bob saw Alice. Bob saw Alice was carrying something. Alice went to the kitchen. Bob went to the living room. Alice yawned. Bob went to the dining room. Alice went to the dining room. Alice saw Bob. Bob went to the living room. Alice went to the kitchen. Bob went to the dining room. Alice yawned. Bob went to the kitch
<?php | |
function gfm($text){ | |
# Extract pre blocks | |
$extractions = array(); | |
$text = preg_replace_callback('/<pre>.*?<\/pre>/s', function($matches) use (&$extractions){ | |
$match = $matches[0]; | |
$md5 = md5($match); | |
$extractions[$md5] = $match; |