Stories
Slash Boxes
Comments

SoylentNews is people

This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by takyon on Friday October 13 2017, @05:42AM (4 children)

    by takyon (881) <takyonNO@SPAMsoylentnews.org> on Friday October 13 2017, @05:42AM (#581588) Journal

    I added this to the show_results function:

    getElementById__song_name.innerHTML = song_name_display;
    document.title = song_name_display + " | " + artist_name_display + " | Jango Raid"; // new

    Other than that it would be nice to pass strings into the app by URL so you can link someone http://jango-raid.ml/?song_name=Title%20Title [jango-raid.ml] or http://jango-raid.ml/?artist_name=Group%20Name [jango-raid.ml] or etc. No need for autoplay, just autofill.

    --
    [SIG] 10/28/2017: Soylent Upgrade v14 [soylentnews.org]
    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 1, Informative) by Anonymous Coward on Friday October 13 2017, @06:46PM (3 children)

    by Anonymous Coward on Friday October 13 2017, @06:46PM (#581935)

    Time for some super lazy query string parsing.

    http://jango-raid.ml/?a=Boston&s=Peace+Of+Mind&st=113273851&a_id=8821&s_id=138609 [jango-raid.ml]

    Fills the whole search form.

    • (Score: 2) by takyon on Friday October 13 2017, @10:08PM (2 children)

      by takyon (881) <takyonNO@SPAMsoylentnews.org> on Friday October 13 2017, @10:08PM (#582042) Journal

      quetrystring? Heheh.

      I added this after the last form element:

      <p><input type="button" value="Link This" onclick="document.getElementById('url_text').value=window.location.href.split('?')[0]; if(song_usd_display!='') {document.getElementById('url_text').value+='?a='+escape(artist_name_display)+'\u0026s='+escape(song_name_display)+'\u0026st='+station+'\u0026a_id='+artist_usd_display+'\u0026s_id='+song_usd_display;}"> : <input type="text" id="url_text" size="50" onclick="this.select()" readonly></p>

      I also considered adding an autoplay parameter that would search and then play onload, but meh.

      If you're tired of talking about it in here I can set up an entry in my journal for it.

      --
      [SIG] 10/28/2017: Soylent Upgrade v14 [soylentnews.org]
      • (Score: 0) by Anonymous Coward on Saturday October 14 2017, @07:11PM (1 child)

        by Anonymous Coward on Saturday October 14 2017, @07:11PM (#582377)

        Haha! It was a cutsey typo cuz I was wrapping the function in a try block so quetrystring got an extra t.

        Few things. I really don't want to add more junk to make the form even bigger so I think the Link button can fill the empty space below WakeLock status and next to Song ID. And I think the generated link can fill the Song ID field because the search function already ignores everything except numbers in the ID fields so it won't matter if there's a URL in there. It ignores extra URL stuff so you can paste in station URLs directly from Jango Radio for when you want to search a genre station or whatever.

        Which reminds me song_id overrides station_id and station_id overrides artist_id and artist_id is redundant. If you want to link to a song you only need a song_id which means artist and song are just cosmetic labels. Potential for rickrolling right there.

        Oh and yeah the Link button needs a soapy name for NoAdRadio mode. NoAdRadio was a secondary deployment of Jango Radio with a silly theme, defunct now, but I still maintain a Soap mode because it's cute.