Skip to content

Instantly share code, notes, and snippets.

View rob1121's full-sized avatar

Robinson L. Legaspi rob1121

View GitHub Profile
@rob1121
rob1121 / smoothScrolling.js
Created July 21, 2016 01:50
scroll smoothly
$('a[href^="#"]').bind('click.smoothscroll',function (e) {
e.preventDefault();
var anchor = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 500, 'swing', function () {
window.location.hash = anchor;
@rob1121
rob1121 / app.blade.php
Last active July 13, 2016 07:47
HTTP POST laravel ajax request
{{-- place at your header meta tag --}}
<meta id="_token" value="{{ csrf_token() }}">