官术网_书友最值得收藏!

An overview of slides

This provides the user with a visual overview of the slides, as shown in the following screenshot:

An overview of slides

The presentation slides will be recreated in a new full screen Div element. This is styled using the fullScreen class in the CSS stylesheet located in the SlideShowApp constructor:

overviewScreen = new DivElement();
overviewScreen.classes.toggle("fullScreen");
overviewScreen.onClick.listen((e) => overviewScreen.remove());

The HTML for the slides will be identical. To shrink the slides, the list of slides is iterated over, the HTML element object is obtained, and the CSS class for the slide is set:

currentSlideShow.slides.forEach((s) {
  aSlide = s.getSlideContents();
  aSlide.classes.toggle("slideOverview");
  aSlide.classes.toggle("shrink");
...

The CSS hover class is set to scale the slide when the mouse enters so a slide can be focused on for review. The classes are set with the toggle method, which either adds if not present or removes if they are. This method has an optional parameter:

aSlide.classes.toggle('className', condition);

The second parameter, named shouldAdd, is true if the class is always to be added and false if the class is always to be removed.

主站蜘蛛池模板: 顺义区| 泰州市| 清原| 肃北| 建水县| 临泽县| 汪清县| 周至县| 长岭县| 曲周县| 张家界市| 贞丰县| 青冈县| 韶山市| 叶城县| 丘北县| 滦南县| 沙洋县| 股票| 临汾市| 子长县| 台东市| 苍南县| 汝阳县| 平塘县| 洪江市| 邹城市| 安国市| 齐齐哈尔市| 昌乐县| 阳原县| 栾城县| 丰宁| 揭阳市| 顺昌县| 沧州市| 深泽县| 息烽县| 淮南市| 昂仁县| 浦江县|