Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bs-autoscale-input

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-autoscale-input - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

bower.json
{
"name": "bs-autoscale-input",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/Beanstalkhq/bs-autoscale-input",

@@ -5,0 +5,0 @@ "authors": [

@@ -6,4 +6,11 @@ /*!

* license: MIT
* version: 1.0.0
* version: 1.0.1
*/
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(){"use strict";var t=angular.module("bs-autoscale-input",[]);t.directive("bsAutoscaleInput",[function(){var t=function(t,e,n){return"<div style='position: absolute;'><span style='font-family:"+n+";font-size:"+e+" ;'>"+t+"</span></div>"};return{require:"ngModel",restrict:"A",link:function(e,n,r,o){var a=function(e){e=e.length<10?"hello":e;var r=$(t(e,n.css("font-size"),n.css("font-family")));n.after(r),n.width(r.width()),r.remove()};n.keyup(function(){var t=n.val();a(t&&t.length?t:n.attr("placeholder"))}),a(n.val()||n.attr("placeholder")||"hello dawg"),e.$watch(function(){return o.$modelValue},function(){a(n.val()||n.attr("placeholder")||"hello dawg")})}}}])}]);
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(){"use strict";/*!
* bs-autoscale-input
* author: Bret Little
* copyright: 2015
* license: MIT
* version: 1.0.0
*/
var t=angular.module("bs-autoscale-input",[]);t.directive("bsAutoscaleInput",[function(){var t=function(t,e,n){return"<div style='position: absolute;'><span style='font-family:"+n+";font-size:"+e+" ;'>"+t+"</span></div>"};return{require:"ngModel",restrict:"A",link:function(e,n,r,o){var l=function(e){e=e.length<10?"hello":e;var r=$(t(e,n.css("font-size"),n.css("font-family")));n.after(r),n.width(r.width()||"50px"),r.remove()};n.keyup(function(){var t=n.val();l(t&&t.length?t:n.attr("placeholder")||"hello dawg")}),l(n.val()||n.attr("placeholder")||"hello dawg"),e.$watch(function(){return o.$modelValue},function(){l(n.val()||n.attr("placeholder")||"hello dawg")})}}}])}]);
{
"name": "bs-autoscale-input",
"version": "1.0.0",
"version": "1.0.1",
"description": "An angular directive time picker.",

@@ -5,0 +5,0 @@ "main": "build/bs-time-pick.js",

@@ -0,4 +1,12 @@

/*!
* bs-autoscale-input
* author: Bret Little
* copyright: 2015
* license: MIT
* version: 1.0.0
*/
var batp = angular.module("bs-autoscale-input", []);
batp.directive("bsAutoscaleInput", [
function() {

@@ -16,3 +24,3 @@ var html = function(text, size, family) {

el.after(measuredEl);
el.width(measuredEl.width());
el.width(measuredEl.width() || "50px");
measuredEl.remove();

@@ -27,3 +35,3 @@ }

} else {
measureAndSize(el.attr('placeholder'));
measureAndSize(el.attr('placeholder') || "hello dawg");
}

@@ -30,0 +38,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc