Skip to content

Instantly share code, notes, and snippets.

View Anirog's full-sized avatar

Larrie Anirog

View GitHub Profile
@Anirog
Anirog / audio-player.js
Created September 7, 2022 12:30
audio-player
// Make XHR request for the pls file
if (window.XMLHttpRequest) {
// code for IE7 +, Firefox, Chrome, Opera, Safari
xhr = new XMLHttpRequest();
} else {
// code for IE6, IE5
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.open("GET", "https://somafm.com/missioncontrol130.pls", false);
xhr.send();
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link to external style sheet -->
<link rel="stylesheet" href="css/style.css">
<!-- description should be between 120 & 150 characters -->
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->