jeremyjia / Games

Home Page Link:
https://jeremyjia.github.io/Games/
3 stars 8 forks source link

editorial voa 2word #737

Open jeremyjia opened 2 years ago

jeremyjia commented 2 years ago

body

jeremyjia commented 2 years ago

var s = "i737-c1 v0.11"; var d = blo0.blMD("id4"+s, s, 300,100,500,400, "lightgreen"); d.v = blo0.blDiv(d,d.id+"v","v",blGrey[0]); var x= {}; x.blr_get_voa1_html = function(b,d){
var urlSrc = 'https://editorials.voa.gov/a/to-walk-the-earth-in-safety-report-for-2022/6537624.html?withmediaplayer=1'; var urlDL = " http://localhost:8080/download?url="+urlSrc; urlDL += "&&filename=voa1.html"; blo0.blAjaxFormData("GET",urlDL ,null,function(txt){ var o = JSON.parse(txt); d.innerHTML = o.filename; }); }

blo0.blShowObj2Div(d.v,x); _on_off_div(null,d);

jeremyjia commented 2 years ago

var s = "i737-c1 v0.11"; var d = blo0.blMD("id4"+s, s, 300,100,500,400, "lightgreen"); d.v = blo0.blDiv(d,d.id+"v","v",blGrey[0]); var x= {}; x.blr_parse_title = function(b,d){
var url_voa1_html = " http://localhost:8080/voa1.html"; blo0.blAjaxFormData("GET",url_voa1_html ,null,function(txt){ var a = txt.split('data-title="'); var b = a[1].split('" data-hide-title'); d.innerHTML = b[0]; }); }

blo0.blShowObj2Div(d.v,x); _on_off_div(null,d);

jeremyjia commented 2 years ago

var s = "i737-c1 v0.11"; var d = blo0.blMD("id4"+s, s, 300,100,500,400, "lightgreen"); d.v = blo0.blDiv(d,d.id+"v","v",blGrey[0]); var x= {}; x.blr_parse_body = function(b,d){
var url_voa1_html = " http://localhost:8080/voa1.html"; blo0.blAjaxFormData("GET",url_voa1_html ,null,function(txt){ var a = txt.split('Pop-out player'); var b = a[1].split('<div class="col-xs-12 col-sm-12 col-md-4'); d.innerHTML = b[0]; }); }

blo0.blShowObj2Div(d.v,x); _on_off_div(null,d);

jeremyjia commented 2 years ago

var s = "i737-c1 v0.11"; var d = blo0.blMD("id4"+s, s, 300,100,500,400, "lightgreen"); d.v = blo0.blDiv(d,d.id+"v","v",blGrey[0]); var x= {}; x.blr_download_mp3 = function(b,d){
var url_voa1_html = " http://localhost:8080/voa1.html"; blo0.blAjaxFormData("GET",url_voa1_html ,null,function(txt){ var a = txt.split('?download=1" title="65 kbps | MP3"'); var b = a[0].split('<a href="https://av.'); var c = "https://av." + b[2]; blo0.blGetTa().value = c; blo0.blGetTa().mp3SrcURL = c; }); }

blo0.blShowObj2Div(d.v,x); _on_off_div(null,d);

jeremyjia commented 2 years ago

var s = "i737-c1 v0.11"; var d = blo0.blMD("id4"+s, s, 300,100,500,400, "lightgreen"); d.v = blo0.blDiv(d,d.id+"v","v",blGrey[0]); var x= {}; x.blr_get_voa1_mp3 = function(b,d){
var urlSrc = blo0.blGetTa().mp3SrcURL; var urlDL = " http://localhost:8080/download?url="+urlSrc; urlDL += "&&filename=voa1.mp3"; blo0.blAjaxFormData("GET",urlDL ,null,function(txt){ var o = JSON.parse(txt); d.innerHTML = o.filename; blo0.setPlayerURL("http://localhost:8080/" + o.filename); }); }

blo0.blShowObj2Div(d.v,x); _on_off_div(null,d);