Skip to content

Instantly share code, notes, and snippets.

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

Osman Nuri Okumuş onokumus

🏠
Working from home
View GitHub Profile
@onokumus
onokumus / events.js
Created October 24, 2018 08:10 — forked from tbranyen/events.js
Rethinking events using ES6 (https://tbranyen.com/events)
const bus = {};
const get = e => (bus[e] = bus[e] || new Set());
export const listeners = new Proxy(bus, { get });
export const emit = (e, ...args) => listeners[e].forEach(fn => fn(...args));
<script src="node_modules/metismenu/dist/metisMenu.js"></script>
<script>
var header_wrap_height = $('.header_wrap').height();
$('.metismenu').metisMenu({
toggle: false,
triggerElement: '.pricing-link',
parentTrigger: '.pricing-item',
subMenu: '.pricing-table'
})
.on('shown.metisMenu', function (event) {
// loading
.loading(
@size,
@spinner-inside-color,
@spinner-outside-color,
) {
opacity: 0.8;
z-index: 999999;
&:before,
@onokumus
onokumus / index.html
Last active September 12, 2018 10:00
MetisMenu Hash
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/metisMenu/1.1.3/metisMenu.min.css">
</head>
@onokumus
onokumus / mtsmnhvr.html
Last active August 29, 2015 14:05
metisMenu only first level hover effect
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css">
<style>
.menu > li > ul {
position: absolute;
top: 0;
@onokumus
onokumus / deneme.js
Created June 21, 2014 14:11
konsol
console.log('OK');
<!--Level 1-->
<ul id="menu">
<li><a href="#">Home</a></li>
<li class="active">
<a href="#">My Project</a>
<!-- Level 2 -->
<ul>
<li class="active">
<a href="#">Web</a>
<!-- Level 3 -->
@onokumus
onokumus / .jshintrc
Created December 12, 2013 00:06 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
$ git clone https://github.com/onokumus/Bootstrap-Admin-Template.git yourfoldername
$ cd yourfoldername
$ git submodule init
$ git submodule update