Git Product home page Git Product logo

Comments (8)

alaingilbert avatar alaingilbert commented on September 12, 2024

Refresh the page ! :P

Or you can propose a patch :)

I wrote it as a fast tool to find the informations, nothing more !

from turntable-api.

oldramen avatar oldramen commented on September 12, 2024

I'm pretty sure there IS a close button. It's directly below the iframe. I know this because I used the code as a base for the original way my extension's options page popped up :D

If memory serves me correct, it's just a line that says 'close this window'.

from turntable-api.

MikeWills avatar MikeWills commented on September 12, 2024

Refreshing works if you aren't DJing. I just noticed a problem and thought I would report it. Do with it what you want.

from turntable-api.

alaingilbert avatar alaingilbert commented on September 12, 2024

Hum, I'm not sure anymore. Do you talk about the bookmarklet to find the the auth, userid, roomid informations ? Or, the bookmarklet that we ccan find on ttdashboard ?

For the second one, there is a close button juste below the iframe.

from turntable-api.

MikeWills avatar MikeWills commented on September 12, 2024

The bookmarklet for auth, userid, roomid information.

from turntable-api.

oldramen avatar oldramen commented on September 12, 2024

I don't see a reason for repeated use of that bookmarklet, but it should be an easy fix.

from turntable-api.

oldramen avatar oldramen commented on September 12, 2024

Here you go, new bookmarklet code:
javascript:(function(){if ($("#ttapi")[0]) {$('#ttapi').remove();}for (var i in turntable) { if (turntable[i].roomId) { var rid = turntable[i].roomId; break; } }$('

').appendTo('#overlay');$("#ttapi").css({'height' : '150px', 'width' : '500px', 'margin' : 'auto', 'margin-top' : '50px', 'background-color':'#fff', 'font-size':'13px' });$('#ttapi').append('
TTAPI Details
');$('#ttapi').append('
Auth: '+turntable.user.auth+'
');$('#ttapi').append('
User ID: '+turntable.user.id+'
');$('#ttapi').append('
Room ID: '+rid+'
');$('#authid, #userid, #roomid').css({'text-align':'left', 'padding-left':'20px', 'padding-top':'5px'});$('#authid').css({'padding-top':'20px'});$('#roomid').css({'padding-bottom':'20px'});$('#overlay').append('
Close This Window
');$('#overlay').css('display', 'block');$('#closeme').click(function () {$('#ttapi').remove();$('#closeme').remove();$('#overlay').css('display', 'none');});})();

from turntable-api.

alaingilbert avatar alaingilbert commented on September 12, 2024

I fixed it.

If you click a second time on the bookmarklet, it'll remove the div.

The changes are there :
46a1292

:)

from turntable-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.