mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Make the chess app appear
This commit is contained in:
parent
cfbea41542
commit
2f0c9b2ded
@ -16,7 +16,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
<script src="/customize/pre-loading.js?ver=1.1"></script>
|
||||
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
|
||||
<script async data-bootload="/common/sframe-app-outer.js" data-main="/common/boot.js?ver=1.0" src="/components/requirejs/require.js?ver=2.3.7"></script>
|
||||
<script src="/lib/webxdc.js"></script>
|
||||
<link href="/customize/src/outer.css?ver=1.3.2" rel="stylesheet" type="text/css">
|
||||
<link id="favicon-ico" type="image/x-icon" rel="icon"
|
||||
data-main-favicon="/customize/favicon/main-favicon.ico"
|
||||
@ -31,10 +30,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
<noscript></noscript>
|
||||
<iframe-placeholder>
|
||||
<div id="root"></div>
|
||||
<script src="./lib/jquery.min.js"></script>
|
||||
<script crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-Op9eHCRg.js"></script>
|
||||
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-CpC3q1r5.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -11,6 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
|
||||
<script src="/customize/pre-loading.js?ver=1.1"></script>
|
||||
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
|
||||
<script src="/lib/webxdc.js"></script>
|
||||
<script async data-bootload="/webxdc/inner.js" data-main="/common/sframe-boot.js?ver=1.11" src="/components/requirejs/require.js?ver=2.3.7"></script>
|
||||
<style>
|
||||
.loading-hidden {
|
||||
@ -21,7 +22,12 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
<body class="cp-app-webxdc">
|
||||
<div id="cme_toolbox" class="cp-toolbar-container"></div>
|
||||
<div id="cp-app-webxdc-editor"></div>
|
||||
<div id="cp-app-webxdc-editor">
|
||||
<div id="root"></div>
|
||||
<script src="./lib/jquery.min.js"></script>
|
||||
<script crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-Op9eHCRg.js"></script>
|
||||
<script crossorigin id="vite-legacy-entry" src="./assets/index-legacy-CpC3q1r5.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('src'))</script>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@ -25,20 +25,21 @@ define([
|
||||
let $container = $('#cp-app-webxdc-editor');
|
||||
|
||||
let $content = $(h('div#cp-webxdc-content')).appendTo($container);
|
||||
let $textarea = $(h('textarea'));
|
||||
$content.append($textarea);
|
||||
// let $textarea = $(h('textarea'));
|
||||
// $content.append($textarea);
|
||||
let oldVal = '';
|
||||
$textarea.on('change keyup paste', function () {
|
||||
var currentVal = $textarea.val();
|
||||
if (currentVal === oldVal) { return; } // Nothing to do
|
||||
oldVal = currentVal;
|
||||
framework.localChange();
|
||||
});
|
||||
// $textarea.on('change keyup paste', function () {
|
||||
// var currentVal = $textarea.val();
|
||||
// if (currentVal === oldVal) { return; } // Nothing to do
|
||||
// oldVal = currentVal;
|
||||
// framework.localChange();
|
||||
// });
|
||||
let getContent = () => {
|
||||
return $textarea.val();
|
||||
// return $textarea.val();
|
||||
};
|
||||
let setContent = (value) => {
|
||||
return $textarea.val(value);
|
||||
// return $textarea.val(value);
|
||||
// return window.webxdc.sendUpdate(value);
|
||||
};
|
||||
|
||||
let content = {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user