Skip to content

Commit

Permalink
Updated to ES6 in places (w/ Babel); refactored to make the player a …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
davidmpurdy committed Jul 7, 2020
1 parent e1cc07b commit 7876fb8
Show file tree
Hide file tree
Showing 9 changed files with 425 additions and 314 deletions.
12 changes: 12 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"corejs": "3.1.3",
"useBuiltIns": "entry",
"targets": "> 0.25%, not dead"
}
]
]
}
32 changes: 16 additions & 16 deletions dist/player.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<div id="livestream_player"
style="background-color:#000000; color:#FFFFFF"
data-station="TRITONRADIOMUSIC"
data-station="KRNNFM"
data-foreground="#DDDDDD"
data-background="#333333"
data-foreground-hover="#FFFFFF"
Expand All @@ -18,5 +18,6 @@

</div>
<script src="dist/player.js" data-player-id="livestream_player"></script>

</body>
</html>
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"author": "davidmpurdy",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"babel-preset-es2015": "^6.24.1",
"css-loader": "^3.4.2",
"html-loader": "^1.1.0",
"jquery-ui": "^1.12.1",
Expand All @@ -25,6 +30,7 @@
},
"dependencies": {
"color-alpha": "^1.0.4",
"core-js": "^3.6.5",
"jquery": "^3.5.1",
"js-cookie": "^2.2.1",
"svg-loaders": "^0.2.0"
Expand Down
Loading

0 comments on commit 7876fb8

Please sign in to comment.