Does Google presentations have an API for examining a slide deck? - google-docs-api

Basically what I want to do is to take an existing slide deck and post it in a forum, where each slide creates a new forum post. This means:
Determining how many slides are in the deck.
Iterating through each slide and computing the URL for the slide.
Ideally, I'd like to do this on the server rather than on the client.

Related

How can I get hyperlinks on Google Slides to open in the same window?

I'm a kindergarten teacher trying to post a set of Google slides to support online learning. I have a very modest understanding of HTML. I want students to move to new slides by clicking hyperlinks, not by scrolling through like a presentation, so I made each slide (10-12 total) its own presentation. It works, but every time you navigate from one to the other, it opens it in a new tab, which quickly turns into too many tabs. I don't see a way to create links that open in the same window.
campus (only READING link is set up at the moment)
thanks!
There is code you could add to a SINGLE presentation slide that would open in a 'preview' tab which is a little different than present mode. You would have to put all slides back into 1 slide presentation(file). Replaced everything at the end including the word edit.
https://docs.google.com/presentation/d/1MV8HjEo4HAD9q9EwE8T77WbcwOxpUk48JogS9ffecLw/edit#slide=id.p
Then I would replace the above with--look at the end of the code.
https://docs.google.com/presentation/d/1MV8HjEo4HAD9q9EwE8T77WbcwOxpUk48JogS9ffecLw/preview?rm=minimal
Now clicking the links would keep the user on the same slide deck throughout all their clicks. They can advance or go back depending on your links inside the presentation

Arrows to connect annotational boxes with content

Is there a plugin for reveal.js to do the following: I want to have boxes with annotations "overlaid" on my slides (i.e., sitting on top of the main slide text) that have arrows connecting them with slide elements. I am thinking of something like the following
I looked at plenty of reveal.js examples, but was not able to find any presentation that did anything comparable, so I hope it is okay to ask here.

What's the equivalent of z-index (arrange order) send to back / bring to front with Slides API?

I am calling the slides API and retrieving multiple shape elements on a slide. These shapes are on top of each other, so only the one is visible. Is there a way from the API of telling which element is "visible" and in front?
The list of PageElement objects returned in Page.pageElements should be ordered by z-index, from back to front. I dont see this mentioned in the API docs, but you should be able to verify it yourself by playing with a few shapes in the Slides editor and checking the order they are returned by the API.

Queue in which values can be removed that aren't on top

I'm creating a computerised version of the card game "spit" using pygame for a project I'm working on. In Spit, the player has 5 hand piles, storing up to 5 cards, with the top card face up and the rest face down. When a card is removed from a card pile and place on a game pile, I want the remaining values of the hand pile to "move up" so that the second value in the list is now the first one.
For this, I planned on using a queue, but there is a problem with that.
In the game, when a hand pile is empty, you can take a face down card from another hand pile, flip it, and place it in the empty hand pile so that there are no more empty hand piles. This is called stockpiling.
And here's my problem, that is not possible in a queue. Is there a work around this? Or another form stack in which I can use to replace this?
Thank you for your time and I look forward to your answers.
It seems like lists could do the job here. You can represent each hand stack by a list with the index 0 being the downmost card. You can then use the list.pop() method to get and remove the last card (visible one) of the list when it's played on the board.
For the stockpiling, if I understand correctly, you can get any card in any stack (except the topmost one, which is visible), take it out and put it on top of the empty stack (which will be an empty list). You can do that with:
firstList[0] = chosenCard #Get the chosen card from the first pile
del firstList[0] #Delete the downmost card. The new list will have element
#firstList[0] equal to the old firstList[1], like a stack
secondList.append(chosenCard) #Add the card to the end of the list (top of the stack)

JavaFX - button with hyperlink to another page

I want to make an application in JavaFX-2 based on two pages as "main" page and "extras" page. In the main page, I have added a Hbox function which includes a button named "extras". How do I define a second page and how can I set a hyperlink to the button (onMouseClicked event?), to refer to extras page? I could not find any examples on Mouse events related to this question. Thanks for help!
Take a look at the JFX Flow framework - it seems to have the functionality you are requesting, with back and forward navigation and transitions between scenes.
I created a simple wizard implementation in response to a forum post which helps perform some of this scene to scene style navigation. I also created a small sample of animating sliding panes of in and out of the screen which I also created earlier. The code for the two concepts is not linked together, but the code is pretty simple so, it wouldn't be hard to link it.
There is a large source of Canned animations in the FXExperience project as well as plently of inbuilt Transitions in JavaFX.

Resources