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

vanilla-slab

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

vanilla-slab - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

5

build/vanilla-slab.build.js

@@ -109,3 +109,6 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.VanillaSlab=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

var parent_width = elm.parentNode.offsetWidth;
var elm_parent = elm.parentNode;
elm_parent.style.float = 'none';
var parent_width = elm_parent.offsetWidth;
var elm_width = elm.offsetWidth;

@@ -112,0 +115,0 @@ var ratio = parent_width / elm_width;

3

demo/demo.js

@@ -10,4 +10,3 @@ // Main initialization

postTweak: true,
buffer: 1.0,
delayCheck: true
buffer: 1.0
});

@@ -14,0 +13,0 @@

@@ -109,3 +109,6 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.VanillaSlab=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

var parent_width = elm.parentNode.offsetWidth;
var elm_parent = elm.parentNode;
elm_parent.style.float = 'none';
var parent_width = elm_parent.offsetWidth;
var elm_width = elm.offsetWidth;

@@ -112,0 +115,0 @@ var ratio = parent_width / elm_width;

@@ -8,3 +8,6 @@ function setFont(elm, settings, starting_font_size) {

var parent_width = elm.parentNode.offsetWidth;
var elm_parent = elm.parentNode;
elm_parent.style.float = 'none';
var parent_width = elm_parent.offsetWidth;
var elm_width = elm.offsetWidth;

@@ -11,0 +14,0 @@ var ratio = parent_width / elm_width;

{
"name": "vanilla-slab",
"version": "0.2.2",
"version": "0.2.3",
"description": "A heavily modified port of the excellent jQuery Slabtext plugin, without jQuery.",

@@ -5,0 +5,0 @@ "main": "lib/index",

Sorry, the diff of this file is not supported yet

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