primer commit
This commit is contained in:
commit
25c03cff5d
5
LICENSE
Normal file
5
LICENSE
Normal file
|
@ -0,0 +1,5 @@
|
|||
"THE NON-ALCOHOLIC-BEVERAGE-WARE LICENSE":
|
||||
|
||||
<xaloc@tutanota.com> wrote this. As long as you retain this notice you can
|
||||
do whatever you want with this stuff. If we meet some day, and you think this
|
||||
stuff is worth it, you can buy me a non-alcoholic beverage in return Xaloc
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
Una web on poder escoltar la web en streaming i res més. Sense distraccions ni molèsties.
|
17
index.html
Normal file
17
index.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang='ca'>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="author" content="Xaloc">
|
||||
<title>Radios</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button onClick='catRadio.show()'>Catalunya Radio</button>
|
||||
<button onClick='catInfo.show()'>Catalunya Informació</button>
|
||||
<button onClick='iCat.show()'>iCat</button>
|
||||
|
||||
|
||||
<script src='script.js'></script>
|
||||
</body>
|
||||
</html>
|
13
script.js
Normal file
13
script.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
class station{
|
||||
constructor(url){
|
||||
this.url= url;
|
||||
}
|
||||
show(){
|
||||
var win=window.open(this.url, '_blank');
|
||||
win.focus();
|
||||
}
|
||||
}
|
||||
|
||||
var catRadio = new station('http://shoutcast.ccma.cat/ccma/catalunyaradioHD.mp3');
|
||||
var catInfo = new station('http://shoutcast.ccma.cat/ccma/catalunyainformacioHD.mp3');
|
||||
var iCat = new station('http://shoutcast.ccma.cat/ccma/icatHD.mp3');
|
Loading…
Reference in New Issue
Block a user