Skip to content

Instantly share code, notes, and snippets.

View kangfarih's full-sized avatar
🏠
Working from home

Farih Muhammad kangfarih

🏠
Working from home
View GitHub Profile
@kangfarih
kangfarih / index.html
Created March 4, 2019 20:34
JS/CSS: Image carousel with interactive thumbnails
<h2>JS/CSS: Image carousel with interactive thumbnails</h2>
<div class="component">
<div id="carousel" class="owl-carousel main-carousel">
<div class="item">
<img src="http://placehold.it/600x400/ACFF9C?text=Placeholder+image" alt="" class="image" />
</div>
<div class="item">
<img src="http://placehold.it/600x400/E8D48E" alt="" class="image" />
</div>
@kangfarih
kangfarih / index.html
Created March 4, 2019 20:32
VueJS transition & transition-group demo
<main id="app" class="content">
<nav class="nav">
<menu class="nav__controls">
<icon class="nav__icon" use="#filter"></icon>
<li v-for="(active, menu) in menus" class="nav__label"
:class="{
'nav__label--active' : active,
'nav__label--filter': activeFilters[menu].length
}" @click="setMenu(menu, active)">
@kangfarih
kangfarih / youtubeID.js
Created February 26, 2019 04:16 — forked from takien/youtubeID.js
Get YouTube ID from various YouTube URL using JavaScript
/**
* Get YouTube ID from various YouTube URL
* @author: takien
* @url: http://takien.com
* For PHP YouTube parser, go here http://takien.com/864
*/
function YouTubeGetID(url){
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
main( ) {
extrn a, b, c;
putchar(a); putchar(b); putchar(c); putchar(’!*n’);
} 1 ’hell’;
b ’o, w’;
c ’orld’;
hello();
function hello(){
console.log('Hello World!');
}