@textadventures/quest-viva-wasmplayer 6.0.0-beta.59 → 6.0.0-beta.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WasmPlayer.runtimeconfig.json +1 -1
- package/_framework/Common.wasm +0 -0
- package/_framework/Engine.wasm +0 -0
- package/_framework/Legacy.wasm +0 -0
- package/_framework/Microsoft.CSharp.wasm +0 -0
- package/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
- package/_framework/Microsoft.VisualBasic.wasm +0 -0
- package/_framework/Microsoft.Win32.Primitives.wasm +0 -0
- package/_framework/Microsoft.Win32.Registry.wasm +0 -0
- package/_framework/PlayerCore.wasm +0 -0
- package/_framework/System.AppContext.wasm +0 -0
- package/_framework/System.Buffers.wasm +0 -0
- package/_framework/System.Collections.Concurrent.wasm +0 -0
- package/_framework/System.Collections.Immutable.wasm +0 -0
- package/_framework/System.Collections.NonGeneric.wasm +0 -0
- package/_framework/System.Collections.Specialized.wasm +0 -0
- package/_framework/System.Collections.wasm +0 -0
- package/_framework/System.ComponentModel.Annotations.wasm +0 -0
- package/_framework/System.ComponentModel.DataAnnotations.wasm +0 -0
- package/_framework/System.ComponentModel.EventBasedAsync.wasm +0 -0
- package/_framework/System.ComponentModel.Primitives.wasm +0 -0
- package/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
- package/_framework/System.ComponentModel.wasm +0 -0
- package/_framework/System.Configuration.wasm +0 -0
- package/_framework/System.Console.wasm +0 -0
- package/_framework/System.Core.wasm +0 -0
- package/_framework/System.Data.Common.wasm +0 -0
- package/_framework/System.Data.DataSetExtensions.wasm +0 -0
- package/_framework/System.Data.wasm +0 -0
- package/_framework/System.Diagnostics.Contracts.wasm +0 -0
- package/_framework/System.Diagnostics.Debug.wasm +0 -0
- package/_framework/System.Diagnostics.DiagnosticSource.wasm +0 -0
- package/_framework/System.Diagnostics.FileVersionInfo.wasm +0 -0
- package/_framework/System.Diagnostics.Process.wasm +0 -0
- package/_framework/System.Diagnostics.StackTrace.wasm +0 -0
- package/_framework/System.Diagnostics.TextWriterTraceListener.wasm +0 -0
- package/_framework/System.Diagnostics.Tools.wasm +0 -0
- package/_framework/System.Diagnostics.TraceSource.wasm +0 -0
- package/_framework/System.Diagnostics.Tracing.wasm +0 -0
- package/_framework/System.Drawing.Primitives.wasm +0 -0
- package/_framework/System.Drawing.wasm +0 -0
- package/_framework/System.Dynamic.Runtime.wasm +0 -0
- package/_framework/System.Formats.Asn1.wasm +0 -0
- package/_framework/System.Formats.Tar.wasm +0 -0
- package/_framework/System.Globalization.Calendars.wasm +0 -0
- package/_framework/System.Globalization.Extensions.wasm +0 -0
- package/_framework/System.Globalization.wasm +0 -0
- package/_framework/System.IO.Compression.Brotli.wasm +0 -0
- package/_framework/System.IO.Compression.FileSystem.wasm +0 -0
- package/_framework/System.IO.Compression.ZipFile.wasm +0 -0
- package/_framework/System.IO.Compression.wasm +0 -0
- package/_framework/System.IO.FileSystem.AccessControl.wasm +0 -0
- package/_framework/System.IO.FileSystem.DriveInfo.wasm +0 -0
- package/_framework/System.IO.FileSystem.Primitives.wasm +0 -0
- package/_framework/System.IO.FileSystem.Watcher.wasm +0 -0
- package/_framework/System.IO.FileSystem.wasm +0 -0
- package/_framework/System.IO.IsolatedStorage.wasm +0 -0
- package/_framework/System.IO.MemoryMappedFiles.wasm +0 -0
- package/_framework/System.IO.Pipelines.wasm +0 -0
- package/_framework/System.IO.Pipes.AccessControl.wasm +0 -0
- package/_framework/System.IO.Pipes.wasm +0 -0
- package/_framework/System.IO.UnmanagedMemoryStream.wasm +0 -0
- package/_framework/System.IO.wasm +0 -0
- package/_framework/System.Linq.AsyncEnumerable.wasm +0 -0
- package/_framework/System.Linq.Expressions.wasm +0 -0
- package/_framework/System.Linq.Parallel.wasm +0 -0
- package/_framework/System.Linq.Queryable.wasm +0 -0
- package/_framework/System.Linq.wasm +0 -0
- package/_framework/System.Memory.wasm +0 -0
- package/_framework/System.Net.Http.Json.wasm +0 -0
- package/_framework/System.Net.Http.wasm +0 -0
- package/_framework/System.Net.HttpListener.wasm +0 -0
- package/_framework/System.Net.Mail.wasm +0 -0
- package/_framework/System.Net.NameResolution.wasm +0 -0
- package/_framework/System.Net.NetworkInformation.wasm +0 -0
- package/_framework/System.Net.Ping.wasm +0 -0
- package/_framework/System.Net.Primitives.wasm +0 -0
- package/_framework/System.Net.Quic.wasm +0 -0
- package/_framework/System.Net.Requests.wasm +0 -0
- package/_framework/System.Net.Security.wasm +0 -0
- package/_framework/System.Net.ServerSentEvents.wasm +0 -0
- package/_framework/System.Net.ServicePoint.wasm +0 -0
- package/_framework/System.Net.Sockets.wasm +0 -0
- package/_framework/System.Net.WebClient.wasm +0 -0
- package/_framework/System.Net.WebHeaderCollection.wasm +0 -0
- package/_framework/System.Net.WebProxy.wasm +0 -0
- package/_framework/System.Net.WebSockets.Client.wasm +0 -0
- package/_framework/System.Net.WebSockets.wasm +0 -0
- package/_framework/System.Net.wasm +0 -0
- package/_framework/System.Numerics.Vectors.wasm +0 -0
- package/_framework/System.Numerics.wasm +0 -0
- package/_framework/System.ObjectModel.wasm +0 -0
- package/_framework/System.Private.CoreLib.wasm +0 -0
- package/_framework/System.Private.DataContractSerialization.wasm +0 -0
- package/_framework/System.Private.Uri.wasm +0 -0
- package/_framework/System.Private.Xml.Linq.wasm +0 -0
- package/_framework/System.Private.Xml.wasm +0 -0
- package/_framework/System.Reflection.DispatchProxy.wasm +0 -0
- package/_framework/System.Reflection.Emit.ILGeneration.wasm +0 -0
- package/_framework/System.Reflection.Emit.Lightweight.wasm +0 -0
- package/_framework/System.Reflection.Emit.wasm +0 -0
- package/_framework/System.Reflection.Extensions.wasm +0 -0
- package/_framework/System.Reflection.Metadata.wasm +0 -0
- package/_framework/System.Reflection.Primitives.wasm +0 -0
- package/_framework/System.Reflection.TypeExtensions.wasm +0 -0
- package/_framework/System.Reflection.wasm +0 -0
- package/_framework/System.Resources.Reader.wasm +0 -0
- package/_framework/System.Resources.ResourceManager.wasm +0 -0
- package/_framework/System.Resources.Writer.wasm +0 -0
- package/_framework/System.Runtime.CompilerServices.Unsafe.wasm +0 -0
- package/_framework/System.Runtime.CompilerServices.VisualC.wasm +0 -0
- package/_framework/System.Runtime.Extensions.wasm +0 -0
- package/_framework/System.Runtime.Handles.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm +0 -0
- package/_framework/System.Runtime.InteropServices.wasm +0 -0
- package/_framework/System.Runtime.Intrinsics.wasm +0 -0
- package/_framework/System.Runtime.Loader.wasm +0 -0
- package/_framework/System.Runtime.Numerics.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Formatters.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Json.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/_framework/System.Runtime.Serialization.Xml.wasm +0 -0
- package/_framework/System.Runtime.Serialization.wasm +0 -0
- package/_framework/System.Runtime.wasm +0 -0
- package/_framework/System.Security.AccessControl.wasm +0 -0
- package/_framework/System.Security.Claims.wasm +0 -0
- package/_framework/System.Security.Cryptography.Algorithms.wasm +0 -0
- package/_framework/System.Security.Cryptography.Cng.wasm +0 -0
- package/_framework/System.Security.Cryptography.Csp.wasm +0 -0
- package/_framework/System.Security.Cryptography.Encoding.wasm +0 -0
- package/_framework/System.Security.Cryptography.OpenSsl.wasm +0 -0
- package/_framework/System.Security.Cryptography.Primitives.wasm +0 -0
- package/_framework/System.Security.Cryptography.X509Certificates.wasm +0 -0
- package/_framework/System.Security.Cryptography.wasm +0 -0
- package/_framework/System.Security.Principal.Windows.wasm +0 -0
- package/_framework/System.Security.Principal.wasm +0 -0
- package/_framework/System.Security.SecureString.wasm +0 -0
- package/_framework/System.Security.wasm +0 -0
- package/_framework/System.ServiceModel.Web.wasm +0 -0
- package/_framework/System.ServiceProcess.wasm +0 -0
- package/_framework/System.Text.Encoding.CodePages.wasm +0 -0
- package/_framework/System.Text.Encoding.Extensions.wasm +0 -0
- package/_framework/System.Text.Encoding.wasm +0 -0
- package/_framework/System.Text.Encodings.Web.wasm +0 -0
- package/_framework/System.Text.Json.wasm +0 -0
- package/_framework/System.Text.RegularExpressions.wasm +0 -0
- package/_framework/System.Threading.AccessControl.wasm +0 -0
- package/_framework/System.Threading.Channels.wasm +0 -0
- package/_framework/System.Threading.Overlapped.wasm +0 -0
- package/_framework/System.Threading.Tasks.Dataflow.wasm +0 -0
- package/_framework/System.Threading.Tasks.Extensions.wasm +0 -0
- package/_framework/System.Threading.Tasks.Parallel.wasm +0 -0
- package/_framework/System.Threading.Tasks.wasm +0 -0
- package/_framework/System.Threading.Thread.wasm +0 -0
- package/_framework/System.Threading.ThreadPool.wasm +0 -0
- package/_framework/System.Threading.Timer.wasm +0 -0
- package/_framework/System.Threading.wasm +0 -0
- package/_framework/System.Transactions.Local.wasm +0 -0
- package/_framework/System.Transactions.wasm +0 -0
- package/_framework/System.ValueTuple.wasm +0 -0
- package/_framework/System.Web.HttpUtility.wasm +0 -0
- package/_framework/System.Web.wasm +0 -0
- package/_framework/System.Windows.wasm +0 -0
- package/_framework/System.Xml.Linq.wasm +0 -0
- package/_framework/System.Xml.ReaderWriter.wasm +0 -0
- package/_framework/System.Xml.Serialization.wasm +0 -0
- package/_framework/System.Xml.XDocument.wasm +0 -0
- package/_framework/System.Xml.XPath.XDocument.wasm +0 -0
- package/_framework/System.Xml.XPath.wasm +0 -0
- package/_framework/System.Xml.XmlDocument.wasm +0 -0
- package/_framework/System.Xml.XmlSerializer.wasm +0 -0
- package/_framework/System.Xml.wasm +0 -0
- package/_framework/System.wasm +0 -0
- package/_framework/WasmPlayer.wasm +0 -0
- package/_framework/WindowsBase.wasm +0 -0
- package/_framework/dotnet.boot.js +179 -179
- package/_framework/dotnet.js +1 -1
- package/_framework/dotnet.native.js +3 -3
- package/_framework/dotnet.native.wasm +0 -0
- package/_framework/dotnet.runtime.js +1 -1
- package/_framework/mscorlib.wasm +0 -0
- package/_framework/netstandard.wasm +0 -0
- package/export-manifest.json +1 -0
- package/grid.js +446 -446
- package/index.html +15 -15
- package/lib/jquery.multi-open-accordion-1.5.3.js +261 -261
- package/package.json +1 -1
- package/playercore.css +505 -505
- package/playercore.htm +212 -212
- package/playercore.js +2973 -2962
package/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Quest Viva</title>
|
|
7
|
-
<link rel="icon" type="image/svg+xml" href="favicon.svg?v=6.0.0-beta.
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="favicon.svg?v=6.0.0-beta.60" />
|
|
8
8
|
<!-- Lets the preload scanner start the runtime loader before the parser has
|
|
9
9
|
even reached wasm-player.js, which as the last script in this head only
|
|
10
10
|
executes once jQuery/jQuery UI/paper.js have all downloaded *and* run.
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
here (scripts/inject-version.mjs), which is also what makes the
|
|
15
15
|
preload and wasm-player.js's own import() agree on one URL and share a
|
|
16
16
|
single fetch. -->
|
|
17
|
-
<link rel="modulepreload" href="_framework/dotnet.js?v=6.0.0-beta.
|
|
18
|
-
<script type="text/javascript" src="quest-config.js?v=6.0.0-beta.
|
|
17
|
+
<link rel="modulepreload" href="_framework/dotnet.js?v=6.0.0-beta.60" />
|
|
18
|
+
<script type="text/javascript" src="quest-config.js?v=6.0.0-beta.60"></script>
|
|
19
19
|
<script type="text/javascript">
|
|
20
20
|
// Runs before the start screen is parsed, so when a game is specified via the
|
|
21
21
|
// URL (or a defaultGameUrl is configured) we paint straight into the loading
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
html.qv-booting #qv-pickers { display: none; }
|
|
34
34
|
html.qv-booting #qv-loading-msg { display: flex; }
|
|
35
35
|
</style>
|
|
36
|
-
<script type="text/javascript" src="lib/jquery-2.1.1.min.js?v=6.0.0-beta.
|
|
37
|
-
<script type="text/javascript" src="lib/jquery-ui.min.js?v=6.0.0-beta.
|
|
38
|
-
<script type="text/javascript" src="lib/jquery.multi-open-accordion-1.5.3.js?v=6.0.0-beta.
|
|
39
|
-
<link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css?v=6.0.0-beta.
|
|
40
|
-
<link rel="stylesheet" type="text/css" href="playercore.css?v=6.0.0-beta.
|
|
36
|
+
<script type="text/javascript" src="lib/jquery-2.1.1.min.js?v=6.0.0-beta.60"></script>
|
|
37
|
+
<script type="text/javascript" src="lib/jquery-ui.min.js?v=6.0.0-beta.60"></script>
|
|
38
|
+
<script type="text/javascript" src="lib/jquery.multi-open-accordion-1.5.3.js?v=6.0.0-beta.60"></script>
|
|
39
|
+
<link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css?v=6.0.0-beta.60" />
|
|
40
|
+
<link rel="stylesheet" type="text/css" href="playercore.css?v=6.0.0-beta.60" />
|
|
41
41
|
<!-- App-chrome styles (start screen, debugger, save-slot manager). Built from
|
|
42
42
|
styles/chrome.css via `npm run build` — see WasmPlayer/package.json. All of
|
|
43
43
|
its rules are contained to `.qv-chrome` subtrees so they can't affect the
|
|
44
44
|
game UI above (playercore.css / jQuery UI). -->
|
|
45
|
-
<link rel="stylesheet" type="text/css" href="chrome.css?v=6.0.0-beta.
|
|
46
|
-
<script type="text/javascript" src="playercore.js?v=6.0.0-beta.
|
|
47
|
-
<script type="text/javascript" src="player.js?v=6.0.0-beta.
|
|
48
|
-
<script type="text/javascript" src="lib/paper.js?v=6.0.0-beta.
|
|
49
|
-
<script>window.QuestVivaVersion = "6.0.0-beta.
|
|
50
|
-
<script type="text/javascript" src="wasm-player.js?v=6.0.0-beta.
|
|
45
|
+
<link rel="stylesheet" type="text/css" href="chrome.css?v=6.0.0-beta.60" />
|
|
46
|
+
<script type="text/javascript" src="playercore.js?v=6.0.0-beta.60"></script>
|
|
47
|
+
<script type="text/javascript" src="player.js?v=6.0.0-beta.60"></script>
|
|
48
|
+
<script type="text/javascript" src="lib/paper.js?v=6.0.0-beta.60"></script>
|
|
49
|
+
<script>window.QuestVivaVersion = "6.0.0-beta.60";</script>
|
|
50
|
+
<script type="text/javascript" src="wasm-player.js?v=6.0.0-beta.60"></script>
|
|
51
51
|
</head>
|
|
52
52
|
<body>
|
|
53
53
|
<div id="qv-start" class="qv-chrome">
|
|
54
54
|
<div class="card preset-filled-surface-100-900 w-full max-w-md p-8 space-y-6" data-theme="wintry">
|
|
55
55
|
<div>
|
|
56
56
|
<h1 class="h2 flex items-center gap-4">
|
|
57
|
-
<img src="logo.svg?v=6.0.0-beta.
|
|
57
|
+
<img src="logo.svg?v=6.0.0-beta.60" alt="" class="h-7" />
|
|
58
58
|
Quest Viva
|
|
59
59
|
</h1>
|
|
60
60
|
</div>
|
|
@@ -1,261 +1,261 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* jQuery UI Multi Open Accordion Plugin
|
|
3
|
-
* Author : Anas Nakawa (http://anasnakawa.wordpress.com/)
|
|
4
|
-
* Date : 22-Jul-2011
|
|
5
|
-
* Released Under MIT License
|
|
6
|
-
* You are welcome to enhance this plugin at https://code.google.com/p/jquery-multi-open-accordion/
|
|
7
|
-
*/
|
|
8
|
-
(function ($) {
|
|
9
|
-
|
|
10
|
-
$.widget('ui.multiOpenAccordion', {
|
|
11
|
-
options: {
|
|
12
|
-
active: 0,
|
|
13
|
-
showAll: null,
|
|
14
|
-
hideAll: null,
|
|
15
|
-
_classes: {
|
|
16
|
-
accordion: 'ui-accordion ui-widget ui-helper-reset ui-accordion-icons',
|
|
17
|
-
h3: 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all',
|
|
18
|
-
div: 'ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom',
|
|
19
|
-
divActive: 'ui-accordion-content-active',
|
|
20
|
-
span: 'ui-icon ui-icon-triangle-1-e',
|
|
21
|
-
stateDefault: 'ui-state-default',
|
|
22
|
-
stateHover: 'ui-state-hover'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
_create: function () {
|
|
27
|
-
var self = this,
|
|
28
|
-
|
|
29
|
-
options = self.options,
|
|
30
|
-
|
|
31
|
-
$this = self.element,
|
|
32
|
-
|
|
33
|
-
$h3 = $this.children('h3'),
|
|
34
|
-
|
|
35
|
-
$div = $this.children('div');
|
|
36
|
-
|
|
37
|
-
$this.addClass(options._classes.accordion);
|
|
38
|
-
|
|
39
|
-
$h3.each(function (index) {
|
|
40
|
-
var $this = $(this);
|
|
41
|
-
$this.addClass(options._classes.h3).prepend('<span class="{class}"></span>'.replace(/{class}/, options._classes.span));
|
|
42
|
-
if (self._isActive(index)) {
|
|
43
|
-
self._showTab($this)
|
|
44
|
-
}
|
|
45
|
-
}); // end h3 each
|
|
46
|
-
|
|
47
|
-
$this.children('div').each(function (index) {
|
|
48
|
-
var $this = $(this);
|
|
49
|
-
$this.addClass(options._classes.div);
|
|
50
|
-
}); // end each
|
|
51
|
-
|
|
52
|
-
$h3.bind('click', function (e) {
|
|
53
|
-
// preventing on click to navigate to the top of document
|
|
54
|
-
e.preventDefault();
|
|
55
|
-
var $this = $(this);
|
|
56
|
-
var ui = {
|
|
57
|
-
tab: $this,
|
|
58
|
-
content: $this.next('div')
|
|
59
|
-
};
|
|
60
|
-
self._trigger('click', null, ui);
|
|
61
|
-
if ($this.hasClass(options._classes.stateDefault)) {
|
|
62
|
-
self._showTab($this);
|
|
63
|
-
} else {
|
|
64
|
-
self._hideTab($this);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
$h3.bind('mouseover', function () {
|
|
70
|
-
$(this).addClass(options._classes.stateHover);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
$h3.bind('mouseout', function () {
|
|
74
|
-
$(this).removeClass(options._classes.stateHover);
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// triggering initialized
|
|
78
|
-
self._trigger('init', null, $this);
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
// destroying the whole multi open widget
|
|
83
|
-
destroy: function () {
|
|
84
|
-
var self = this;
|
|
85
|
-
var $this = self.element;
|
|
86
|
-
var $h3 = $this.children('h3');
|
|
87
|
-
var $div = $this.children('div');
|
|
88
|
-
var options = self.options;
|
|
89
|
-
$this.children('h3').unbind('click mouseover mouseout');
|
|
90
|
-
$this.removeClass(options._classes.accordion);
|
|
91
|
-
$h3.removeClass(options._classes.h3).removeClass('ui-state-default ui-corner-all ui-state-active ui-corner-top').children('span').remove();
|
|
92
|
-
$div.removeClass(options._classes.div + ' ' + options._classes.divActive).show();
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
// private helper method that used to show tabs
|
|
96
|
-
_showTab: function ($this) {
|
|
97
|
-
var $span = $this.children('span.ui-icon');
|
|
98
|
-
var $div = $this.next();
|
|
99
|
-
var options = this.options;
|
|
100
|
-
$this.removeClass('ui-state-default ui-corner-all').addClass('ui-state-active ui-corner-top');
|
|
101
|
-
$span.removeClass('ui-icon-triangle-1-e').addClass('ui-icon-triangle-1-s');
|
|
102
|
-
$div.slideDown('fast', function () {
|
|
103
|
-
$div.addClass(options._classes.divActive);
|
|
104
|
-
});
|
|
105
|
-
var ui = {
|
|
106
|
-
tab: $this,
|
|
107
|
-
content: $this.next('div')
|
|
108
|
-
}
|
|
109
|
-
this._trigger('tabShown', null, ui);
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
// private helper method that used to show tabs
|
|
113
|
-
_hideTab: function ($this) {
|
|
114
|
-
var $span = $this.children('span.ui-icon');
|
|
115
|
-
var $div = $this.next();
|
|
116
|
-
var options = this.options;
|
|
117
|
-
$this.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all');
|
|
118
|
-
$span.removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-e');
|
|
119
|
-
$div.slideUp('fast', function () {
|
|
120
|
-
$div.removeClass(options._classes.divActive);
|
|
121
|
-
});
|
|
122
|
-
var ui = {
|
|
123
|
-
tab: $this,
|
|
124
|
-
content: $this.next('div')
|
|
125
|
-
}
|
|
126
|
-
this._trigger('tabHidden', null, ui);
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
// helper method to determine wether passed parameter is an index of an active tab or not
|
|
130
|
-
_isActive: function (num) {
|
|
131
|
-
var options = this.options;
|
|
132
|
-
// if array
|
|
133
|
-
if (typeof options.active == "boolean" && !options.active) {
|
|
134
|
-
return false;
|
|
135
|
-
} else {
|
|
136
|
-
if (options.active.length != undefined) {
|
|
137
|
-
for (var i = 0; i < options.active.length; i++) {
|
|
138
|
-
if (options.active[i] == num)
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
} else {
|
|
142
|
-
return options.active == num;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return false;
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
// return object contain currently opened tabs
|
|
149
|
-
_getActiveTabs: function () {
|
|
150
|
-
var $this = this.element;
|
|
151
|
-
var ui = [];
|
|
152
|
-
$this.children('div').each(function (index) {
|
|
153
|
-
var $content = $(this);
|
|
154
|
-
if ($content.is(':visible')) {
|
|
155
|
-
//ui = ui ? ui : [];
|
|
156
|
-
ui.push({
|
|
157
|
-
index: index,
|
|
158
|
-
tab: $content.prev('h3'),
|
|
159
|
-
content: $content
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
return (ui.length == 0 ? undefined : ui);
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
getActiveTabs: function () {
|
|
167
|
-
var el = this.element;
|
|
168
|
-
var tabs = [];
|
|
169
|
-
el.children('div').each(function (index) {
|
|
170
|
-
if ($(this).is(':visible')) {
|
|
171
|
-
tabs.push(index);
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
return (tabs.length == 0 ? [-1] : tabs);
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
// setting array of active tabs
|
|
178
|
-
_setActiveTabs: function (tabs) {
|
|
179
|
-
var self = this;
|
|
180
|
-
var $this = this.element;
|
|
181
|
-
if (typeof tabs != 'undefined') {
|
|
182
|
-
$this.children('div').each(function (index) {
|
|
183
|
-
var $tab = $(this).prev('h3');
|
|
184
|
-
if (hasObject(index)) {
|
|
185
|
-
self._showTab($tab);
|
|
186
|
-
} else {
|
|
187
|
-
self._hideTab($tab);
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
// active option passed by plugin, this method will read it and convert it into array of tab indexes
|
|
194
|
-
_generateTabsArrayFromOptions: function (tabOption) {
|
|
195
|
-
var tabs = [];
|
|
196
|
-
var self = this;
|
|
197
|
-
var $this = self.element;
|
|
198
|
-
var size = $this.children('h3').size();
|
|
199
|
-
if ($.type(tabOption) === 'array') {
|
|
200
|
-
return tabOption;
|
|
201
|
-
} else if ($.type(tabOption) === 'number') {
|
|
202
|
-
return [tabOption];
|
|
203
|
-
} else if ($.type(tabOption) === 'string') {
|
|
204
|
-
switch (tabOption.toLowerCase()) {
|
|
205
|
-
case 'all':
|
|
206
|
-
var size = $this.children('h3').size();
|
|
207
|
-
for (var n = 0; n < size; n++) {
|
|
208
|
-
tabs.push(n);
|
|
209
|
-
}
|
|
210
|
-
return tabs;
|
|
211
|
-
break;
|
|
212
|
-
case 'none':
|
|
213
|
-
tabs = [-1];
|
|
214
|
-
return tabs;
|
|
215
|
-
break;
|
|
216
|
-
default:
|
|
217
|
-
return undefined;
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
// required method by jquery ui widget framework, used to provide the ability to pass options
|
|
224
|
-
// currently only active option is used here, may grow in the future
|
|
225
|
-
_setOption: function (option, value) {
|
|
226
|
-
$.Widget.prototype._setOption.apply(this, arguments);
|
|
227
|
-
var el = this.element;
|
|
228
|
-
switch (option) {
|
|
229
|
-
case 'active':
|
|
230
|
-
this._setActiveTabs(this._generateTabsArrayFromOptions(value));
|
|
231
|
-
break;
|
|
232
|
-
case 'getActiveTabs':
|
|
233
|
-
var el = this.element;
|
|
234
|
-
var tabs;
|
|
235
|
-
el.children('div').each(function (index) {
|
|
236
|
-
if ($(this).is(':visible')) {
|
|
237
|
-
tabs = tabs ? tabs : [];
|
|
238
|
-
tabs.push(index);
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
return (tabs.length == 0 ? [-1] : tabs);
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
});
|
|
247
|
-
|
|
248
|
-
// helper array has object function
|
|
249
|
-
// thanks to @Vinko Vrsalovic
|
|
250
|
-
// http://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array
|
|
251
|
-
var hasObject = function (arr, o) {
|
|
252
|
-
var l = arr.length + 1;
|
|
253
|
-
while (l -= 1) {
|
|
254
|
-
if (arr[l - 1] === o) {
|
|
255
|
-
return true;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return false;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
})(jQuery);
|
|
1
|
+
/*
|
|
2
|
+
* jQuery UI Multi Open Accordion Plugin
|
|
3
|
+
* Author : Anas Nakawa (http://anasnakawa.wordpress.com/)
|
|
4
|
+
* Date : 22-Jul-2011
|
|
5
|
+
* Released Under MIT License
|
|
6
|
+
* You are welcome to enhance this plugin at https://code.google.com/p/jquery-multi-open-accordion/
|
|
7
|
+
*/
|
|
8
|
+
(function ($) {
|
|
9
|
+
|
|
10
|
+
$.widget('ui.multiOpenAccordion', {
|
|
11
|
+
options: {
|
|
12
|
+
active: 0,
|
|
13
|
+
showAll: null,
|
|
14
|
+
hideAll: null,
|
|
15
|
+
_classes: {
|
|
16
|
+
accordion: 'ui-accordion ui-widget ui-helper-reset ui-accordion-icons',
|
|
17
|
+
h3: 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all',
|
|
18
|
+
div: 'ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom',
|
|
19
|
+
divActive: 'ui-accordion-content-active',
|
|
20
|
+
span: 'ui-icon ui-icon-triangle-1-e',
|
|
21
|
+
stateDefault: 'ui-state-default',
|
|
22
|
+
stateHover: 'ui-state-hover'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
_create: function () {
|
|
27
|
+
var self = this,
|
|
28
|
+
|
|
29
|
+
options = self.options,
|
|
30
|
+
|
|
31
|
+
$this = self.element,
|
|
32
|
+
|
|
33
|
+
$h3 = $this.children('h3'),
|
|
34
|
+
|
|
35
|
+
$div = $this.children('div');
|
|
36
|
+
|
|
37
|
+
$this.addClass(options._classes.accordion);
|
|
38
|
+
|
|
39
|
+
$h3.each(function (index) {
|
|
40
|
+
var $this = $(this);
|
|
41
|
+
$this.addClass(options._classes.h3).prepend('<span class="{class}"></span>'.replace(/{class}/, options._classes.span));
|
|
42
|
+
if (self._isActive(index)) {
|
|
43
|
+
self._showTab($this)
|
|
44
|
+
}
|
|
45
|
+
}); // end h3 each
|
|
46
|
+
|
|
47
|
+
$this.children('div').each(function (index) {
|
|
48
|
+
var $this = $(this);
|
|
49
|
+
$this.addClass(options._classes.div);
|
|
50
|
+
}); // end each
|
|
51
|
+
|
|
52
|
+
$h3.bind('click', function (e) {
|
|
53
|
+
// preventing on click to navigate to the top of document
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
var $this = $(this);
|
|
56
|
+
var ui = {
|
|
57
|
+
tab: $this,
|
|
58
|
+
content: $this.next('div')
|
|
59
|
+
};
|
|
60
|
+
self._trigger('click', null, ui);
|
|
61
|
+
if ($this.hasClass(options._classes.stateDefault)) {
|
|
62
|
+
self._showTab($this);
|
|
63
|
+
} else {
|
|
64
|
+
self._hideTab($this);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
$h3.bind('mouseover', function () {
|
|
70
|
+
$(this).addClass(options._classes.stateHover);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
$h3.bind('mouseout', function () {
|
|
74
|
+
$(this).removeClass(options._classes.stateHover);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// triggering initialized
|
|
78
|
+
self._trigger('init', null, $this);
|
|
79
|
+
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
// destroying the whole multi open widget
|
|
83
|
+
destroy: function () {
|
|
84
|
+
var self = this;
|
|
85
|
+
var $this = self.element;
|
|
86
|
+
var $h3 = $this.children('h3');
|
|
87
|
+
var $div = $this.children('div');
|
|
88
|
+
var options = self.options;
|
|
89
|
+
$this.children('h3').unbind('click mouseover mouseout');
|
|
90
|
+
$this.removeClass(options._classes.accordion);
|
|
91
|
+
$h3.removeClass(options._classes.h3).removeClass('ui-state-default ui-corner-all ui-state-active ui-corner-top').children('span').remove();
|
|
92
|
+
$div.removeClass(options._classes.div + ' ' + options._classes.divActive).show();
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
// private helper method that used to show tabs
|
|
96
|
+
_showTab: function ($this) {
|
|
97
|
+
var $span = $this.children('span.ui-icon');
|
|
98
|
+
var $div = $this.next();
|
|
99
|
+
var options = this.options;
|
|
100
|
+
$this.removeClass('ui-state-default ui-corner-all').addClass('ui-state-active ui-corner-top');
|
|
101
|
+
$span.removeClass('ui-icon-triangle-1-e').addClass('ui-icon-triangle-1-s');
|
|
102
|
+
$div.slideDown('fast', function () {
|
|
103
|
+
$div.addClass(options._classes.divActive);
|
|
104
|
+
});
|
|
105
|
+
var ui = {
|
|
106
|
+
tab: $this,
|
|
107
|
+
content: $this.next('div')
|
|
108
|
+
}
|
|
109
|
+
this._trigger('tabShown', null, ui);
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
// private helper method that used to show tabs
|
|
113
|
+
_hideTab: function ($this) {
|
|
114
|
+
var $span = $this.children('span.ui-icon');
|
|
115
|
+
var $div = $this.next();
|
|
116
|
+
var options = this.options;
|
|
117
|
+
$this.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all');
|
|
118
|
+
$span.removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-e');
|
|
119
|
+
$div.slideUp('fast', function () {
|
|
120
|
+
$div.removeClass(options._classes.divActive);
|
|
121
|
+
});
|
|
122
|
+
var ui = {
|
|
123
|
+
tab: $this,
|
|
124
|
+
content: $this.next('div')
|
|
125
|
+
}
|
|
126
|
+
this._trigger('tabHidden', null, ui);
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
// helper method to determine wether passed parameter is an index of an active tab or not
|
|
130
|
+
_isActive: function (num) {
|
|
131
|
+
var options = this.options;
|
|
132
|
+
// if array
|
|
133
|
+
if (typeof options.active == "boolean" && !options.active) {
|
|
134
|
+
return false;
|
|
135
|
+
} else {
|
|
136
|
+
if (options.active.length != undefined) {
|
|
137
|
+
for (var i = 0; i < options.active.length; i++) {
|
|
138
|
+
if (options.active[i] == num)
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
return options.active == num;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return false;
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
// return object contain currently opened tabs
|
|
149
|
+
_getActiveTabs: function () {
|
|
150
|
+
var $this = this.element;
|
|
151
|
+
var ui = [];
|
|
152
|
+
$this.children('div').each(function (index) {
|
|
153
|
+
var $content = $(this);
|
|
154
|
+
if ($content.is(':visible')) {
|
|
155
|
+
//ui = ui ? ui : [];
|
|
156
|
+
ui.push({
|
|
157
|
+
index: index,
|
|
158
|
+
tab: $content.prev('h3'),
|
|
159
|
+
content: $content
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
return (ui.length == 0 ? undefined : ui);
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
getActiveTabs: function () {
|
|
167
|
+
var el = this.element;
|
|
168
|
+
var tabs = [];
|
|
169
|
+
el.children('div').each(function (index) {
|
|
170
|
+
if ($(this).is(':visible')) {
|
|
171
|
+
tabs.push(index);
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
return (tabs.length == 0 ? [-1] : tabs);
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
// setting array of active tabs
|
|
178
|
+
_setActiveTabs: function (tabs) {
|
|
179
|
+
var self = this;
|
|
180
|
+
var $this = this.element;
|
|
181
|
+
if (typeof tabs != 'undefined') {
|
|
182
|
+
$this.children('div').each(function (index) {
|
|
183
|
+
var $tab = $(this).prev('h3');
|
|
184
|
+
if (hasObject(index)) {
|
|
185
|
+
self._showTab($tab);
|
|
186
|
+
} else {
|
|
187
|
+
self._hideTab($tab);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
// active option passed by plugin, this method will read it and convert it into array of tab indexes
|
|
194
|
+
_generateTabsArrayFromOptions: function (tabOption) {
|
|
195
|
+
var tabs = [];
|
|
196
|
+
var self = this;
|
|
197
|
+
var $this = self.element;
|
|
198
|
+
var size = $this.children('h3').size();
|
|
199
|
+
if ($.type(tabOption) === 'array') {
|
|
200
|
+
return tabOption;
|
|
201
|
+
} else if ($.type(tabOption) === 'number') {
|
|
202
|
+
return [tabOption];
|
|
203
|
+
} else if ($.type(tabOption) === 'string') {
|
|
204
|
+
switch (tabOption.toLowerCase()) {
|
|
205
|
+
case 'all':
|
|
206
|
+
var size = $this.children('h3').size();
|
|
207
|
+
for (var n = 0; n < size; n++) {
|
|
208
|
+
tabs.push(n);
|
|
209
|
+
}
|
|
210
|
+
return tabs;
|
|
211
|
+
break;
|
|
212
|
+
case 'none':
|
|
213
|
+
tabs = [-1];
|
|
214
|
+
return tabs;
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
return undefined;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
// required method by jquery ui widget framework, used to provide the ability to pass options
|
|
224
|
+
// currently only active option is used here, may grow in the future
|
|
225
|
+
_setOption: function (option, value) {
|
|
226
|
+
$.Widget.prototype._setOption.apply(this, arguments);
|
|
227
|
+
var el = this.element;
|
|
228
|
+
switch (option) {
|
|
229
|
+
case 'active':
|
|
230
|
+
this._setActiveTabs(this._generateTabsArrayFromOptions(value));
|
|
231
|
+
break;
|
|
232
|
+
case 'getActiveTabs':
|
|
233
|
+
var el = this.element;
|
|
234
|
+
var tabs;
|
|
235
|
+
el.children('div').each(function (index) {
|
|
236
|
+
if ($(this).is(':visible')) {
|
|
237
|
+
tabs = tabs ? tabs : [];
|
|
238
|
+
tabs.push(index);
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
return (tabs.length == 0 ? [-1] : tabs);
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
// helper array has object function
|
|
249
|
+
// thanks to @Vinko Vrsalovic
|
|
250
|
+
// http://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array
|
|
251
|
+
var hasObject = function (arr, o) {
|
|
252
|
+
var l = arr.length + 1;
|
|
253
|
+
while (l -= 1) {
|
|
254
|
+
if (arr[l - 1] === o) {
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return false;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
})(jQuery);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textadventures/quest-viva-wasmplayer",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.60",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Quest Viva WasmPlayer runtime (browser-WASM text adventure player), published for CDN-linked single-file game exports.",
|
|
6
6
|
"license": "MIT",
|