This repository was archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (69 loc) · 2.29 KB
/
Copy pathindex.html
File metadata and controls
96 lines (69 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
<title>OurRSS</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" />
<link rel="stylesheet" href="index.css" />
<link href="ourrss-player.html" rel="import" />
<link href="ourrss-listen.html" rel="import" />
<link href="ourrss-firebase.html" rel="import" />
<link href="ourrss-modal.html" rel="import" />
<link href="electron-controls.html" rel="import" />
</head>
<body class="light-primary-color" unload="deviceSync()">
<div class="ourrss-header">
<electron-controls></electron-controls>
<div class="app-header">
<h3><img src="img/icon.png" />urRSS</h3>
<i>An open RSS player built with open web standards openly...</i>
</div>
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<ourrss-listen></ourrss-listen>
<ourrss-modal></ourrss-modal>
<ourrss-player volume="1"></ourrss-player>
</body>
<script>
const player = document.querySelector('ourrss-player')
document.body.onkeydown = (e) => {
if (e.keyCode == 32) {
e.preventDefault()
player.setAttribute('play', Math.random())
}
}
player.setAttribute('name', localStorage['audioName'])
player.setAttribute('src', localStorage['audioFeed'])
player.setAttribute('image', localStorage['audioImg'])
player.setAttribute('time', localStorage['audioTime'])
player.setAttribute('title', localStorage['audioTitle'])
const deviceSync = () => {
const current = {}
current.audioImg = localStorage['audioImg']
current.audioFeed = localStorage['audioFeed']
current.audioName = localStorage['audioName']
current.audioTime = localStorage['audioTime']
current.audioTitle = localStorage['audioTitle']
const updates = {};
updates[`users/${uid}/audio/current`] = current;
firebase.database().ref().update(updates)
//ipc.send('message', ({ head: `Synced ${audio.length} Feeds`, body: '' }))
alert()
}
</script>
</html>
<!--
Written with
<svg class="heart" viewBox="0 0 32 29.6">
<path d="M23.6,0c-3.4,0-6.3,2.7-7.6,5.6C14.7,2.7,11.8,0,8.4,0C3.8,0,0,3.8,0,8.4c0,9.4,9.5,11.9,16,21.2
c6.1-9.3,16-12.1,16-21.2C32,3.8,28.2,0,23.6,0z" />
</svg>
by
<a href="//jamiesmiths.com" target="_blank">Jamie Smith</a>
-->