Browse Source

Site updated: 2020-05-12 17:05:21

schtonn 4 years ago
parent
commit
51164c2071

File diff suppressed because it is too large
+ 0 - 0
archives/2020/03/index.html


File diff suppressed because it is too large
+ 0 - 0
archives/2020/index.html


File diff suppressed because it is too large
+ 0 - 0
archives/index.html


File diff suppressed because it is too large
+ 0 - 0
css/main.css


File diff suppressed because it is too large
+ 0 - 0
games/index.html


File diff suppressed because it is too large
+ 0 - 0
index.html


+ 0 - 53
js/offlineClient.js

@@ -1,53 +0,0 @@
-"use strict";
-
-(function() {
-	
-	class OfflineClient
-	{
-		constructor()
-		{
-			// Create a BroadcastChannel, if supported.
-			this._broadcastChannel = (typeof BroadcastChannel === "undefined" ? null : new BroadcastChannel("offline"));
-			
-			// Queue of messages received before a message callback is set.
-			this._queuedMessages = [];
-			
-			// The message callback.
-			this._onMessageCallback = null;
-			
-			// If BroadcastChannel is supported, listen for messages.
-			if (this._broadcastChannel)
-				this._broadcastChannel.onmessage = (e => this._OnBroadcastChannelMessage(e));
-		}
-		
-		_OnBroadcastChannelMessage(e)
-		{
-			// Have a message callback set: just forward the call.
-			if (this._onMessageCallback)
-			{
-				this._onMessageCallback(e);
-				return;
-			}
-			
-			// Otherwise the app hasn't loaded far enough to set a message callback.
-			// Buffer the incoming messages to replay when the app sets a callback.
-			this._queuedMessages.push(e);
-		}
-		
-		SetMessageCallback(f)
-		{
-			this._onMessageCallback = f;
-			
-			// Replay any queued messages through the handler, then clear the queue.
-			for (let e of this._queuedMessages)
-				this._onMessageCallback(e);
-			
-			this._queuedMessages.length = 0;
-		}
-	};
-	
-	// Create the offline client ASAP so we receive and start queueing any messages the SW broadcasts.
-	window.OfflineClientInfo = new OfflineClient();
-	
-}());
-

+ 0 - 26
offlineClient.js

@@ -1,26 +0,0 @@
-'use strict';
-var _createClass = function () {
-    function s(e, a) {
-        for (var n = 0; n < a.length; n++) {
-            var s = a[n];
-            s.enumerable = s.enumerable || !1, s.configurable = !0, 'value' in s && (s.writable = !0), Object.defineProperty(e, s.key, s);
-        }
-    }
-    return function (e, a, n) {
-        return a && s(e.prototype, a), n && s(e, n), e;
-    };
-}();
-function _classCallCheck(e, a) {
-    if (!(e instanceof a))
-        throw new TypeError('Cannot call a class as a function');
-}
-!function () {
-    var e = (_createClass(n, [{key:"_OnBroadcastChannelMessage",value:function(e){this._onMessageCallback?this._onMessageCallback(e):this._queuedMessages.push(e)}},{key:"SetMessageCallback",value:function(e){this._onMessageCallback=e;var a=!0,n=!1,s=void 0;try{for(var t,l=this._queuedMessages[Symbol.iterator]();!(a=(t=l.next()).done);a=!0){var r=t.value;this._onMessageCallback(r)}}catch(e){n=!0,s=e}finally{try{!a&&l.return&&l.return()}finally{if(n)throw s}}this._queuedMessages.length=0}}]), n);
-    function n() {
-        var a = this;
-        _classCallCheck(this, n), this._broadcastChannel = 'undefined' == typeof BroadcastChannel ? null : new BroadcastChannel('offline'), this._queuedMessages = [], this._onMessageCallback = null, this._broadcastChannel && (this._broadcastChannel.onmessage = function (e) {
-            return a._OnBroadcastChannelMessage(e);
-        });
-    }
-    window.OfflineClientInfo = new e();
-}();

File diff suppressed because it is too large
+ 0 - 0
posts/computer/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/dinic/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/fibonacci/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/matrix-pow/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/min-span-tree/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/plan/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/segment-tree/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/test/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/tree-link/index.html


File diff suppressed because it is too large
+ 0 - 0
posts/union-find/index.html


File diff suppressed because it is too large
+ 0 - 0
tags/graph/index.html


File diff suppressed because it is too large
+ 0 - 0
tags/index.html


File diff suppressed because it is too large
+ 0 - 0
tags/math/index.html


File diff suppressed because it is too large
+ 0 - 0
tags/other/index.html


File diff suppressed because it is too large
+ 0 - 0
tags/struct/index.html


Some files were not shown because too many files changed in this diff