Yesterday’s Song Lyric Karaoke Style SubRip Subtitles Automated Tutorial work “comes along for the ride” in the cloning of the Song Lyric Karaoke Style SubRip Subtitles web application to a new Video Commentary YouTube Style SubRip Subtitles web application, where we started getting interested in supporting programmatically created “summary” element wording mapped to … YouTube 11 character … link to a YouTube video … YouTube 34 character … link to a YouTube playlist … Spotify 22 character … link to a Spotify playlist … Strings with . and @ … link to a mailto: “a” link means of communication … Strings mainly numerical … link to an SMS: “a” link means of communication Strings starting with “http” or “//” … link to a URL, suiting ones like Wikipedia uses (at this stage) … because we envisage the how we got there cloning to video_commentary.html web application (you can try below) Video Commentary YouTube Style SubRip Subtitles web application could be useful for research purposes and/or presentations using YouTube as that ever useful starting point. It got help via … further embellished stop_start_youtube.html inhouse YouTube API interfacer the parent level changed karaoke_youtube_api.htm inhouse YouTube Informational Organizer and improved Audio Recording Organizer featuring … function otherlegit(ineleven, iflegit, thiseleven) { if (eval(” + ineleven.length) != thiseleven) { return ‘JUNK’ + iflegit; //} else if (ineleven.slice(-1).replace(‘A’,”).replace(‘E’,”).replace(‘I’,”).replace(‘M’,”).replace(‘Q’,”).replace(‘U’,”).replace(‘Y’,”).replace(‘c’,”).replace(‘g’,”).replace(‘k’,”).replace(‘o’,”).replace(‘s’,”).replace(‘w’,”).replace(‘0’,”).replace(‘4’,”).replace(‘8’,”) != ”) { // return ‘JUNK’ + iflegit; } for (var ijk=0; ijk<ineleven.length; ijk++) { if (ineleven.substring(ijk).substring(0,1) >= ‘a’ && ineleven.substring(ijk).substring(0,1) <= ‘z’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) >= ‘A’ && ineleven.substring(ijk).substring(0,1) <= ‘Z’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) >= ‘0’ && ineleven.substring(ijk).substring(0,1) <= ‘9’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) == ‘/’ || ineleven.substring(ijk).substring(0,1) == ‘+’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) == ‘-‘ || ineleven.substring(ijk).substring(0,1) == ‘_’) { ijk=ijk; } else { return ‘JUNK’ + iflegit; } } return iflegit; } function maybelegit(ineleven, iflegit) { if (eval(” + ineleven.length) != 11) { return iflegit.replace(‘tube’,’tuJUNKbe’); } else if (ineleven.slice(-1).replace(‘A’,”).replace(‘E’,”).replace(‘I’,”).replace(‘M’,”).replace(‘Q’,”).replace(‘U’,”).replace(‘Y’,”).replace(‘c’,”).replace(‘g’,”).replace(‘k’,”).replace(‘o’,”).replace(‘s’,”).replace(‘w’,”).replace(‘0’,”).replace(‘4’,”).replace(‘8’,”) != ”) { return iflegit.replace(‘tube’,’tuJUNKbe’); } for (var ijk=0; ijk<ineleven.length; ijk++) { if (ineleven.substring(ijk).substring(0,1) >= ‘a’ && ineleven.substring(ijk).substring(0,1) <= ‘z’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) >= ‘A’ && ineleven.substring(ijk).substring(0,1) <= ‘Z’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) >= ‘0’ && ineleven.substring(ijk).substring(0,1) <= ‘9’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) == ‘/’ || ineleven.substring(ijk).substring(0,1) == ‘+’) { ijk=ijk; } else if (ineleven.substring(ijk).substring(0,1) == ‘-‘ || ineleven.substring(ijk).substring(0,1) == ‘_’) { ijk=ijk; } else { return iflegit.replace(‘tube’,’tuJUNKbe’); } … Continue reading →
YouTube Style SubRip Subtitles External Javascript Tutorial
With yesterday’s YouTube Style SubRip Subtitles Button Tutorial‘s “web application peerage” it was a bit unfortunate the timing of the “cloning event” we undertook earlier on. The “collaboration” work was done just with one of the peerage, leaving the other behind, until today, and that is not ideal. But there is an advantage as well. Getting the second peer up to speed on collaboration gave us a chance to review Javascript functions and hive off generic functions (focussing, again, on “what they have in common” rather than “how they are different”) into a new external Javascript subrip_helper.js helper that each member of the peerage can call. And we even got the functions ordered alphabetically … all a bit like a start of year excursion to Officeworks where the green pen in the top pocket is poised to write a “tick” right now! As well, we picked up that orange div clicks when not collaborating (how couldn’t you?!) with unnecessary asking of things of the user in prompt boxes. Gasp! This exercise also taught us that for collaborators it was good to even up the numbers in those textarea (non-mobile) or textbox (mobile) elements ahead of playing the YouTube video … var huhs=[]; function lookatthreetosix() { // huhs[] filled with captions data off an email or SMS URL link var starts=huhs[3].split(‘,’); var ends=huhs[4].split(‘,’); if (eval(” + ends.length) < eval(” + starts.length) && eval(” + ends.length) > 0 && ends[0] != ”) { while (eval(” + ends.length) < eval(” + starts.length)) { huhs[4]+=’,’ + ends[eval(-1 + ends.length)]; ends=huhs[4].split(‘,’); } } ends=huhs[2].split(‘ , ‘); if (eval(” + ends.length) < eval(” + starts.length) && eval(” + ends.length) > 0 && ends[0] != ”) { while (eval(” + ends.length) < eval(” + starts.length)) { huhs[2]+=’ , ‘ + ends[eval(-1 + ends.length)]; ends=huhs[2].split(‘ , ‘); } } ends=huhs[5].split(‘ , ‘); if (eval(” + ends.length) < eval(” + starts.length) && eval(” + ends.length) > 0 && ends[0] != ”) { while (eval(” + ends.length) < eval(” + starts.length)) { huhs[5]+=’ , ‘ + ends[eval(-1 + ends.length)]; ends=huhs[5].split(‘ , ‘); } } } Anyway, such days of organization that are “sort of sideways” and “crab like forwards” can be rewarding, and yes … You can stop headbutting that brick wall now, Cecil! Codewise, the peerage shrank in code size as per … the changed to video_commentary.html web application (you can try below) Video Commentary YouTube Style SubRip Subtitles … Continue reading →