Skip to content

Instantly share code, notes, and snippets.

@cron64
cron64 / JS: none of the above
Created October 25, 2016 21:11
JS: none of the above
// none of the above
$('.control--checkbox .checkbox').on('click', function() {
if ($(this).attr("noneoption") == "false") {
$("input[type=checkbox][noneoption=true]").prop("checked", false);
}
else if ($(this).attr("noneoption") == "true") {
$("input[type=checkbox][noneoption=false]").prop("checked", false);
}
@cron64
cron64 / GA: Track
Created October 20, 2016 22:46
GA: Track
**1. Paste script to your code**
<script>
function track(name,label){
ga('send', 'event', name, 'click', label, {
hitCallback: function(){
console.log('Event sent to Google Analytics');
}
});
}
@cron64
cron64 / css: custom checkbox
Created October 5, 2016 20:57
css: custom checkbox
.check-container
.checkbox-label
font-family Arial
color red
font-style italic
cursor pointer
.checkbox
display none
@cron64
cron64 / Styl: Loader Ripple
Created September 6, 2016 21:46
Styl: Loader Ripple
<div class='loader'><div></div><div></div></div>
// LOADER
.loader
background none
position relative
width 200px
height 200px
transform scale(.2)
div
position absolute
@cron64
cron64 / JS: Multiple Google Maps
Created June 15, 2016 16:41
JS: Multiple Google Maps
// initialize google maps
setTimeout(initializeMaps,700);
function initializeMaps() {
var latlng = new google.maps.LatLng(28.561287,-81.444465);
var latlng2 = new google.maps.LatLng(28.507561,-81.482359);
var latlng3 = new google.maps.LatLng(29.125285,-82.048823);
var myOptions =
@cron64
cron64 / CSS: Clamp text
Created May 26, 2016 15:26
CSS: Clamp text
<div class="ellipsis">
<div>
<p class="txt">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididun.</p>
</div>
</div>
.ellipsis
overflow hidden
height 75px
line-height 25px
@cron64
cron64 / HTML:Footer always bottom 2.0
Created April 7, 2016 22:29
HTML:Footer always bottom 2.0
@cron64
cron64 / CSS: Logo Marlboro
Created April 5, 2016 18:46
CSS: Logo Marlboro
<!-- MARLBORO LOGO -->
<div class="wrap">
<div class="logo"></div>
</div>
<!-- stylus -->
.wrap
margin auto
width 100px
@cron64
cron64 / HTML:Descargar Sitio
Created April 1, 2016 19:18
HTML:Descargar Sitio
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --no-parent <sitio web>
@cron64
cron64 / HTML: Disable Right Click
Last active December 24, 2015 20:14
HTML: Disable Right Click
<body oncontextmenu="return false;" onselectstart="return false;" ondragstart="return false;" >
</body>