Skip to content

Commit 92e346a

Browse files
committed
Merge branch 'vector'
2 parents 6ceaee7 + 904754b commit 92e346a

180 files changed

Lines changed: 6604 additions & 449 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎examples/trivial/fonts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../skins/base/fonts/

‎examples/trivial/img‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../skins/base/img

‎examples/trivial/index.html‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@
22
<html lang="en" style="height: 100%; overflow: hidden">
33
<head>
44
<meta charset="utf-8">
5-
<title>Matrix React SDK Example</title>
5+
<title>vector</title>
6+
<link href='fonts/Lato.css' rel='stylesheet' type='text/css'>
67
</head>
78
<body style="height: 100%;">
9+
<audio id="ringbackAudio" loop>
10+
<source src="media/ringback.ogg" type="audio/ogg" />
11+
<source src="media/ringback.mp3" type="audio/mpeg" />
12+
</audio>
13+
<audio id="callendAudio">
14+
<source src="media/callend.ogg" type="audio/ogg" />
15+
<source src="media/callend.mp3" type="audio/mpeg" />
16+
</audio>
17+
<audio id="busyAudio">
18+
<source src="media/busy.ogg" type="audio/ogg" />
19+
<source src="media/busy.mp3" type="audio/mpeg" />
20+
</audio>
821
<section id="matrixchat" style="height: 100%;"></section>
922
<script src="bundle.js"></script>
1023
<link rel="stylesheet" href="node_modules/matrix-react-sdk/bundle.css">

‎examples/trivial/index.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ function routeUrl(location) {
4040
}
4141
}
4242
window.matrixChat.showScreen('register', params);
43+
} else {
44+
window.matrixChat.showScreen(location.hash.substring(2));
4345
}
4446
}
4547

48+
function onHashChange(ev) {
49+
routeUrl(window.location);
50+
}
51+
52+
window.addEventListener('hashchange', onHashChange);
53+
4654
var loaded = false;
4755

4856
window.onload = function() {

‎examples/trivial/media/busy.mp3‎

24.3 KB
Binary file not shown.

‎examples/trivial/media/busy.ogg‎

13.6 KB
Binary file not shown.

‎examples/trivial/media/callend.mp3‎

12.7 KB
Binary file not shown.

‎examples/trivial/media/callend.ogg‎

13.6 KB
Binary file not shown.

‎examples/trivial/media/message.mp3‎

4.6 KB
Binary file not shown.

‎examples/trivial/media/message.ogg‎

11.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)