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

rpg-convers

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpg-convers - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

4

index.js

@@ -36,3 +36,3 @@ const generateStyle = require("./tools/generateStyle.js")

this.convText.innerHTML = message
this.convText.style.float = isLeft ? "left" : "right"
this.convText.style.left = isLeft ? "10%" : "40%"
this.convNextBtn.innerHTML = btnName ? btnName : "next"

@@ -77,3 +77,3 @@ }

setImageOfSpeaker(imageDirectory,isLeft){
this.convCharacImg.style.left = isLeft ? "85%" : "0"
this.convCharacImg.style.left = isLeft ? "80%" : "0"
if(imageDirectory){

@@ -80,0 +80,0 @@ this.convCharacImg.src = imageDirectory

{
"name": "rpg-convers",
"version": "1.0.8",
"version": "1.0.9",
"description": "An rpg conversation maker, To use first call new Conversation([{name: '', message: '', isLeft: bool define if the speaker will be on left or right, imageDirectory: the file for your image if have}], howfast The speaker is in miliseconds, callback function ) ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,2 +19,3 @@ function generateStyle(element, style, elementType){

eStyle.transition = ".3s"
eStyle.zIndex = "3"
break

@@ -25,3 +26,2 @@ case "text":

eStyle.width = "70%"
eStyle.float = "left"
eStyle.fontSize = fontSize ? fontSize : "1rem"

@@ -43,3 +43,3 @@ break

eStyle.height = "auto"
eStyle.padding = "3px 15px"
eStyle.padding = "4px 15px"
eStyle.borderRadius = "5px"

@@ -49,2 +49,3 @@ eStyle.border = border ? border : "1px solid #a7a7a7"

eStyle.cursor = "pointer"
eStyle.fontSize = fontSize ? fontSize : "1.1rem"
break;

@@ -51,0 +52,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