reveal.js

Mouse position in SVG and RevealJS

一世执手 提交于 2019-12-05 20:27:14
问题 I'm creating a presentation with RevealJS and would like to incorporate some interactive SVG visualizations created with D3. I've done this without difficulty a number of times before but I'm having some difficulty this time. After a bit of debugging, I've traced the problem to the following: For some reason, the mouse position relative to an SVG is not reported correctly when the whole thing is wrapped inside RevealJS. My original version of the code used a standard D3 technique to get the

Can I align reveal.js slides to the top of the page?

 ̄綄美尐妖づ 提交于 2019-12-05 14:25:24
问题 I'm using reveal.js and trying to sort out how to force my slides to the top left-most corner of the page. That seems like it should be straightforward, but when I use the Element inspector it so radically changes the page that I can't even begin to zero in on how to move the slides up to the top. Adding this to my theme: .reveal .slides>section, .reveal .slides>section>section { padding: 0;} Bumped it up a smidge (reveal.css has the padding set to 20px 0 ) but there's still white space at

IPython notebook to slides: Reveal is not defined

蹲街弑〆低调 提交于 2019-12-05 13:16:57
I'm using nbconvert to make a reveal.js slideshow from my notebook. Specifically, I'm running: ipython nbconvert --to slides analysis.ipynb . This creates "analysis.slides.html", and I put "reveal.js" in the same folder. That is, I have: reveal.js ... analysis.ipynb analysis.slides.html However, when opening "analysis.slides.html" in the browser JavaScript console, I get the following: analysis.slides.html:1992 Uncaught ReferenceError: Reveal is not defined analysis.slides.html:2032 Uncaught ReferenceError: Reveal is not defined require.min.js:8 Uncaught Error: Mismatched anonymous define()

Generating events for gesture-controlled websites

早过忘川 提交于 2019-12-05 09:22:53
I am very happy that I got the opportunity to work on a website that is gesture-based. I have a few inspiration for this: link I visited lot of websites and googled it, Wikipedia and gitHub also didn't help much. There is not much information provided as these technologies are in nascent stages. I think I will have to use some js for this project gesture.js (our custom javascript code) reveal.js (Frame work for slideshow) My questions are how come gestures generate events, how does my JavaScript interact with my webcam? Do I have to use some API or algorithms? I am not asking for code. I am

Reveal JS Unable to scroll in the slides

随声附和 提交于 2019-12-04 15:42:22
I'm using Reveal JS for making a presentation. If I put more text in the tag, it is going below the screen hidden from view. But there is no scroll bar to the right. Wondering if I can do a css fix to bring in a vertical scroll bar and make the hidden content visible by scrolling. Here is the CSS to be changed (I think) .reveal .slides section .fragment { opacity: 0; -webkit-transition: all .2s ease; -moz-transition: all .2s ease; -ms-transition: all .2s ease; -o-transition: all .2s ease; transition: all .2s ease; } .reveal .slides section .fragment.visible { opacity: 1; } .reveal .slides

Incorporate Leaflet map in revealjs presentation within R

十年热恋 提交于 2019-12-04 06:20:56
I'm trying to add a Leaflet map with tiles to a revealjs_presentation created in R. This map renders fine in ioslide or html format, but not in the revealjs_presentation format (main problems: all fonts are much too large and the map has strange artifacts around polygon boundaries when selected). Because the map works well in other output formats I suspect the issue has to do with some kind of CSS incompatability between revealjs_presentation and leaflet. In order to isolate the two sets of code I saved the leaflet map using htmlwidgets. This map looks fine but it seems that there is no way to

How do I separate slides when exporting an IPython notebook to reveal.js?

吃可爱长大的小学妹 提交于 2019-12-04 04:23:57
When I execute an IPython notebook to a reveal.js presentation using ipython nbconvert mynotebook.ipynb --to slides --post serve I am getting all the content as a single slide. How do I separate my content into several slides? I tried using --- (hinted in this video), \n\n\n and === inside the notebook (as separate cells and before my titles), but it didn't change anything. I know that for a Markdown input file in reveal.js one can set the data-separator option, but the generated html file doesn't seem to include the content as Markdown, but inlines everything using HTML tags, so I don't know

Customizing IPython notebook / Jupyter slide show

故事扮演 提交于 2019-12-04 04:06:35
I created a slideshow using the slideshow feature of IPython notebook / Jupyter, which works fine. I created and hosted the slides via ipython nbconvert ... which works fine too. But I cannot find any information how to customize the slides. Obviously I have to customize Reveal.js which is not very well documented too. Can somebody give a starting point on how to get some copyright, logo, ... in the header/footer of my presentation? Reveal.js is really just a web template. If you want to customize it further, CSS/Javascript knowledge will be required. A straightforward way to define header

Best way to handle overflowing Reveal JS slide

ε祈祈猫儿з 提交于 2019-12-04 03:07:24
问题 I'm working on a project for which I'm using Reveal JS to present data to the users in the form of slides. Sometimes I find the text overflowing beyond the viewport. Due to which the text is not visible as shown in this image I've tried reducing the text-size dynamically based on the screen height, like so: var $present_section = $('section.present'); var section_bottom = $present_section.offset().top + $present_section.height(); var allowed_height = $(document).height() - $present_section

How to trigger a GSAP function when a slide comes active with Reveal.js?

≡放荡痞女 提交于 2019-12-03 16:48:00
I want to add some simple animation to a presentation. I use GSAP (TweenMax) for this work. I have no problem with the animation setup, but these animations triggers as soon the presentation starts. How can I control this, so that only when the slide with animations is active the scripts execute? All your help is welcome. Regards! EDIT: Well, looks like reading the docs of the libraries answers at least 90% of this kind of questions. For the lazies (like me :) ) here´s what I found: To check when the slide change, we use this: Reveal.addEventListener( 'slidechanged', function( event ) { //