Skip to content

Commit

Permalink
revert(pg)
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Sep 10, 2024
1 parent da61120 commit 059c96f
Showing 1 changed file with 3 additions and 145 deletions.
148 changes: 3 additions & 145 deletions packages/devextreme/playground/jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
<script type="text/javascript" src="../artifacts/js/dx.all.debug.js" charset="utf-8"></script>
<script type="text/javascript" src="./themeSelector.js"></script>
<script type="text/javascript" src="../../../node_modules/axe-core/axe.min.js"></script>

<style>
.dx-chat-message-avatar {
/* width: 64px;
height: 64px; */
}
</style>
</head>
<body class="dx-surface">
<div role="main">
Expand All @@ -59,144 +52,9 @@ <h1 style="position: fixed; left: 0; top: 0; clip: rect(1px, 1px, 1px, 1px);">Te
<div id="button"></div>
<script>
$(function() {
const user1 = {
id: 1,
name: 'User 1',
};

const user2 = {
id: 2,
name: 'User 2',
};

// const author = {
// id: 1,
// name: 'First User Name',
// };
// const timestamp = new Date(1721747399083);
// const text = '0.392722124265449';

const getRandomValue = (length = 10) => {
const crypto = window.crypto;

const mathRandow = Math.random();
const array = new Uint32Array(length);
const cryptoRandom = crypto.getRandomValues(array).reduce((acc, i) => `${acc}${i}`, mathRandow);
const randomUUID = crypto.randomUUID();

const randomString = `${randomUUID}:\n\n${cryptoRandom}`;

return randomString;
};

const randomUint32 = '0.392722124265449';

$("#button").dxChat({
width: 400,
height: 600,
// user: user1,
items: [
{
text: randomUint32,
// author: user2,
// timestamp: new Date(),
},
{
text: randomUint32,
// author: user1,
// timestamp: new Date(),
},
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
// {
// text: getRandomValue(),
// author: user1,
// timestamp: new Date(),
// },
],

// height: 500,
// width: 400,
// items: [
// {
// timestamp,
// text,
// author,
// },
// {
// timestamp,
// text,
// author,
// },
// ],
$("#button").dxButton({
text: 'Click me!',
onClick: function() { alert("clicked"); }
});
});
</script>
Expand Down

0 comments on commit 059c96f

Please sign in to comment.