Korbs / Sync Video and Audio
0 mi piace
0 forks
2 files
Ultima volta attivo
In HTML5, sync both video and audio with JavaScript.
1 | <video controls id="main-video" src="video.mp4"/> |
2 | <audio id="main-audio" src="audio.mp4"/> |
Korbs / Git: Creating an Orphan Branch
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | cd repository |
2 | git checkout --orphan NEW_ORPHAN_BRANCH_NAME |
3 | git rm -rf . |
4 | rm '.gitignore' |
5 | echo "# New Orphan Branch" > README.md |
6 | git add README.md |
7 | git commit -a -m ":rocket: Init" |
8 | git push origin NEW_ORPHAN_BRANCH_NAME |
Korbs / Astro: If Else Statement
0 mi piace
0 forks
1 files
Ultima volta attivo
1 | --- |
2 | var UserLogin = false |
3 | --- |
4 | |
5 | <!-- Use this method if the results only returns "true" or "false" --> |
6 | {UserLogin ? <p>Log Out</p> : <p>Sign in</p>} |
7 | |
8 | <!-- Use this method if the results return other results that are not labeled as "true" or "false --> |
9 | { |
10 | ()=> { |
Korbs / Ambient Video Effect
0 mi piace
0 forks
3 files
Ultima volta attivo
1 | <div class="video-container"> |
2 | <canvas id="ambient-canvas-1"/> |
3 | <canvas id="ambient-canvas-2"/> |
4 | <video src="./video.mp4"></video> |
5 | </div> |
Più nuovi
Più vecchi