PageSourceSearch

https://www.rails.com/cdn/shop/t/1622/assets/video-vite-CZw_pzUa.js

js rails.com collected 2026-09-25 14:09:25 UTC 1,107 bytes, 1 lines download raw bytes

1import{r as o}from"./theme-sections-vite-Co0nR_Yu.js";import{V as s}from"./videoPlayer-vite-DkTdAK4l.js";import"./_commonjsHelpers-vite-BosuxZz1.js";const e={videoDesktop:".js-video-desktop",videoContainer:".js-video-container",videoButton:".js-video-play-button",videoPoster:".js-video-poster"},i={hidden:"hidden"};o("video",{onLoad:function(){this.videoDesktopPlayer=null,this.videoContainer=this.container.querySelector(e.videoContainer),this.videoContainer&&(this.videoButton=this.container.querySelector(e.videoButton),this.videoPoster=this.container.querySelector(e.videoPoster),this.initVideo())},initVideo(){this.videoDesktop=this.container.querySelector(e.videoDesktop),this.videoDesktop&&(this.videoDesktopPlayer=new s(this.videoDesktop,{videoType:this.videoContainer.dataset.videoType,enableControls:!0,isMuted:!1}),this.initVideoButton())},initVideoButton:function(){this.videoButton&&this.videoButton.addEventListener("click",()=>{this.playVideoPlayer(this.videoDesktopPlayer)})},playVideoPlayer(t){this.videoButton.classList.add(i.hidden),this.videoPoster.classList.add(i.hidden),t.play()}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.