Skip to content

Instantly share code, notes, and snippets.

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

Ganesha Ampuh ganeshaampuh

🏠
Working from home
View GitHub Profile
.rghtblck ul li:nth-child(4) h4 {
display: none;
}
.rghtblck ul li:nth-child(1),
.rghtblck ul li:nth-child(2),
.rghtblck ul li:nth-child(3) {
opacity: 0;
}
@ganeshaampuh
ganeshaampuh / script.js
Created August 21, 2018 02:23
Append Burger with JS and CSS - Javascript
jQuery(document).ready(function( $ ){
$("#main-header .rghtblck ul li:nth-child(4)").prepend("<div id='burger'><div>Menu</div> <div class='wrapper'><span></span><span></span><span></span></div></div>");
$("#et-top-navigation").hide();
$("#burger").click(function() {
$("#et-top-navigation").slideToggle();
})
});
@ganeshaampuh
ganeshaampuh / .htaccess
Created April 4, 2018 13:11
Laravel default .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjvYZX2QOCGag9jZvBWR99ZK+88X5h5F2qEApbHXSu8J1uLzdngyU88HVjo3hYGuwaJ8ok23bTqSVa5OhPIxUTEPKUe8glOYNwxxHioDXI7WEosJtQRN8/PM4CQrSpnDgs6nderQYvPNdy2kQ3Z2RMwQh8QFUe3mxg6LCxjt51C3BNcrtvrzewYsgpLD2GIV0TRNb5HEB/q3vE+amzFMonVJnVEPX7LtQfBHuq7yW06UfBMGH16KOBszneyFsdEERoKyPyRcK6QHRIbMzGhNs12rWkG+dynfIPia3nFjwZc9KfHU4F8XNiDycbYUeJku2dwk7BxbUz/yjlUhXWGk9t [email protected]
<?php
namespace App\Http\Controllers;
use App\Mail\ContactUs;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use App\Models\ContactUs as Contact;
<select class="form-control" name="city">
<option value="balikpapan">Balikpapan</option>
<option value="banda aceh">Banda Aceh</option>
<option value="bandung">Bandung</option>
<option value="banjarmasin">Banjarmasin</option>
<option value="banyuwangi">Banyuwangi</option>
<option value="bekasi">Bekasi</option>
<option value="bengkulu">Bengkulu</option>
<option value="bogor">Bogor</option>
<option value="central jakarta">Central Jakarta</option>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ganeshaampuh
ganeshaampuh / app.js
Created November 28, 2017 11:05
GBM Module JS Asset
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
@ganeshaampuh
ganeshaampuh / app.js
Last active November 23, 2017 08:22
GBM.js
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,e,n){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,n){window.$=window.jQuery=n(2),n(1)},function(t,e){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitio
<template>
<main role="main">
<router-link to="/" class="back">
<svg class="svg-icon" viewBox="0 0 20 20">
<path fill="none" d="M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z"></path>
</svg>Kembali
</router-link>
<div class="swiper-container main-slides" ref="mainSlides">
<article class="slides swiper-wrapper">
<slot></slot>