/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| const fetch = require("node-fetch"); | |
| const urls = ["http://35.185.40.23/", "http://distance.rip:23469/"]; | |
| Promise.all(urls.map(fetch)) | |
| .then(responses => Promise.all(responses.map(res => res.json()))) | |
| .then(multiData => multiData.reduce((merge, data) => ({ | |
| ...merge, | |
| ...data | |
| }), {})) | |
| .then(merged => { |
/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| function parseVideo (url) { | |
| // - Supported YouTube URL formats: | |
| // - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
| // - http://youtu.be/My2FRPA3Gf8 | |
| // - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
| // - Supported Vimeo URL formats: | |
| // - http://vimeo.com/25451551 | |
| // - http://player.vimeo.com/video/25451551 | |
| // - Also supports relative URLs: | |
| // - //player.vimeo.com/video/25451551 |
| '#ff2233'.substr(1).match(/.{2}/g).reverse().join('') |
| #EXTM3U | |
| #EXTINF:-1 tvg-logo="https://upload.wikimedia.org/wikipedia/commons/6/65/Animaxlogo-20160701.png" group-title="INFANTILES",ANIMAX | |
| http://video7.stream.mx:1935/raxatv/raxatv/chunklist_w884577146.m3u8 | |
| #EXTINF:-1 tvg-logo="http://i.imgur.com/exvuGgQ.png" group-title="INFANTILES",ANIME TV | |
| http://video7.stream.mx:1935/raxatv/raxatv/chunklist_w884577146.m3u8?JoCaRoIPTV.m3u8 | |
| #EXTINF:-1 tvg-logo="https://vignette.wikia.nocookie.net/logopedia/images/c/ca/Baby_TV.png/revision/latest?cb=20111201223043" group-title="INFANTILES",BABY TV | |
| http://tstv.lcdn.claro.net.co/Content/hls_clear/Live/Channel(BABYTV)/index.m3u8 | |
| #EXTINF:-1 tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Boomerang_tv_logo.png/607px-Boomerang_tv_logo.png" group-title="INFANTILES",BOOMERANG | |
| http://live.izzitv.mx/Content/HLS/Live/Channel(BOOMERANG)/index.m3u8 |
| <?php | |
| //Convert JSONfeed to RSS in a single function as a drop-in to make adding JSONfeed | |
| //support to an aggregator easier | |
| function convert_jsonfeed_to_rss($content = NULL, $max = NULL) | |
| { | |
| //Test if the content is actual JSON | |
| json_decode($content); | |
| if( json_last_error() !== JSON_ERROR_NONE) return FALSE; |
| #EXTM3U | |
| #EXTINF:0 type="stream" tvg-logo="http://cdn.idealo.com/folder/Product/61/5/61572/s11_produktbild_mid/sony-icf-c390.jpg" , Radios pelo Mundo | |
| http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 | |
| #EXTINF:0 type="stream" tvg-logo="http://cdn.letras.com.br/arquivos/fotos/capas/46/0004553,roberto-carlos-as-baleias.jpg" , Radio Roberto Carlos | |
| http://192.99.150.31:9137/stream | |
| #EXTINF:0 type="stream" tvg-logo="https://static-media.streema.com/media/object-images/8227804f7f5c47d0956ffa91c0ee08ac.png" , Coca -Cola FM | |
| http://s.imusicaradios.com.br:1935/imusica_radio/brasil.stream/playlist.m3u8 | |
| #EXTINF:0 type="stream" tvg-logo="https://lh5.ggpht.com/CUcQeArXPT-UOS95gPQOr4OPEvyLnofZ5_SdaM8UJUFnetadqsx2L35mhuDhcR9xglbl=w300" , New Age | |
| http://192.99.150.31:8353/stream | |
| #EXTINF:0 type="stream" tvg-logo="https://www.programamaistorcedor.com.br/uploads/parceiro/logo/17/Mundo_dos_esportes_logo.jpg" , Mundo dos Esportes |
| [ | |
| { | |
| "Arts": [ | |
| "Design", | |
| "Fashion & Beauty", | |
| "Food", | |
| "Literature", | |
| "Performing Arts", | |
| "Visual Arts" | |
| ] |
| function hasClass(el, className) { | |
| return el.classList ? el.classList.contains(className) : new RegExp('\\b' + className + '\\b').test(el.className); | |
| } | |
| function addClass(el, className) { | |
| if (el.classList) el.classList.add(className); | |
| else if (!hasClass(el, className)) el.className += ' ' + className; | |
| } | |
| function removeClass(el, className) { |