Skip to content

Instantly share code, notes, and snippets.

Jorge Chavez jorgechavz

Block or report user

Report or block jorgechavz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jorgechavz
jorgechavz / gist:1015467773de5e008bbf
Created Jun 19, 2015
Scrolling to HTML element
View gist:1015467773de5e008bbf
<a href="#" data-go="#node-element" class="go">Go to</a>
<script type="text/javascript">
$(".go").click(function(e){
//We prevent the default scroll
e.preventDefault();
var $this = $(this),
to = $this.attr("data-go"),
View gist:a2ccc0464b3f18e1601a
<style>
/* Define the height parent */
#parent{
height: 500px;
}
.astable{
width: 100%;
height: 100%;
display: table;
.ascell{
View gist:fe1513287f22af48ca8a
//Apply this to the containter
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="filters">
<defs>
<filter id="blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="20" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo" />
<feComposite in="SourceGraphic" in2="goo" operator="atop"/>
</filter>
</defs>
@jorgechavz
jorgechavz / CSS after line
Last active Oct 13, 2015
CSS lines used into websites, it is being use Stylus
View CSS after line
.e-l
&.e-l-b
&:after
border-bottom 1px solid white
&.e-l-small
&:after
width 10%
&.e-l-medium
&:after
width 30%
@jorgechavz
jorgechavz / Script for contact
Last active Jan 7, 2016
Contact mail System
View Script for contact
$("#contact-form").submit(function(e){
e.preventDefault();
$(".error").hide();
$this = $(this);
var data = $(this).serialize(),
url = $(this).attr("action");
$.ajax(url,{
data: data,
type: "POST",
@jorgechavz
jorgechavz / map.html
Last active Dec 23, 2015
Build google map from JavaScript (no iframe)
View map.html
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQu1pFTW2ni8iwdASum9iueNpCRoG3HCY&sensor=false"></script>
<script>
var mapa = document.getElementById("mapa-frame");
if(mapa){
var latlong=new google.maps.LatLng("28.6525409", "-106.1142289"),
mapOptions = {
center: latlong,
zoom: 14,
scrollwheel: false,
You can’t perform that action at this time.