mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-26 01:36:18 -04:00
Squashed commit of the following:
commit 5b7ac6f0f56f3888c01049f08b6b47dbeb3bcfb0 Author: Robin Linus <robin_woll@capira.de> Date: Wed Dec 30 18:06:48 2015 +0100 Clean up about and social links commit 9c7da37d1e8f58f1c45626289fbab336fc982a0f Author: Robin Linus <robin_woll@capira.de> Date: Wed Dec 30 18:06:35 2015 +0100 Change Slogan commit fcea5cfb5c6928acabce44caacc1d75fafdab447 Author: Robin Linus <robin_woll@capira.de> Date: Wed Dec 30 18:06:22 2015 +0100 Add shorturl commit f09e9e42c30aa7b26df2a5fb00bec653f3ad68e1 Author: Robin Linus <robin_woll@capira.de> Date: Wed Dec 30 16:56:55 2015 +0100 initial
This commit is contained in:
parent
1bce467a7c
commit
e756a3fd0c
11 changed files with 278 additions and 128 deletions
25
app/elements/p2p-network/tab-active.html
Normal file
25
app/elements/p2p-network/tab-active.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<script>
|
||||
'use strict';
|
||||
var vis = (function() {
|
||||
var stateKey,
|
||||
eventKey,
|
||||
keys = {
|
||||
hidden: "visibilitychange",
|
||||
webkitHidden: "webkitvisibilitychange",
|
||||
mozHidden: "mozvisibilitychange",
|
||||
msHidden: "msvisibilitychange"
|
||||
};
|
||||
for (stateKey in keys) {
|
||||
if (stateKey in document) {
|
||||
eventKey = keys[stateKey];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return function(c) {
|
||||
if (c) {
|
||||
document.addEventListener(eventKey, c);
|
||||
}
|
||||
return !document[stateKey];
|
||||
};
|
||||
})();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue