file_omt_eager_baseline.html (716B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <script type="application/javascript"> 5 // Forward all relevant events to parent 6 function forwardEventToParent(event) { 7 if (parent && parent !== window) { 8 parent.postMessage({type: event.type, received: true}, "*"); 9 } 10 } 11 12 const eventTypes = [ 13 "omt_eager_baseline_function: fun1", 14 "omt_eager_baseline_function: fun2", 15 "omt_eager_baseline_function: fun3", 16 "omt_eager_baseline_dispatch" 17 ]; 18 19 eventTypes.forEach(function(eventType) { 20 document.addEventListener(eventType, forwardEventToParent); 21 }); 22 </script> 23 <script type="application/javascript" src="file_omt_eager_baseline.js"> 24 </script> 25 </body> 26 </html>