Skip to content

Instantly share code, notes, and snippets.

View abrahamcuenca's full-sized avatar
Converting Coffee to Code

Abraham Cuenca abrahamcuenca

Converting Coffee to Code
View GitHub Profile
@daniellmb
daniellmb / calc-rem.js
Last active November 11, 2024 23:47
PX-to-REM Calculator
(function($) {
var result = $('#result');
var base = $('#base');
var list = $('#list');
$('#calc').click(function() {
var baseVal = base.val();
var px = list.val().split(',');
var html = [];
$.each(px, function(i, v) {
var px = parseInt(v);