-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a presentation from the 23.10 release webinar
- Loading branch information
1 parent
1a3e5ba
commit cc6e4b7
Showing
46 changed files
with
4,972 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License | ||
|
||
Copyright © 2010–2015 Vadim Makeev, http://pepelsbey.net/ | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
--- | ||
|
||
# Лицензия MIT | ||
|
||
Copyright © 2010–2015 Вадим Макеев, http://pepelsbey.net/ | ||
|
||
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий: | ||
|
||
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения. | ||
|
||
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Photos (c) Alexey Milovidov, 2023. | ||
No additional rights granted. The license of the rest of the content is not applicable to the photos. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/*! | ||
Video plugin for Shower, HTML presentation engine (github.com/shower/shower) | ||
Browser support: latest versions of all major browsers | ||
@url github.com/operatino/shower-video | ||
@author Robert Haritonov <[email protected]> | ||
@twitter @operatino | ||
*/video{background-color:#000}.mobile .video_wrapper{display:none}.slide.cover video:not(.background){z-index:1}.ipad .slide.cover.w video{width:1024px;height:576px}.ipad .slide.cover.h video{width:1365.33333px;height:768px}.iphone .slide.cover .video_wrapper{position:relative;height:300px}.iphone .slide.cover .video_wrapper video{width:100%;height:100%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
/*! | ||
Video plugin for Shower, HTML presentation engine (github.com/shower/shower) | ||
Browser support: latest versions of all major browsers | ||
@url github.com/operatino/shower-video | ||
@author Robert Haritonov <[email protected]> | ||
@twitter @operatino | ||
*/ | ||
|
||
/* | ||
TODO: | ||
* rerun video if it finished playback or next slide tick | ||
* check preload on android mobile devices | ||
* mark videos as played for turning off autoplay on iphone | ||
*/ | ||
|
||
if(!(window.showerVideo && window.showerVideo.init)) { | ||
|
||
window.showerVideo = (function(window, document, undefined) { | ||
|
||
var showerVideo = {}, | ||
u = {}, | ||
html = document.getElementsByTagName('html')[0], | ||
showerCssInit = 0; | ||
|
||
showerVideo.debug = false; | ||
|
||
showerVideo.isMobile = false; | ||
showerVideo.isIPhone = false; | ||
showerVideo.isIPad = false; | ||
|
||
/* | ||
Utils | ||
*/ | ||
|
||
u.query = function(query) { | ||
return document.querySelectorAll(query); | ||
}; | ||
|
||
u.forEach = function(array, callback) { | ||
Array.prototype.forEach.call(array, function(item){ | ||
callback(item); | ||
}); | ||
}; | ||
|
||
|
||
/* | ||
Core | ||
*/ | ||
|
||
showerVideo.prepareEnv = function(){ | ||
if (navigator.userAgent.match(/Android/i) | ||
|| navigator.userAgent.match(/webOS/i) | ||
|| navigator.userAgent.match(/iPhone/i) | ||
|| navigator.userAgent.match(/iPad/i) | ||
|| navigator.userAgent.match(/iPod/i) | ||
|| navigator.userAgent.match(/BlackBerry/i) | ||
|| navigator.userAgent.match(/Windows Phone/i) | ||
) { | ||
showerVideo.isMobile = true; | ||
html.classList.add('mobile'); | ||
} | ||
|
||
if ( navigator.userAgent.match(/iPhone/i) ) { | ||
showerVideo.isIPhone = true; | ||
html.classList.add('iphone'); | ||
} | ||
|
||
if ( navigator.userAgent.match(/iPad/i) ) { | ||
showerVideo.isIPad = true; | ||
html.classList.add('ipad'); | ||
} | ||
}; | ||
|
||
showerVideo.startVideo = function(){ | ||
//pause all videos first | ||
var allVideos = u.query('video'); | ||
|
||
u.forEach(allVideos, function(el){ | ||
el.pause(); | ||
|
||
if (showerVideo.isMobile) { el.parentNode.style.display = 'none';} | ||
}); | ||
|
||
//Fetch all videos on current slide | ||
var activeVideos = u.query('.slide.active video'); | ||
u.forEach(activeVideos, function(el){ | ||
var play = function() { | ||
//Resetting video | ||
el.currentTime = 0; | ||
el.play(); | ||
}; | ||
|
||
var prepareForPlaying = function(){ | ||
//For triggering video load on iPad | ||
// el.load(); | ||
// el.play(); | ||
|
||
//And then pause till video fully downloaded | ||
// el.pause(); | ||
|
||
//TODO: add loader | ||
|
||
//Waiting till video fully loads | ||
el.addEventListener('canplaythrough', play, false); | ||
}; | ||
|
||
if(el && el.currentTime !== undefined) { | ||
if (el.readyState !== 4) { //HAVE_ENOUGH_DATA | ||
|
||
if (showerVideo.debug) console.log('Video not ready'); | ||
|
||
if(showerVideo.isMobile && showerCssInit === 0) { | ||
//TODO: add loader | ||
//TODO: on first page visit with video, add play button | ||
|
||
//initing video after first Shower CSS init, to avoid CPU load bottleneck | ||
setTimeout(function(){ | ||
//TODO: move this init to Full mode check | ||
showerCssInit = 1; | ||
|
||
el.parentNode.style.display = 'block'; | ||
|
||
prepareForPlaying(); | ||
}, 700); | ||
|
||
} else { | ||
|
||
//Init video for mobile devices | ||
if (showerVideo.isMobile) { el.parentNode.style.display = 'block';} | ||
|
||
prepareForPlaying(); | ||
} | ||
|
||
} else { | ||
if (showerVideo.debug) console.log('Video is ready'); | ||
|
||
if (showerVideo.isMobile) { el.parentNode.style.display = 'block';} | ||
|
||
play(); | ||
} | ||
} | ||
}); | ||
}; | ||
|
||
showerVideo.startGif = function(){ | ||
var activeSlideGifs = u.query('.slide.active .gif'), | ||
allGifs = u.query('.slide .gif'); | ||
|
||
if( activeSlideGifs.length !== 0) { | ||
|
||
u.forEach(activeSlideGifs, function(item){ | ||
if (item.classList.contains('real')) { | ||
item.style.display = 'block'; | ||
} else { | ||
item.style.display = 'none'; | ||
} | ||
}); | ||
|
||
} else { | ||
|
||
u.forEach(allGifs, function(item){ | ||
if (item.classList.contains('real')) { | ||
item.style.display = 'none'; | ||
} else { | ||
item.style.display = 'block'; | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
showerVideo.init = function(){ | ||
showerVideo.prepareEnv(); | ||
|
||
// Listen for the Slide Switch event | ||
// TODO: wait for proper API implementation in Shower | ||
document.addEventListener('keyup', function (e) { | ||
showerVideo.startVideo(); | ||
showerVideo.startGif(); | ||
}, false); | ||
}; | ||
|
||
|
||
/* | ||
Init | ||
*/ | ||
|
||
showerVideo.init(); | ||
|
||
return showerVideo; | ||
|
||
})(this, this.document); | ||
|
||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License | ||
|
||
Copyright © 2010–2016 Vadim Makeev, http://pepelsbey.net/ | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
--- | ||
|
||
# Лицензия MIT | ||
|
||
Copyright © 2010–2016 Вадим Макеев, http://pepelsbey.net/ | ||
|
||
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий: | ||
|
||
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения. | ||
|
||
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Ribbon theme for Shower [![Build Status](https://travis-ci.org/shower/ribbon.svg?branch=master)](https://travis-ci.org/shower/ribbon) | ||
|
||
![Ribbon screen shot](pictures/canvas.png) | ||
|
||
Default theme for the [Shower](https://github.com/shower/shower/) presentation engine. Doesn’t include engine itself. [See it in action](http://shwr.me/shower/themes/ribbon/). Follow [@shower_me](https://twitter.com/shower_me) for support and updates, [file an issue](https://github.com/shower/shower/issues/new) if you have any. | ||
|
||
## Usage | ||
|
||
Get the Shower template where Ribbon is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package: | ||
|
||
npm install shower | ||
|
||
If you want to install Ribbon separately you can download the [theme archive](http://shwr.me/ribbon.zip) or install the package: | ||
|
||
npm install shower-ribbon | ||
|
||
## Features | ||
|
||
All theme’s features are demonstrated in the [index.html](index.html) file. Use it as a reference while building your presentation. See more detailed [features overview](https://github.com/shower/shower/blob/master/docs/features-en.md). | ||
|
||
## Ratios | ||
|
||
Ribbon theme supports two slide ratios: wide 16×10 (default) and taller 4×3. To change the slide’s ratio include one of the pre-built `screen-16x10.css` or `screen-4x3.css` files in the `<head>` of your presentation. | ||
|
||
|
||
Ribbon could be exported to PDF by printing it from the list mode in Chrome or Opera browsers. See [printing documentation](https://github.com/shower/shower/blob/master/docs/printing-en.md) for more options. | ||
|
||
## Development | ||
|
||
If you want to adjust theme for your needs: | ||
|
||
1. Fork this repository and clone it to your local machine. | ||
2. Install dependencies: `npm install`. | ||
3. Start a local server with watcher: `npm run dev` or just `gulp` if you have it installed globally. | ||
4. Edit your files and see changes in the opened browser. | ||
|
||
To take part in Ribbon development please read [contributing guidelines](CONTRIBUTING.md) first and [file an issue](https://github.com/shower/shower/issues/new) before sending any pull request. | ||
|
||
--- | ||
Licensed under [MIT License](LICENSE.md). |
Oops, something went wrong.