cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<label for="url-input">Input a URL to Minify</label>
<div class="input-group">
  <span class="input-group-addon" id="basic-addon3">https://</span>
  <input type="text" class="form-control" id="url-input" placeholder="robertvalmassoi.com">
  <span class="input-group-addon btn btn-info" id="mini-btn">MiniMe!</span>

<label for="url-output">MiniMe URL</label>
<div class="input-group">
  <input type="text" class="form-control" id="url-output">
  <span class="input-group-addon btn btn-info" id="copy-btn">copy</span>

<div id="git">
<a href="https://github.com/valmassoi/url-shortener" target="_blank" id="git">
    <button type="button" class="btn btn-default btn-lg">
  <span aria-hidden="true"></span><i class="fa fa-github"></i> Github
  <p><br>Using my API - <a href="https://minime.herokuapp.com/" target="_blank">minime.herokuapp.com/</a></p>
  padding: 20px
  padding-top: 20px
  min-width: 300px !important
  min-width: 300px !important
  min-width: 85px
  background-color: #2E6F9A !important
  width: 85px
    background-color: #217DBB !important
  margin-top: 50px
  text-align: center
              const baseUrl = "http://cors.io/?u=https://minime.herokuapp.com/new/"
let input = "https://www.google.com"
let url = baseUrl + input

$(function() {


function urlMod(origUrl){
  let regexp = /^(https?):\/\//
  let url = origUrl
  if (regexp.test(url))
    console.log("begins with http")
  else//add http://
    url = 'http://' + url 
  return url
function urlCheck(url){
  let regexpTwo = /^(https?):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
  return regexpTwo.test(url)

function api(origUrl){
  $.getJSON(baseUrl+origUrl, function (data) {

$("#mini-btn").on("click", function(){
$("#url-output").css("cursor", "default")
function miniMe(){
  console.log("mini me!: "+ $('#url-input').val())
  let origUrl = $('#url-input').val()
  let url = urlMod(origUrl)
  if (urlCheck(url))
    console.log("bad url")

$("#copy-btn").on("click", function(){
  let copyTextarea = document.querySelector('#url-output')
  try {
    var successful = document.execCommand('copy')
    var msg = successful ? 'successful' : 'unsuccessful'
    console.log('Copying text command was ' + msg)
  } catch (err) {
    console.log('Oops, unable to copy')

$("#url-input").keydown(function(e) {
    if(e.keyCode == 13){

Loading ..................