1626866700
JavaScript zoom in & zoom out image on mousemove() & mouseleave() respectively!
In today’s video, we’re gonna learn how to make zoom in & zoom out image effect using vanilla JavaScript (No frameworks or libraries). we will use JavaScript mousemove() and mouseleave() method to create this awesome effect.
Don’t forget to smash the like button and share the video with your friends if you found the video useful.
Also, click on the bell icon to turn on notifications. This way you’ll be notified the moment new videos are uploaded.
Make sure to SUBSCRIBE for more tutorials like this one !
#javascript
1653123600
This repository is a fork of SimpleMDE, made by Sparksuite. Go to the dedicated section for more information.
A drop-in JavaScript text area replacement for writing beautiful and understandable Markdown. EasyMDE allows users who may be less experienced with Markdown to use familiar toolbar buttons and shortcuts.
In addition, the syntax is rendered while editing to clearly show the expected result. Headings are larger, emphasized words are italicized, links are underlined, etc.
EasyMDE also features both built-in auto saving and spell checking. The editor is entirely customizable, from theming to toolbar buttons and javascript hooks.
Via npm:
npm install easymde
Via the UNPKG CDN:
<link rel="stylesheet" href="https://unpkg.com/easymde/dist/easymde.min.css">
<script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
Or jsDelivr:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css">
<script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
After installing and/or importing the module, you can load EasyMDE onto the first textarea
element on the web page:
<textarea></textarea>
<script>
const easyMDE = new EasyMDE();
</script>
Alternatively you can select a specific textarea
, via JavaScript:
<textarea id="my-text-area"></textarea>
<script>
const easyMDE = new EasyMDE({element: document.getElementById('my-text-area')});
</script>
Use easyMDE.value()
to get the content of the editor:
<script>
easyMDE.value();
</script>
Use easyMDE.value(val)
to set the content of the editor:
<script>
easyMDE.value('New input for **EasyMDE**');
</script>
true
, force downloads Font Awesome (used for icons). If set to false
, prevents downloading. Defaults to undefined
, which will intelligently check whether Font Awesome has already been included, then download accordingly.true
, focuses the editor automatically. Defaults to false
.true
, saves the text automatically. Defaults to false
.10000
(10 seconds).autosave.delay
or 10000
(10 seconds).locale: en-US, format: hour:minute
.{ delay: 300 }
, it will check every 300 ms if the editor is visible and if positive, call CodeMirror's refresh()
.**
or __
. Defaults to **
.```
or ~~~
. Defaults to ```
.*
or _
. Defaults to *
.*
, -
or +
. Defaults to *
.textarea
element to use. Defaults to the first textarea
element on the page.true
, force text changes made in EasyMDE to be immediately stored in original text area. Defaults to false
.false
, indent using spaces instead of tabs. Defaults to true
.false
by default, preview for images will appear only for images on separate lines.
as argument and returns a string that serves as the src
attribute of the <img>
tag in the preview. Enables dynamic previewing of images in the frontend without having to upload them to a server, allows copy-pasting of images to the editor with preview.["[", "](http://)"]
.true
, enables line numbers in the editor.false
, disable line wrapping. Defaults to true
."500px"
. Defaults to "300px"
.minHeight
option will be ignored. Should be a string containing a valid CSS value like "500px"
. Defaults to undefined
.true
when the editor is currently going into full screen mode, or false
.true
, will render headers without a space after the #
. Defaults to false
.false
, will not process GFM strikethrough syntax. Defaults to true
.true
, let underscores be a delimiter for separating words. Defaults to false
.false
, will replace CSS classes returned by the default Markdown mode. Otherwise the classes returned by the custom mode will be combined with the classes returned by the default mode. Defaults to true
."editor-preview"
.true
, a JS alert window appears asking for the link or image URL. Defaults to false
.URL of the image:
.URL for the link:
.true
, enables the image upload functionality, which can be triggered by drag and drop, copy-paste and through the browse-file window (opened when the user click on the upload-image icon). Defaults to false
.1024 * 1024 * 2
(2 MB).image/png, image/jpeg
.imageMaxSize
, imageAccept
, imageUploadEndpoint
and imageCSRFToken
ineffective.onSuccess
and onError
callback functions as parameters. onSuccess(imageUrl: string)
and onError(errorMessage: string)
{"data": {"filePath": "<filePath>"}}
where filePath is the path of the image (absolute if imagePathAbsolute
is set to true, relative if otherwise);{"error": "<errorCode>"}
, where errorCode can be noFileGiven
(HTTP 400 Bad Request), typeNotAllowed
(HTTP 415 Unsupported Media Type), fileTooLarge
(HTTP 413 Payload Too Large) or importError
(see errorMessages below). If errorCode is not one of the errorMessages, it is alerted unchanged to the user. This allows for server-side error messages. No default value.true
, will treat imageUrl
from imageUploadFunction
and filePath returned from imageUploadEndpoint
as an absolute rather than relative path, i.e. not prepend window.location.origin
to it.imageCSRFToken
has value, defaults to csrfmiddlewaretoken
.true
, passing CSRF token via header. Defaults to false
, which pass CSRF through request body.#image_name#
, #image_size#
and #image_max_size#
will replaced by their respective values, that can be used for customization or internationalization:uploadImage
is set to true
. Defaults to Attach files by drag and dropping or pasting from clipboard.
.Drop image to upload it.
.Uploading images #images_names#
.Uploading #file_name#: #progress#%
.Uploaded #image_name#
.B, KB, MB
(example: 218 KB
). You can use B,KB,MB
instead if you prefer without whitespaces (218KB
).errorCallback
option, where #image_name#
, #image_size#
and #image_max_size#
will replaced by their respective values, that can be used for customization or internationalization:You must select a file.
.imageAccept
list, or the server returned this error code. Defaults to This image type is not allowed.
.imageMaxSize
, or if the server returned this error code. Defaults to Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.
.Something went wrong when uploading the image #image_name#.
.(errorMessage) => alert(errorMessage)
.true
, will highlight using highlight.js. Defaults to false
. To use this feature you must include highlight.js on your page or pass in using the hljs
option. For example, include the script and the CSS files like:<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">
window.hljs
), you can provide an instance here. Defaults to undefined
.renderingConfig
options will take precedence.false
, disable parsing GitHub Flavored Markdown (GFM) single line breaks. Defaults to true
.false
, disable the spell checker. Defaults to true
. Optionally pass a CodeMirrorSpellChecker-compliant function.textarea
or contenteditable
. Defaults to textarea
for desktop and contenteditable
for mobile. contenteditable
option is necessary to enable nativeSpellcheck.false
, disable native spell checker. Defaults to true
.false
, allows side-by-side editing without going into fullscreen. Defaults to true
.false
, hide the status bar. Defaults to the array of built-in status bar items.false
, remove the CodeMirror-selectedtext
class from selected lines. Defaults to true
.false
, disable syncing scroll in side by side mode. Defaults to true
.2
.easymde
.false
, hide the toolbar. Defaults to the array of icons.false
, disable toolbar button tips. Defaults to true
.rtl
or ltr
. Changes text direction to support right-to-left languages. Defaults to ltr
.Most options demonstrate the non-default behavior:
const editor = new EasyMDE({
autofocus: true,
autosave: {
enabled: true,
uniqueId: "MyUniqueID",
delay: 1000,
submit_delay: 5000,
timeFormat: {
locale: 'en-US',
format: {
year: 'numeric',
month: 'long',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
},
},
text: "Autosaved: "
},
blockStyles: {
bold: "__",
italic: "_",
},
unorderedListStyle: "-",
element: document.getElementById("MyID"),
forceSync: true,
hideIcons: ["guide", "heading"],
indentWithTabs: false,
initialValue: "Hello world!",
insertTexts: {
horizontalRule: ["", "\n\n-----\n\n"],
image: [""],
link: ["[", "](https://)"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
},
lineWrapping: false,
minHeight: "500px",
parsingConfig: {
allowAtxHeaderWithoutSpace: true,
strikethrough: false,
underscoresBreakWords: true,
},
placeholder: "Type here...",
previewClass: "my-custom-styling",
previewClass: ["my-custom-styling", "more-custom-styling"],
previewRender: (plainText) => customMarkdownParser(plainText), // Returns HTML from a custom parser
previewRender: (plainText, preview) => { // Async method
setTimeout(() => {
preview.innerHTML = customMarkdownParser(plainText);
}, 250);
return "Loading...";
},
promptURLs: true,
promptTexts: {
image: "Custom prompt for URL:",
link: "Custom prompt for URL:",
},
renderingConfig: {
singleLineBreaks: false,
codeSyntaxHighlighting: true,
sanitizerFunction: (renderedHTML) => {
// Using DOMPurify and only allowing <b> tags
return DOMPurify.sanitize(renderedHTML, {ALLOWED_TAGS: ['b']})
},
},
shortcuts: {
drawTable: "Cmd-Alt-T"
},
showIcons: ["code", "table"],
spellChecker: false,
status: false,
status: ["autosave", "lines", "words", "cursor"], // Optional usage
status: ["autosave", "lines", "words", "cursor", {
className: "keystrokes",
defaultValue: (el) => {
el.setAttribute('data-keystrokes', 0);
},
onUpdate: (el) => {
const keystrokes = Number(el.getAttribute('data-keystrokes')) + 1;
el.innerHTML = `${keystrokes} Keystrokes`;
el.setAttribute('data-keystrokes', keystrokes);
},
}], // Another optional usage, with a custom status bar item that counts keystrokes
styleSelectedText: false,
sideBySideFullscreen: false,
syncSideBySidePreviewScroll: false,
tabSize: 4,
toolbar: false,
toolbarTips: false,
});
Below are the built-in toolbar icons (only some of which are enabled by default), which can be reorganized however you like. "Name" is the name of the icon, referenced in the JavaScript. "Action" is either a function or a URL to open. "Class" is the class given to the icon. "Tooltip" is the small tooltip that appears via the title=""
attribute. Note that shortcut hints are added automatically and reflect the specified action if it has a key bind assigned to it (i.e. with the value of action
set to bold
and that of tooltip
set to Bold
, the final text the user will see would be "Bold (Ctrl-B)").
Additionally, you can add a separator between any icons by adding "|"
to the toolbar array.
Name | Action | Tooltip Class |
---|---|---|
bold | toggleBold | Bold fa fa-bold |
italic | toggleItalic | Italic fa fa-italic |
strikethrough | toggleStrikethrough | Strikethrough fa fa-strikethrough |
heading | toggleHeadingSmaller | Heading fa fa-header |
heading-smaller | toggleHeadingSmaller | Smaller Heading fa fa-header |
heading-bigger | toggleHeadingBigger | Bigger Heading fa fa-lg fa-header |
heading-1 | toggleHeading1 | Big Heading fa fa-header header-1 |
heading-2 | toggleHeading2 | Medium Heading fa fa-header header-2 |
heading-3 | toggleHeading3 | Small Heading fa fa-header header-3 |
code | toggleCodeBlock | Code fa fa-code |
quote | toggleBlockquote | Quote fa fa-quote-left |
unordered-list | toggleUnorderedList | Generic List fa fa-list-ul |
ordered-list | toggleOrderedList | Numbered List fa fa-list-ol |
clean-block | cleanBlock | Clean block fa fa-eraser |
link | drawLink | Create Link fa fa-link |
image | drawImage | Insert Image fa fa-picture-o |
table | drawTable | Insert Table fa fa-table |
horizontal-rule | drawHorizontalRule | Insert Horizontal Line fa fa-minus |
preview | togglePreview | Toggle Preview fa fa-eye no-disable |
side-by-side | toggleSideBySide | Toggle Side by Side fa fa-columns no-disable no-mobile |
fullscreen | toggleFullScreen | Toggle Fullscreen fa fa-arrows-alt no-disable no-mobile |
guide | This link | Markdown Guide fa fa-question-circle |
undo | undo | Undo fa fa-undo |
redo | redo | Redo fa fa-redo |
Customize the toolbar using the toolbar
option.
Only the order of existing buttons:
const easyMDE = new EasyMDE({
toolbar: ["bold", "italic", "heading", "|", "quote"]
});
All information and/or add your own icons
const easyMDE = new EasyMDE({
toolbar: [
{
name: "bold",
action: EasyMDE.toggleBold,
className: "fa fa-bold",
title: "Bold",
},
"italics", // shortcut to pre-made button
{
name: "custom",
action: (editor) => {
// Add your own code
},
className: "fa fa-star",
title: "Custom Button",
attributes: { // for custom attributes
id: "custom-id",
"data-value": "custom value" // HTML5 data-* attributes need to be enclosed in quotation marks ("") because of the dash (-) in its name.
}
},
"|" // Separator
// [, ...]
]
});
Put some buttons on dropdown menu
const easyMDE = new EasyMDE({
toolbar: [{
name: "heading",
action: EasyMDE.toggleHeadingSmaller,
className: "fa fa-header",
title: "Headers",
},
"|",
{
name: "others",
className: "fa fa-blind",
title: "others buttons",
children: [
{
name: "image",
action: EasyMDE.drawImage,
className: "fa fa-picture-o",
title: "Image",
},
{
name: "quote",
action: EasyMDE.toggleBlockquote,
className: "fa fa-percent",
title: "Quote",
},
{
name: "link",
action: EasyMDE.drawLink,
className: "fa fa-link",
title: "Link",
}
]
},
// [, ...]
]
});
EasyMDE comes with an array of predefined keyboard shortcuts, but they can be altered with a configuration option. The list of default ones is as follows:
Shortcut (Windows / Linux) | Shortcut (macOS) | Action |
---|---|---|
Ctrl-' | Cmd-' | "toggleBlockquote" |
Ctrl-B | Cmd-B | "toggleBold" |
Ctrl-E | Cmd-E | "cleanBlock" |
Ctrl-H | Cmd-H | "toggleHeadingSmaller" |
Ctrl-I | Cmd-I | "toggleItalic" |
Ctrl-K | Cmd-K | "drawLink" |
Ctrl-L | Cmd-L | "toggleUnorderedList" |
Ctrl-P | Cmd-P | "togglePreview" |
Ctrl-Alt-C | Cmd-Alt-C | "toggleCodeBlock" |
Ctrl-Alt-I | Cmd-Alt-I | "drawImage" |
Ctrl-Alt-L | Cmd-Alt-L | "toggleOrderedList" |
Shift-Ctrl-H | Shift-Cmd-H | "toggleHeadingBigger" |
F9 | F9 | "toggleSideBySide" |
F11 | F11 | "toggleFullScreen" |
Here is how you can change a few, while leaving others untouched:
const editor = new EasyMDE({
shortcuts: {
"toggleOrderedList": "Ctrl-Alt-K", // alter the shortcut for toggleOrderedList
"toggleCodeBlock": null, // unbind Ctrl-Alt-C
"drawTable": "Cmd-Alt-T", // bind Cmd-Alt-T to drawTable action, which doesn't come with a default shortcut
}
});
Shortcuts are automatically converted between platforms. If you define a shortcut as "Cmd-B", on PC that shortcut will be changed to "Ctrl-B". Conversely, a shortcut defined as "Ctrl-B" will become "Cmd-B" for Mac users.
The list of actions that can be bound is the same as the list of built-in actions available for toolbar buttons.
You can catch the following list of events: https://codemirror.net/doc/manual.html#events
const easyMDE = new EasyMDE();
easyMDE.codemirror.on("change", () => {
console.log(easyMDE.value());
});
You can revert to the initial text area by calling the toTextArea
method. Note that this clears up the autosave (if enabled) associated with it. The text area will retain any text from the destroyed EasyMDE instance.
const easyMDE = new EasyMDE();
// ...
easyMDE.toTextArea();
easyMDE = null;
If you need to remove registered event listeners (when the editor is not needed anymore), call easyMDE.cleanup()
.
The following self-explanatory methods may be of use while developing with EasyMDE.
const easyMDE = new EasyMDE();
easyMDE.isPreviewActive(); // returns boolean
easyMDE.isSideBySideActive(); // returns boolean
easyMDE.isFullscreenActive(); // returns boolean
easyMDE.clearAutosavedValue(); // no returned value
EasyMDE is a continuation of SimpleMDE.
SimpleMDE began as an improvement of lepture's Editor project, but has now taken on an identity of its own. It is bundled with CodeMirror and depends on Font Awesome.
CodeMirror is the backbone of the project and parses much of the Markdown syntax as it's being written. This allows us to add styles to the Markdown that's being written. Additionally, a toolbar and status bar have been added to the top and bottom, respectively. Previews are rendered by Marked using GitHub Flavored Markdown (GFM).
I originally made this fork to implement FontAwesome 5 compatibility into SimpleMDE. When that was done I submitted a pull request, which has not been accepted yet. This, and the project being inactive since May 2017, triggered me to make more changes and try to put new life into the project.
Changes include:
https://
by defaultMy intention is to continue development on this project, improving it and keeping it alive.
You may want to edit this library to adapt its behavior to your needs. This can be done in some quick steps:
gulp
command, which will generate files: dist/easymde.min.css
and dist/easymde.min.js
;Want to contribute to EasyMDE? Thank you! We have a contribution guide just for you!
Author: Ionaru
Source Code: https://github.com/Ionaru/easy-markdown-editor
License: MIT license
1671141060
When building a web application there is a good chance you’re going to need to work with images eventually, even if it is something as simple as allowing a user to upload a profile image. In theory this is a simple task, but in reality, your website theme is probably anticipating images of a certain resolution or aspect ratio. If the user tries to upload an image that doesn’t meet your requirements, it might break your theme.
We’re going to see how to include image manipulation capabilities in your Angular application using the popular cropperjs JavaScript package.
To get an idea of what we’re going to accomplish, take a look at the following animated image:
In the above animation you’ll notice a source image which has a crop box. Altering the crop box will affect the image preview to the right of the source image. This image preview is an entirely new image that represents our manipulations and it can be downloaded as such.
Before getting too involved with this tutorial, the assumption is that you’ve got the Angular CLI installed and configured. For context, I’m using Angular 8.0.2 in this example. If you’re using an older or newer version, things may vary slightly.
From the CLI, execute the following:
ng new image-cropper-example
The above command will start the project creation process. When prompted, choose the defaults as we won’t be doing anything particularly fancy when it comes to Angular.
After the project has been created, navigate into the project and execute the following:
npm install cropperjs --save
The above command will install our cropperjs JavaScript dependency. As a fun fact, jQuery is not a requirement for this example.
Installing the cropperjs
package will only install the JavaScript side of things. We’ll still need the CSS for visualizing our image manipulation box within the source image.
Open the project’s src/index.html file and include the following:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Image Cropping Project</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.1/cropper.min.css">
</head>
<body>
<app-root></app-root>
</body>
</html>
The only change made was in the cropper.min.css file that is now included. You can use it as part of the CDN or download it to be included directly within your project.
Before we get into the core code, let’s create a component to hold our image manipulation code:
ng g component ImageCropper
The above command will create appropriate TypeScript, HTML, and CSS files for our new component. You’ll see how each of these are used in the next step.
We’re going to do most of our development in the new component that we had just created, but before we do that, you might want to find an image to use. For this example, the image should be placed in the project’s src/assets directory.
Open the project’s src/app/image-cropper/image-cropper.component.css file and include the following CSS:
.img-container {
width: 640px;
height: 480px;
float: left;
}
.img-preview {
width: 200px;
height: 200px;
float: left;
margin-left: 10px;
}
The above CSS is not critical to the success of our project, but it makes it a little more attractive to look at. Essentially we are defining the source canvas size and the destination image size.
Now open the project’s src/app/image-cropper/image-cropper.component.html file where we can add the markup for our component:
<div class="img-container">
<img #image [src]="imageSource" crossorigin>
</div>
<img [src]="imageDestination" class="img-preview">
We’re getting a little ahead of ourselves here, but we have two <img>
components, one for our source image and one for our destination image. Each component has a src
variable that we’ll define later in our TypeScript. Notice that the source image has an #image
attribute on it. This is a reference variable that we’ll use within the TypeScript, giving us access to the DOM element. Remember, we can’t just use query selectors in Angular like we can vanilla JavaScript.
With the component HTML out of the way, open the project’s src/app/image-cropper/image-cropper.component.ts file where we’ll do a bulk of the work:
import { Component, OnInit, ViewChild, Input, ElementRef } from '@angular/core';
import Cropper from "cropperjs";
@Component({
selector: 'image-cropper',
templateUrl: './image-croppper.component.html',
styleUrls: ['./image-croppper.component.css']
})
export class ImageCroppperComponent implements OnInit {
@ViewChild("image", { static: false })
public imageElement: ElementRef;
@Input("src")
public imageSource: string;
public imageDestination: string;
private cropper: Cropper;
public constructor() {
this.imageDestination = "";
}
public ngAfterViewInit() {
this.cropper = new Cropper(this.imageElement.nativeElement, {
zoomable: false,
scalable: false,
aspectRatio: 1,
crop: () => {
const canvas = this.cropper.getCroppedCanvas();
this.imageDestination = canvas.toDataURL("image/png");
}
});
}
public ngOnInit() { }
}
The above code is complete, but we’re going to break it down to explain what is happening. It isn’t much, but it is still good to know.
At the top we are importing the cropperjs
package that we had previously downloaded and installed.
Remember that #image
reference from the HTML file? We’re accessing it through the @ViewChild
and mapping it to a variable to be used within our TypeScript code. The @Input
is referring to a possible attribute called src
which we’ll see later.
Because we’re working with elements in the view, we need to wait until the view has initialized before we make any attempts. To do this we can make use of the ngAfterViewInit
method. Inside the ngAfterViewInit
method we initialize our Cropper
using the entire imageElement
that we obtained from the HTML. During the initialization process we can define a few options. There are quite a few to choose from, but for us, we’re going to disable zooming and scaling of our image. In other words we’re only going to allow moving and cropping. We’re also going to define a crop box with a square aspect ratio. None of these are required options. The important option is the crop
method, one of many possible event methods. The crop
method is triggered every time something happens to the crop box. This is important to us because we want to constantly update our preview image.
The preview image is created by getting the cropped canvas and exporting it to an image.
At this point in time our component is done, but not yet being used. To use it, open the project’s src/app/app.component.html file and include the following:
<image-cropper src="assets/angular.png"></image-cropper>
Notice that we’re using image-cropper
which is the selector
value from the project’s src/app/image-cropper/image-cropper.component.ts file. We’re also using src
which was the @Input
that we defined in that same TypeScript file. The src
should reference an image within our src/assets directory.
You just saw how to add image manipulation functionality to your Angular web applications through the cropperjs package. If you’d like to upload these altered images, you might want to check out my previous tutorial titled, Upload Files to Node.js using Angular.
A video version of this tutorial can be found below.
Original article source at: https://www.thepolyglotdeveloper.com/
1665991784
In this tutorial, you'll learn how to create a drag-and-drop file upload with HTML, CSS and JavaScript.
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Drag & Drop File Upload</title>
<!-- Font Awesome Icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
/>
<!-- Google Font -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<input type="file" id="upload-button" multiple accept="image/*" />
<label for="upload-button"
><i class="fa-solid fa-upload"></i> Choose Or Drop Photos
</label>
<div id="error"></div>
<div id="image-display"></div>
</div>
<!-- Script -->
<script src="script.js"></script>
</body>
</html>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #f5f8ff;
}
.container {
background-color: #ffffff;
width: 60%;
min-width: 37.5em;
padding: 3.12em 1.87em;
position: absolute;
transform: translateX(-50%);
left: 50%;
top: 1em;
box-shadow: 0 1.25em 3.43em rgba(0, 0, 0, 0.08);
border-radius: 0.5em;
}
input[type="file"] {
display: none;
}
label {
display: block;
position: relative;
background-color: #025bee;
color: #ffffff;
font-size: 1.1em;
text-align: center;
width: 16em;
padding: 1em 0;
border-radius: 0.3em;
margin: 0 auto 1em auto;
cursor: pointer;
}
#image-display {
position: relative;
width: 90%;
margin: 0 auto;
display: flex;
justify-content: space-evenly;
gap: 1.25em;
flex-wrap: wrap;
}
#image-display figure {
width: 45%;
}
#image-display img {
width: 100%;
}
#image-display figcaption {
font-size: 0.8em;
text-align: center;
color: #5a5861;
}
.active {
border: 0.2em dashed #025bee;
}
#error {
text-align: center;
color: #ff3030;
}
let uploadButton = document.getElementById("upload-button");
let chosenImage = document.getElementById("chosen-image");
let fileName = document.getElementById("file-name");
let container = document.querySelector(".container");
let error = document.getElementById("error");
let imageDisplay = document.getElementById("image-display");
const fileHandler = (file, name, type) => {
if (type.split("/")[0] !== "image") {
//File Type Error
error.innerText = "Please upload an image file";
return false;
}
error.innerText = "";
let reader = new FileReader();
reader.readAsDataURL(file);
reader.onloadend = () => {
//image and file name
let imageContainer = document.createElement("figure");
let img = document.createElement("img");
img.src = reader.result;
imageContainer.appendChild(img);
imageContainer.innerHTML += `<figcaption>${name}</figcaption>`;
imageDisplay.appendChild(imageContainer);
};
};
//Upload Button
uploadButton.addEventListener("change", () => {
imageDisplay.innerHTML = "";
Array.from(uploadButton.files).forEach((file) => {
fileHandler(file, file.name, file.type);
});
});
container.addEventListener(
"dragenter",
(e) => {
e.preventDefault();
e.stopPropagation();
container.classList.add("active");
},
false
);
container.addEventListener(
"dragleave",
(e) => {
e.preventDefault();
e.stopPropagation();
container.classList.remove("active");
},
false
);
container.addEventListener(
"dragover",
(e) => {
e.preventDefault();
e.stopPropagation();
container.classList.add("active");
},
false
);
container.addEventListener(
"drop",
(e) => {
e.preventDefault();
e.stopPropagation();
container.classList.remove("active");
let draggedData = e.dataTransfer;
let files = draggedData.files;
imageDisplay.innerHTML = "";
Array.from(files).forEach((file) => {
fileHandler(file, file.name, file.type);
});
},
false
);
window.onload = () => {
error.innerText = "";
};
#html #css #javascript
1617864218
A video conferencing app is a revolutionary virtual cloud-based solution that lets users to host virtual meetings and audio/video conferencing. It is easy to launch the Zoom like app in the wink using the Zoom clone script. This blog will give you insightful information about the Zoom clone app development process.
**Zoom clone app development with the essential features to incorporate
**
At the onset of the coronavirus, people mostly heard social distancing, lockdown, mask, work from home and so on. To prevent virus transmission, they are forced to stay indoors. Shopping malls, theatres, and educational institutions (colleges and schools) were closed. Despite this, employees are working from home. Yes, it is quite challenging for them.
With adapting to the new normalcy, employees have preferred the video conferencing app for conducting and attending online meetings. This is one of the major reasons for the sudden growth of video conferencing app like Zoom.
Seeing this demand for video call apps, entrepreneurs find this an opportunity to launch their app, similar to Zoom. Because, Zoom is the most downloaded app in the United States from March to April 2020.
After relaxing the restrictions at the end of 2020, the coronavirus spread is considerably increasing recently. Therefore, the demand for video conferencing surges.
The pandemic is not the only reason for the growth of the video conferencing app. Many companies and employees prefer this app as it saves time and money that has to be invested in setting up meeting rooms.
**Essential features to consider for Zoom like app development
**
Feature-set integration is an important point to consider for Zoom like app development. Because, the app features determine the app’s functionality.
Integrating new and innovative features will make your app stand out from the other video conferencing apps. Moreover, this does not necessarily mean that you should compromise any of the basic features.
The essential features that should be incorporated into your video conferencing app are as follows.
Chat
Using this feature, the users can connect with other users. While attending the meeting, they can chat with all the participants in the meeting or chat individually, depending on their choice.
**Virtual hand-raising
**
It is the most useful feature. Participants can speak at any time in the meeting using this feature. When one participant is presenting her/his topic in the meeting, it is not good to see the other participants interrupting. This prevents multiple participants from speaking at the same time.
**Screen sharing
**
This feature will let the participant in the meeting share the screen with other members.
**Mute participants
**
The background might be noisy for some participants. So, the host has the option to mute any participants during the meeting as per his/her desire.
**Scheduled meetings
**
Using this feature, the host can schedule their meetings with their participants. Also, the participant who initiates has the option to set reminders for the scheduled meetings.
**Video sharing
**
The Video Sharing feature will allow the participants to share the videos from YouTube in the session. This will make the session interactive. Notably, participants do not have to download the YouTube video for watching. Instead, the video conferencing app will display the video.
**Encryption
**
The app should not let unauthorized users join the meeting. Therefore, your app should be embedded with end-to-end encryption. By doing this, no one can join the meeting without the permission of the host.
**Zoom clone app development - How much does it cost?
**
When it comes to the Zoom like app development cost, it mainly depends on your app features and functionality.
There is a rough estimation that the app cost is less when you plan to incorporate the basic features. You have to invest a particular amount of money in including the advanced and new features.
Other important features that determine the price are the geographical location, app platform, and time frame.
**Final note
**
Hoping so, this article helps you in knowing the feature-set to integrate into a video conferencing app like Zoom. However, there is no doubt that the requirement for video conferencing apps is high.
As Zoom being the most popular app, incorporate the same features in your app and include additional features that Zoom has failed to work. Approach Uber Like App for Zoom like app development.
#zoom clone #zoom clone script #zoom clone app #zoom like app #zoom clone app development #video conferencing app like zoom
1616051008
People’s lives have taken a massive deviation from the routine lifestyle and almost come to a standstill with the prevailing pandemic condition. As always, technology found its way to help everybody in compliance with the government’s emergency safety orders. With the comfort of working at home, people kept the world at its usual pace. This pandemic proved that we took a complete horseback ride on the technology. No distance was too far to fetch, as the notion to prevail was set in place with the technology.
Video conferencing app like Zoom connected the severed line as means of instant and comfortable communication. Forced to work at home, the Zoom app usage has become a routine in the post-pandemic era. Schools and universities have also made use of the app for their daily classes. The Zoom app also connected many stranded people to their expectant families via high-quality video calling.
Since Zoom video calling has given a sturdy answer to the entire world, its market is building and growing wider for every Zoom clone script that comes into the market. The world has welcomed almost every new digital invention given the situation now. This surmounting market growth invites creative people with innovative ideas to make bold and different digital race statements.
**What Is A Zoom App?
**
It is an on-the-go high-quality video calling application for conferences. This video calling application can host meetings for office goers and host rooms for schools and universities. Filled with the latest and thoughtful features like raise hands, mute audio, record meeting, etc, it has created a dominant usage of this video calling application now.
et’s Take A Look At The Diverse Video Streams Offered With Our Zoom Like App
**Air Meeting
**
Zoom meetings connected via HD video calls can be used for corporate meetings, online classes, and to chat with friends and family. There are useful features included in this form of video calling: calendars, event alerts, and scheduling.
**Video Webinar
**
Accompanied with the most useful features like raise a hand, public polls, and typing for a QA inside the call, this video webinar can accommodate up to 150 participants. Expandable up to 10,000 participants for just viewing, it offers much more than any traditional video meeting platform. This is one of the preferable streams for people who host shows and webinars. With expected updates, the webinar hosts can monetize their webinar services with Paypal and Zapier. It is deemed to be the most effective platform for broadcasting and events.
**Conference Rooms
**
Built solely for corporate meetings, this stream is the most popular among all. Its corporate-oriented features offer a lot of help for the host and also for the participants attending it. To represent the physical corporate meetings in every way possible and with the added touch of modern and digital updates, some innovative features can be used in the sessions, i.e., such as sharing videos, sharing files, and remote access participants’ whiteboards. There are few dedicated action buttons for quick switches when in meetings.
**Encrypted Calling
**
It works just like the other call platforms but is rebuilt and improvised with new features. Group calls and regular calls are now possible with our zenith bandwidth servers. Calls can be switched to video calling seamlessly. Background noise drowning is done effortlessly with our latest tech.
**Chat Station
**
With new integrated features apart from texting users can set reminders via chats, share event updates, schedule report sharing, invite to secret groups, archive chats, etc. The texting is given a new touch of feature for comfortable typing.
**Our Feature-rich Zoom Clone App Can Fit Into Any Business
**
**Corporates and IT’s
**
Clustered with tight office schedules and staying connected with their families, our video conferencing app like zoom can help them effortlessly. Be it work from home, conduct meetings, team calls, month-end analysis, or any labored work, companies can utilize a video calling app to make corporate life easy.
**Finance Sectors
**
Handling the most sensitive data for work, employees have to sweat around to make sure processes are intact throughout their work. Our zoom clone app development ensures a time-conserving smooth operation to manage all the schedules either from the office or at home.
**Healthcare Center
**
Modern medicine needs modern guidance today. Doctors and supporting health practitioners can use this app to provide patients with immediate assistance towards any concern to their health. People who can’t access the nearest hospitals can use our video app to consult a doctor.
**Educational Institutions
**
Since schools and universities are shut given the lockdowns globally, this is the sensible and easiest way to resume their classes. With many advanced features built into the app, students and teachers can share information and support it with study materials by sharing/downloading.
**Governments
**
This being the license for all bases of operations in the country, the functioning has to be non-stop and unwithered. Faced with so many challenges at work and home, employees and administrative executives are constantly trying to finish work on time. To help them relieve some workload and connect work to them digitally, our Zoom clone script is built to ensure unsevered workability.
**Impressive Features Built For Uninterrupted And Effortless Connectivity With Our Zoom Like App
**
**Uninterrupted Connection
**
From video calling across many device platforms, the user can connect instantly and securely. Offering seamless connectivity and high definition video calling with premium options.
**Virtual Conferences
**
With the power to act instantly, businesses can set meetings virtually and effortlessly at any time of the day. With no registration required, users can join the forum with just the meeting link.
**Schedule A Meeting
**
The host can set up a meeting in advance and share the link to the participants. Participants can also invite others to join the meeting with the host’s permission.
**Vote With Polls
**
When a decision is to be made, a poll option can be set up for the participants to vote on the requested topics, and the results can be viewed at the end of the virtual conference.
**Automated Meeting IDs
**
The users are given meeting IDs automatically generated by the zoom clone app just so the user does not clash into another meeting.
**Stream Live
**
The meetings can be shared to other social media platforms with our stream live option.
This makes the content more accessible across all major platforms.
Background Blur
To ensure a professional yet neat video setup, the user can opt for our background blur feature. It gives the user a nice experience of the app.
**Digital Hand Raise
**
To grab the host’s attention or the teacher, the user can hit this action button on the screen to engage in a conversation. Others on the call will be shown a notification, too, so that person alone can speak.
**Record Call And Meeting
**
The user can record the video for any future references or help the person who missed out on attending the meeting, and the recorded videos can be shared.
**Cast Youtube Videos
**
Casting youtube videos to add an impressive depth and liveliness in the meeting is a compelling feature. It encourages an enjoyable and thoughtful meeting atmosphere.
**To Sum Up
**
As the world is trying to connect back to its old ways of life, it’s crucial to meet that objective with the digital run. Connectivity has been the key to every business’s growth, and how fast we transfer information and solutions gives a business edge against rivals. Virtual connections with Zoom calling are admired as the modern-day workplace which enable workability effortlessly. Armed with clone apps, we help you load your innovative ideas to pull the trigger and shoot in the direction of rapid growth.
#zoom like app development #video conferencing app like zoom #zoom clone app development #zoom like app #zoom clone app #zoom clone script