This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="wrapper"> | |
</div> | |
<div>This has normal color.</div> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
child.html | |
<div class="part"> | |
<style> | |
h3 { | |
color: red !important; | |
} | |
</style> | |
<h3>Warning!</h3> | |
<p>This page is under construction</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IConnect { | |
public void connect() throws CriticalException; | |
} | |
public class ReconnectProxy implements InvocationHandler { | |
public static final long RECONNECT_DELAY = 5000; | |
public static final String MESSAGE_CONNECT = "connect"; | |
ExecutorService threadPool; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Polymer outside click element | |
window.addEventListener((e) { | |
var target = event.target; | |
while(target != this && target != document.body) { | |
target = Polymer.dom(target).node.domHost.parentNode; | |
// might need some additional steps to get the parent from inside custom elements | |
// don't know by heart | |
} |
NewerOlder