Add videos to xrpl overview page
Update css to v6 Add videos to xrpl overview page Update css to v6 Move video player up on screen Adjust vid position and size Fix expanded video sizing on more resolutions
6
assets/css/devportal2021-v6.css
Normal file
BIN
assets/img/overview/video_explainer_consensus.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
assets/img/overview/video_explainer_consensus@2x.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
assets/img/overview/video_explainer_intro.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
assets/img/overview/video_explainer_intro@2x.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
assets/img/overview/video_explainer_nodes.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
assets/img/overview/video_explainer_nodes@2x.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
assets/img/overview/video_explainer_sustainability.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
assets/img/overview/video_explainer_sustainability@2x.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
25
assets/js/video.js
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
$(document).ready(()=> {
|
||||
|
||||
//top video. Show inline replacing image
|
||||
$("#playvideo").click(function(){
|
||||
$("#playvideo").hide();
|
||||
$("#video1").show();
|
||||
$("#video1")[0].src += "?autoplay=1";
|
||||
});
|
||||
|
||||
//bottom 3. Show in overlay
|
||||
$('.btn1').click(function() {
|
||||
var src = $(this).attr("data-url");
|
||||
$("#player").attr("src", src);
|
||||
$('#video, #video-overlay').fadeIn('slow');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).on('touchend, mouseup', function(e) {
|
||||
if (!$('#video').is(e.target)) {
|
||||
$('#video, #video-overlay').fadeOut('slow');
|
||||
$("#player").attr("src", '');
|
||||
}
|
||||
});
|
||||